六大 runtime skill adapter matrix
这个 matrix 的目标不是给六个系统排名,而是帮助判断:一段 skill 内容应该放在 portable core,还是应该放进 runtime adapter。
| 维度 | Claude Code | Codex | OpenCode | Cursor | OpenClaw | Hermes |
|---|---|---|---|---|---|---|
| 核心定位 | 命令 + 自动触发上下文 | workflow 作者格式 + plugin 分发 | terminal agent 的 on-demand skill tool | IDE agent 的 scoped procedural workflow | gateway 能力包与安全门 | 长期 agent 程序化记忆 |
| 典型入口 | .claude/skills、plugin skills、历史 commands | .agents/skills、用户/系统 skills、plugins | .opencode/skills、兼容 .claude / .agents | .cursor/skills、.agents/skills、rules 迁移 | workspace/global skills、ClawHub、bundled skills | ~/.hermes/skills/<category>/<name>、bundled skills |
| 触发方式 | /skill-name 或模型按描述触发 | $skill、/skills 或模型隐式匹配 | agent 调用 native skill tool | slash menu、模型发现、路径 scope | slash command、模型调用、tool dispatch | session/profile/toolset 中的技能加载 |
| 上下文策略 | description 先入,正文用时加载 | 初始列表有预算,选中后加载正文 | available_skills 在 tool description,正文按需加载 | IDE context + rules + skills 组合 | eligible skills 编译进紧凑提示块 | 长期技能库按 profile/session 组织 |
| 权限边界 | settings、permission mode、hooks、MCP | sandbox、approval、plugin、app config | permission.skill allow/deny/ask | mode、tools、MCP、rules、workspace trust | metadata gating、secret scope、sandbox | enabled toolsets、profile、gateway |
| 分发边界 | Claude plugin 或本地 .claude | plugin 是分发单元,skill 是作者格式 | config directory +兼容路径 | IDE settings、team/rules、skills | ClawHub/local/git/upload + verify | bundled catalog + local user skills |
| 最容易污染 core 的内容 | Claude 工具名、slash command 参数 | agents/openai.yaml、plugin metadata | permission.skill 和 native tool 调用 | paths、rules、IDE mode | metadata.openclaw、channel 消息协议 | profile/toolset/channel/memory 语义 |
| Adapter 应回答 | 怎么调用、哪些工具、是否自动触发 | 放哪里、如何分发、依赖什么 plugin | 谁能 load、是否 ask/deny、是否禁用 skill tool | 哪些文件触发、与 rules 怎么分工 | 是否 eligible、如何安装、secret/channel 怎么处理 | 哪个 profile/toolset、如何复用长期经验 |
读法
如果一段内容只描述任务判断、步骤、输入输出和验收,它通常属于 portable core。
如果一段内容提到路径、工具名、权限、secret、sandbox、UI、slash command、IDE file scope、terminal permission、gateway channel 或 profile/toolset,它通常属于 adapter。
最危险的误解是把 SKILL.md 当成完整 runtime contract。SKILL.md 是共同外壳;真正决定 skill 能否运行的,是每个 runtime 的发现、权限、分发、上下文和消息边界。
Sources
- Agent Skills specification
- Claude Code: Extend Claude with skills
- OpenAI Codex: Agent Skills
- OpenCode: Agent Skills
- Cursor: Agent Skills
- OpenClaw: Skills
- Hermes Agent bundled skills catalog