Claude API Reference Skill
OfficialOfficial Anthropic skill that grounds Claude Code in current API facts — model IDs, pricing, streaming, tool use, agents, caching and migrations.
Dev & CodingIntermediate★ 167,132⑂ 19,920AI score 9/10Last updated: Aug 7, 2026
What it does
A reference skill that forces Claude Code to look up the Anthropic API instead of answering from memory before writing or editing LLM code.
- Current model IDs with input/output pricing per 1M tokens and context windows
- Up-to-date parameter rules:
thinking: {type: "adaptive"},output_config.effort, plus which shapes now return 400 on which models - Automatic language detection (Python, TypeScript, Java, Go, Ruby, C#, PHP, cURL) so only the relevant
{lang}/docs are read - A decision table for single call vs. workflow vs. custom agent (manual loop or Tool Runner) vs. Managed Agents, including the harness-vs-deployment mental model
- Guidance on prompt caching, token counting, structured outputs, MCP, server-side tools, and model migration via
/claude-api migrate - Guardrail: if the file or project targets another provider (OpenAI, Gemini, Mistral…), the skill stops and asks instead of injecting Anthropic SDK calls
Who it's for
- Backend/AI engineers shipping production features on the Anthropic SDK
- Anyone tired of generated code using stale patterns like
budget_tokensor date-suffixed model IDs - Tech leads comparing cost, context limits and agent architectures
- Teams migrating older Claude API code to newer models
Example uses
- "Add a document-summarization endpoint to this FastAPI service using Claude" → detects Python, writes
anthropicSDK code with streaming and adaptive thinking. - "For a nightly agent, should I use the Tool Runner or Managed Agents?" → compares the four agent approaches and points to scheduled Managed Agents deployments.
- "
/claude-api migrate" → confirms file scope and target model first, then applies the breaking-change checklist from the migration guide step by step.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/claude-api folder from the GitHub repo anthropics/skills into my ~/.claude/skills/claude-api/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/anthropics/skills.git /tmp/anthropic-skills && mkdir -p ~/.claude/skills && cp -r /tmp/anthropic-skills/skills/claude-api ~/.claude/skills/claude-api⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal (Terminal on macOS; WSL recommended on Windows).
- Clone the official repo into a temp folder:
git clone https://github.com/anthropics/skills.git /tmp/anthropic-skills - Create your skills directory:
mkdir -p ~/.claude/skills - Copy just this skill:
cp -r /tmp/anthropic-skills/skills/claude-api ~/.claude/skills/claude-api- Make sure the subfolders (
python/,typescript/,shared/, etc.) come along withSKILL.md— the skill depends on them.
- Make sure the subfolders (
- Run
claudeinside your project and confirm it loads with/skillsor by invoking/claude-api migrate. - Set up credentials: export
ANTHROPIC_API_KEY, or runant auth login(the skill checksant auth statusfirst). - Re-run
git pullin the cloned repo and repeat step 4 periodically so the cached model and pricing tables stay current.