Chuyển đến nội dung
Skillpedia
Khác260k · #543

shop

Skill này làm gì

Skill này cho phép AI mua sắm thay bạn, từ tìm sản phẩm đến thanh toán và theo dõi đơn hàng. Phù hợp với người muốn AI xử lý việc mua sắm trực tuyến bằng tài khoản của chính họ.

Khi nào nên dùng

  • ✓Khi bạn muốn AI tìm kiếm trong danh mục và hiển thị các lựa chọn sản phẩm.
  • ✓Khi bạn muốn thanh toán hoặc theo dõi một đơn hàng bằng tài khoản cửa hàng của bạn.
  • ✓Khi bạn cần bắt đầu một yêu cầu đổi trả hoặc kiểm tra một đơn hàng cũ.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/productivity/shop/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tìm giúp tôi một chiếc balo chống nước với giá hợp lý và cho tôi xem các lựa chọn trước khi mua bất cứ thứ gì.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill đặt một trình tự mua sắm cố định. AI của bạn trước tiên yêu cầu bạn đăng nhập, rồi tìm kiếm, hiển thị kết quả và chờ bạn chọn trước khi thực hiện thanh toán hoặc các bước khác.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết 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 --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
Câu hỏi thường gặp

AI có mua hàng mà không hỏi tôi không?

Không. Skill đặt một quy trình mua sắm dừng lại để bạn đăng nhập và chọn sản phẩm trước khi tiếp tục.

Công cụ được cài đặt thế nào?

Skill khuyên cài công cụ dòng lệnh shop bằng pnpm hoặc npm, và liệt kê các file tham chiếu về an toàn và pháp lý.

Có giới hạn nào khi dùng cá nhân không?

Có. Skill có một file tham chiếu pháp lý về giới hạn sử dụng cá nhân và các mục đích thương mại bị cấm.

Chi tiết

Mô tả gốc của tác giả

Shop catalog search, checkout, order tracking, returns.

repo: NousResearch/hermes-agent

Độ phổ biến

Sao GitHub
260k
Vị trí xếp hạng
#543
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự