Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/clade-webhooks-events

@0d57af8
Run it yourself

Use Anthropic Message Batches for async bulk processing and event handling. Use when working with webhooks-events patterns. Trigger with "anthropic batches", "claude batch api", "anthropic async", "bulk claude processing", "anthropic webhook".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/clade-webhooks-events

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesone-pager.md

≈455 tokens on demand. Your agent reads this file only when SKILL.md points to it.

clade-webhooks-events — One-Pager

Async bulk processing with Anthropic's Message Batches API.

The Problem

Processing thousands of prompts synchronously through the Claude API is slow, expensive, and rate-limited. Anthropic doesn't offer traditional webhooks for async completion notifications, so developers need a different pattern for bulk workloads like document summarization, content moderation, or data extraction at scale.

The Solution

Use the Message Batches API to submit up to 10,000 requests per batch at 50% of standard pricing, with a 24-hour processing SLA. The workflow is: create the batch with custom IDs for each request, poll for completion status, then stream results with per-request success/error/expired status. Both TypeScript and Python implementations are provided.

Who / What / When

Aspect Details
Who Engineers processing large document sets, running bulk classification, or doing batch content generation
What Batch creation, polling for completion, result retrieval with error handling, Python and TypeScript examples
When When you have 100+ prompts to process and can tolerate async results (up to 24 hours)

Key Features

  1. 50% cost savings — Batch pricing is half of standard per-token pricing, with up to 10,000 requests per batch and 100 concurrent batches
  2. Full lifecycle management — Create with custom_id tracking, poll via processing_status, retrieve with for await...of streaming, and handle succeeded/errored/expired/canceled result types
  3. Dual-language examples — Complete TypeScript and Python implementations covering batch creation, polling loops, and result iteration with error handling

Quick Start

See SKILL.md for full instructions.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo3 checks · Risk MEDIUM
  • Gen Agent Trust Hub2mo

    The skill provides instructions and code for using Anthropic's Message Batches API. It is functional but contains a medium-severity finding due to the use of an unofficial and unverifiable package name (@claude-ai/sdk) in the TypeScript examples, which could lead to supply chain risks. It also contains a low-severity surface for indirect prompt injection in its document processing logic.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
What it can do
Reads files Edits files Runs commands
version
1.1.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
[
  "saas",
  "anthropic",
  "claude",
  "batches",
  "async"
]
All 4 allowed tools
ReadWriteEditBash(curl:*)
Other metadata
compatibility
Designed for Claude Code

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/clade-webhooks-events