360 Secure SkillHub
360 安全技能中心

Claude API Builder

核心功能:针对Anthropic/Claude API集成需求,根据项目语言选适配模式,提供官方SDK示例,明确模型、错误处理逻辑,指导文档查询。典型场景:用户导入Anthropic SDK、开发流/工具调用/文件上传/批量任务,或咨询API选型。输入为需求或代码片段,输出适配的代码示例与开发指引。

wimi321
wimi321
热度 47.83
最近更新 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.