Claude API
Guides an agent building applications with the Claude API and Anthropic SDKs: model selection, message structure, tool use, streaming and sound integration patterns.
Install:
npx skills add anthropics/skills --skill claude-api (also available via the Claude plugin marketplace)
Source: https://github.com/anthropics/skills/tree/main/skills/claude-api
Repository: https://github.com/anthropics/skills
Updated 27 November 2026.
Used in: AI Automation Services for Local Businesses
What it does
- Current guidance on Claude models and API usage
- Covers message structure, system prompts and multi-turn patterns
- Explains tool use and structured outputs for app integrations
- Includes streaming and error-handling patterns
- Written for the official Anthropic SDKs
Use it for
- Scaffold a chat or support feature on the Claude API
- Add tool use to an existing Anthropic integration
- Review API code for outdated patterns before shipping
What it does
Claude API is the reference skill for agents writing code against Anthropic’s platform. API surfaces change — models are renamed, parameters evolve, patterns that were idiomatic last year get replaced — and an agent working from stale habits produces code that needs rework. This skill packages current guidance on building with the Claude API and the official SDKs: how to structure messages, choose a model for a task, implement tool use, stream responses and handle the errors a production integration will eventually meet.
How to install and use
Install with the command in the frontmatter, then simply ask for API work: scaffold an integration, add a feature, or review existing Anthropic code. The skill loads when the task involves the Claude API. It is most valuable in a real project context, where the agent can read your existing code and apply the patterns consistently instead of bolting on a mismatched example.
Example use
Ask: ‘Add a streaming chat endpoint to this app using the Anthropic SDK, with tool use for looking up order status.’ The skill steers the implementation toward current model names, correct message and tool definitions, and a streaming pattern that handles partial responses properly — rather than a copied snippet built on deprecated conventions.
Good to know
API guidance ages. The skill reflects the platform as documented when it was written, so for a launch-critical integration, cross-check model names, limits and pricing against Anthropic’s live documentation. And never let any skill talk you into embedding API keys in client-side code or committing them to a repository — key handling stays a human decision.
Building against the API usually leads to tooling: MCP Builder covers wrapping an external service as MCP tools, and Build your first MCP server shows the same job end to end. If you would rather use models through a finished interface than your own code, TypingMind is the example picked in the tools list for that route. For how this skill fits the wider system, see Claude Code skills, explained.
Requirements
You need an agent that supports the Agent Skills standard — Claude Code is the target tool listed for this skill — plus the install command shown at the top of this page: npx skills add anthropics/skills --skill claude-api (also available via the Claude plugin marketplace). The skill itself is a folder of instruction files (a SKILL.md, and in some cases bundled scripts or reference files) that the agent loads when a task matches its description. Nothing in the skill replaces the underlying tool it guides: where the skill covers an API, a document format or a platform, you still need your own access and accounts for that platform.
Safety notes
Installs as local instruction files — a SKILL.md plus any bundled scripts or assets — that your agent reads and follows locally. Review the SKILL.md and any scripts in the skill folder before first use; no third-party security scan was run and no scan result is claimed.
In practice: read the SKILL.md before the first run, skim any bundled scripts for network calls or file writes outside the project, and run the skill first on a copy of a real file rather than the original. A skill’s instructions are followed by your agent with your permissions, so the review standard is the same one you would apply to a script a stranger handed you. What was verified for this entry: Verified via the GitHub API on 2026-11-27: the skill exists in anthropics/skills’s skills directory. Description rewritten in our own words; popularity/install counts deliberately not reproduced.
Before you rely on it
Run the example task from the section above on a small, real job and compare the output with doing the same job unaided. Keep the skill if it removes steps or errors you actually make; remove it if it only adds ceremony. Skills cost a description line of context on every session until they trigger, so a directory of unused skills is not free — it is a small, permanent tax on every conversation.
Safety notes
Verified via the GitHub API on 2026-11-27: the skill exists in anthropics/skills's skills directory. Description rewritten in our own words; popularity/install counts deliberately not reproduced.
Installs as local instruction files — a SKILL.md plus any bundled scripts or assets — that your agent reads and follows locally. Review the SKILL.md and any scripts in the skill folder before first use; no third-party security scan was run and no scan result is claimed.