这是什么
Anthropic 出品的 Claude API 参考 Skill,覆盖多种语言 SDK,包括模型、工具调用、流式输出、缓存与托管 Agent。
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).
实测结果
该 Skill 尚未实测,目前只完成了下面的静态体检。 申请实测
静态体检
检查器 1.0.0,提交 ca45fc4:13 项通过、2 项警告、1 项失败、5 项提示。结果最近一次变化于 2026-10-29。
- 附带 Agent 可能执行的脚本
- 脚本会访问网络
| 检查项 | 结果 | 详情 |
|---|---|---|
frontmatter.descriptiondescription 存在且不超过 1024 个字符;少于 50 个字符给出警告。 | 失败 | description exceeds 1024 characters |
body.tokensApproxSKILL.md 正文的近似 token 数;超过 5000 给出警告。 | 警告 | large body; consider moving detail into referenced files |
body.linesSKILL.md 正文行数;超过 500 行给出警告。 | 警告 | 608 lines |
frontmatter.unknownKeys文档未定义的 frontmatter 字段(仅提示)。 | 提示 | none |
files.inventorySkill 目录中的文件数与总大小(仅提示)。 | 提示 | 96 files, 2079868 bytes |
scripts.present附带的、Agent 可能执行的脚本(仅提示)。 | 提示 | 4 个文件
|
scripts.network会访问网络的脚本(仅提示)。 | 提示 | shared/preserved-thinking-migration/drop_block_probe.py |
pinned.drift钉定版本之后上游是否改动了该 Skill(仅提示)。 | 提示 | unchanged since the pinned commit |
skillmd.presentSkill 根目录存在 SKILL.md。 | 通过 | SKILL.md found |
frontmatter.parseSKILL.md 以可解析的 YAML frontmatter 开头。 | 通过 | frontmatter parsed |
frontmatter.namename 存在,不超过 64 个字符,只含小写字母、数字和连字符。 | 通过 | valid name |
frontmatter.nameMatchesDirname 与 SKILL.md 所在目录名一致。 | 通过 | name matches its directory |
frontmatter.descriptionTriggerdescription 说明了何时使用(如 "use when…"、"当用户…")。 | 通过 | states when to use the skill |
frontmatter.descriptionVoicedescription 使用第三人称,且不含 XML 标签。 | 通过 | third person, no XML |
refs.brokenLinksSKILL.md 中的相对链接指向存在的文件。 | 通过 | all relative links resolve |
files.binary没有打包可执行文件或压缩包(.exe、.zip、.jar 等)。 | 通过 | no executables or archives |
scripts.destructive含 rm -rf、sudo、chmod 777 等破坏性命令的脚本。 | 通过 | none found |
secrets.scan没有疑似私钥或 API token 的字符串。 | 通过 | none found |
instructions.risk没有要求覆盖先前指令、外传密钥或绕过安全控制的指令。 | 通过 | none found |
license.detected在 frontmatter、Skill 目录或仓库中声明了许可证。 | 通过 | declared in frontmatter |
repo.activitySkill 路径在检查前 365 天内有更新,且仓库未归档。 | 通过 | last changed 19 days before the check |
这份报告的局限
- 结果只对应该 Skill 的一个提交版本,之后的版本可能表现不同。
- 静态体检只读取文件,不能说明 Skill 能否在任务上带来帮助。
- 发布前未征求作者意见,欢迎指正。 报告错误
常见问题
- SkillFlux 的数据如何评价 Claude API 参考?
- 截至 2026-10-29,SkillFlux 对Claude API 参考(提交 ca45fc4)的 21 项静态体检结果为 13 项通过、2 项警告、1 项失败、5 项仅作提示;该 Skill 尚未进行实测对照。
- Claude API 参考 做过实测吗?
- 还没有,目前只做了静态体检。可以在提交页通过邮件申请实测。
- Claude API 参考 使用什么许可证?
- 该 Skill 附带单独的许可证文件(skills/claude-api/LICENSE.txt),复用前请阅读原文。
如何引用
SkillFlux(2026-10-29)。《Claude API 参考 体检报告》,提交 ca45fc4,检查器 1.0.0。https://skillflux.app/skills/anthropics-skills-claude-api/
BibTeX
@misc{skillflux_anthropics_skills_claude_api_20261029,
author = {{SkillFlux}},
title = {Claude API reference health check (commit ca45fc4)},
year = {2026},
month = {10},
howpublished = {\url{https://skillflux.app/skills/anthropics-skills-claude-api/}},
note = {Methodology v1. Data: https://skillflux.app/data/skills/anthropics-skills-claude-api.json. Accessed 2026-10-29.},
}