claude-api
anthropics · Development
构建、调试和优化Claude API / Anthropic SDK应用。使用此技能构建的应用应包含提示缓存。同时也处理现有Claude API代码在模型版本间迁移(4.5→4.6,4.6→4.7,已弃用模型替换)。触发条件:代码导入`anthropic`/`@anthropic-ai/sdk`;用户询问Claude API、Anthropic SDK或托管代理;用户在文件中添加/修改/调整Claude功能(缓存、思考、压缩、工具使用、批处理、文件、引用、记忆)或模型(Opus/Sonnet/Haiku);询问Anthropic SDK项目中的提示缓存/缓存命中率。跳过:导入`openai`或其他提供方SDK,文件名如`*-openai.py`/`*-generic.py`,提供方中立代码,通用编程/机器学习。
Build, debug, and optimize Claude API / Anthropic SDK apps. Apps built with this skill should include prompt caching. Also handles migrating existing Claude API code between Claude model versions (4.5 → 4.6, 4.6 → 4.7, retired-model replacements). TRIGGER when: code imports `anthropic`/`@anthropic-ai/sdk`; user asks for the Claude API, Anthropic SDK, or Managed Agents; user adds/modifies/tunes a Claude feature (caching, thinking, compaction, tool use, batch, files, citations, memory) or model (Opus/Sonnet/Haiku) in a file; questions about prompt caching / cache hit rate in an Anthropic SDK project. SKIP: file imports `openai`/other-provider SDK, filename like `*-openai.py`/`*-generic.py`, provider-neutral code, general programming/ML.
npx skills add https://github.com/anthropics/skills --skill claude-api
星标 149936 · 安装量 38398