Individual skill
claude-api
Build, debug, and optimize Claude API / Anthropic SDK apps. Apps built with this skill should include prompt caching. Also handles migrating existing Claude API code between Claude model versions (4.5 → 4.6, 4.6 → 4.7, retired-model replacements). TRIGGER when: code imports `anthropic`/`@anthropic-ai/sdk`; user asks for the Claude API, Anthropic SDK, or Managed Agents; user adds/modifies/tunes a Claude feature (caching, thinking, compaction, tool use, batch, files, citations, memory) or model (Opus/Sonnet/Haiku) in a file; questions about prompt caching / cache hit rate in an Anthropic SDK project. SKIP: file imports `openai`/other-provider SDK, filename like `*-openai.py`/`*-generic.py`, provider-neutral code, general programming/ML.
cli-tool/components/skills/development/claude-api/SKILL.md
Source commit ad81bf053f80b626801decf425f501ba49983d98
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 4, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 33,193
- Repository last updated
- Nov 7, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- anthropic Repository topic
- anthropic-claude Repository topic
- claude Repository topic
- claude-code Repository topic
- agent-skills Repository topic
- ai-agents Repository topic
- claude-code-plugins Repository topic
- cli Repository topic
- mcp Repository topic
- registry Repository topic
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
LICENSE.txtdoc · 11,345 bytesSKILL.mdcore · 33,041 bytesSKILL.mdcore · 33,041 bytesSKILL.mdcore · 33,041 bytescsharp/claude-api.mddoc · 14,390 bytescurl/examples.mddoc · 6,465 bytescurl/managed-agents.mddoc · 7,379 bytesgo/claude-api.mddoc · 13,873 bytesgo/managed-agents/README.mddoc · 18,478 bytesjava/claude-api.mddoc · 15,095 bytesjava/managed-agents/README.mddoc · 16,585 bytesphp/claude-api.mddoc · 11,161 bytesphp/managed-agents/README.mddoc · 13,184 bytespython/agent-sdk/README.mddoc · 12,672 bytespython/agent-sdk/patterns.mddoc · 9,197 bytespython/claude-api/README.mddoc · 12,163 bytespython/claude-api/batches.mddoc · 5,095 bytespython/claude-api/files-api.mddoc · 3,994 bytespython/claude-api/streaming.mddoc · 5,233 bytespython/claude-api/tool-use.mddoc · 16,933 bytespython/managed-agents/README.mddoc · 9,815 bytesruby/claude-api.mddoc · 2,935 bytesruby/managed-agents/README.mddoc · 10,175 bytesshared/agent-design.mddoc · 8,335 bytesshared/error-codes.mddoc · 7,703 bytesshared/live-sources.mddoc · 16,632 bytesshared/managed-agents-api-reference.mddoc · 23,782 bytesshared/managed-agents-client-patterns.mddoc · 9,403 bytesshared/managed-agents-core.mddoc · 13,135 bytesshared/managed-agents-environments.mddoc · 10,700 bytesshared/managed-agents-events.mddoc · 9,663 bytesshared/managed-agents-memory.mddoc · 9,583 bytesshared/managed-agents-multiagent.mddoc · 6,544 bytesshared/managed-agents-onboarding.mddoc · 8,135 bytesshared/managed-agents-outcomes.mddoc · 6,140 bytesshared/managed-agents-overview.mddoc · 9,219 bytesshared/managed-agents-tools.mddoc · 13,496 bytesshared/managed-agents-webhooks.mddoc · 5,051 bytesshared/model-migration.mddoc · 65,577 bytesshared/models.mddoc · 7,560 bytesshared/prompt-caching.mddoc · 9,783 bytesshared/tool-use-concepts.mddoc · 16,743 bytestypescript/agent-sdk/README.mddoc · 10,834 bytestypescript/agent-sdk/patterns.mddoc · 4,711 bytestypescript/claude-api/README.mddoc · 9,920 bytestypescript/claude-api/batches.mddoc · 2,596 bytestypescript/claude-api/files-api.mddoc · 2,261 bytestypescript/claude-api/streaming.mddoc · 5,596 bytestypescript/claude-api/tool-use.mddoc · 15,358 bytestypescript/managed-agents/README.mddoc · 9,384 bytes
Read excerpt
# Building LLM-Powered Applications with Claude
This skill helps you build LLM-powered applications with Claude. Choose the right surface based on your needs, detect the project language, then read the relevant language-specific documentation.
## Before You Start
Scan the target file (or, if no target file, the prompt and project) for non-Anthropic provider markers — `import openai`, `from openai`, `langchain_openai`, `OpenAI(`, `gpt-4`, `gpt-5`, file names like `agent-openai.py` or `*-generic.py`, or any explicit instruction to keep the code provider-neutral. If you find any, stop and tell the user that this skill produces Claude/Anthropic SDK code; ask whether they want to switch the file to Claude or want a non-Claude implementation. Do not edit a non-Anthropic file with Anthropic SDK calls.
## Output Requirement
When the user asks you to add, modify, or implement a Claude feature, your code must call Claude through one of:
1. **The official Anthropic SDK** for the project's language (`anthropic`, `@anthropic-ai/sdk`, `com.anthropic.*`, etc.). This is the default whenever a supported SDK exists for the project.
2. **Raw HTTP** (`curl`, `requests`, `fetch`, `httpx`, etc.) — only when the user explicitly asks for cURL/REST/raw HTTP, the project is a shell/cURL project, or the language has no official SDK.