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

Claude API Reference

A reference skill that keeps Claude/Anthropic SDK code accurate — model IDs, params, tool use, streaming, agents, and model migration.

Dev & CodingIntermediate26745AI 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 migrate subcommand 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

  1. "Add a document-summarization endpoint to this FastAPI service using Claude" → detects Python and writes official anthropic SDK code with streaming.
  2. "/claude-api migrate" → asks which files and target model first, then fixes thinking params, tool types, and other breaking changes step by step.
  3. "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)
  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 and cd into a scratch directory.
  2. Clone the repo: git clone https://github.com/lingxling/awesome-skills-cn.git
  3. Create the skills folder if needed: mkdir -p ~/.claude/skills
  4. 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/
  5. Restart Claude Code and verify with /skills or a prompt like "write Claude API code for this project".
  6. For real API calls, export ANTHROPIC_API_KEY or set up a profile with ant auth login.
  7. The model ID and pricing tables are cached snapshots — cross-check the official docs before relying on them in production.