跳到正文
Skillpedia
其他260k · #543

shop

它能做什么

这项技能让你的 AI 替你购物,从查找商品到结账和跟踪订单都可以完成。适合希望 AI 用自己的账户处理网购的人。

适用场景

  • ✓你想让 AI 搜索商品目录并向你展示商品选项的时候。
  • ✓你想使用自己的商店账户结账或跟踪订单的时候。
  • ✓你需要发起退货或查询过去订单的时候。

技能链接

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/productivity/shop/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/productivity/shop/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.

  1. 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
  2. Search the catalog with shop search. → Searching
  3. Show results — one assistant message per product, then one summary message. → Showing products
  4. Offer visualization when the item is visual. → Visualization
  5. Checkout on the merchant domain, only with clear purchase intent. → Checkout
  6. 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-to is the buyer's destination (a hard filter) and alone localizes context to it; --country is location context only — pass it only when you actually know it, never invent. Default --ships-from to the --ships-to country (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 命令行工具,并列出了安全和法律方面的参考文件。

个人使用有限制吗?

有。技能包含一份关于个人使用限制和禁止商业用途的法律参考文件。

详情

作者的原始描述

Shop catalog search, checkout, order tracking, returns.

repo: NousResearch/hermes-agent

热度

GitHub 星标
260k
排名
#543
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能