HavenSkills

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-api

Run 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.

Source repo

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-code
Codex
npx skills add anthropics/skills --skill claude-api -a codex
Cursor
npx skills add anthropics/skills --skill claude-api -a cursor
GitHub Copilot
npx skills add anthropics/skills --skill claude-api -a github-copilot

How 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.

Review methodology and recorded checks

Requirements, permissions and limits

Model identifiers, SDK methods and request fields can change. Keep keys in environment configuration and verify current documentation.

Author
Anthropic
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.