Official Shopify skill for theme development in Liquid — teaches an agent the modern theme architecture of sections, blocks and snippets, and validates generated templates and schemas.
Shopify Admin GraphQL
Summary
Shopify's official skill for writing Admin GraphQL queries and mutations — it searches the live API docs and validates every operation against the schema before handing you code.
Features
- Searches the live shopify.dev Admin API docs before writing any operation
- Validates generated GraphQL against the real schema, with a three-try fix loop
- Targets a specific API version (e.g. 2026-04) or the latest stable
- Encodes Shopify's own conventions — field-count limits, __typename on unions, search syntax
- Hands off config validation and live execution to the toolkit's CLI skill
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Usage Instructions
Learn how to use this skill with different AI agents.
Example Usage
Write me an Admin GraphQL mutation that adjusts inventory quantities in bulk for a set of variants at one location.
Description
Part of the Shopify AI Toolkit, shopify-admin is the skill you want any time an agent is about to write an Admin GraphQL query or mutation.
The problem it solves
The Shopify Admin API is large and versioned quarterly, and a model working from training data reliably invents field names, guesses at input types, and reaches for mutations that were renamed two versions ago. The code looks right and fails at runtime.
How it works around that
The skill forces a fixed loop on every response, and it is unusually blunt about it:
- Search first.
scripts/search_docs.mjs "<query>" --version API_VERSIONagainst shopify.dev, searching for the operation name rather than the user's full prompt. - Write the operation from what the search actually returned, linking the docs pages used.
- Validate before returning.
scripts/validate.mjschecks the generated GraphQL against the real schema for the target API version. - On failure, re-search and retry — up to three times — fixing exactly the field or type the validator named rather than guessing.
- Only then is code allowed back to the user.
It also encodes house style: don't select more than about five fields, request __typename on union types, and pull /docs/api/usage/search-syntax when the user wants advanced query filtering.
Boundaries
The skill is careful about handing off. Validating app or extension configuration, or actually executing Admin GraphQL against a live store, belongs to the toolkit's use-shopify-cli skill instead — this one designs and explains the operation.
Requirements and caveats
Node.js must be present, since the skill runs .mjs scripts on every turn. Those scripts send usage telemetry to shopify.dev — including the search query, the validated code, and your most recent message — which you can switch off with OPT_OUT_INSTRUMENTATION=true. MIT licensed.
Related Skills
Planning skill that interrogates your use case before any code is written, then recommends the right Twilio Conversations stack — ConversationRelay, Memory, Intelligence, Orchestrator, TaskRouter — and the implementation skills to follow.
Foundational fal.ai skill that drives the genmedia CLI across 1200+ hosted generative model endpoints — smart routing, schema inspection, async queues and agent-parseable JSON.
Official AWS skill for authoring, deploying and debugging CDK stacks — construct patterns, bootstrap, drift, resource import and the CloudFormation errors that trap people.