Claude API Reference
A reference skill that keeps Claude/Anthropic SDK code accurate — model IDs, params, tool use, streaming, agents, and model migration.
Dev & CodingIntermediate★ 267⑂ 45AI score 9/10Last updated: Jul 16, 2026
What it does
- Whenever a request touches Claude/Anthropic (model choice, pricing, token counting, caching, streaming, tool definitions, MCP, agents), it forces documentation-backed code instead of recalled patterns.
- Detects the project language from
pyproject.toml,package.json,go.mod,Gemfile,composer.json, etc., then reads the matching SDK folder (python/,typescript/,java/,go/,ruby/,csharp/,php/,curl/). - Ships explicit skip rules for non-Anthropic providers (OpenAI, Gemini, Mistral, Ollama…) so Anthropic SDK calls never get injected into the wrong file.
- Documents recent API drift: adaptive thinking,
output_config.effort, task budgets, structured outputs, server-side tools, Managed Agents, compaction. - Provides a
/claude-api migratesubcommand that walks model upgrades in order: confirm scope → classify files → apply breaking changes.
Who it's for
- Backend/AI engineers calling the Claude API from Python, TypeScript, Go, Java, Ruby, C#, PHP, or raw cURL.
- Developers building LLM pipelines: agents, tool use, RAG, LLM-as-judge, computer use.
- Teams tired of 400 errors and refactors every time a model version changes.
Examples
- "Add a document-summarization endpoint to this FastAPI service using Claude" → detects Python and writes official
anthropicSDK code with streaming. - "/claude-api migrate" → asks which files and target model first, then fixes thinking params, tool types, and other breaking changes step by step.
- "Should I run my own tool loop or use Managed Agents?" → uses the decision tree and tier table to recommend the simplest viable surface.
· · · 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 and cd into a scratch directory.
- Clone the repo:
git clone https://github.com/lingxling/awesome-skills-cn.git - Create the skills folder if needed:
mkdir -p ~/.claude/skills - Copy the whole skill directory (the referenced
shared/and{lang}/files must come along):cp -r awesome-skills-cn/anthropics-skills/skills/claude-api ~/.claude/skills/ - Restart Claude Code and verify with
/skillsor a prompt like "write Claude API code for this project". - For real API calls, export
ANTHROPIC_API_KEYor set up a profile withant auth login. - The model ID and pricing tables are cached snapshots — cross-check the official docs before relying on them in production.
View source on GitHub ↗License: MIT