anth-sdk-patterns
Installation
SKILL.md
Anthropic SDK Patterns
Overview
Production-ready patterns for the Anthropic SDK covering client management, error handling, type safety, and multi-tenant configurations.
Prerequisites
- Completed
anth-install-authsetup - Familiarity with async/await patterns
- TypeScript 5+ or Python 3.10+
Pattern 1: Typed Wrapper with Retry
import Anthropic from '@anthropic-ai/sdk';
import type { Message, MessageCreateParams } from '@anthropic-ai/sdk/resources/messages';
class ClaudeService {
private client: Anthropic;