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.
- Choose the smallest fitting pattern: simple messages, streaming, tools, batches, or files.
- Prefer official docs and SDK-native examples.
- Keep model names, error handling, and retries explicit.
- 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.
Claude API 构建器
当任务明确涉及 Anthropic 或 Claude API 集成时使用此技能。
触发信号
- - 导入 anthropic、@anthropic-ai/sdk 或 Agent SDK 包
- 关于流式传输、工具使用、提示缓存、文件上传或 Claude 批量任务的请求
- 关于为应用选择 Anthropic API 模式的疑问
工作流程
- 1. 检测项目语言和 SDK 接口。
- 选择最合适的模式:简单消息、流式传输、工具、批量或文件。
- 优先使用官方文档和 SDK 原生示例。
- 明确标注模型名称、错误处理和重试机制。
- 说明何时需要查阅实时文档以获取快速更新的 API 细节。
约束条件
- - 除非用户要求,否则不要转向非 Anthropic SDK。
- 对于模型/API 细节,优先使用主要文档而非记忆。
- 区分一次性提示和有状态代理工作流。
示例请求
- - 为此 TypeScript 应用添加 Anthropic 流式传输支持。
- 帮助我使用 Python Anthropic SDK 实现工具使用功能。
输入
- - 项目语言
- 所需的 Anthropic API 功能
- 性能或用户体验约束
输出
- - 推荐的 API 模式
- 实现指导
- SDK 特定注意事项
成功标准
- - 指导内容专门针对 Anthropic API。
- 所选模式符合用例和语言要求。
- 快速更新的 API 细节得到清晰标注。
非目标
- - 通用的 LLM 供应商中立建议
- 默认情况下不涉及非 Anthropic SDK 设计
来源出处
源自 src/skills/bundled/claudeApi.ts 和捆绑的 Claude API 参考资料。