Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
← Back to list

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.json and 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

  1. /claude-api migrate — confirms scope and target model, then applies breaking changes (thinking params, web-search tool types, beta headers) file by file.
  2. "Add streaming to this Python Claude call" — produces official-SDK streaming code with .get_final_message().
  3. /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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download 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.

  1. Open a terminal.
  2. Clone the repo: git clone https://github.com/lingxling/awesome-skills-cn.git
  3. Create the skills folder: mkdir -p ~/.claude/skills
  4. Copy the skill: cp -r awesome-skills-cn/anthropics-skills/skills/claude-api ~/.claude/skills/
  5. Verify ~/.claude/skills/claude-api/ contains SKILL.md plus the shared/, python/, typescript/ (etc.) subfolders — the skill depends on those reference files.
  6. Restart Claude Code, then invoke a subcommand like /claude-api migrate, or just ask a Claude API question to trigger it automatically.
  7. Treat the model IDs and prices as a cached snapshot — confirm against Anthropic's official docs before shipping.