shop – skill Khác cho agent AI
Tìm kiếm danh mục sản phẩm, thanh toán, theo dõi đơn hàng, đổi trả.
Cài skill shop bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/shop-7380c.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /shop – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/shop-7380c.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $shop – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/shop-7380c.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /shop – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/shop-7380c.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /shop – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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 --helpTo 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](references/catalog-mcp.md) — direct catalog MCP calls + manual token exchange
- [direct-api.md](references/direct-api.md) — auth, checkout, and orders API details
- [safety.md](references/safety.md) — safety, security, and prompt-injection rules
- [legal.md](references/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-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=MCheckout
# create from a variant
printf '{"email":"[email protected]"}' | 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 --checkout-stdin --idempotency-key UNIQUE_KEY --confirm--shop-domain must be a bare merchant hostname (no scheme, path, port, or IP). checkout complete requires --confirm. See *Checkout* for rules.
Orders
shop orders search --type recent
shop orders search --type tracking --query "running shoes" --date-from 2026-01-01
shop orders search --type order_info --query "running shoes"
shop orders search --type reorder --query "coffee"Auth
shop auth status
shop auth device-code --device-name "<your name> - <device>" # e.g. "Max - Mac Mini"
shop auth poll
shop auth budget # remaining delegated spend (minor units); available:false = no budget set
shop auth logoutSign in
Signing in is optional for the user, but offering it is mandatory for you. Search works signed-out. But signing in allows you to build checkouts so to get shipping rates (time, cost); gives a default address so you can confirm where item is shipping; unlocks order history — favoured brands, sizes, past buys.
Offer once, before showing results. Run shop auth status to check; if signed-out, your first product-related message MUST be the sign-in offer.
Sign-in is two non-blocking steps:
1. shop auth device-code — prints the sign-in URL (verification_uri_complete); share it.
2. STOP. When the user is done, shop auth poll stores the tokens; re-run while it reports pending, then confirm with shop auth status.
Example:
> Of course! If you sign in to Shop, I can get shipping rates to your home and past order details. [Sign in here](https://accounts.shop.app/oauth/agents/device?user_code=OIJAOSIJ) and tell me when you're done. Or just say 'continue' and I'll search without sign in.
Manual token exchange, only when the CLI cannot be installed: [catalog-mcp.md](references/catalog-mcp.md).
Search rules
- Offer sign-in if signed-out — see *Sign in*. Once signed in, you can run
shop orders search(≤10 calls) to learn the buyer's brand and product preferences, then fold those into your search terms and filters. - Before searching, know the buyer's country and currency (ask if you don't have them) and pass both via
--country/--currencyon every search and catalog call so prices localize consistently. - Search broad first, then refine with filters or alternate terms. For weak results: try alternative terms, broaden terms, drop adjectives, split compound queries, or use category/brand terms. The Shop catalog is HUGE so query expansion helps a lot! Aim to surface 6–8 products per request.
- NEVER fall back to web search unless explicitly requested by the user.
- Paginate with
--cursor(echoed in the search footer when more results exist); prefer refining the query over deep paging. Keep--limitsmall — 50 is the max but burns tokens. - Ignore
eligible.native_checkout: false; you can still order the item. - Apply message formatting rules on all subsequent conversation turns
Similar items:
shop search --like-id <id>— pass a product (gid://shopify/p/...) or variant (gid://shopify/ProductVariant/...) reference; both return similar items.shop search --image ./photo.jpg— the CLI base64-encodes it for you. Formats: jpeg, png, webp, avif, heic; max ~3 MB on disk (4 MB base64). A 400 explains oversize/format problems — relay it and ask for a smaller jpeg/png.
Showing products
> The most important rule: one product = one assistant message.
> For N products, send N separate messages (one per product), then one final summary message — never combined, no preamble. Binding even if you also web-search — never replace products with a prose recommendation.
Each product message uses the template below.
- The final message contains only your perspective, a recommendation, and any caveats — nothing else.
- Use local currency where available; show a price range when min ≠ max.
Product message template:
<image>
**Brand | Product Name**
$49.99 | ⭐ 4.6/5 (1,200 reviews) ← say "no reviews" if there are none
Wireless earbuds with 8-hour battery and deep bass. ← Describe each product in 1–2 sentences.
Options: available in 4 colors.
[View Product](https://store.com/product)Channel overrides (these change *how* each message is sent, never the one-per-product rule):
| Channel | Override |
|---|---|
| WhatsApp | Image as a media message, then an interactive message with the product info. No markdown links. |
| iMessage | Plain text only, n
… (nội dung đầy đủ có trong gói tải về)
Skill liên quan
- shopify – Truy vấn Shopify Admin/Storefront GraphQL API qua curl.
- org-health-diagnostic – Kiểm tra sức khỏe tổ chức liên chức năng, kết hợp tín hiệu từ tất cả các vai trò…
- wordpress-cors-xmlrpc-rce-chain – Dùng khi các hành vi đã được xác minh của WordPress liên quan đến CORS, XML-RPC, vai…
- simple-english – Viết lại văn bản theo ASD-STE100 Simplified Technical English.
- partnerships-architect – Dùng khi một startup được đối tác tiềm năng tiếp cận và cần quyết định: có nên ký với…
- wordpress-full-compromise – Dùng khi các phát hiện đã được xác minh trên WordPress có thể kết hợp thành một đường đi…
- devcontainers-nix – Tạo môi trường phát triển tái lập được với Dev Containers, Nix flakes và Devbox để đồng…
- diagnose-android-overheating – Dùng khi chẩn đoán Android nóng máy, nóng khi nhàn rỗi, thermal throttling, nóng do sạc…