with one click
shopify-graphql-reference
// Reference Vercel Shop GraphQL patterns, fragments, cache conventions, and transforms for any Shopify GraphQL work in the template.
// Reference Vercel Shop GraphQL patterns, fragments, cache conventions, and transforms for any Shopify GraphQL work in the template.
| name | shopify-graphql-reference |
| description | Reference Vercel Shop GraphQL patterns, fragments, cache conventions, and transforms for any Shopify GraphQL work in the template. |
Use this skill as the reference source for Shopify GraphQL work in the template. It keeps queries, mutations, schema validation, fragment changes, locale handling, caching rules, and transforms aligned with the live Shopify schema and established storefront patterns.
/vercel-shop:shopify-graphql-referenceshopify-ai-toolkit or the vercel-shop:fetch-shopify-schema skill when you need authoritative schema facts for the Storefront or Customer Account APIs.shopify-ai-toolkit before writing or changing GraphQL..claude folders to the template.lib/shopify/operations/ when the concern already exists there.shopifyFetch with a stable operation name, a GraphQL document string, and variables passed as an object.PRODUCT_FRAGMENT for PDP-level product data.PRODUCT_CARD_FRAGMENT for listings, search results, and other lighter product cards.lib/shopify/fragments.ts when several operations need the same fields.@inContext(...).lib/i18n to derive country and language codes instead of hardcoding them."use cache", cacheLife(...), and cacheTag(...)."use cache: remote" instead.invalidateCartCache() after the write succeeds.lib/shopify/**.shopify-ai-toolkit.shopifyFetch matches the GraphQL operation name.shopify-ai-toolkit.PRODUCT_CARD_FRAGMENT for listings and PRODUCT_FRAGMENT for PDP work unless there is a clear reason not to.invalidateCartCache().shopify-ai-toolkit.lib/shopify/fragments.ts.lib/shopify/transforms/product.ts.lib/types.ts if components need it."use cache", cacheLife(...), and cacheTag(...); use "use cache: remote" for search/filter/sort/cursor reads.shopifyFetch with the query and variables object.shopifyFetch without read-cache directives.invalidateCartCache().DEBUG_SHOPIFY=true in .env.local to log Shopify requests with timing and variables.shopify-ai-toolkit.vercel-shop:fetch-shopify-schema skillreferences/REFERENCE.mdvercel-shop:enable-shopify-authvercel-shop:enable-shopify-cmsEnable next-intl-based i18n in the shop template — locale-prefixed URLs, per-locale message catalogs, and a locale switcher. Use when the user wants "locale URLs", "multi-language", or "i18n" without Shopify Markets integration. For full Shopify Markets multi-region commerce (region-aware pricing, inventory, payments), use `enable-shopify-markets` instead — this skill is the routing/i18n layer only.
Wire Shopify metaobjects as the CMS for homepage and marketing page content. Adds GraphQL queries for cms_homepage and cms_page metaobject types and transforms them into domain types.
Replace the hardcoded nav and footer menus with Shopify-powered menus.
Enable Shopify Markets with multi-locale routing using next-intl. Use when the user wants to add internationalization, multi-locale support, locale-prefixed URLs, or Shopify Markets. Supports sub-path and per-domain routing strategies.
Add Vercel Analytics, Vercel Speed Insights, and Google Tag Manager to the storefront.
Use Shopify AI Toolkit to inspect live Storefront and Customer Account GraphQL schemas for Vercel Shop work.