Claude API Reference
An authoritative lookup skill for the Claude/Anthropic SDK covering model IDs, params, streaming, tool use, agents, caching, and model migration.
Dev & CodingIntermediate★ 306⑂ 53AI score 9/10Last updated: Oct 7, 2026
What it does
- Forces Claude to read the bundled reference before writing any code whenever Claude/Anthropic signals appear (
anthropic,@anthropic-ai,claude-*, model names, LLM-shaped tasks). - Detects the project language from files like
pyproject.toml,package.json,go.mod,composer.jsonand reads only the matching Python/TypeScript/Java/Go/Ruby/C#/PHP/cURL docs. - Consolidates model/pricing tables, extended thinking, streaming, prompt caching, token counting, server tools, structured outputs, and Managed Agents so the assistant never guesses SDK bindings from memory.
- Ships workflow subcommands:
migrate,prompt-audit,upgrade,cost-optimize,build-eval,hillclimb,preserved-thinking-migration. - Includes a guard so Anthropic SDK calls are never spliced into OpenAI/Gemini/Mistral/Ollama code.
Who it's for
- Developers building chat, summarization, classification, RAG, or agents on the Claude API.
- Teams migrating older integrations to newer models without missing breaking changes.
- Operators trying to cut token spend via caching, batching, and model selection.
Example uses
/claude-api migrate— confirms scope and target model, then applies breaking changes (thinking params, web-search tool types, beta headers) file by file.- "Add streaming to this Python Claude call" — produces official-SDK streaming code with
.get_final_message(). /claude-api cost-optimize— builds a token profile and ranks savings levers by impact before proposing diffs.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/lingxling/awesome-skills-cn/HEAD/anthropics-skills/skills/claude-api/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
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 anthropics-skills/skills/claude-api folder from the GitHub repo lingxling/awesome-skills-cn into my ~/.claude/skills/lingxling-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/lingxling/awesome-skills-cn.git && mkdir -p ~/.claude/skills && cp -r awesome-skills-cn/anthropics-skills/skills/claude-api ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/lingxling/awesome-skills-cn.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r awesome-skills-cn/anthropics-skills/skills/claude-api ~/.claude/skills/ - Verify
~/.claude/skills/claude-api/containsSKILL.mdplus theshared/,python/,typescript/(etc.) subfolders — the skill depends on those reference files. - Restart Claude Code, then invoke a subcommand like
/claude-api migrate, or just ask a Claude API question to trigger it automatically. - Treat the model IDs and prices as a cached snapshot — confirm against Anthropic's official docs before shipping.
View source on GitHub ↗License: MIT