[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78XZKXNKVAHTFS4XZYFJRG9":3,"skill-same:01M78XZKXNKVAHTFS4XZYFJRG9":57},{"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":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M78XZKXNKVAHTFS4XZYFJRG9","castai-rate-limits",null,"Handle CAST AI API rate limits with backoff and request queuing.\nUse when hitting 429 errors, optimizing API call patterns,\nor implementing rate-aware batch operations.\nTrigger with phrases like \"cast ai rate limit\", \"cast ai 429\",\n\"cast ai throttle\", \"cast ai API limits\".","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--castai-pack--castai-rate-limits\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: castai-rate-limits\ndescription: |\n  Handle CAST AI API rate limits with backoff and request queuing.\n  Use when hitting 429 errors, optimizing API call patterns,\n  or implementing rate-aware batch operations.\n  Trigger with phrases like \"cast ai rate limit\", \"cast ai 429\",\n  \"cast ai throttle\", \"cast ai API limits\".\nallowed-tools: Read, Write, Edit\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ntags: [saas, kubernetes, cost-optimization, castai]\ncompatible-with: claude-code\n---\n\n# CAST AI Rate Limits\n\n## Overview\n\nThe CAST AI REST API enforces rate limits per API key. The autoscaler agent communicates cluster state at 15-second intervals. For custom API integrations, implement exponential backoff and request queuing to avoid hitting limits.\n\n## Prerequisites\n\n- CAST AI API key configured\n- Understanding of the API endpoints you call\n\n## Rate Limit Behavior\n\n| Aspect | Value |\n|--------|-------|\n| Rate limit scope | Per API key |\n| Response on limit | HTTP 429 with `Retry-After` header |\n| Agent sync interval | Every 15 seconds |\n| Recommended polling | No more than once per 30 seconds |\n\n## Instructions\n\n### Step 1: Detect Rate Limits from Response Headers\n\n```typescript\nasync function castaiRequest(path: string): Promise\u003CResponse> {\n  const response = await fetch(`https:\u002F\u002Fapi.cast.ai${path}`, {\n    headers: { \"X-API-Key\": process.env.CASTAI_API_KEY! },\n  });\n\n  \u002F\u002F Log rate limit headers for monitoring\n  const remaining = response.headers.get(\"X-RateLimit-Remaining\");\n  const reset = response.headers.get(\"X-RateLimit-Reset\");\n  if (remaining) {\n    console.log(`Rate limit remaining: ${remaining}, resets: ${reset}`);\n  }\n\n  if (response.status === 429) {\n    const retryAfter = parseInt(response.headers.get(\"Retry-After\") ?? \"5\");\n    throw new RateLimitError(retryAfter);\n  }\n\n  return response;\n}\n\nclass RateLimitError extends Error {\n  constructor(public retryAfterSeconds: number) {\n    super(`Rate limited. Retry after ${retryAfterSeconds}s`);\n  }\n}\n```\n\n### Step 2: Exponential Backoff with Jitter\n\n```typescript\nasync function withBackoff\u003CT>(\n  fn: () => Promise\u003CT>,\n  maxRetries = 5\n): Promise\u003CT> {\n  for (let attempt = 0; attempt \u003C= maxRetries; attempt++) {\n    try {\n      return await fn();\n    } catch (err) {\n      if (attempt === maxRetries) throw err;\n\n      let delayMs: number;\n      if (err instanceof RateLimitError) {\n        delayMs = err.retryAfterSeconds * 1000;\n      } else {\n        delayMs = Math.min(1000 * Math.pow(2, attempt), 30000);\n      }\n      \u002F\u002F Add jitter to prevent thundering herd\n      delayMs += Math.random() * 1000;\n\n      console.log(`Retry ${attempt + 1}\u002F${maxRetries} in ${delayMs}ms`);\n      await new Promise((r) => setTimeout(r, delayMs));\n    }\n  }\n  throw new Error(\"Unreachable\");\n}\n```\n\n### Step 3: Request Queue for Batch Operations\n\n```typescript\nimport PQueue from \"p-queue\";\n\n\u002F\u002F Limit concurrent requests and enforce interval\nconst castaiQueue = new PQueue({\n  concurrency: 3,\n  interval: 1000,\n  intervalCap: 5,   \u002F\u002F Max 5 requests per second\n});\n\nasync function queuedCastAIRequest\u003CT>(fn: () => Promise\u003CT>): Promise\u003CT> {\n  return castaiQueue.add(() => withBackoff(fn));\n}\n\n\u002F\u002F Batch process multiple clusters\nconst clusterIds = [\"id1\", \"id2\", \"id3\", \"id4\", \"id5\"];\nconst savings = await Promise.all(\n  clusterIds.map((id) =>\n    queuedCastAIRequest(() =>\n      fetch(`https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fkubernetes\u002Fclusters\u002F${id}\u002Fsavings`, {\n        headers: { \"X-API-Key\": process.env.CASTAI_API_KEY! },\n      }).then((r) => r.json())\n    )\n  )\n);\n```\n\n### Step 4: Polling Best Practice\n\n```typescript\n\u002F\u002F Do NOT poll faster than 30 seconds for cluster state\n\u002F\u002F The agent syncs every 15s; polling faster adds no value\n\nasync function pollClusterStatus(\n  clusterId: string,\n  intervalMs = 30000\n): Promise\u003Cvoid> {\n  const timer = setInterval(async () => {\n    try {\n      const status = await queuedCastAIRequest(() =>\n        fetch(\n          `https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fkubernetes\u002Fexternal-clusters\u002F${clusterId}`,\n          { headers: { \"X-API-Key\": process.env.CASTAI_API_KEY! } }\n        ).then((r) => r.json())\n      );\n      console.log(`Cluster ${clusterId}: ${status.agentStatus}`);\n    } catch (err) {\n      console.error(\"Poll failed:\", err);\n    }\n  }, intervalMs);\n}\n```\n\n## Error Handling\n\n| Scenario | Detection | Response |\n|----------|-----------|----------|\n| 429 with Retry-After | Check header | Wait exact duration |\n| 429 without header | Status code only | Exponential backoff from 1s |\n| 5xx errors | Status >= 500 | Retry up to 3 times |\n| Connection timeout | Fetch throws | Retry with longer timeout |\n\n## Resources\n\n- [CAST AI API Reference](https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fspec\u002Fopenapi.json)\n- [p-queue](https:\u002F\u002Fgithub.com\u002Fsindresorhus\u002Fp-queue) -- concurrent request queue\n\n## Next Steps\n\nFor security configuration, see `castai-security-basics`.\n","# CAST AI Rate Limits\n\n## Overview\n\nThe CAST AI REST API enforces rate limits per API key. The autoscaler agent communicates cluster state at 15-second intervals. For custom API integrations, implement exponential backoff and request queuing to avoid hitting limits.\n\n## Prerequisites\n\n- CAST AI API key configured\n- Understanding of the API endpoints you call\n\n## Rate Limit Behavior\n\n| Aspect | Value |\n|--------|-------|\n| Rate limit scope | Per API key |\n| Response on limit | HTTP 429 with `Retry-After` header |\n| Agent sync interval | Every 15 seconds |\n| Recommended polling | No more than once per 30 seconds |\n\n## Instructions\n\n### Step 1: Detect Rate Limits from Response Headers\n\n```typescript\nasync function castaiRequest(path: string): Promise\u003CResponse> {\n  const response = await fetch(`https:\u002F\u002Fapi.cast.ai${path}`, {\n    headers: { \"X-API-Key\": process.env.CASTAI_API_KEY! },\n  });\n\n  \u002F\u002F Log rate limit headers for monitoring\n  const remaining = response.headers.get(\"X-RateLimit-Remaining\");\n  const reset = response.headers.get(\"X-RateLimit-Reset\");\n  if (remaining) {\n    console.log(`Rate limit remaining: ${remaining}, resets: ${reset}`);\n  }\n\n  if (response.status === 429) {\n    const retryAfter = parseInt(response.headers.get(\"Retry-After\") ?? \"5\");\n    throw new RateLimitError(retryAfter);\n  }\n\n  return response;\n}\n\nclass RateLimitError extends Error {\n  constructor(public retryAfterSeconds: number) {\n    super(`Rate limited. Retry after ${retryAfterSeconds}s`);\n  }\n}\n```\n\n### Step 2: Exponential Backoff with Jitter\n\n```typescript\nasync function withBackoff\u003CT>(\n  fn: () => Promise\u003CT>,\n  maxRetries = 5\n): Promise\u003CT> {\n  for (let attempt = 0; attempt \u003C= maxRetries; attempt++) {\n    try {\n      return await fn();\n    } catch (err) {\n      if (attempt === maxRetries) throw err;\n\n      let delayMs: number;\n      if (err instanceof RateLimitError) {\n        delayMs = err.retryAfterSeconds * 1000;\n      } else {\n        delayMs = Math.min(1000 * Math.pow(2, attempt), 30000);\n      }\n      \u002F\u002F Add jitter to prevent thundering herd\n      delayMs += Math.random() * 1000;\n\n      console.log(`Retry ${attempt + 1}\u002F${maxRetries} in ${delayMs}ms`);\n      await new Promise((r) => setTimeout(r, delayMs));\n    }\n  }\n  throw new Error(\"Unreachable\");\n}\n```\n\n### Step 3: Request Queue for Batch Operations\n\n```typescript\nimport PQueue from \"p-queue\";\n\n\u002F\u002F Limit concurrent requests and enforce interval\nconst castaiQueue = new PQueue({\n  concurrency: 3,\n  interval: 1000,\n  intervalCap: 5,   \u002F\u002F Max 5 requests per second\n});\n\nasync function queuedCastAIRequest\u003CT>(fn: () => Promise\u003CT>): Promise\u003CT> {\n  return castaiQueue.add(() => withBackoff(fn));\n}\n\n\u002F\u002F Batch process multiple clusters\nconst clusterIds = [\"id1\", \"id2\", \"id3\", \"id4\", \"id5\"];\nconst savings = await Promise.all(\n  clusterIds.map((id) =>\n    queuedCastAIRequest(() =>\n      fetch(`https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fkubernetes\u002Fclusters\u002F${id}\u002Fsavings`, {\n        headers: { \"X-API-Key\": process.env.CASTAI_API_KEY! },\n      }).then((r) => r.json())\n    )\n  )\n);\n```\n\n### Step 4: Polling Best Practice\n\n```typescript\n\u002F\u002F Do NOT poll faster than 30 seconds for cluster state\n\u002F\u002F The agent syncs every 15s; polling faster adds no value\n\nasync function pollClusterStatus(\n  clusterId: string,\n  intervalMs = 30000\n): Promise\u003Cvoid> {\n  const timer = setInterval(async () => {\n    try {\n      const status = await queuedCastAIRequest(() =>\n        fetch(\n          `https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fkubernetes\u002Fexternal-clusters\u002F${clusterId}`,\n          { headers: { \"X-API-Key\": process.env.CASTAI_API_KEY! } }\n        ).then((r) => r.json())\n      );\n      console.log(`Cluster ${clusterId}: ${status.agentStatus}`);\n    } catch (err) {\n      console.error(\"Poll failed:\", err);\n    }\n  }, intervalMs);\n}\n```\n\n## Error Handling\n\n| Scenario | Detection | Response |\n|----------|-----------|----------|\n| 429 with Retry-After | Check header | Wait exact duration |\n| 429 without header | Status code only | Exponential backoff from 1s |\n| 5xx errors | Status >= 500 | Retry up to 3 times |\n| Connection timeout | Fetch throws | Retry with longer timeout |\n\n## Resources\n\n- [CAST AI API Reference](https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fspec\u002Fopenapi.json)\n- [p-queue](https:\u002F\u002Fgithub.com\u002Fsindresorhus\u002Fp-queue) -- concurrent request queue\n\n## Next Steps\n\nFor security configuration, see `castai-security-basics`.\n",{"name":5,"tags":24,"author":29,"license":15,"version":30,"description":31,"allowed-tools":32,"compatible-with":33},[25,26,27,28],"saas","kubernetes","cost-optimization","castai","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Handle CAST AI API rate limits with backoff and request queuing.\nUse when hitting 429 errors, optimizing API call patterns,\nor implementing rate-aware batch operations.\nTrigger with phrases like \"cast ai rate limit\", \"cast ai 429\",\n\"cast ai throttle\", \"cast ai API limits\".\n","Read, Write, Edit","claude-code","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--castai-pack--castai-rate-limits",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":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill castai-rate-limits",{"tool":49,"command":50},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill castai-rate-limits",{"tool":52,"command":53},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill castai-rate-limits","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--castai-pack--castai-rate-limits\u002FSKILL.md",true,[],[58,65,72,79,86,94],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"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":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"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":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"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":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"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":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"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":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"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",[],[]]