· 1 分钟阅读 · 更新于 2026-05-13
Claude Code 1.2 发布:SKILL.md 自动加载机制落地
Anthropic 发布 Claude Code 1.2,核心变化是 SKILL.md 按目录自动发现与加载,无需手动 invoke。
发布要点
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 中的
name与description决定 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 现在是接口契约,要严肃对待
import test
print("hello world")