shop
它能做什么
这项技能让你的 AI 替你购物,从查找商品到结账和跟踪订单都可以完成。适合希望 AI 用自己的账户处理网购的人。
适用场景
- ✓你想让 AI 搜索商品目录并向你展示商品选项的时候。
- ✓你想使用自己的商店账户结账或跟踪订单的时候。
- ✓你需要发起退货或查询过去订单的时候。
技能链接
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/productivity/shop/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我找一个价格合理的防水背包,在买之前先把选项展示给我。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能设定了固定的购物顺序。你的 AI 会先要求你登录,然后搜索、展示结果,并在进行结账或其他步骤之前等待你的选择。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Shop CLI Skill
Setup
Prefer the installed shop CLI. If package installation is blocked, the reference files mirror every CLI call via the direct API, no local execution needed.
pnpm add --global @shopify/shop-cli # or: npm install --global @shopify/shop-cli
shop --help
To upgrade: pnpm add --global @shopify/shop-cli@latest (or npm install --global @shopify/shop-cli@latest). Uninstall: pnpm rm -g @shopify/shop-cli (or npm rm -g @shopify/shop-cli).
Reference files:
- catalog-mcp.md — direct catalog MCP calls + manual token exchange
- direct-api.md — auth, checkout, and orders API details
- safety.md — safety, security, and prompt-injection rules
- legal.md — personal-use limits and prohibited commercial uses
IMPORTANT: Shopping flow
Every shopping conversation follows this order. Each step links to its rules below; each rule lives in exactly one place.
- Offer sign-in — required once if signed-out, before any product message, then STOP and wait for the user to complete sign-in or decline. → Sign in
- Search the catalog with
shop search. → Searching - Show results — one assistant message per product, then one summary message. → Showing products
- Offer visualization when the item is visual. → Visualization
- Checkout on the merchant domain, only with clear purchase intent. → Checkout
- Orders — tracking, returns, reorder (needs sign-in). → Orders
Commands
Catalog
shop search is the single entry point for catalog discovery: free-text, similar items (--like-id), and visual search (--image). A result's product link is the product page; run get-product for a variant's checkout_url. Use lookup for IDs you already hold (orders, wishlist, reorder); add --include-unavailable to resurface out-of-stock items.
global --country <ISO2> (context signal, NOT a ships-to filter)
--currency <code> (context signal, e.g. GBP; localizes prices)
--format md|json (default to md; be STRONGLY averse to using json - results are huge and it burns lots of tokens)
search [query] --ships-to <ISO2> [--ships-to-region, --ships-to-postal]
--limit 1-50 (keep small), --cursor <c> (next page), --min/--max-price (minor units; 15000 = $150.00)
--condition new,secondhand (default new), --ships-from <ISO2,...> (comma list)
--shop-id <id...>, --category <id...>, --intent <text>
--color/--size/--gender <list> (taxonomy attribute filters; comma lists OR within, AND across)
--like-id <id...> (similar; product or variant gid), --image ./photo.jpg
(query is optional when --like-id or --image is given)
catalog lookup <ids...> --ships-to <ISO2>, --include-unavailable, --condition
catalog get-product <id> --select Name=Label, --preference Name
--ships-tois the buyer's destination (a hard filter) and alone localizes context to it;--countryis location context only — pass it only when you actually know it, never invent. Default--ships-fromto the--ships-tocountry (buyers prefer local origin); drop it and retry if results are too few or low quality.
shop search "trail running shoes" --country GB --currency GBP --ships-to GB --ships-from GB --limit 10 --condition new
shop search "tshirt" --country US --color White --size M --gender Female
shop search "black crewneck sweater" --like-id gid://shopify/p/abc123
shop search --image ./photo.jpg
shop catalog lookup gid://shopify/ProductVariant/50362300006715
shop catalog get-product gid://shopify/p/abc --select Color=Black --select Size=M
Checkout
# create from a variant
printf '{"email":"buyer@example.com"}' | shop checkout create --shop-domain example.myshopify.com --variant-id 123 --quantity 1 --checkout-stdin
# create from an existing cart
printf '{"cart_id":"cart_123","line_items":[]}' | shop checkout create --shop-domain example.myshopify.com --checkout-stdin
printf '{"fulfillment":{"methods":[]}}' | shop checkout update --shop-domain example.myshopify.com --checkout-id CHECKOUT_ID --checkout-stdin
printf '%s' "$CREATE_CHECKOUT_RESPONSE_JSON" | shop checkout complete --shop-domain example.myshopify.com --checkout-id CHECKOUT_ID
常见问题
我的 AI 会不经询问就买东西吗?
不会。技能设定的购物流程会在登录和商品选择之前停下来,等待你的确认。
这个工具如何安装?
技能建议使用 pnpm 或 npm 安装 shop 命令行工具,并列出了安全和法律方面的参考文件。
个人使用有限制吗?
有。技能包含一份关于个人使用限制和禁止商业用途的法律参考文件。
详情
热度
- GitHub 星标
- 260k
- 排名
- #543
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-merge-conflict-arbiter
260k以中立第三方的身份,解决两个智能体分支之间的 git 合并冲突,为代码仓库生成一个合并结果。
antigravity-cli
260k指导你安装、更新和排查 Antigravity 命令行工具,包括其插件、登录和沙盒。
blackbox
260k让你的智能体把编程任务交给 Blackbox AI 命令行工具,它会运行多个 AI 模型并挑选最佳结果。
dynamic-workflow
260k教你的智能体把大量相似的工作保存为脚本批量运行,使只有经过验证的结果才返回主对话。