nousresearch/hermes-agent/shop
Claude Code and agent skill by nousresearch/hermes-agent
- community
Checking that the SKILL.md file is still in the repository.
Shop catalog search, checkout, order tracking, returns.
Install
npx vskill@latest install nousresearch/hermes-agent/shopSKILL.md
The same SKILL.md was published earlier as nousresearch/hermes-agent/shop.
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.
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.
--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.
Checkout
--shop-domain must be a bare merchant hostname (no scheme, path, port, or IP). checkout complete requires --confirm. See Checkout for rules.
Orders
Auth
Sign 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:
shop auth device-code— prints the sign-in URL (verification_uri_complete); share it.- STOP. When the user is done,
shop auth pollstores the tokens; re-run while it reportspending, then confirm withshop 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 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.
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:
Channel overrides (these change how each message is sent, never the one-per-product rule):
| Channel | Override | |
|---|---|---|
| Image as a media message, then an interactive message with the product info. No markdown links. | ||
| iMessage | Plain text only, no markdown. Never put CDN/image URLs in text. Send two messages per product: (1) image, (2) info. | |
| Telegram (Openclaw) | One single media message per product, no alt text. Inline "View Product" URL button if supported, else the template link; on send failure, fall back to text. | |
| Telegram (Hermes Agent + all other agents) | Do not send an image. Send separate messages — never one combined message. |
Visualization
When the item is visual (clothing, shoes, accessories, furniture, decor, art) and you have image-generation capability, offer it — e.g. "Send a photo and I'll show you how it could look. Also if you like it can save it locally on your device."
- You MUST pass the user's photo to the image-edit tool. Never use a text-only prompt, never generate a lookalike/reference image, never use masking. Edit the actual photo with the best available image-edit model.
- State that visualizations are approximate and for inspiration only.
Checkout
- Complete only via the agent flow on the merchant domain. Never fall back to browser checkout to bypass an agent-flow error.
- Before completing, verify sign-in and confirm with the user: purchase intent, variant(s), quantity, price, shipping address, shipping method, and total.
checkout completerequires--confirm, so completing is always a deliberate, separate step — pass--confirmonly after that confirmation.
Reading the `checkout create` / `update` response:
- Inspect
status,email, addresses,continue_url, andpayment.instruments. - If the buyer's saved shipping details are missing, collect them and pass via
checkout create/update. - Warnings: display every
messages[]entry with typewarning(e.g.final_sale,prop65,age_restricted) before completing. Showpresentation: "disclosure"warnings verbatim — never omit or summarize them. Never complete a purchase without surfacing these.
Then take one of two paths:
A. Default checkout (no saved payment). If payment.instruments is empty, read the shop_pay_availability block the CLI adds:
budget_available: true— you have a delegated budget but this store didn't issue a payment instrument, so it doesn't accept Shop agent payments yet. Search for similar alternatives and message the user about relevant options. Do NOT offer a budget.budget_available: false— presentcontinue_urlas a Finish in Shop link (format nicely; don't print the raw URL) AND (IMPORTANT) immediately after, offer a spending budget (below) — a budget lets you complete purchases on stores that accept Shop agent payments.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 96 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingoptional-skills/productivity/shop/SKILL.md
Popularity
- Repository stars
- 195,696
- Repository forks
- 34,381
- 7-day trend score
- 61
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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/nousresearch/hermes-agent/shop)