claude-api skill
By Anthropic
Find the right way to implement an application using the Claude API.
Install this skill
npx skills add anthropics/skills --skill claude-apiRun the command from your project directory. If your client is already running, reload it and confirm the skill is available before trying the example below.
Ask your agent to install the skill
Install claude-api from anthropics/skills in this project. Show me the destination folder and report any dependencies the source lists.
Install for your agent
Run the command for your client from your project directory.
Claude Code
npx skills add anthropics/skills --skill claude-api -a claude-codeCodex
npx skills add anthropics/skills --skill claude-api -a codexCursor
npx skills add anthropics/skills --skill claude-api -a cursorGitHub Copilot
npx skills add anthropics/skills --skill claude-api -a github-copilotHow to use claude-api
Specify your language, SDK version and whether the app needs streaming, structured responses or tool use.
Example prompt and what to check
Sketch a minimal TypeScript integration for a message request. Include how the application should handle an API error.
Acceptance check Check the example against the current official SDK docs, then run it with a test configuration and verify the response path.
What the upstream guide covers
The skill’s instructions direct readers to Claude API guidance relevant to the requested language and feature. Check current model and SDK documentation before implementing the selected approach.
HavenSkills workflow check
No workflow check recorded yet. Use the sample task above to make your own check in your client.
Requirements, permissions and limits
Model identifiers, SDK methods and request fields can change. Keep keys in environment configuration and verify current documentation.
- Author
- Anthropic
- Category
- Agent workflows
- Skill source
- SKILL.md
Frequently asked questions
Does installing the skill provide API access?
API access and credentials come from your account and client setup. The skill provides implementation guidance.