claude-api
构建 Claude 应用时的必备参考。
Claude / Anthropic API 与 SDK 的参数、用法与实践参考。
把 Claude / Anthropic 的 API、SDK、模型 id、计费和参数细节整理成可直接用的参考手册。每次提到 Claude/Anthropic、选模型、算成本、流式或工具调用时先看它,别凭记忆回答。特点是覆盖 token 计数、缓存、模型迁移与多代理用法,适合开发时直接拿来配置和排错。
▸ 展开 SKILL.md 英文原文
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hi
帮我安装这个 skill:https://raw.githubusercontent.com/anthropics/skills/main/skills/claude-api/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/anthropics/skills/main/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