AI Agent Skills

claude-api · Anthropic

Claude API Skill

让模型、SDK、流式响应、工具调用、MCP 和缓存实现保持与官方最新用法一致。

Skill 原始技术说明

技术模板保留英文,便于直接用于兼容的编程 Agent;页面说明、选型建议和检查步骤均已中文本地化。

安装方式

npx skills add anthropics/skills --skill claude-api

Agent Skills CLI

适合场景

  • Starting or updating a Claude API integration
  • Implementing streaming and tool use
  • Checking model, caching, token, and migration details

这个 Skill 能做什么

  • Routes tasks to current language-specific SDK guidance rather than relying on stale model memory.
  • Covers text generation, streaming, structured output, tools, MCP, caching, tokens, and agents.
  • Checks provider boundaries before inserting Anthropic-specific code into an existing project.

推荐工作流程

  • Inspect the request and codebase for the intended provider, language, and existing SDK surface.
  • Load only the current reference material relevant to the feature or migration.
  • Implement the smallest provider-consistent change and verify errors, streaming, and token behavior.

使用前需要检查

  • Do not let a provider-specific skill silently rewrite a provider-neutral or non-Anthropic integration.
  • Verify model availability, pricing, limits, and beta requirements against current official documentation.
  • Keep API keys server-side and test tool permissions, retries, and failure handling explicitly.

来源与维护信息

Anthropic · anthropic-skills