[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F88JRPVG7N6RZV1B7JTY4B":3,"skill-same:01M6F88JRPVG7N6RZV1B7JTY4B":77},{"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":54,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":59,"ownerHtmlUrl":60,"ownerBlogUrl":6,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M6F88JRPVG7N6RZV1B7JTY4B","clade-webhooks-events",null,"Use Anthropic Message Batches for async bulk processing and event handling.\nUse when working with webhooks-events patterns.\nTrigger with \"anthropic batches\", \"claude batch api\", \"anthropic async\",\n\"bulk claude processing\", \"anthropic webhook\".","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\u002Fclade-webhooks-events\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"clade webhooks events","events","webhooks","patterns","event","bulk","processing","trigger","io","webhook","message","code","async","use","edit","write","read","Bash","api","batch","2026-11-10 10:12:30",false,"---\nname: clade-webhooks-events\ndescription: |\n  Use Anthropic Message Batches for async bulk processing and event handling.\n  Use when working with webhooks-events patterns.\n  Trigger with \"anthropic batches\", \"claude batch api\", \"anthropic async\",\n  \"bulk claude processing\", \"anthropic webhook\".\nallowed-tools: Read, Write, Edit, Bash(curl:*)\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code\ntags: [saas, anthropic, claude, batches, async]\n---\n\n# Anthropic Message Batches & Async Processing\n\n## Overview\nAnthropic doesn't have traditional webhooks. Instead, use **Message Batches** for async bulk processing — up to 10,000 requests per batch at 50% off, with a 24-hour processing SLA.\n\n## Prerequisites\n- Completed `clade-install-auth`\n- Multiple prompts\u002Fdocuments to process in bulk\n- Tolerance for async processing (results within 24 hours)\n\n## Instructions\n\n### Step 1: Create a Batch\n```typescript\nimport Anthropic from '@claude-ai\u002Fsdk';\n\nconst client = new Anthropic();\n\nconst batch = await client.messages.batches.create({\n  requests: documents.map((doc, i) => ({\n    custom_id: `doc-${i}`,\n    params: {\n      model: 'claude-sonnet-4-20250514',\n      max_tokens: 1024,\n      messages: [{ role: 'user', content: `Summarize: ${doc.text}` }],\n    },\n  })),\n});\n\nconsole.log(`Batch ${batch.id} created — ${batch.request_counts.processing} processing`);\n```\n\n### Step 2: Poll for Completion\n```typescript\nasync function waitForBatch(batchId: string): Promise\u003CAnthropic.Messages.MessageBatch> {\n  while (true) {\n    const batch = await client.messages.batches.retrieve(batchId);\n\n    if (batch.processing_status === 'ended') {\n      console.log(`Batch complete:\n        Succeeded: ${batch.request_counts.succeeded}\n        Errored: ${batch.request_counts.errored}\n        Expired: ${batch.request_counts.expired}`);\n      return batch;\n    }\n\n    console.log(`Processing... ${batch.request_counts.processing} remaining`);\n    await new Promise(r => setTimeout(r, 30_000)); \u002F\u002F Check every 30s\n  }\n}\n```\n\n### Step 3: Retrieve Results\n```typescript\nconst results = await client.messages.batches.results(batch.id);\n\nfor await (const result of results) {\n  if (result.result.type === 'succeeded') {\n    const text = result.result.message.content[0].text;\n    console.log(`${result.custom_id}: ${text.substring(0, 100)}...`);\n  } else {\n    console.error(`${result.custom_id}: ${result.result.type} — ${result.result.error?.message}`);\n  }\n}\n```\n\n## Python Example\n```python\nimport anthropic\nimport time\n\nclient = anthropic.Anthropic()\n\nbatch = client.messages.batches.create(\n    requests=[\n        {\n            \"custom_id\": f\"doc-{i}\",\n            \"params\": {\n                \"model\": \"claude-sonnet-4-20250514\",\n                \"max_tokens\": 1024,\n                \"messages\": [{\"role\": \"user\", \"content\": f\"Summarize: {doc}\"}],\n            },\n        }\n        for i, doc in enumerate(documents)\n    ]\n)\n\n# Poll\nwhile batch.processing_status != \"ended\":\n    time.sleep(30)\n    batch = client.messages.batches.retrieve(batch.id)\n\n# Get results\nfor result in client.messages.batches.results(batch.id):\n    if result.result.type == \"succeeded\":\n        print(result.custom_id, result.result.message.content[0].text[:100])\n```\n\n## Batch Limits\n| Limit | Value |\n|-------|-------|\n| Max requests per batch | 10,000 |\n| Max concurrent batches | 100 |\n| Processing SLA | 24 hours |\n| Pricing | 50% of standard per-token pricing |\n| Result availability | 29 days after creation |\n\n## Output\n- Batch created with up to 10,000 requests\n- Processing status tracked via polling\n- Results retrieved with per-request success\u002Ferror status\n- Failed requests identified for retry in a new batch\n\n## Error Handling\n| Result Type | Meaning | Action |\n|-------------|---------|--------|\n| `succeeded` | Normal response | Process `result.message` |\n| `errored` | API error | Check `result.error` — retry failed items in new batch |\n| `expired` | Not processed within 24h | Resubmit in new batch |\n| `canceled` | Batch was canceled | Resubmit if needed |\n\n## Examples\nSee Step 1 (batch creation), Step 2 (polling), Step 3 (result retrieval), Python example, and Batch Limits table above.\n\n## Resources\n- [Message Batches API](https:\u002F\u002Fdocs.anthropic.com\u002Fen\u002Fapi\u002Fcreating-message-batches)\n- [Batch Pricing](https:\u002F\u002Fwww.anthropic.com\u002Fpricing) — 50% off standard\n\n## Next Steps\nSee `clade-ci-integration` for using batches in CI pipelines.\n\n","# Anthropic Message Batches & Async Processing\n\n## Overview\nAnthropic doesn't have traditional webhooks. Instead, use **Message Batches** for async bulk processing — up to 10,000 requests per batch at 50% off, with a 24-hour processing SLA.\n\n## Prerequisites\n- Completed `clade-install-auth`\n- Multiple prompts\u002Fdocuments to process in bulk\n- Tolerance for async processing (results within 24 hours)\n\n## Instructions\n\n### Step 1: Create a Batch\n```typescript\nimport Anthropic from '@claude-ai\u002Fsdk';\n\nconst client = new Anthropic();\n\nconst batch = await client.messages.batches.create({\n  requests: documents.map((doc, i) => ({\n    custom_id: `doc-${i}`,\n    params: {\n      model: 'claude-sonnet-4-20250514',\n      max_tokens: 1024,\n      messages: [{ role: 'user', content: `Summarize: ${doc.text}` }],\n    },\n  })),\n});\n\nconsole.log(`Batch ${batch.id} created — ${batch.request_counts.processing} processing`);\n```\n\n### Step 2: Poll for Completion\n```typescript\nasync function waitForBatch(batchId: string): Promise\u003CAnthropic.Messages.MessageBatch> {\n  while (true) {\n    const batch = await client.messages.batches.retrieve(batchId);\n\n    if (batch.processing_status === 'ended') {\n      console.log(`Batch complete:\n        Succeeded: ${batch.request_counts.succeeded}\n        Errored: ${batch.request_counts.errored}\n        Expired: ${batch.request_counts.expired}`);\n      return batch;\n    }\n\n    console.log(`Processing... ${batch.request_counts.processing} remaining`);\n    await new Promise(r => setTimeout(r, 30_000)); \u002F\u002F Check every 30s\n  }\n}\n```\n\n### Step 3: Retrieve Results\n```typescript\nconst results = await client.messages.batches.results(batch.id);\n\nfor await (const result of results) {\n  if (result.result.type === 'succeeded') {\n    const text = result.result.message.content[0].text;\n    console.log(`${result.custom_id}: ${text.substring(0, 100)}...`);\n  } else {\n    console.error(`${result.custom_id}: ${result.result.type} — ${result.result.error?.message}`);\n  }\n}\n```\n\n## Python Example\n```python\nimport anthropic\nimport time\n\nclient = anthropic.Anthropic()\n\nbatch = client.messages.batches.create(\n    requests=[\n        {\n            \"custom_id\": f\"doc-{i}\",\n            \"params\": {\n                \"model\": \"claude-sonnet-4-20250514\",\n                \"max_tokens\": 1024,\n                \"messages\": [{\"role\": \"user\", \"content\": f\"Summarize: {doc}\"}],\n            },\n        }\n        for i, doc in enumerate(documents)\n    ]\n)\n\n# Poll\nwhile batch.processing_status != \"ended\":\n    time.sleep(30)\n    batch = client.messages.batches.retrieve(batch.id)\n\n# Get results\nfor result in client.messages.batches.results(batch.id):\n    if result.result.type == \"succeeded\":\n        print(result.custom_id, result.result.message.content[0].text[:100])\n```\n\n## Batch Limits\n| Limit | Value |\n|-------|-------|\n| Max requests per batch | 10,000 |\n| Max concurrent batches | 100 |\n| Processing SLA | 24 hours |\n| Pricing | 50% of standard per-token pricing |\n| Result availability | 29 days after creation |\n\n## Output\n- Batch created with up to 10,000 requests\n- Processing status tracked via polling\n- Results retrieved with per-request success\u002Ferror status\n- Failed requests identified for retry in a new batch\n\n## Error Handling\n| Result Type | Meaning | Action |\n|-------------|---------|--------|\n| `succeeded` | Normal response | Process `result.message` |\n| `errored` | API error | Check `result.error` — retry failed items in new batch |\n| `expired` | Not processed within 24h | Resubmit in new batch |\n| `canceled` | Batch was canceled | Resubmit if needed |\n\n## Examples\nSee Step 1 (batch creation), Step 2 (polling), Step 3 (result retrieval), Python example, and Batch Limits table above.\n\n## Resources\n- [Message Batches API](https:\u002F\u002Fdocs.anthropic.com\u002Fen\u002Fapi\u002Fcreating-message-batches)\n- [Batch Pricing](https:\u002F\u002Fwww.anthropic.com\u002Fpricing) — 50% off standard\n\n## Next Steps\nSee `clade-ci-integration` for using batches in CI pipelines.\n\n",{"name":5,"tags":44,"author":49,"license":15,"version":50,"description":51,"allowed-tools":52,"compatible-with":53},[45,46,47,48,31],"saas","anthropic","claude","batches","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Use Anthropic Message Batches for async bulk processing and event handling.\nUse when working with webhooks-events patterns.\nTrigger with \"anthropic batches\", \"claude batch api\", \"anthropic async\",\n\"bulk claude processing\", \"anthropic webhook\".\n","Read, Write, Edit, Bash(curl:*)","claude-code","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fclade-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":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill clade-webhooks-events",{"tool":69,"command":70},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill clade-webhooks-events",{"tool":72,"command":73},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill clade-webhooks-events","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fclade-webhooks-events\u002FSKILL.md",true,[],[78,87,96,105,111,117],{"skillNo":79,"name":80,"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":81,"categories":82,"keywords":83,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[84,85,86],"model","model hierarchy","model hierarchy skill",{"skillNo":88,"name":89,"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":90,"categories":91,"keywords":92,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[93,94,95],"MCP","zoom","zoom mcp",{"skillNo":97,"name":98,"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":99,"categories":100,"keywords":101,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[102,103,104,94],"sdk","zoom apps sdk","apps",{"skillNo":106,"name":107,"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":108,"categories":109,"keywords":110,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[107],{"skillNo":112,"name":113,"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":114,"categories":115,"keywords":116,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[113],{"skillNo":118,"name":119,"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":120,"categories":121,"keywords":122,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[119]]