shop: Skill for Claude Code

.agents/skills/shopify-graphql-reference/SKILL.md

shopify-graphql-reference is a skill for Claude Code, Codex from vercel/shop. It costs 68 tokens per session (797 once invoked), scanned A, original, MIT.

A reference guide for adding Shopify Storefront or Customer Account GraphQL operations to a Vercel Shop project. GraphQL is a way to request specific data from an API, and this guide covers how those requests fit into the project's routes, caching, and data transformations.

In plain words
What is it for?
Use it to add or adapt queries and mutations for products, search, menus, carts, customer accounts, metafields, and metaobjects. It also helps decide whether returned data should be cached or kept private to a request.
Why use it?
It reduces the risk of using unsupported Shopify fields or placing API code in the wrong layer. It directs the agent to validate Shopify details with current Shopify documentation or the Shopify AI Toolkit.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is vercel/shop's own configuration. It tells Claude Code and Codex how to work on shop itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything shop configures →

About the project

Vercel Shop is a monorepo, meaning one code repository that contains multiple related applications and tools, for a Next.js Shopify storefront template, its documentation site, and a scaffolding CLI. It helps developers create and work with Shopify storefronts built on Next.js. The catalogue entries are skills, commands, a plugin, and an instruction for working with this project.

vercel/shop · 126 stars · on GitHub · vercel.shop

Reuse

Borrowing it

Nothing to install: this file belongs to vercel/shop. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vercel/shop/main/.agents/skills/shopify-graphql-reference/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/vercel/shop

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for shopify-graphql-reference

README.md
[![agentmods](https://agentmods.dev/badge/skills/vercel/shop/shopify-graphql-reference/github.svg)](https://agentmods.dev/skills/vercel/shop/shopify-graphql-reference)
Your own site
<a href="https://agentmods.dev/skills/vercel/shop/shopify-graphql-reference"><img src="https://agentmods.dev/badge/skills/vercel/shop/shopify-graphql-reference/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for shopify-graphql-reference

Your own site · 80×15
<a href="https://agentmods.dev/skills/vercel/shop/shopify-graphql-reference"><img src="https://agentmods.dev/badge/skills/vercel/shop/shopify-graphql-reference.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 797 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.00797
Opus 5.5 $0.00027 $0.00319
Sonnet 5.5 $0.00014 $0.00159
Haiku 4.5 $0.00007 $0.00080

Measured 1mo ago against content hash 52069ddb89ea, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

shopify-graphql-reference scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/shopify-graphql-reference/SKILL.md · 43 lines

How it starts

The opening of the file, as written. The whole thing — 43 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Integrate Shopify GraphQL

Treat Shopify AI Toolkit as authoritative for Shopify documentation, schemas, fields, arguments, enum values, API versions, operation design, and validation. This skill owns only the Vercel Shop integration layer.

Read references/REFERENCE.md before editing.

Delegate Shopify facts first

  1. Choose the Shopify API:
    • Use Shopify AI Toolkit's Storefront GraphQL skill for catalog, search, menus, cart, and public metaobject reads.
    • Use its Customer skill for profiles, orders, addresses, and other authenticated customer data.
    • Use its custom-data skill first for metafields or metaobjects.
  2. Search current Shopify documentation and validate the complete operation with that skill.
  3. Do not copy schema snapshots, field catalogs, or generated API reference into this skill.
  4. If Shopify AI Toolkit is unavailable, use official Shopify documentation and validation tooling; do not guess.

Apply the Vercel Shop conventions

  1. Inspect the consuming route before choosing cache behavior. Classify the read as static-shell content, request-time shared content, or private/request-scoped data.
  2. Add the operation to lib/shopify/operations/<resource>/server.ts in the closest resource domain as an uncached fetch* function with no next/cache import. Put the cache directive, cacheLife, and cacheTag calls in a get* wrapper in the consuming domain's lib/<domain>/server.ts (for example lib/product/server.ts, lib/collections/server.ts, lib/policies/server.ts). Keep pure transforms in lib/shopify/transforms/<resource>/index.ts, named shared contracts in the owning domain's types.ts, and reusable fragment documents in their resource domain. Import implementations and types directly; do not add barrels or forwarding exports.
  3. Wrap documents in Hydrogen's gql() with a leading #graphql comment, keep them static, and use variables for dynamic values. Inference supplies types; Shopify AI Toolkit validates fields and arguments.
  4. Reuse the smallest existing fragment that fits by passing it in the gql(source, [FRAGMENT]) list. Extend a shared fragment only when multiple operations need the same selection.
  5. Pass locale to storefront.request when Shopify localizes the result; never add country or language to variables.
  6. Derive raw Shopify types from fragment documents with ResultOf<typeof FRAGMENT> under lib/shopify/**; transform catalog/account data into domain types before presentation. Cart types intentionally derive from Hydrogen handlers through lib/cart/types.ts.
  7. Preserve cache tags and the existing webhook invalidation hierarchy. Do not cache mutations.
  8. Never place carts in the Next.js data cache; cart reads are memoized per request via getCart, so cart mutations need no cache invalidation step.

Read the full file on GitHub · 43 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 52069ddb89ea
  2. 1mo ago First seen · 43 lines · 68 tokens per session scan A 4db0403b9e14

Subscribe to this mod's changes

shopify-graphql-reference is a skill published in the GitHub repository vercel/shop (126 stars, last pushed 5d ago), licensed MIT. It adds 68 tokens to every session and 797 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-26.

Related

shopify-graphql-reference compared with skills from other repositories

shopify-graphql-reference next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
shopify-graphql-referencevercel/shopSkill1265d agoMITA68Claude Code, Codex
convex-billingopenclaw/clawhubSkill9.5kyesterdayMITA29Claude Code, Codex
cloudbase-wechat-integrationTencentCloudBase/CloudBase-AI-ToolkitSkill1.2kyesterdayMITA94Claude Code
shopify-adminShopify/Shopify-AI-ToolkitSkill62810d agoMITA226Claude Code
shopify-functionsShopify/Shopify-AI-ToolkitSkill62810d agoMITA61Claude Code
gplay-purchase-verificationhanamizuki/solopreneurSkill1563d agoMITA32Claude Code
baselinker-webhookshookdeck/webhook-skillsSkill98yesterdayMITA131Claude Code, Codex