# Claude API Builder

> Use when code imports Anthropic SDKs or the user asks to build with the Claude API, Agent SDK, tool use, streaming, files, or batches.

- Skill: `wimi321/claude-api-builder` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add wimi321/claude-api-builder`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wimi321/claude-api-builder/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: wimi321 (https://skillmd.com/u/wimi321)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/wimi321/claude-api-builder

---



# Claude API Builder

Use this skill when the task is specifically about Anthropic or Claude API integration.

## Trigger Signals
- Imports like `anthropic`, `@anthropic-ai/sdk`, or Agent SDK packages
- Requests about streaming, tool use, prompt caching, file uploads, or Claude batch jobs
- Questions about choosing Anthropic API patterns for an app

## Workflow
1. Detect the project language and SDK surface.
2. Choose the smallest fitting pattern: simple messages, streaming, tools, batches, or files.
3. Prefer official docs and SDK-native examples.
4. Keep model names, error handling, and retries explicit.
5. Explain when to browse live docs for fast-moving API details.

## Guardrails
- Do not pivot to non-Anthropic SDKs unless the user asks.
- Prefer primary documentation over memory for model/API specifics.
- Separate one-shot prompts from stateful agent workflows.

## Example Requests
- Add Anthropic streaming support to this TypeScript app.
- Help me implement tool use with the Python Anthropic SDK.

## Inputs
- Project language
- Anthropic API feature needed
- Performance or UX constraints

## Outputs
- Recommended API pattern
- Implementation guidance
- SDK-specific caveats

## Success Criteria
- The guidance matches Anthropic APIs specifically.
- The selected pattern fits the use case and language.
- Fast-moving API details are called out clearly.

## Non-Goals
- General LLM vendor-neutral advice
- Non-Anthropic SDK design by default

## Source Provenance
Derived from `src/skills/bundled/claudeApi.ts` and the bundled Claude API references.

