Anthropic SDK Implementation
Implements production-grade patterns for the official Anthropic TypeScript SDK including Messages API, streaming, and tool use.
This skill provides standardized patterns and best practices for integrating the official Anthropic TypeScript/Node.js SDK into Claude Code projects. It covers everything from basic client configuration and the Messages API to advanced features like extended thinking, prompt caching, vision capabilities, and the Batch API. By enforcing strict adherence to mandatory token limits, robust error handling via Anthropic's specific error classes, and correct content block iteration, it ensures resilient and efficient interactions with Claude models while avoiding common implementation pitfalls like hardcoded keys or silent truncation.