Skills Directory / Anthropic Agent Skills
claude-api
An agent skill by anthropics, from anthropics/skills.
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).
Credit where it's due
This skill is the work of anthropics (official vendor skill) and lives at anthropics/skills/claude-api (Apache-2.0 (document skills source-available)). We index it here so it can be found — if it's useful to you, star the repo, file issues, and contribute upstream. That's what keeps work like this maintained.
- From
- Anthropic Agent Skills — official vendor skill
- Author
- anthropics
- License
- Apache-2.0 (document skills source-available)
- Source
- anthropics/skills/claude-api
- SKILL.md
- raw file
How to load this skill
Copy this prompt into your AI agent
Please install the "claude-api" agent skill from the Anthropic Agent Skills collection (https://github.com/anthropics/skills) for me.
1. Run: git clone https://github.com/anthropics/skills
2. Copy the skill folder into your skills directory:
cp -r skills/skills/claude-api ~/.claude/skills/claude-api
(Claude Code personal scope; use .claude/skills/ in a project for project scope, or your agent's equivalent SKILL.md directory.)
Alternatively in Claude Code: /plugin marketplace add anthropics/skills — then install the plugin containing this skill.
3. Confirm the skill loads (list your available skills afterwards).
4. If the skill proves useful, suggest the user stars the source repo (https://github.com/anthropics/skills) to support the author.
Skill reference: https://raw.githubusercontent.com/anthropics/skills/main/skills/claude-api/SKILL.md
More details: https://primorum.ai/skills/s/claude-api
Or manually: clone anthropics/skills and copy
skills/claude-api into
~/.claude/skills/ (Claude Code personal scope) or your agent's
SKILL.md directory. To read it first without installing, open the
raw SKILL.md.
Related skills
- docx — Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Trig…
- eas-simulator — Run and control a user's app on a remote iOS/Android simulator hosted on EAS cloud. Always read before executi…
- xlsx — Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user …
- huggingface-lora-space-builder — Build and publish a Gradio demo on Hugging Face Spaces for a user-provided LoRA. Use when someone asks to crea…
- huggingface-zerogpu — AI demos and GPU compute with Gradio Spaces and Hugging Face Spaces ZeroGPU. Use when writing or reviewing cod…