shopify-known-pitfalls

Featured

Identify and avoid Shopify API anti-patterns: ignoring userErrors, wrong API version, REST instead of GraphQL, missing GDPR webhooks, and webhook timeout issues. Trigger with phrases like "shopify mistakes", "shopify anti-patterns", "shopify pitfalls", "shopify what not to do", "shopify code review".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Shopify Known Pitfalls ## Overview The 10 most common mistakes when building Shopify apps, with real API examples showing the wrong way and the right way. ## Prerequisites - Shopify app codebase to review - Understanding of GraphQL Admin API patterns ## Instructions ### Pitfall #1: Not Checking userErrors (The #1 Mistake) Shopify GraphQL mutations return HTTP 200 even when they fail. The errors are in `userErrors`. ```typescript // WRONG — assumes 200 means success const response = await client.request(PRODUCT_CREATE, { variables }); const product = response.data.productCreate.product; // null! console.log(product.title); // TypeError: Cannot read property 'title' of null // RIGHT — always check userErrors const response = await client.request(PRODUCT_CREATE, { variables }); const { product, userErrors } = response.data.productCreate; if (userErrors.length > 0) { console.error("Shopify validation failed:", userErrors); // [{ field: ["title"], message: "Title can't be blank", code: "BLANK" }] throw new ShopifyValidationError(userErrors); } console.log(product.title); // Safe ``` --- ### Pitfall #2: Using REST When GraphQL Is Required REST Admin API is legacy as of October 2024. New public apps after April 2025 **must** use GraphQL. ```typescript // WRONG — REST API (legacy, higher bandwidth, returns all fields) const { body } = await restClient.get({ path: "products", query: { limit: 250 } }); // Returns EVERYTHING: body_html, template_suffix, published_sc...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Web & Frontend Solid

shopify-apps

Expert patterns for Shopify app development including Remix/React Router apps, embedded apps with App Bridge, webhook handling, GraphQL Admin API, Polaris components, billing, and app extensions. Use when: shopify app, shopify, embedded app, polaris, app bridge.

27,681 Updated today
davila7
Web & Frontend Listed

shopify-apps

Expert patterns for Shopify app development including Remix/React Router apps, embedded apps with App Bridge, webhook handling, GraphQL Admin API, Polaris components, billing, and app extensions. Use when: shopify app, shopify, embedded app, polaris, app bridge.

335 Updated today
aiskillstore
Web & Frontend Listed

shopify-apps

Expert patterns for Shopify app development including Remix/React Router apps, embedded apps with App Bridge, webhook handling, GraphQL Admin API, Polaris components, billing, and app extensions. U...

5 Updated 2 months ago
mayurrathi
AI & Automation Featured

shopify-common-errors

Diagnose and fix common Shopify API errors including 401, 403, 422, 429, and GraphQL errors. Use when encountering Shopify errors, debugging failed requests, or troubleshooting integration issues. Trigger with phrases like "shopify error", "fix shopify", "shopify not working", "debug shopify", "shopify 422".

2,266 Updated today
jeremylongshore
AI & Automation Featured

hubspot-known-pitfalls

Identify and avoid HubSpot API anti-patterns and common integration mistakes. Use when reviewing HubSpot code, onboarding developers to HubSpot integrations, or auditing existing CRM integrations for best practice violations. Trigger with phrases like "hubspot mistakes", "hubspot anti-patterns", "hubspot pitfalls", "hubspot code review", "hubspot gotchas".

2,266 Updated today
jeremylongshore