Skip to content
返回资讯
本页目录 · 4

· 1 分钟阅读 · 更新于 2026-05-07

一份关于 prompt routing 的 benchmark

对比 7 套 skill router 的命中率与延迟。

发布要点

Anthropic 在 2026 年 5 月 13 日发布 Claude Code 1.2,带来了开发者期待已久的 SKILL.md 自动加载 能力。

在 1.1 之前,要在 Claude Code 内使用第三方 skill,需要在 prompt 中显式 invoke superpowers/...。1.2 引入新的 SKILL discovery 协议:

  • 任何包含 SKILL.md 的目录都会被视为 skill 单元
  • Claude Code 启动时索引 ~/.claude/skills/** 与 project-local .claude/skills/**
  • skill 的 frontmatter 中的 namedescription 决定 routing

“We watched users typing the same skill names hundreds of times a week. The fix was structural, not UX.” — Claude Code team

与现有生态的关系

值得注意的是,Cursor 同期推出 .cursor/skills/ 目录约定,行为几乎一致。Windsurf 紧跟其后。这意味着 跨 agent 的 skill 文件可以在多家工具间复用 — 这正是 Vibe Rules 的目标。

升级注意

  • 旧的手动 invoke 仍然可用(向后兼容到 2.0)
  • 自动加载 skill 的优先级低于显式 invoke
  • 大型 skill 目录建议拆分,避免索引时间影响启动

实际影响

  • 对个人开发者:首次 claude 启动时多 0.3s 索引开销,可忽略
  • 对企业用户:SKILLS_INDEX_PATH 环境变量允许指定共享 skill 仓库
  • 对 skill 作者:SKILL.md 的 frontmatter 现在是接口契约,要严肃对待

数据来源