Skip to content
AI Dev Toolkit.
Esc
  • Loading…

Claude skill · Development · Anthropic

Claude API skill by Anthropic

The claude-api skill is Anthropic’s reference for building on the Claude API and SDKs. Claude loads it when your prompt or code involves Claude or the Anthropic SDK, so it answers from current docs on model IDs, caching, tool use and streaming instead of from memory. Claude Code already ships with it; elsewhere, install the claude-api plugin.

Command
/claude-api
Licence
Apache-2.0, copying allowed with attribution
Folder
96 files, 2.0 MB
Runs code
4 scripts

Overview

What does the claude-api skill do?

This skill exists because a model’s training data goes stale. It tells Claude not to answer API questions from memory and gives it a current reference instead: model IDs, parameters, thinking and effort settings, prompt caching, the provider clients for Bedrock, Vertex AI and Foundry, and Managed Agents.

Language-specific guides for Python, TypeScript, Java, Go, Ruby, C#, PHP and curl sit in subfolders, so Claude loads only the one for your code. At over 600 lines, its SKILL.md is longer than Anthropic’s own recommended limit. For model IDs, our Claude model IDs page is kept in sync with the same docs.

Triggers

When does Claude use it?

  • A prompt that names Claude, Anthropic, a Claude model or the Anthropic SDK.
  • Questions about LLM pricing, model choice, limits or caching.
  • LLM-shaped tasks where no other provider is in use; it stands aside when the prompt or the project uses another provider.
Its description, which Claude matches against
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, anthropic, @anthropic-ai, claude-*, us.anthropic.*, [1m]); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama' over the project hits (run this grep FIRST if no provider named — don't Read the file).

What it needs

  • Nothing to install.
  • Its name contains “claude”, a word the Agent Skills naming rules reserve, so a claude.ai or Skills API upload is likely to be refused. Claude Code accepts it, and already ships with its own claude-api skill.

Install

How do I install it in Claude Code?

From the plugin marketplace

Plugin (type in Claude Code)
/plugin marketplace add anthropics/skills
/plugin install claude-api@anthropic-agent-skills

The claude-api plugin brings this skill only; it runs as /claude-api:claude-api.

As a personal or project skill

Personal skill: every project on this machine (shell)
git clone --depth 1 https://github.com/anthropics/skills.git
mkdir -p ~/.claude/skills
cp -r skills/skills/claude-api ~/.claude/skills/
Project skill: one repository, shared through git (shell)
git clone --depth 1 https://github.com/anthropics/skills.git
mkdir -p .claude/skills
cp -r skills/skills/claude-api .claude/skills/

Either way it’s available as /claude-api.

claude.ai and API

How do I use it in claude.ai and the API?

claude.ai

Zip the skill folder, then in claude.ai open Customize > Skills, choose + and Create skill, then Upload a skill. Code execution must be turned on.

Claude API

Upload the folder through the Skills API, then list it in container.skills as type custom with the returned ID, alongside the code execution tool. Uploaded skills are shared across your workspace.

Upload with the Python SDK
from anthropic import Anthropic
from anthropic.lib import files_from_dir

client = Anthropic()
skill = client.skills.create(files=files_from_dir("claude-api"))
print(skill.id)  # use as a custom skill_id with the code execution tool

API containers have no network access, so its scripts can’t download anything there.

The checks below found 2 problems that claude.ai and the API reject. Fix them before uploading.

Checks

SKILL.md validator results

Its SKILL.md (616 lines) run through our SKILL.md validator, with the folder’s file list, for both targets. These check the file’s format, not whether the skill works well.

Claude Code

0 errors, 5 warnings, 1 tip

  • warningNames can’t contain the reserved word “claude”. Claude Code accepts it, but claude.ai, the API and other agents don’t.
  • warningClaude Code already has /claude-api. Your skill replaces it (but not its aliases), which can be confusing. Pick a unique name.
  • warningThe description is 1,068 characters; the limit is 1,024. Claude Code loads it, but claude.ai and the API reject it.
  • warningSKILL.md has 608 lines of content. Anthropic recommends under 500: move detail into reference files that load only when needed.
  • warningClaude Code reads $0, $1 and so on as argument placeholders, so text like $10.00 (a price or a spreadsheet reference) can be replaced when the skill runs. Put a backslash before the $, such as \$5.00, to keep it as written.
  • tipSKILL.md doesn’t mention csharp/claude-api/batches.md, csharp/claude-api/files-api.md, csharp/claude-api/streaming.md, csharp/claude-api/tool-use.md, curl/examples.md and 72 more. Say what each file is for and when to read or run it, or Claude won’t know to use it.

claude.ai and the API

2 errors, 1 warning, 1 tip

  • errorNames can’t contain the reserved word “claude”.
  • errorThe description is 1,068 characters; the limit is 1,024.
  • warningSKILL.md has 608 lines of content. Anthropic recommends under 500: move detail into reference files that load only when needed.
  • tipSKILL.md doesn’t mention csharp/claude-api/batches.md, csharp/claude-api/files-api.md, csharp/claude-api/streaming.md, csharp/claude-api/tool-use.md, curl/examples.md and 72 more. Say what each file is for and when to read or run it, or Claude won’t know to use it.

Folder

What’s in the folder?

  • LICENSE.txt11 KB
  • SKILL.md103 KB
  • csharp/5 files, 28 KB
  • curl/2 files, 20 KB
  • go/5 files, 42 KB
  • java/5 files, 44 KB
  • php/6 files, 34 KB
  • python/7 files, 105 KB
  • ruby/4 files, 19 KB
  • shared/54 files, 1.5 MB
  • typescript/6 files, 67 KB

SKILL.md sections

  1. Building LLM-Powered Applications with Claude
  2. Before You Start
  3. Output Requirement
  4. Defaults
  5. Warning: API Drift - Your Training Prior May Be Stale
  6. Subcommands
  7. Language Detection
  8. Language-Specific Feature Support
  9. Which Surface Should I Use?
  10. Building an Agent: Four Approaches
  11. Should I Build an Agent?
  12. Architecture
  13. Current Models (cached: 2026-10-06)
  14. Claude Fable 5.1 (claude-fable-5-1) - most capable widely released model
  15. Claude Opus 5.5 (claude-opus-5-5) - the current Opus and the default model
  16. Claude Sonnet 5.5 (claude-sonnet-5-5) - the current Sonnet: speed and capability for everyday coding, agent, and enterpr
  17. Claude Haiku 5.5 (claude-haiku-5-5) - the current Haiku
  18. Authentication (Quick Reference)
  19. Thinking & Effort (Quick Reference)
  20. Compaction (Quick Reference)
  21. Prompt Caching (Quick Reference)
  22. Fast Mode (Quick Reference)
  23. Task Budgets (Quick Reference)
  24. Provider Clients (Quick Reference)
  25. Amazon Bedrock
  26. Microsoft Foundry
  27. Google Cloud Vertex AI
  28. Context Editing (Quick Reference)
  29. Mid-Conversation System Messages (Quick Reference)
  30. Managed Agents (Beta)
  31. Server Tools (Quick Reference)
  32. Document & File Input (Quick Reference)
  33. Tool Use Patterns (Quick Reference)
  34. Other API Surfaces (Quick Reference)
  35. Workload Identity Federation (Quick Reference)
  36. Reading Guide
  37. Quick Task Reference
  38. When to Use WebFetch
  39. Common Pitfalls

Source

Licence and source

FAQ

Questions people ask

Is the claude-api skill the same as the Skills API?

No. The claude-api skill is a set of instructions that helps Claude write code against the Claude API. The Skills API is the set of /v1/skills endpoints you use to upload any custom skill to your workspace, so Claude can use it in API requests. You can use either without the other.

Do I need to install the claude-api skill in Claude Code?

No. Anthropic’s docs say Claude Code comes with the claude-api skill bundled, so it is already there. Installing the plugin as well adds a second, namespaced copy. You might still read the published folder to see which topics it covers, or install it in another agent that reads skills from disk.

Why can’t I upload the claude-api skill to claude.ai?

Its name contains “claude”, which the Agent Skills rules reserve along with “anthropic”, so a claude.ai or Skills API upload is likely to be refused. Our validator flags this below. If you want the content there, rename the copy and keep the Apache 2.0 licence with it, then upload the zip.

Related

All Claude skillsWrite your own skillSlash command builderGuide: subagents, skills and commands