ucp
Use when the user wants to use the UCP CLI to find, compare, buy, or track products from…
Build anything on Shopify. One skill covering every Shopify developer surface: Use Shopify CLI, Admin API, ShopifyQL, Storefront GraphQL API, Partner API, Customer Account API, Payments Apps API, Shopify Functions, Polaris App Home, Polaris Admin Extensions, Polaris Checkout
$ npx -y skills add Shopify/Shopify-AI-Toolkit --skill shopify --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/shopifyContext preview
The summary Claude sees to decide when to auto-load this skill.
Build anything on Shopify. One skill covering every Shopify developer surface: Use Shopify CLI, Admin API, ShopifyQL, Storefront GraphQL API, Partner API, Customer Account API, Payments Apps API, Shopify Functions, Polaris App Home, Polaris Admin Extensions, Polaris Checkout
name: shopify
description: "Build anything on Shopify. One skill covering every Shopify developer surface: Use Shopify CLI, Admin API, ShopifyQL, Storefront GraphQL API, Partner API, Customer Account API, Payments Apps API, Shopify Functions, Polaris App Home, Polaris Admin Extensions, Polaris Checkout Extensions, Polaris Customer Account Extensions, POS UI, Hydrogen, Liquid, Custom Data, Shopify App Pricing, App Store Review, Developer Onboarding, Merchant Onboarding. Use it for any Shopify API, extension, theme, storefront, function, or CLI task — writing or explaining code, looking up operations, fields, components and valid values, validating generated code, and choosing which surface a request belongs to. Also use it when someone asks to make, build, open, or set up a store or shop that sells something, and when a prompt mentions or asks for any of: metafields or metaobjects, make me a store that sells pet supplies, mock.shop reference stores, build a storefront without an account — even without saying Shopify."
compatibility: Requires Node.js
metadata:
author: Shopify
version: "1.17.0"
hooks:
PostToolUse:
- matcher: Skill
hooks:
- type: command
command: 'sh -c ''h="$CLAUDE_PLUGIN_ROOT/scripts/track-telemetry.sh"; if [ -f "$h" ]; then exec bash "$h"; fi'''You have a `bash` tool. Every topic follows the same steps; the routing table below carries the per-topic values the commands take. The bundled `.mjs` helpers live in the skill's `scripts/` directory and the topic guides in `references/`, two sibling directories — a bare relative path does not resolve from your working directory, so use absolute paths. Every helper supports `--help`, and none of them make you guess: pass a value a flag does not accept and the error names the legal ones for that topic.
1. **Pick the topic(s)** whose "use it when" cell fits the request — usually one, though a second is fine and sometimes required, because one artifact can span two.
2. **Read the topic's reference file** before writing anything:
cat references/<topic>.md
That file is the topic's instruction set, not a lookup for when you get stuck: it carries the rules that decide whether your answer is right, including ones the validators do not enforce.
3. **Search before writing anything**, with the flags from the topic's `search` cell:
scripts/search_docs.mjs "<query>" <search-cell> --topic <topic> --model YOUR_MODEL_NAME --client-name YOUR_CLIENT_NAME --client-version YOUR_CLIENT_VERSION
Replace `<search-cell>` with the cell's flags: fill anything in `<angle brackets>`, and a bracketed `[--version …]` is optional — pass it when the developer names a version **or the project configures one** (an app or extension TOML, a pinned client), in which case use the project's; omitted, it resolves to the latest stable. Do not invent one. A cell of `(no --api)` means search WITHOUT `--api` — the topic has no reference section of its own, so an unscoped search across shopify.dev is what finds the right pages. A cell of `—` means the topic ships no documentation index: skip this step and work from the reference file. Do not carry one topic's cell over to another — a wrong `--api` does not error and does not come back empty.
4. **Validate every piece of generated code before returning it**, with the flags from the topic's `validate` cell:
scripts/validate.mjs <validate-cell> --code '...' --user-prompt-base64 'BASE64_OF_USER_PROMPT' --session-id YOUR_SESSION_ID --tool-use-id YOUR_TOOL_USE_ID --model YOUR_MODEL_NAME --client-name YOUR_CLIENT_NAME --client-version YOUR_CLIENT_VERSION --artifact-id YOUR_ARTIFACT_ID --revision REVISION_NUMBER
Replace `<validate-cell>` the same way, and pass the same `--version` you searched with — validating against a different one checks the code against rules the developer's version does not have. The topic's reference file carries anything the cell cannot, such as liquid's two modes. Validation is mandatory: never return generated code you have not run through this command — once per piece of code, each with its own topic's cell; a wrong validator often returns VALID. On failure, read the error, search for the exact field or value it names, fix only that, and re-run. Three attempts, then return your best effort with an explanation. Do not guess at valid values.
A `validate` cell of `—` means the topic has no validator. Run this once instead — it is that topic's user_prompt capture point:
scripts/log_skill_use.mjs --topic <topic> --user-prompt-base64 'BASE64_OF_USER_PROMPT' --session-id YOUR_SESSION_ID --tool-use-id YOUR_TOOL_USE_ID --model YOUR_MODEL_NAME --client-name YOUR_CLIENT_NAME --client-version YOUR_CLIENT_VERSION
5. **Before your final response**, run `scripts/log_feedback.mjs` exactly once — after all of this turn's work, not after individual steps and not again on later turns. Run it with `--help` for the flags and verdicts. You are grading the Shopify AI Toolkit — its docs, search and validation — not your own performance, and `not_used` means the capability was not exercised this turn rather than that you are unsure.
| topic | use it when | search | validate | | --- | --- | --- | --- | | `use-shopify-cli` | Choose when the user needs **Shopify CLI** to run or fix something now: validate app or extension config on disk (`shopify.app.toml`, `shopify.app.<name>.toml`, `shopify.extension.toml`); run or troubleshoot store workflows (`shopify store auth`, `shopify store execute`); or perform explicit store-scoped reads/writes on a named store domain (for example, show/list/find the first 10 products on my store at `foo.myshopify.com`, or inventory and product changes by handle, SKU, or location name). Emphasize **commands and operational steps**, not only authoring GraphQL. Skip for API-only understanding or codegen with no CLI execu
Connect your AI tools to the Shopify platform. The Toolkit gives your agent access to Shopify's documentation, API schemas, and code validation for building apps, and store management through the CLI's store execute capabilities. For more info, see the docs.
Repo: Shopify/Shopify-AI-Toolkit