[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M795YP0Y48TQM5YYBCPJ4Z8S":3,"skill-same:01M795YP0Y48TQM5YYBCPJ4Z8S":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":39,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M795YP0Y48TQM5YYBCPJ4Z8S","shopify-graphql-cost-optimizer",null,"Master Shopify's calculated query cost system to avoid throttling.\nUse when hitting THROTTLED errors, optimizing GraphQL queries,\nor deciding when to use bulk operations instead.\nTrigger with phrases like \"shopify query cost\", \"shopify graphql cost\",\n\"shopify rate limit graphql\", \"shopify throttled\", \"shopify bulk operations\".","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--shopify-pack--shopify-graphql-cost-optimizer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: shopify-graphql-cost-optimizer\ndescription: |\n  Master Shopify's calculated query cost system to avoid throttling.\n  Use when hitting THROTTLED errors, optimizing GraphQL queries,\n  or deciding when to use bulk operations instead.\n  Trigger with phrases like \"shopify query cost\", \"shopify graphql cost\",\n  \"shopify rate limit graphql\", \"shopify throttled\", \"shopify bulk operations\".\nallowed-tools: Read, Write, Edit, Bash(npm:*), Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ntags: [saas, ecommerce, shopify]\ncompatible-with: claude-code\n---\n\n# Shopify GraphQL Cost Optimizer\n\n## Overview\n\nEvery Shopify GraphQL query has a calculated cost. The API uses a token bucket (1,000 points max, refills at 50\u002Fsecond for standard plans) and throttles once depleted. The key insight: `requestedQueryCost` is the worst-case estimate, while `actualQueryCost` is what you really paid. Understanding the gap between them is how you avoid throttling.\n\n## Prerequisites\n\n- Shopify app with GraphQL Admin API access\n- `@shopify\u002Fshopify-api` package installed\n- Understanding of GraphQL connections (edges\u002Fnode pattern)\n\n## Instructions\n\n### Step 1: Read Cost Headers\n\nEvery GraphQL response includes cost data in `extensions.cost`:\n\n```json\n{\n  \"extensions\": {\n    \"cost\": {\n      \"requestedQueryCost\": 252,\n      \"actualQueryCost\": 12,\n      \"throttleStatus\": {\n        \"maximumAvailable\": 1000.0,\n        \"currentlyAvailable\": 988.0,\n        \"restoreRate\": 50.0\n      }\n    }\n  }\n}\n```\n\nAdd the `X-GraphQL-Cost-Include-Fields: true` request header for a per-field cost breakdown.\n\n### Step 2: Predict Query Cost\n\nCost rules for calculation:\n\n- **Single object field**: 1 point (e.g., `shop { name }` = 1)\n- **Connection**: `first` or `last` param multiplied by child cost, plus 2 for the connection itself\n- **Nested connections**: costs multiply\n\n```graphql\n# Example: products(first: 10) { edges { node { title variants(first: 5) { edges { node { price } } } } } }\n# Cost = 2 (products connection) + 10 * (1 (title) + 2 (variants connection) + 5 * 1 (price))\n# = 2 + 10 * (1 + 2 + 5) = 2 + 80 = 82 requestedQueryCost\n```\n\nSee [references\u002Fcost-calculation-rules.md](references\u002Fcost-calculation-rules.md) for the full calculation rules.\n\n### Step 3: Cost Reduction Techniques\n\n**Reduce `first` parameter** — the single biggest lever:\n\n```graphql\n# BAD: 250 * nested cost = massive\nproducts(first: 250) { ... }\n\n# GOOD: paginate with smaller pages\nproducts(first: 25, after: $cursor) { ... }\n```\n\n**Select only needed fields** — every field costs 1 point per connection node:\n\n```graphql\n# BAD: 10 fields * 50 products = 500+ points\nproducts(first: 50) { edges { node { id title description vendor tags status productType totalInventory createdAt updatedAt } } }\n\n# GOOD: 3 fields * 50 products = ~152 points\nproducts(first: 50) { edges { node { id title status } } }\n```\n\n**Avoid deep nesting** — flatten or split queries. See [references\u002Fquery-splitting.md](references\u002Fquery-splitting.md) for patterns.\n\n### Step 4: Use Bulk Operations for Large Data Sets\n\nWhen you need 250+ items, switch to `bulkOperationRunQuery`. It bypasses the cost system entirely — no `first`\u002F`last` params, no cursors, returns all items as JSONL.\n\nSee [references\u002Fbulk-operations.md](references\u002Fbulk-operations.md) for the complete `bulkOperationRunQuery` mutation, polling, and JSONL download flow.\n\n## Output\n\n- Query cost visible in every response via `extensions.cost`\n- Queries optimized below 200 points each\n- Bulk operations configured for large data exports\n- Per-field cost breakdown available for debugging\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `THROTTLED` | Bucket depleted (0 points available) | Wait for `restoreRate` to refill, then retry |\n| `MAX_COST_EXCEEDED` | Single query exceeds 1,000 points | Reduce `first` params or split into multiple queries |\n| `QUERY_TOO_COMPLEX` | Too many nested connections (depth > 3) | Flatten query, fetch nested data separately |\n| `BULK_OPERATION_FAILED` | Bulk query syntax error or timeout | Check `errorCode` on the bulk operation object |\n| `BULK_OPERATION_ALREADY_RUNNING` | Only one bulk op per app per store | Poll current operation status before starting new one |\n\n## Examples\n\n### Calculating Cost for a Nested Product Query\n\nPredict the cost of a query that fetches products with variants and metafields before running it, to avoid unexpected THROTTLED errors.\n\nSee [Cost Calculation Rules](references\u002Fcost-calculation-rules.md) for the full calculation formula and worked examples.\n\n### Splitting an Expensive Query\n\nA single query exceeds 1,000 points due to deep nesting. Break it into multiple cheaper queries that stay well under the limit.\n\nSee [Query Splitting](references\u002Fquery-splitting.md) for patterns to flatten and separate expensive queries.\n\n### Exporting a Full Product Catalog\n\nYou need all 10,000+ products with variants. Switch from paginated queries to a bulk operation that bypasses the cost system entirely.\n\nSee [Bulk Operations](references\u002Fbulk-operations.md) for the complete mutation, polling, and JSONL download flow.\n\n## Resources\n\n- [GraphQL Rate Limits](https:\u002F\u002Fshopify.dev\u002Fdocs\u002Fapi\u002Fusage\u002Frate-limits#graphql-admin-api-rate-limits)\n- [Calculated Query Cost](https:\u002F\u002Fshopify.dev\u002Fdocs\u002Fapi\u002Fusage\u002Frate-limits#calculated-query-cost)\n- [Bulk Operations](https:\u002F\u002Fshopify.dev\u002Fdocs\u002Fapi\u002Fusage\u002Fbulk-operations\u002Fqueries)\n- [Query Cost Debugging](https:\u002F\u002Fshopify.dev\u002Fdocs\u002Fapi\u002Fusage\u002Frate-limits#debugging-query-cost)\n","# Shopify GraphQL Cost Optimizer\n\n## Overview\n\nEvery Shopify GraphQL query has a calculated cost. The API uses a token bucket (1,000 points max, refills at 50\u002Fsecond for standard plans) and throttles once depleted. The key insight: `requestedQueryCost` is the worst-case estimate, while `actualQueryCost` is what you really paid. Understanding the gap between them is how you avoid throttling.\n\n## Prerequisites\n\n- Shopify app with GraphQL Admin API access\n- `@shopify\u002Fshopify-api` package installed\n- Understanding of GraphQL connections (edges\u002Fnode pattern)\n\n## Instructions\n\n### Step 1: Read Cost Headers\n\nEvery GraphQL response includes cost data in `extensions.cost`:\n\n```json\n{\n  \"extensions\": {\n    \"cost\": {\n      \"requestedQueryCost\": 252,\n      \"actualQueryCost\": 12,\n      \"throttleStatus\": {\n        \"maximumAvailable\": 1000.0,\n        \"currentlyAvailable\": 988.0,\n        \"restoreRate\": 50.0\n      }\n    }\n  }\n}\n```\n\nAdd the `X-GraphQL-Cost-Include-Fields: true` request header for a per-field cost breakdown.\n\n### Step 2: Predict Query Cost\n\nCost rules for calculation:\n\n- **Single object field**: 1 point (e.g., `shop { name }` = 1)\n- **Connection**: `first` or `last` param multiplied by child cost, plus 2 for the connection itself\n- **Nested connections**: costs multiply\n\n```graphql\n# Example: products(first: 10) { edges { node { title variants(first: 5) { edges { node { price } } } } } }\n# Cost = 2 (products connection) + 10 * (1 (title) + 2 (variants connection) + 5 * 1 (price))\n# = 2 + 10 * (1 + 2 + 5) = 2 + 80 = 82 requestedQueryCost\n```\n\nSee [references\u002Fcost-calculation-rules.md](references\u002Fcost-calculation-rules.md) for the full calculation rules.\n\n### Step 3: Cost Reduction Techniques\n\n**Reduce `first` parameter** — the single biggest lever:\n\n```graphql\n# BAD: 250 * nested cost = massive\nproducts(first: 250) { ... }\n\n# GOOD: paginate with smaller pages\nproducts(first: 25, after: $cursor) { ... }\n```\n\n**Select only needed fields** — every field costs 1 point per connection node:\n\n```graphql\n# BAD: 10 fields * 50 products = 500+ points\nproducts(first: 50) { edges { node { id title description vendor tags status productType totalInventory createdAt updatedAt } } }\n\n# GOOD: 3 fields * 50 products = ~152 points\nproducts(first: 50) { edges { node { id title status } } }\n```\n\n**Avoid deep nesting** — flatten or split queries. See [references\u002Fquery-splitting.md](references\u002Fquery-splitting.md) for patterns.\n\n### Step 4: Use Bulk Operations for Large Data Sets\n\nWhen you need 250+ items, switch to `bulkOperationRunQuery`. It bypasses the cost system entirely — no `first`\u002F`last` params, no cursors, returns all items as JSONL.\n\nSee [references\u002Fbulk-operations.md](references\u002Fbulk-operations.md) for the complete `bulkOperationRunQuery` mutation, polling, and JSONL download flow.\n\n## Output\n\n- Query cost visible in every response via `extensions.cost`\n- Queries optimized below 200 points each\n- Bulk operations configured for large data exports\n- Per-field cost breakdown available for debugging\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `THROTTLED` | Bucket depleted (0 points available) | Wait for `restoreRate` to refill, then retry |\n| `MAX_COST_EXCEEDED` | Single query exceeds 1,000 points | Reduce `first` params or split into multiple queries |\n| `QUERY_TOO_COMPLEX` | Too many nested connections (depth > 3) | Flatten query, fetch nested data separately |\n| `BULK_OPERATION_FAILED` | Bulk query syntax error or timeout | Check `errorCode` on the bulk operation object |\n| `BULK_OPERATION_ALREADY_RUNNING` | Only one bulk op per app per store | Poll current operation status before starting new one |\n\n## Examples\n\n### Calculating Cost for a Nested Product Query\n\nPredict the cost of a query that fetches products with variants and metafields before running it, to avoid unexpected THROTTLED errors.\n\nSee [Cost Calculation Rules](references\u002Fcost-calculation-rules.md) for the full calculation formula and worked examples.\n\n### Splitting an Expensive Query\n\nA single query exceeds 1,000 points due to deep nesting. Break it into multiple cheaper queries that stay well under the limit.\n\nSee [Query Splitting](references\u002Fquery-splitting.md) for patterns to flatten and separate expensive queries.\n\n### Exporting a Full Product Catalog\n\nYou need all 10,000+ products with variants. Switch from paginated queries to a bulk operation that bypasses the cost system entirely.\n\nSee [Bulk Operations](references\u002Fbulk-operations.md) for the complete mutation, polling, and JSONL download flow.\n\n## Resources\n\n- [GraphQL Rate Limits](https:\u002F\u002Fshopify.dev\u002Fdocs\u002Fapi\u002Fusage\u002Frate-limits#graphql-admin-api-rate-limits)\n- [Calculated Query Cost](https:\u002F\u002Fshopify.dev\u002Fdocs\u002Fapi\u002Fusage\u002Frate-limits#calculated-query-cost)\n- [Bulk Operations](https:\u002F\u002Fshopify.dev\u002Fdocs\u002Fapi\u002Fusage\u002Fbulk-operations\u002Fqueries)\n- [Query Cost Debugging](https:\u002F\u002Fshopify.dev\u002Fdocs\u002Fapi\u002Fusage\u002Frate-limits#debugging-query-cost)\n",{"name":5,"tags":24,"author":28,"license":15,"version":29,"description":30,"allowed-tools":31,"compatible-with":32},[25,26,27],"saas","ecommerce","shopify","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Master Shopify's calculated query cost system to avoid throttling.\nUse when hitting THROTTLED errors, optimizing GraphQL queries,\nor deciding when to use bulk operations instead.\nTrigger with phrases like \"shopify query cost\", \"shopify graphql cost\",\n\"shopify rate limit graphql\", \"shopify throttled\", \"shopify bulk operations\".\n","Read, Write, Edit, Bash(npm:*), Grep","claude-code","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--shopify-pack--shopify-graphql-cost-optimizer",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill shopify-graphql-cost-optimizer",{"tool":48,"command":49},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill shopify-graphql-cost-optimizer",{"tool":51,"command":52},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill shopify-graphql-cost-optimizer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--shopify-pack--shopify-graphql-cost-optimizer\u002FSKILL.md",true,[],[57,64,71,78,85,93],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":89,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]