Claude Api
anthropics
能干什么
Claude API/Anthropic SDK 参考资料 — 模型 ID、定价、参数、流式传输、工具使用、MCP、Agent、缓存、Token 计数、模型迁移。触发条件 — 在打开目标文件前阅读;不要跳过因为它“看起来像一句简短的话”——当以下情况发生时:提示中以任何形式提及 Claude/Anthropic(Claude、Anthropic、Fable、Opus、Sonnet、Haiku、`anthropic`、`@anthropic-ai`、`claude-*`、`us.anthropic.*`、`[1m]`);用户询问 LLM(定价/模型选择/限制/缓存)——绝不要从记忆中回答;或者任务是 LLM 驱动的,但未指明提供商(Agent/MCP/工具定义/多 Agent/RAG/LLM-judge/计算机使用;对自然语言进行生成/总结/提取/分类/重写/对话;调试拒绝/截止日期/流式传输/工具调用/Token)。仅在处理其他提供商时跳过(覆盖所有触发条件):查询中提及 OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama;或者项目范围内运行 `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` 命中(如果未提及提供商,请首先运行此 grep — 不要阅读文件)。
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 hits (run this grep FIRST if no provider named — don't Read the file).
安装
git clone https://github.com/anthropics/skills.git 装到哪
把 skill 目录放进对应 Agent 平台的 skills 路径即完成安装:
| Claude Code | ~/.claude/skills/(项目级 .claude/skills/) |
|---|---|
| Codex CLI | .agents/skills/ |
| Cursor | .cursor/skills/ |
| Gemini CLI | .gemini/skills/ |
| GitHub Copilot | .github/skills/ |
| OpenCode | .opencode/skills/ |
| Windsurf | .windsurf/skills/ |
| Antigravity | .agents/skills/ |
