shopify-performance-tuning

Featured

Optimize Shopify API performance with GraphQL query cost reduction, bulk operations, caching strategies, and Storefront API for high-traffic storefronts. Trigger with phrases like "shopify performance", "optimize shopify", "shopify slow", "shopify caching", "shopify bulk operation", "shopify query cost".

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 Performance Tuning ## Overview Optimize Shopify API performance through GraphQL query cost reduction, bulk operations for large data exports, response caching, and Storefront API for high-traffic public-facing queries. ## Prerequisites - Understanding of Shopify's calculated query cost system - Access to the `Shopify-GraphQL-Cost-Debug: 1` header for cost analysis - Redis or in-memory cache available (optional) ## Instructions ### Step 1: Analyze Query Cost ```bash # Debug query cost with special header curl -X POST "https://$STORE/admin/api/2024-10/graphql.json" \ -H "X-Shopify-Access-Token: $TOKEN" \ -H "Content-Type: application/json" \ -H "Shopify-GraphQL-Cost-Debug: 1" \ -d '{"query": "{ products(first: 50) { edges { node { id title variants(first: 20) { edges { node { id price } } } } } } }"}' \ | jq '.extensions.cost' ``` Response shows cost breakdown: ```json { "requestedQueryCost": 152, "actualQueryCost": 42, "throttleStatus": { "maximumAvailable": 1000.0, "currentlyAvailable": 958.0, "restoreRate": 50.0 } } ``` **Key rule:** `requestedQueryCost` is calculated as `first * nested_fields`. Reducing `first:` from 250 to 50 can cut cost by 5x. ### Step 2: Reduce Query Cost ```typescript // BEFORE: High cost — requests too many fields and items // requestedQueryCost: ~5,502 const EXPENSIVE_QUERY = `{ products(first: 250) { edges { node { id title description descriptionHtml vendor productType tags ...

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

AI & Automation Featured

shopify-advanced-troubleshooting

Debug complex Shopify API issues using cost analysis, request tracing, webhook delivery inspection, and GraphQL introspection. Trigger with phrases like "shopify hard bug", "shopify mystery error", "shopify deep debug", "difficult shopify issue", "shopify intermittent failure".

2,266 Updated today
jeremylongshore
AI & Automation Featured

shopify-cost-tuning

Optimize Shopify app costs through plan selection, API usage monitoring, and Shopify Plus upgrade analysis. Trigger with phrases like "shopify cost", "shopify billing", "shopify pricing", "shopify Plus worth it", "shopify API usage", "reduce shopify costs".

2,266 Updated today
jeremylongshore
AI & Automation Featured

shopify-rate-limits

Handle Shopify API rate limits for both REST (leaky bucket) and GraphQL (calculated query cost). Use when hitting 429 errors, implementing retry logic, or optimizing API request throughput. Trigger with phrases like "shopify rate limit", "shopify throttling", "shopify 429", "shopify THROTTLED", "shopify query cost", "shopify backoff".

2,266 Updated today
jeremylongshore
AI & Automation Featured

shopify-observability

Set up observability for Shopify app integrations with query cost tracking, rate limit monitoring, webhook delivery metrics, and structured logging. Trigger with phrases like "shopify monitoring", "shopify metrics", "shopify observability", "monitor shopify API", "shopify alerts", "shopify dashboard".

2,266 Updated today
jeremylongshore
AI & Automation Featured

salesloft-cost-tuning

Optimize SalesLoft API costs by reducing request volume and deep pagination. Use when analyzing API usage, reducing rate limit consumption, or planning capacity for bulk operations. Trigger: "salesloft cost", "salesloft billing", "reduce salesloft API usage".

2,266 Updated today
jeremylongshore