Claude API
Anthropic's official Skill for building with the Claude API/SDK. Patterns for caching, streaming, tool use, model migration.
Delv Safety Grade: A+
Score 94/100 · assessed 2026-04-18
This is Anthropic's first-party Skill for teaching Claude correct API usage patterns. It's a reference bundle, not executable code, so the attack surface is minimal. The Skill provides working examples for prompt caching, streaming, tool use, and model migration, reducing hallucinated SDK patterns. Maintained directly by Anthropic in their official skills repository with clear documentation and versioning. The primary risk is that Claude might over-rely on these patterns when fresher approaches exist, but that's a design tradeoff rather than a security concern. Supply chain is clean: official GitHub repository, no external dependencies, distributed as documentation rather than executable packages. Transparency is excellent with open source code and clear examples. No known incidents. This is as safe as agent skills get.
Green flags
- Official Anthropic first-party Skill, highest trust anchor
- Read-only reference material, no code execution or API calls
- Open source with clear examples in public GitHub repository
- Addresses real problem: SDK hallucination and incorrect API patterns
- No dependencies, no install process, pure documentation
Red flags
- Documentation-based Skill could become stale as API evolves
- No automated testing visible for example code accuracy
Permissions requested
This Skill teaches Claude how to write correct, production-ready code using Anthropic's official SDK. It covers the fiddly bits that trip people up: structuring prompt-cached requests so they actually cache, setting up tool schemas that Claude can call reliably, handling streaming responses without dropped events, and migrating between Sonnet versions without breaking existing integrations. The Skill bundles working examples and patterns from Anthropic's own documentation, so when you ask Claude to add caching to an existing app or debug a streaming integration, it references real code instead of hallucinating plausible-looking patterns that fail at runtime. Particularly useful for anyone building apps that need to manage API costs through caching or expose tools to Claude in a structured way. It won't help with raw HTTP calls or third-party wrappers, but if you're using the official Python or TypeScript SDK, it's a solid reference that keeps Claude from inventing its own creative interpretations of the API.
Review
Load this if you're building anything non-trivial with the Claude API: caching, streaming, tool use, or model migrations. Skip it if you're just making basic one-off completions.
Good at
- Teaches Claude the correct prompt caching structure, which can cut API costs by 90%
- Provides working streaming patterns that handle errors and connection cleanup properly
- Includes migration guidance for moving between Sonnet versions without breaking changes
- References official Anthropic examples instead of hallucinated patterns
- Covers tool use setup comprehensively, including schema structure and error handling
Watch out
- Only useful if you're using Anthropic's official SDK, not raw HTTP or third-party wrappers
- Overkill for simple single-shot API calls without caching or streaming
- Doesn't cover non-Claude models or multi-provider setups
- Limited to API integration patterns, won't help with prompt engineering or application architecture
Use cases
- Writing prompt-cached SDK calls correctly
- Migrating from Sonnet 4.6 to 4.7
- Adding tool use to an existing app
- Debugging a streaming integration
Similar Skills
- MCP BuilderAnthropic's official Skill for scaffolding new MCP servers. Sets up the project, generates tools, validates the schema.
- Frontend DesignAnthropic's official Skill for frontend design work. Takes a brief, returns components, layouts, and design-system-aware code.
- Webapp TestingAnthropic's official Skill for testing web apps end-to-end. Pairs well with Playwright/Browserbase MCPs for full UI coverage.