/shopify-pack:shopify-known-pitfallsfrom shopify-pack
Identifies and helps avoid Shopify API anti-patterns: ignoring userErrors, wrong API version, REST vs GraphQL, missing GDPR webhooks, webhook timeouts. Use when reviewing Shopify code or debugging API failures.
Ships in shopify-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The 10 most common mistakes when building Shopify apps, with real API examples showing the wrong way and the right way.
@shopify/shopify-api v9+ installed (for code examples)Each pitfall includes a wrong-way and right-way code example. See Pitfall Examples for all 10 complete code comparisons.
Shopify GraphQL mutations return HTTP 200 even when they fail. The errors are in userErrors. Always check userErrors.length > 0 before accessing the result.
REST Admin API is legacy as of October 2024. New public apps after April 2025 must use GraphQL. GraphQL also lets you request only the fields you need.
Shopify deprecates API versions ~12 months after release. Use LATEST_API_VERSION from @shopify/shopify-api and monitor x-shopify-api-deprecated-reason response headers.
Your app will be rejected from the App Store without customers/data_request, customers/redact, and shop/redact webhook handlers.
Shopify expects a 200 response within 5 seconds. Respond immediately and queue work asynchronously, otherwise Shopify retries and creates duplicates.
The ProductInput type was split into ProductCreateInput and ProductUpdateInput in 2024-10. Use the specific type for each operation.
Shopify uses Relay-style cursor pagination, not page numbers. Use after / endCursor with pageInfo.
first: 250 with nested connections creates enormous query costs that THROTTLE immediately. Use first: 50 or smaller with nested resources.
Admin API tokens have full access. Never send them to the browser — proxy through your server.
When a merchant uninstalls your app, clean up sessions immediately. Stale sessions cause auth redirect loops on reinstall.
| Pitfall | How to Detect | Prevention |
|---|---|---|
| Missing userErrors check | Null pointer crashes | ESLint rule or wrapper function |
| REST usage | grep -r "clients.Rest" src/ | Migration guide + lint rule |
| Old API version | grep -r "apiVersion" src/ | CI check against supported versions |
| Missing GDPR webhooks | App Store rejection | Pre-submit compliance checker |
| Webhook timeout | Shopify retry storms | Queue-based processing |
| ProductInput on 2024-10 | GraphQL type error | Update mutations |
| Page-based pagination | Query errors | Use cursor pagination pattern |
first: 250 | THROTTLED responses | Query cost budgets |
| Admin token in client | Security audit | Server-side proxy |
| No APP_UNINSTALLED | Auth loops on reinstall | Webhook handler + session cleanup |
Run automated detection against your Shopify codebase to find REST usage, missing userErrors checks, old API versions, hardcoded tokens, and oversized page requests.
See Pitfall Scan Script for the complete scan script.
| Pitfall | Detection | Fix |
|---|---|---|
| No userErrors check | Null crashes on mutations | Always check userErrors.length > 0 |
| REST instead of GraphQL | grep "clients.Rest" | Migrate to clients.Graphql |
| Old API version | grep "2023-" | Use LATEST_API_VERSION from SDK |
| Missing GDPR webhooks | App Store rejection | Add 3 mandatory webhook handlers |
| Webhook timeout | Retry storms, duplicates | Respond 200 immediately, queue processing |
| ProductInput on 2024-10 | Type error | Use ProductCreateInput / ProductUpdateInput |
| Page-number pagination | Query errors | Use cursor-based with pageInfo |
first: 250 with nesting | THROTTLED | Use first: 50 or smaller |
| Admin token in browser | Security scan | Server-side proxy only |
| No APP_UNINSTALLED | Auth loop on reinstall | Clean up sessions on uninstall |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
shopify, ecommerce, api-pitfalls, anti-patterns, code-review, shopify-apps
38 skills in this plugin
/shopify-advanced-troubleshootingDebug complex Shopify API issues using cost analysis, request tracing,
webhook delivery inspection, and GraphQL introspection.
Use when encountering intermittent failures, throttling mysteries, or webhook delivery gaps.
Trigger with phrases like "shopify hard bug", "shopify mystery error",
"shopify deep debug", "difficult shopify issue", "shopify intermittent failure".
/shopify-ai-toolkit-wrapperIntegrate Shopify's AI Toolkit MCP server with Claude Code for GraphQL validation,
Liquid linting, and documentation search.
Use when setting up Shopify MCP integration, validating GraphQL queries,
or linting Liquid templates.
Trigger with phrases like "shopify ai toolkit", "shopify mcp",
"shopify claude integration", "shopify graphql validation", "shopify liquid lint".
/shopify-architecture-variantsChoose between Shopify app architectures: embedded Remix app, headless storefront with
Hydrogen, standalone integration, or theme app extension.
Use when starting a new Shopify project and deciding which architecture pattern to follow.
Trigger with phrases like "shopify architecture decision", "shopify embedded vs headless",
"shopify Hydrogen", "shopify app types", "which shopify architecture".
/shopify-b2b-wholesaleBuild Shopify Plus B2B features with companies, catalogs, and wholesale pricing.
Use when setting up wholesale accounts, creating price lists,
or configuring B2B checkout with purchase orders.
Trigger with phrases like "shopify b2b", "shopify wholesale",
"shopify company api", "shopify price lists", "shopify catalog api".
/shopify-checkout-extensionsBuild Checkout UI Extensions to customize Shopify checkout with sandboxed React-like components.
Use when replacing checkout.liquid (deprecated Aug 2025), adding custom fields to checkout,
displaying banners, or reading checkout state with hooks.
Trigger with phrases like "shopify checkout extension", "shopify checkout ui",
"checkout customization shopify", "checkout.liquid migration", "shopify checkout components".
/shopify-ci-integrationConfigure CI/CD pipelines for Shopify apps with GitHub Actions, API version testing,
and Shopify CLI deployment.
Use when setting up automated testing, deployment pipelines, or API version monitoring for Shopify apps.
Trigger with phrases like "shopify CI", "shopify GitHub Actions",
"shopify automated tests", "CI shopify", "shopify deploy pipeline".
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin shopify-packOther plugins' skills for the same job