[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F82K3TJ6Y8T8WY375B5Q4J":3,"skill-same:01M6F82K3TJ6Y8T8WY375B5Q4J":76},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":58,"ownerHtmlUrl":59,"ownerBlogUrl":6,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M6F82K3TJ6Y8T8WY375B5Q4J","castai-webhooks-events",null,"Configure CAST AI webhook notifications for cluster events and audit logs.\nUse when setting up alerts for node scaling, cost threshold events,\nor integrating CAST AI events with Slack, PagerDuty, or custom endpoints.\nTrigger with phrases like \"cast ai webhooks\", \"cast ai notifications\",\n\"cast ai slack alerts\", \"cast ai events\".","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fcastai-webhooks-events\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"castai webhooks events","castai","events","webhooks","up","io","webhook","scaling","alerts","pagerduty","slack","write","read","node","configure","Bash","notifications","logs","audit","code","2026-11-10 10:12:30",false,"---\nname: castai-webhooks-events\ndescription: |\n  Configure CAST AI webhook notifications for cluster events and audit logs.\n  Use when setting up alerts for node scaling, cost threshold events,\n  or integrating CAST AI events with Slack, PagerDuty, or custom endpoints.\n  Trigger with phrases like \"cast ai webhooks\", \"cast ai notifications\",\n  \"cast ai slack alerts\", \"cast ai events\".\nallowed-tools: Read, Write, Edit, Bash(curl:*)\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 Webhooks & Events\n\n## Overview\n\nCAST AI emits events for node lifecycle changes, autoscaler decisions, and security findings. Configure webhook endpoints or use the audit log API to track all cluster operations. Integrates with Slack, PagerDuty, and custom HTTP endpoints.\n\n## Prerequisites\n\n- CAST AI cluster connected and active\n- HTTPS endpoint for receiving webhooks (or Slack webhook URL)\n- API key with Full Access\n\n## Instructions\n\n### Step 1: Configure Notification Channels in Console\n\nNavigate to console.cast.ai > your cluster > Notifications. Available channels:\n\n- **Slack**: Webhook URL integration\n- **Email**: Per-user notifications\n- **PagerDuty**: Incident escalation\n- **Custom webhook**: Any HTTPS endpoint\n\n### Step 2: Query Audit Log via API\n\n```bash\n# Get recent cluster operations\ncurl -s -H \"X-API-Key: ${CASTAI_API_KEY}\" \\\n  \"https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fkubernetes\u002Fclusters\u002F${CASTAI_CLUSTER_ID}\u002Faudit-log?limit=20\" \\\n  | jq '.items[] | {\n    time: .createdAt,\n    action: .action,\n    initiator: .initiatedBy,\n    details: .details\n  }'\n```\n\n### Step 3: Build a Custom Notification Handler\n\n```typescript\n\u002F\u002F castai-webhook-handler.ts\nimport express from \"express\";\n\nconst app = express();\napp.use(express.json());\n\ninterface CastAIEvent {\n  eventType: string;\n  clusterId: string;\n  clusterName: string;\n  timestamp: string;\n  data: {\n    nodeName?: string;\n    instanceType?: string;\n    lifecycle?: string;\n    action?: string;\n    savingsImpact?: number;\n  };\n}\n\napp.post(\"\u002Fcastai\u002Fevents\", async (req, res) => {\n  const event: CastAIEvent = req.body;\n\n  switch (event.eventType) {\n    case \"node.added\":\n      console.log(\n        `Node added: ${event.data.nodeName} (${event.data.instanceType}, ${event.data.lifecycle})`\n      );\n      await notifySlack(\n        `New ${event.data.lifecycle} node: ${event.data.instanceType}`\n      );\n      break;\n\n    case \"node.removed\":\n      console.log(`Node removed: ${event.data.nodeName}`);\n      break;\n\n    case \"node.spot_interrupted\":\n      console.log(`Spot interruption: ${event.data.nodeName}`);\n      await notifyPagerDuty(\"Spot instance interrupted\", event);\n      break;\n\n    case \"savings.threshold\":\n      console.log(`Savings threshold crossed: ${event.data.savingsImpact}%`);\n      break;\n\n    default:\n      console.log(`Unhandled event: ${event.eventType}`);\n  }\n\n  res.status(200).json({ received: true });\n});\n\nasync function notifySlack(message: string): Promise\u003Cvoid> {\n  await fetch(process.env.SLACK_WEBHOOK_URL!, {\n    method: \"POST\",\n    headers: { \"Content-Type\": \"application\u002Fjson\" },\n    body: JSON.stringify({\n      text: `:kubernetes: CAST AI: ${message}`,\n    }),\n  });\n}\n\napp.listen(3000, () => console.log(\"CAST AI webhook handler on :3000\"));\n```\n\n### Step 4: Kubernetes-Native Event Monitoring\n\n```bash\n# Watch CAST AI events in the cluster\nkubectl get events -n castai-agent --watch \\\n  --field-selector=source=castai\n\n# Or use a CronJob to post daily summaries\n```\n\n```yaml\napiVersion: batch\u002Fv1\nkind: CronJob\nmetadata:\n  name: castai-daily-summary\nspec:\n  schedule: \"0 9 * * *\"\n  jobTemplate:\n    spec:\n      template:\n        spec:\n          containers:\n            - name: summary\n              image: curlimages\u002Fcurl\n              command:\n                - sh\n                - -c\n                - |\n                  SAVINGS=$(curl -s -H \"X-API-Key: ${CASTAI_API_KEY}\" \\\n                    \"https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fkubernetes\u002Fclusters\u002F${CLUSTER_ID}\u002Fsavings\")\n                  curl -X POST ${SLACK_WEBHOOK_URL} \\\n                    -H \"Content-Type: application\u002Fjson\" \\\n                    -d \"{\\\"text\\\": \\\"Daily CAST AI savings: $(echo $SAVINGS | jq -r '.monthlySavings') USD\u002Fmonth\\\"}\"\n          restartPolicy: Never\n```\n\n## Error Handling\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Webhook not firing | Wrong URL in console | Verify endpoint is reachable |\n| Slack message empty | Payload format changed | Check current event schema |\n| Duplicate events | No idempotency | Track event IDs in your handler |\n| Events delayed | Queue backlog | Monitor CAST AI status page |\n\n## Resources\n\n- [CAST AI Notifications](https:\u002F\u002Fdocs.cast.ai\u002Fdocs\u002Fgetting-started)\n- [CAST AI API Reference](https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fspec\u002Fopenapi.json)\n\n## Next Steps\n\nFor performance optimization, see `castai-performance-tuning`.\n\n","# CAST AI Webhooks & Events\n\n## Overview\n\nCAST AI emits events for node lifecycle changes, autoscaler decisions, and security findings. Configure webhook endpoints or use the audit log API to track all cluster operations. Integrates with Slack, PagerDuty, and custom HTTP endpoints.\n\n## Prerequisites\n\n- CAST AI cluster connected and active\n- HTTPS endpoint for receiving webhooks (or Slack webhook URL)\n- API key with Full Access\n\n## Instructions\n\n### Step 1: Configure Notification Channels in Console\n\nNavigate to console.cast.ai > your cluster > Notifications. Available channels:\n\n- **Slack**: Webhook URL integration\n- **Email**: Per-user notifications\n- **PagerDuty**: Incident escalation\n- **Custom webhook**: Any HTTPS endpoint\n\n### Step 2: Query Audit Log via API\n\n```bash\n# Get recent cluster operations\ncurl -s -H \"X-API-Key: ${CASTAI_API_KEY}\" \\\n  \"https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fkubernetes\u002Fclusters\u002F${CASTAI_CLUSTER_ID}\u002Faudit-log?limit=20\" \\\n  | jq '.items[] | {\n    time: .createdAt,\n    action: .action,\n    initiator: .initiatedBy,\n    details: .details\n  }'\n```\n\n### Step 3: Build a Custom Notification Handler\n\n```typescript\n\u002F\u002F castai-webhook-handler.ts\nimport express from \"express\";\n\nconst app = express();\napp.use(express.json());\n\ninterface CastAIEvent {\n  eventType: string;\n  clusterId: string;\n  clusterName: string;\n  timestamp: string;\n  data: {\n    nodeName?: string;\n    instanceType?: string;\n    lifecycle?: string;\n    action?: string;\n    savingsImpact?: number;\n  };\n}\n\napp.post(\"\u002Fcastai\u002Fevents\", async (req, res) => {\n  const event: CastAIEvent = req.body;\n\n  switch (event.eventType) {\n    case \"node.added\":\n      console.log(\n        `Node added: ${event.data.nodeName} (${event.data.instanceType}, ${event.data.lifecycle})`\n      );\n      await notifySlack(\n        `New ${event.data.lifecycle} node: ${event.data.instanceType}`\n      );\n      break;\n\n    case \"node.removed\":\n      console.log(`Node removed: ${event.data.nodeName}`);\n      break;\n\n    case \"node.spot_interrupted\":\n      console.log(`Spot interruption: ${event.data.nodeName}`);\n      await notifyPagerDuty(\"Spot instance interrupted\", event);\n      break;\n\n    case \"savings.threshold\":\n      console.log(`Savings threshold crossed: ${event.data.savingsImpact}%`);\n      break;\n\n    default:\n      console.log(`Unhandled event: ${event.eventType}`);\n  }\n\n  res.status(200).json({ received: true });\n});\n\nasync function notifySlack(message: string): Promise\u003Cvoid> {\n  await fetch(process.env.SLACK_WEBHOOK_URL!, {\n    method: \"POST\",\n    headers: { \"Content-Type\": \"application\u002Fjson\" },\n    body: JSON.stringify({\n      text: `:kubernetes: CAST AI: ${message}`,\n    }),\n  });\n}\n\napp.listen(3000, () => console.log(\"CAST AI webhook handler on :3000\"));\n```\n\n### Step 4: Kubernetes-Native Event Monitoring\n\n```bash\n# Watch CAST AI events in the cluster\nkubectl get events -n castai-agent --watch \\\n  --field-selector=source=castai\n\n# Or use a CronJob to post daily summaries\n```\n\n```yaml\napiVersion: batch\u002Fv1\nkind: CronJob\nmetadata:\n  name: castai-daily-summary\nspec:\n  schedule: \"0 9 * * *\"\n  jobTemplate:\n    spec:\n      template:\n        spec:\n          containers:\n            - name: summary\n              image: curlimages\u002Fcurl\n              command:\n                - sh\n                - -c\n                - |\n                  SAVINGS=$(curl -s -H \"X-API-Key: ${CASTAI_API_KEY}\" \\\n                    \"https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fkubernetes\u002Fclusters\u002F${CLUSTER_ID}\u002Fsavings\")\n                  curl -X POST ${SLACK_WEBHOOK_URL} \\\n                    -H \"Content-Type: application\u002Fjson\" \\\n                    -d \"{\\\"text\\\": \\\"Daily CAST AI savings: $(echo $SAVINGS | jq -r '.monthlySavings') USD\u002Fmonth\\\"}\"\n          restartPolicy: Never\n```\n\n## Error Handling\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Webhook not firing | Wrong URL in console | Verify endpoint is reachable |\n| Slack message empty | Payload format changed | Check current event schema |\n| Duplicate events | No idempotency | Track event IDs in your handler |\n| Events delayed | Queue backlog | Monitor CAST AI status page |\n\n## Resources\n\n- [CAST AI Notifications](https:\u002F\u002Fdocs.cast.ai\u002Fdocs\u002Fgetting-started)\n- [CAST AI API Reference](https:\u002F\u002Fapi.cast.ai\u002Fv1\u002Fspec\u002Fopenapi.json)\n\n## Next Steps\n\nFor performance optimization, see `castai-performance-tuning`.\n\n",{"name":5,"tags":44,"author":48,"license":15,"version":49,"description":50,"allowed-tools":51,"compatible-with":52},[45,46,47,20],"saas","kubernetes","cost-optimization","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Configure CAST AI webhook notifications for cluster events and audit logs.\nUse when setting up alerts for node scaling, cost threshold events,\nor integrating CAST AI events with Slack, PagerDuty, or custom endpoints.\nTrigger with phrases like \"cast ai webhooks\", \"cast ai notifications\",\n\"cast ai slack alerts\", \"cast ai events\".\n","Read, Write, Edit, Bash(curl:*)","claude-code","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fcastai-webhooks-events",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill castai-webhooks-events",{"tool":68,"command":69},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill castai-webhooks-events",{"tool":71,"command":72},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill castai-webhooks-events","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fcastai-webhooks-events\u002FSKILL.md",true,[],[77,86,95,104,110,116],{"skillNo":78,"name":79,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[83,84,85],"model","model hierarchy","model hierarchy skill",{"skillNo":87,"name":88,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[92,93,94],"MCP","zoom","zoom mcp",{"skillNo":96,"name":97,"nameZh":6,"description":6,"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":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[101,102,103,93],"sdk","zoom apps sdk","apps",{"skillNo":105,"name":106,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[106],{"skillNo":111,"name":112,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[112],{"skillNo":117,"name":118,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[118]]