claude-typescript-sdk
Build AI applications with the Anthropic TypeScript SDK. Use when creating Claude integrations, building agents, implementing tool use, streaming responses, or working with the @anthropic-ai/sdk package.
npx skills add majiayu000/claude-skill-registry --skill claude-typescript-sdk-anveio-conveaux --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.
# Claude TypeScript SDK ## Quick Start ```bash npm install @anthropic-ai/sdk export ANTHROPIC_API_KEY='your-key' ``` ```typescript import Anthropic from '@anthropic-ai/sdk'; const client = new Anthropic(); const message = await client.messages.create({ model: 'claude-opus-4-5-20251101', max_tokens: 1024, messages: [{ role: 'user', content: 'Hello!' }], }); ``` ## Core Patterns ### Basic Message ```typescript const message = await client.messages.create({ model: 'claude-opus-4-5-20251101', max_tokens: 1024, messages: [{ role: 'user', content: 'Your prompt' }], }); console.log(message.content[0].type === 'text' && message.content[0].text); ``` ### Streaming ```typescript const stream = client.messages.stream({ model: 'claude-opus-4-5-20251101', max_tokens: 1024, messages: [{ role: 'user', content: 'Write a poem' }], }); stream.on('text', (text) => process.stdout.write(text)); const final = await stream.finalMessage(); ``` ### Tool Use ```typescript const tools: Anthropic.Tool[] = [{ name: 'get_weather', description: 'Get weather for a location', input_schema: { type: 'object', properties: { location: { type: 'string', description: 'City name' }, }, required: ['location'], }, }]; cons
- Quick Start
- Core Patterns
- Basic Message
- Streaming
- Tool Use
- Available Models
- Error Handling
- Resources
npm install @anthropic-ai/sdk export ANTHROPIC_API_KEY='your-key'
What does the claude-typescript-sdk skill do?
Build AI applications with the Anthropic TypeScript SDK. Use when creating Claude integrations, building agents, implementing tool use, streaming responses, or working with the @anthropic-ai/sdk package.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill claude-typescript-sdk-anveio-conveaux --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.
