Agent skill · software engineering · jeremylongshore
clade-sdk-patterns
Production-ready Anthropic SDK patterns \u2014 client config, retries,\
Why this skill is useful
Provides specific patterns and configurations for the Anthropic SDK that enhance client setup and error handling, which the AI wouldn't reliably generate on its own.
What it needs
Requires anthropic account access. About 3k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.
What this skill does
Anthropic SDK Patterns Overview Production patterns for the @claude-ai/sdk (TypeScript) and anthropic (Python) SDKs. Client Configuration Instructions Step 1: TypeScript Step 2: Python Output Properly configured client with retries, timeouts, and custom headers Type-safe error handling with specific exception classes Streaming implementation using your preferred pattern Prompt caching enabled for repeated system prompts (90% cost savings) Batch processing configured for bulk operations (50% cost savings) Error Handling Streaming Patterns Event-Based (TypeScript) Async Iterator (TypeScript) Context Manager (Python) TypeScript Types Prompt Caching (Beta) Message Batches Examples See Client Configuration, Error Handling, Streaming Patterns, TypeScript Types, Prompt Caching, and Message Batches sections above for complete code examples. Resources TypeScript SDK Python SDK Prompt Caching Message Batches Next Steps See clade-rate-limits for throughput optimization. Prerequisites Completed clade-install-auth Familiarity with TypeScript generics or Python type hints Understanding of async/await patterns
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills jeremylongshore/clade-sdk-patterns