anthropic-api
Integrates Anthropic Claude API for chat, tool use, and vision capabilities. Use when building AI-powered features with Claude models including streaming, extended thinking, and multi-turn conversations.
npx skills add majiayu000/claude-skill-registry --skill anthropic-api --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Anthropic Claude API Official TypeScript SDK for Anthropic's Claude AI. Access Claude models for chat, tool use, vision, and extended thinking. ## Quick Start ```bash npm install @anthropic-ai/sdk ``` ### Setup ```typescript import Anthropic from '@anthropic-ai/sdk'; const anthropic = new Anthropic({ apiKey: process.env.ANTHROPIC_API_KEY, }); ``` ## Messages API ### Basic Message ```typescript const message = await anthropic.messages.create({ model: 'claude-sonnet-4-20250514', max_tokens: 1024, messages: [ { role: 'user', content: 'Hello, Claude!' }, ], }); console.log(message.content[0].text); ``` ### System Prompt ```typescript const message = await anthropic.messages.create({ model: 'claude-sonnet-4-20250514', max_tokens: 1024, system: 'You are a helpful coding assistant.', messages: [ { role: 'user', content: 'Explain async/await in JavaScript' }, ], }); ``` ### Multi-turn Conversation ```typescript const message = await anthropic.messages.create({ model: 'claude-sonnet-4-20250514', max_tokens: 1024, messages: [ { role: 'user', content: 'What is TypeScript?' }, { role: 'assistant', content: 'TypeScript is a typed superset of JavaScript...' }, { role: 'user', content: 'How do
- Quick Start
- Setup
- Messages API
- Basic Message
- System Prompt
- Multi-turn Conversation
- Streaming
- Basic Streaming
- Using .stream() Helper
- Stream Events
- Tool Use (Function Calling)
- Vision (Image Analysis)
- URL Image
- Base64 Image
npm install @anthropic-ai/sdk
What does the anthropic-api skill do?
Integrates Anthropic Claude API for chat, tool use, and vision capabilities. Use when building AI-powered features with Claude models including streaming, extended thinking, and multi-turn conversations.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill anthropic-api --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
