[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78XZ9P7FNB2PF1Z40WZKG24":3,"skill-same:01M78XZ9P7FNB2PF1Z40WZKG24":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},"01M78XZ9P7FNB2PF1Z40WZKG24","castai-performance-tuning",null,"Optimize CAST AI autoscaler performance, node provisioning speed, and API efficiency.\nUse when nodes take too long to provision, autoscaler is not reacting fast enough,\nor optimizing API call patterns for multi-cluster dashboards.\nTrigger with phrases like \"cast ai performance\", \"cast ai slow\",\n\"cast ai node provisioning\", \"cast ai autoscaler speed\".","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-performance-tuning\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: castai-performance-tuning\ndescription: |\n  Optimize CAST AI autoscaler performance, node provisioning speed, and API efficiency.\n  Use when nodes take too long to provision, autoscaler is not reacting fast enough,\n  or optimizing API call patterns for multi-cluster dashboards.\n  Trigger with phrases like \"cast ai performance\", \"cast ai slow\",\n  \"cast ai node provisioning\", \"cast ai autoscaler speed\".\nallowed-tools: Read, Write, Edit, Bash(curl:*), Bash(kubectl:*)\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 Performance Tuning\n\n## Overview\n\nTune CAST AI for faster node provisioning, more responsive autoscaling, and efficient API usage. Covers headroom configuration, instance family selection, and API caching for multi-cluster dashboards.\n\n## Prerequisites\n\n- CAST AI Phase 2 (full automation) enabled\n- Understanding of workload scheduling patterns\n- Access to autoscaler policy configuration\n\n## Instructions\n\n### Step 1: Optimize Node Provisioning Speed\n\n```bash\n# Configure headroom for proactive scaling (avoids waiting for pending pods)\ncurl -X PUT -H \"X-API-Key: ${CASTAI_API_KEY}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  \"https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fkubernetes\u002Fclusters\u002F${CASTAI_CLUSTER_ID}\u002Fpolicies\" \\\n  -d '{\n    \"enabled\": true,\n    \"unschedulablePods\": {\n      \"enabled\": true,\n      \"headroom\": {\n        \"enabled\": true,\n        \"cpuPercentage\": 15,\n        \"memoryPercentage\": 15\n      }\n    }\n  }'\n```\n\nHeadroom pre-provisions spare capacity so pods schedule immediately instead of waiting 2-5 minutes for new nodes.\n\n### Step 2: Instance Family Optimization\n\n```hcl\n# Terraform: Prefer instance families with fast launch times\nresource \"castai_node_template\" \"fast_launch\" {\n  cluster_id = castai_eks_cluster.this.id\n  name       = \"fast-launch-workers\"\n\n  constraints {\n    spot                  = true\n    use_spot_fallbacks    = true\n    fallback_restore_rate_seconds = 300\n\n    # Newer instance types launch faster and have better availability\n    instance_families {\n      include = [\"m6i\", \"m7i\", \"c6i\", \"c7i\", \"r6i\", \"r7i\"]\n    }\n\n    # Enable spot diversity for faster provisioning\n    spot_diversity_price_increase_limit_percent = 25\n\n    architectures = [\"amd64\"]\n  }\n}\n```\n\n### Step 3: Evictor Tuning for Faster Consolidation\n\n```bash\n# Reduce empty node delay for dev\u002Fstaging (faster downscale)\nhelm upgrade castai-evictor castai-helm\u002Fcastai-evictor \\\n  -n castai-agent \\\n  --reuse-values \\\n  --set evictor.aggressiveMode=true \\\n  --set evictor.cycleInterval=120\n\n# For production, use non-aggressive with longer intervals\n# --set evictor.aggressiveMode=false\n# --set evictor.cycleInterval=600\n```\n\n### Step 4: API Performance for Multi-Cluster Dashboards\n\n```typescript\nimport { LRUCache } from \"lru-cache\";\n\nconst cache = new LRUCache\u003Cstring, unknown>({ max: 100, ttl: 60_000 });\n\ninterface ClusterSummary {\n  id: string;\n  name: string;\n  savings: number;\n  savingsPercent: number;\n  nodeCount: number;\n  spotPercent: number;\n}\n\nasync function getClusterSummary(clusterId: string): Promise\u003CClusterSummary> {\n  const cacheKey = `summary:${clusterId}`;\n  const cached = cache.get(cacheKey) as ClusterSummary | undefined;\n  if (cached) return cached;\n\n  const [cluster, savings, nodes] = await Promise.all([\n    castaiGet(`\u002Fv1\u002Fkubernetes\u002Fexternal-clusters\u002F${clusterId}`),\n    castaiGet(`\u002Fv1\u002Fkubernetes\u002Fclusters\u002F${clusterId}\u002Fsavings`),\n    castaiGet(`\u002Fv1\u002Fkubernetes\u002Fexternal-clusters\u002F${clusterId}\u002Fnodes`),\n  ]);\n\n  const spotNodes = nodes.items.filter(\n    (n: { lifecycle: string }) => n.lifecycle === \"spot\"\n  ).length;\n\n  const summary: ClusterSummary = {\n    id: clusterId,\n    name: cluster.name,\n    savings: savings.monthlySavings,\n    savingsPercent: savings.savingsPercentage,\n    nodeCount: nodes.items.length,\n    spotPercent: nodes.items.length > 0\n      ? (spotNodes \u002F nodes.items.length) * 100\n      : 0,\n  };\n\n  cache.set(cacheKey, summary);\n  return summary;\n}\n\n\u002F\u002F Aggregate across all clusters\nasync function getDashboardData(\n  clusterIds: string[]\n): Promise\u003CClusterSummary[]> {\n  return Promise.all(clusterIds.map(getClusterSummary));\n}\n```\n\n### Step 5: Workload Autoscaler Tuning\n\n```yaml\n# Faster resource adjustment with shorter cooldown\n# (use with caution in production)\nmetadata:\n  annotations:\n    autoscaling.cast.ai\u002Fcpu-headroom: \"10\"     # Lower headroom = tighter fit\n    autoscaling.cast.ai\u002Fmemory-headroom: \"15\"\n    autoscaling.cast.ai\u002Fapply-type: \"immediate\" # Apply without waiting\n```\n\n## Performance Benchmarks\n\n| Metric | Default | Tuned |\n|--------|---------|-------|\n| Node provision time | 3-5 min | 1-3 min (with headroom) |\n| Empty node removal | 5 min | 2 min (aggressive evictor) |\n| Workload resize | 5 min cooldown | Immediate |\n| API response (cached) | 200ms | \u003C5ms |\n\n## Error Handling\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Headroom over-provisioning | Percentage too high | Reduce to 5-10% |\n| Aggressive evictor causing disruptions | PDB not set | Add PodDisruptionBudgets |\n| Cache stale data | TTL too long | Reduce cache TTL to 30s |\n| Instance type unavailable | Too narrow constraints | Add more instance families |\n\n## Resources\n\n- [Autoscaler Settings](https:\u002F\u002Fdocs.cast.ai\u002Fdocs\u002Fautoscaler-settings)\n- [Workload Autoscaler Annotations](https:\u002F\u002Fdocs.cast.ai\u002Fdocs\u002Fworkload-autoscaler-annotations-reference)\n- [Node Configuration](https:\u002F\u002Fdocs.cast.ai\u002Fdocs\u002Fnode-configuration)\n\n## Next Steps\n\nFor cost optimization strategies, see `castai-cost-tuning`.\n","# CAST AI Performance Tuning\n\n## Overview\n\nTune CAST AI for faster node provisioning, more responsive autoscaling, and efficient API usage. Covers headroom configuration, instance family selection, and API caching for multi-cluster dashboards.\n\n## Prerequisites\n\n- CAST AI Phase 2 (full automation) enabled\n- Understanding of workload scheduling patterns\n- Access to autoscaler policy configuration\n\n## Instructions\n\n### Step 1: Optimize Node Provisioning Speed\n\n```bash\n# Configure headroom for proactive scaling (avoids waiting for pending pods)\ncurl -X PUT -H \"X-API-Key: ${CASTAI_API_KEY}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  \"https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fkubernetes\u002Fclusters\u002F${CASTAI_CLUSTER_ID}\u002Fpolicies\" \\\n  -d '{\n    \"enabled\": true,\n    \"unschedulablePods\": {\n      \"enabled\": true,\n      \"headroom\": {\n        \"enabled\": true,\n        \"cpuPercentage\": 15,\n        \"memoryPercentage\": 15\n      }\n    }\n  }'\n```\n\nHeadroom pre-provisions spare capacity so pods schedule immediately instead of waiting 2-5 minutes for new nodes.\n\n### Step 2: Instance Family Optimization\n\n```hcl\n# Terraform: Prefer instance families with fast launch times\nresource \"castai_node_template\" \"fast_launch\" {\n  cluster_id = castai_eks_cluster.this.id\n  name       = \"fast-launch-workers\"\n\n  constraints {\n    spot                  = true\n    use_spot_fallbacks    = true\n    fallback_restore_rate_seconds = 300\n\n    # Newer instance types launch faster and have better availability\n    instance_families {\n      include = [\"m6i\", \"m7i\", \"c6i\", \"c7i\", \"r6i\", \"r7i\"]\n    }\n\n    # Enable spot diversity for faster provisioning\n    spot_diversity_price_increase_limit_percent = 25\n\n    architectures = [\"amd64\"]\n  }\n}\n```\n\n### Step 3: Evictor Tuning for Faster Consolidation\n\n```bash\n# Reduce empty node delay for dev\u002Fstaging (faster downscale)\nhelm upgrade castai-evictor castai-helm\u002Fcastai-evictor \\\n  -n castai-agent \\\n  --reuse-values \\\n  --set evictor.aggressiveMode=true \\\n  --set evictor.cycleInterval=120\n\n# For production, use non-aggressive with longer intervals\n# --set evictor.aggressiveMode=false\n# --set evictor.cycleInterval=600\n```\n\n### Step 4: API Performance for Multi-Cluster Dashboards\n\n```typescript\nimport { LRUCache } from \"lru-cache\";\n\nconst cache = new LRUCache\u003Cstring, unknown>({ max: 100, ttl: 60_000 });\n\ninterface ClusterSummary {\n  id: string;\n  name: string;\n  savings: number;\n  savingsPercent: number;\n  nodeCount: number;\n  spotPercent: number;\n}\n\nasync function getClusterSummary(clusterId: string): Promise\u003CClusterSummary> {\n  const cacheKey = `summary:${clusterId}`;\n  const cached = cache.get(cacheKey) as ClusterSummary | undefined;\n  if (cached) return cached;\n\n  const [cluster, savings, nodes] = await Promise.all([\n    castaiGet(`\u002Fv1\u002Fkubernetes\u002Fexternal-clusters\u002F${clusterId}`),\n    castaiGet(`\u002Fv1\u002Fkubernetes\u002Fclusters\u002F${clusterId}\u002Fsavings`),\n    castaiGet(`\u002Fv1\u002Fkubernetes\u002Fexternal-clusters\u002F${clusterId}\u002Fnodes`),\n  ]);\n\n  const spotNodes = nodes.items.filter(\n    (n: { lifecycle: string }) => n.lifecycle === \"spot\"\n  ).length;\n\n  const summary: ClusterSummary = {\n    id: clusterId,\n    name: cluster.name,\n    savings: savings.monthlySavings,\n    savingsPercent: savings.savingsPercentage,\n    nodeCount: nodes.items.length,\n    spotPercent: nodes.items.length > 0\n      ? (spotNodes \u002F nodes.items.length) * 100\n      : 0,\n  };\n\n  cache.set(cacheKey, summary);\n  return summary;\n}\n\n\u002F\u002F Aggregate across all clusters\nasync function getDashboardData(\n  clusterIds: string[]\n): Promise\u003CClusterSummary[]> {\n  return Promise.all(clusterIds.map(getClusterSummary));\n}\n```\n\n### Step 5: Workload Autoscaler Tuning\n\n```yaml\n# Faster resource adjustment with shorter cooldown\n# (use with caution in production)\nmetadata:\n  annotations:\n    autoscaling.cast.ai\u002Fcpu-headroom: \"10\"     # Lower headroom = tighter fit\n    autoscaling.cast.ai\u002Fmemory-headroom: \"15\"\n    autoscaling.cast.ai\u002Fapply-type: \"immediate\" # Apply without waiting\n```\n\n## Performance Benchmarks\n\n| Metric | Default | Tuned |\n|--------|---------|-------|\n| Node provision time | 3-5 min | 1-3 min (with headroom) |\n| Empty node removal | 5 min | 2 min (aggressive evictor) |\n| Workload resize | 5 min cooldown | Immediate |\n| API response (cached) | 200ms | \u003C5ms |\n\n## Error Handling\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Headroom over-provisioning | Percentage too high | Reduce to 5-10% |\n| Aggressive evictor causing disruptions | PDB not set | Add PodDisruptionBudgets |\n| Cache stale data | TTL too long | Reduce cache TTL to 30s |\n| Instance type unavailable | Too narrow constraints | Add more instance families |\n\n## Resources\n\n- [Autoscaler Settings](https:\u002F\u002Fdocs.cast.ai\u002Fdocs\u002Fautoscaler-settings)\n- [Workload Autoscaler Annotations](https:\u002F\u002Fdocs.cast.ai\u002Fdocs\u002Fworkload-autoscaler-annotations-reference)\n- [Node Configuration](https:\u002F\u002Fdocs.cast.ai\u002Fdocs\u002Fnode-configuration)\n\n## Next Steps\n\nFor cost optimization strategies, see `castai-cost-tuning`.\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","Optimize CAST AI autoscaler performance, node provisioning speed, and API efficiency.\nUse when nodes take too long to provision, autoscaler is not reacting fast enough,\nor optimizing API call patterns for multi-cluster dashboards.\nTrigger with phrases like \"cast ai performance\", \"cast ai slow\",\n\"cast ai node provisioning\", \"cast ai autoscaler speed\".\n","Read, Write, Edit, Bash(curl:*), Bash(kubectl:*)","claude-code","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--castai-pack--castai-performance-tuning",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-performance-tuning",{"tool":49,"command":50},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill castai-performance-tuning",{"tool":52,"command":53},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill castai-performance-tuning","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--castai-pack--castai-performance-tuning\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",[],[]]