Claude API Patterns

Anthropic Claude API patterns with the official `@anthropic-ai/sdk` — model selection (Opus 4.7 / Sonnet 4.6 / Haiku 4.5), streaming, prompt caching, tool use, structured output, vision, batch API, retry/backoff, cost control, Next.js Route Handler and Server Action wiring. Use when building features that call Claude (chat, summarization, agents, classifications), debugging tool-use loops, optimizing token cost via caching, or migrating between Claude model versions.

PIXARTSeu Updated 12 repo stars
Synapse live demo — session_resume, skill_route, memory_query

File contents

PIXARTSeu/Synapse commit 698cc37b92

Frequently asked questions

npx get-skill add pixartseu/claude-api-patterns