360 Secure SkillHub
360 安全技能中心

Claude API Builder

面向 Anthropic Claude API 与 Agent SDK 集成,帮助识别 SDK 和语言并选择消息、流式、工具调用、文件或批处理模式;强调官方文档、模型名、错误处理与重试,且不转向非 Anthropic SDK。

wimi321
wimi321
热度 47.87
最近更新 2026-05-11 17:39:12
分类:开发依赖:纯提示词应用场景:代码生成 / API 集成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add claude-code-claude-api-builder
Metadata
name
claude_api_builder
description
Use when code imports Anthropic SDKs or the user asks to build with the Claude API, Agent SDK, tool use, streaming, files, or batches.

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.

Source Provenance

Derived from src/skills/bundled/claudeApi.ts and the bundled Claude API references.