Claude API Agent Skill
Anthropic's claude-api skill is a reference for building on the Claude API and SDKs: models, parameters, streaming, tool use, MCP, caching, and agents.
What the Claude API skill does
The claude-api skill keeps an up-to-date API reference next to the agent, so code that calls Claude uses current model ids and parameters instead of whatever the model remembers from training.
It covers choosing a surface, language-specific SDK support, and whether and how to build an agent, along with streaming, tool use, prompt caching, and token counting.
“Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration.”
When this skill fits
- You are writing code that calls the Claude API or an Anthropic SDK.
- You are migrating an app to a newer Claude model and need current model ids and parameters.
- You are deciding how to structure an agent built on Claude.
How to install claude-api in Claude Code
Commands come from the anthropics/skills README. Restart Claude Code if a newly copied skill does not show up.
- Add Anthropic's skills marketplace. In Claude Code, register the anthropics/skills repository as a plugin marketplace.
/plugin marketplace add anthropics/skills
- Install the claude-api plugin. The claude-api plugin contains only this skill. You can also pick it from Browse and install plugins.
/plugin install claude-api@anthropic-agent-skills
- Use it. Ask for a task the skill covers, or mention it by name, for example "use the claude-api skill". Claude loads the instructions when they are relevant.
- Or copy the folder by hand. Claude Code loads personal skills from ~/.claude/skills/<name>/ and project skills from .claude/skills/<name>/ in your repository. Clone the repository and copy the claude-api folder into either location, keeping SKILL.md and any bundled files together.
git clone https://github.com/anthropics/skills.git mkdir -p ~/.claude/skills && cp -r skills/skills/claude-api ~/.claude/skills/claude-api
Source and license
- Repository
- anthropics/skills by Anthropic
- Skill file
- skills/claude-api/SKILL.md
- Plugin
claude-api@anthropic-agent-skills- Last checked
Related MCP servers
The skill tells the agent how to do the work. These MCP server guides cover the tools and data it can reach while doing it.
Claude API skill questions
What does the Claude API skill do?
The claude-api skill keeps an up-to-date API reference next to the agent, so code that calls Claude uses current model ids and parameters instead of whatever the model remembers from training.
How do I install the Claude API skill in Claude Code?
Run /plugin marketplace add anthropics/skills in Claude Code, then /plugin install claude-api@anthropic-agent-skills. You can also copy the claude-api folder into ~/.claude/skills/ for all your projects, or into .claude/skills/ inside one repository.
What license is the Claude API skill under?
The skill's frontmatter points to LICENSE.txt in its own folder in anthropics/skills. Read the terms there before reusing or redistributing it: open the skill folder on GitHub.
Is the Claude API skill an MCP server?
No. A skill is a folder of instructions and optional scripts that the agent reads into its own context when a task calls for it. An MCP server is a separate program that gives the agent tools and data over the Model Context Protocol. The two work well together: the skill describes how to do the job, and MCP servers reach the systems involved. See matching MCP servers.