claude-api
面向 Claude 开发的实用工具,包含迁移与性能优化建议,适合构建生产级应用的开发者。
需要使用外部 Anthropic API 密钥并调用远程服务
帮助构建、调试与迁移基于 Claude/Anthropic SDK 的应用与提示缓存策略。
帮你用 Claude/Anthropic SDK 构建、调试和优化应用,包含提示(prompt)缓存策略的设计与调优,以及 thinking、compaction、tool use、batch、files、memory 等实践。还能把现有代码在 Claude 版本间(如 4.5→4.6→4.7)迁移并处理被淘汰的模型替换。常在项目引入 import anthropic、需要提升缓存命中率或做模型升级/调试时使用。
▸ 展开 SKILL.md 英文原文
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.
帮我安装这个 skill:https://raw.githubusercontent.com/warpdotdev/warp/master/resources/bundled/skills/claude-api/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/warpdotdev/warp/master/resources/bundled/skills/claude-api/SKILL.md"# Building LLM-Powered Applications with Claude This skill helps you build LLM-powered applications with Claude. Choose the right surface based on your needs, detect the project language, then read the relevant language-specific documentation. ## Before You Start Scan the target file (or, if no target file, the prompt and project) for non-Anthropic provider markers — `import openai`, `from openai`, `langchain_openai`, `OpenAI(`, `gpt-4`, `gpt-5`, file names like `agent-openai.py` or `*-generic.py`, or any explicit instruction to keep the code provider-neutral. If you find any, stop and tell the user that this skill produces Claude/Anthropic SDK code; ask whether they want to switch the fi