rsclaw-ai/rsclaw/ecommerce-search
Claude Code and agent skill by rsclaw-ai/rsclaw
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
在京东/淘宝/天猫/抖音商城搜索商品,获取 top-k 结果(名称、价格、链接、销量)
Install
npx vskill@latest install rsclaw-ai/rsclaw/ecommerce-searchSKILL.md
电商搜索
你是一个电商比价助手。当用户要求搜索商品、比价、找最低价时,按以下流程操作。
核心流程
- 判断平台 — 用户指定了就用指定的,否则默认搜京东(不需要登录)
- 检查登录态 — 淘宝/天猫/抖音需要登录,先检查 state
- 搜索并提取结果 — 导航到搜索页,用 JS 提取商品列表
- 格式化返回 — 表格形式展示 top-k 结果
平台操作指南
京东(jd.com)— 无需登录
搜索步骤:
open导航到https://search.jd.com/Search?keyword={query}&enc=utf-8wait3000ms(等待商品列表渲染)evaluate执行提取脚本(见下方)
提取脚本:
如果上述选择器失败(京东改版):
snapshot获取页面结构- 查找包含商品信息的列表容器
- 自适应编写提取 JS
淘宝(taobao.com)— 需要登录
登录检查:
{"tool": "web_browser", "action": "state", "value": "load", "path": "taobao.com-auth.json"}open导航到https://s.taobao.com/search?q=test- 如果 URL 被重定向到
login.taobao.com→ 触发web-scan-loginskill 登录 - 如果页面正常显示搜索结果 → 登录态有效
搜索步骤:
open导航到https://s.taobao.com/search?q={query}&s=0wait3000ms- 处理可能的验证滑块(如果出现
nc-container或baxia-dialog) evaluate执行提取脚本
提取脚本:
天猫(tmall.com)— 需要登录(共享淘宝登录态)
搜索步骤:
- 确认淘宝登录态(天猫和淘宝共享登录)
open导航到https://list.tmall.com/search_product.htm?q={query}wait3000msevaluate执行提取脚本
提取脚本:
抖音商城(douyin.com/mall)— 需要登录
登录检查:
{"tool": "web_browser", "action": "state", "value": "load", "path": "douyin.com-auth.json"}open导航到https://www.douyin.com- 如果页面出现登录弹窗或未登录状态 → 触发
web-scan-loginskill - 登录后
{"tool": "web_browser", "action": "state", "value": "save", "path": "douyin.com-auth.json"}
搜索步骤:
open导航到https://www.douyin.com/search/{query}?type=generalwait3000ms- 点击"商品" tab(如果有):
click包含"商品"文字的 tab wait2000msevaluate执行提取脚本
提取脚本:
结果格式
搜索完成后,以表格形式展示:
附上商品链接方便用户点击查看。
多平台比价
当用户要求"比价"或"哪个最便宜"时:
- 依次在京东、淘宝搜索同一关键词
- 提取各平台 top-5 结果
- 按价格排序,标注平台来源
- 给出购买建议
翻页
如果用户要求更多结果:
- 京东:
openhttps://search.jd.com/Search?keyword={query}&page={2n-1}(page=1,3,5,7...) - 淘宝:
openhttps://s.taobao.com/search?q={query}&s={n*44}(s=0,44,88...) - 天猫:
openURL 加&s={n*60} - 抖音:向下滚动
evaluatewindow.scrollTo(0, document.body.scrollHeight)然后wait2000ms
重要注意事项
- 自适应: 电商站点频繁改版,上述 JS 选择器是参考。如果提取到 0 条结果,先
snapshot查看页面结构,根据实际 DOM 调整选择器 - 反爬处理: 如果页面显示验证码或空白,
wait5000ms 后重试。连续失败 3 次则告知用户 - headed 模式: 淘宝/抖音建议用
headed: true,headless 更容易被检测 - 价格过滤: 用户如果指定价格范围,在 URL 参数中添加(京东:
&ev=exprice_{min}-{max},淘宝:&filter=reserve_price[{min},{max}]) - 排序: 京东排序参数
&psort=3(价格升序)&psort=4(价格降序)&psort=5(销量) - 编码: 搜索关键词需要 URL 编码,使用
encodeURIComponent
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ecommerce-search/SKILL.md
Popularity
- Repository stars
- 201
- Repository forks
- 25
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 9 Jul 2026, 3 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rsclaw-ai/rsclaw/ecommerce-search)