feat(kimi): 新增 Kimi Code harness 支持(关 #37,对齐上游 v6.0.0)#59
Merged
Conversation
issue #37:Kimi Code 已支持 Skills 能力,希望原生支持。上游 obra/superpowers 在 v6.0.0 已用插件清单模型原生集成 Kimi,本提交把同样的集成方式落到本 fork。 Kimi 走插件清单模型(与 CC plugin 同类),直接指向仓库现有 skills/, 不复制 skill、不建 symlink、不装 hook、无运行时依赖,因此无需改 npx 安装器(安装器面向需要复制 skills 的工具)。 - .kimi-plugin/plugin.json:fork 品牌清单,skills 指向 ./skills/, sessionStart.skill = using-superpowers(会话开始自动加载 bootstrap), skillInstructions 提供 Kimi 工具映射(AskUserQuestion/TodoList/Agent/ Skill/Read/Write/Edit/Bash/Grep/Glob/FetchURL/WebSearch,保留上游权威 英文映射以免破坏真实工具名) - 版本同步:.version-bump.json 与 scripts/sync-plugin-version.js 双向接入 - docs/README.kimi.md:中文安装/工具映射/排错指南;README.md 工具列表加链接 - tests/kimi/:清单结构测试(适配 fork:name=superpowers-zh、校验版本同步条目) 验证:bash tests/kimi/run-tests.sh 通过;manifest 合法 JSON;版本同步双机制 均含 kimi 条目;scripts/audit.sh 静态校验 0 FAIL;README→docs/README.kimi.md 链接可解析。 注:Kimi 实际 skill 自动触发需在 Kimi Code 内验证(与本 fork 其它 harness 同样限制),清单结构已对齐上游 v6.0.0 经过验证的集成方式。
Owner
Author
|
ℹ️ 关于 CI:「全量审计」红是继承自 main 的既有问题,与本 PR 无关。
合并顺序建议:先合 #58(让 main 转绿),本 PR 与 #57 基于更新后的 main 即转绿;或三个都合入后 main 即全绿。 |
This was referenced Jun 19, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
你要解决什么问题?
issue #37:Kimi Code(国内主流编程 agent 之一)已支持 Skills 能力,但 superpowers-zh 此前没有原生集成,Kimi 用户无法像 Claude Code / Cursor 等那样开箱使用。上游 obra/superpowers 已在 v6.0.0 用插件清单模型原生支持 Kimi Code,本 fork 落后于此。
这个 PR 做了什么改变?
为 Kimi Code 新增插件清单
.kimi-plugin/plugin.json(指向现有skills/、sessionStart自动加载using-superpowers、skillInstructions提供 Kimi 工具映射),接入版本同步,并补中文安装文档与清单结构测试。这个改变适合放在核心库中吗?
适合——这是为新 harness(Kimi Code)添加支持,正是 CLAUDE.md 中明确允许进入 core 的类别("新 harness 支持")。不引入运行时依赖。
你考虑了哪些替代方案?
--tool kimi:放弃。Kimi 走插件清单模型(与 Claude Code plugin 同类),通过/plugins install <repo>直接读取仓库skills/,不需要复制 skill。fork 的安装器是面向"需要把 skills 复制进工具目录"的 harness,对 Kimi 不适用——加进去反而是错误抽象。这也与上游 v6.0.0 的集成方式一致。skillInstructions引用的是 Kimi 真实工具名(AskUserQuestion/Agent/Grep等,本就是英文),保留上游经过验证的权威英文映射可避免破坏工具名解析。这个 PR 是否包含多个不相关的改变?
否。全部围绕"新增 Kimi Code 支持"这一件事:清单 + 版本同步接入(清单要随版本号同步)+ 文档(README 链接 + 安装指南)+ 测试。彼此直接依赖。
已有的 PR
测试环境
评估
新 harness 的清单/文档/测试(非 skill 行为塑造内容),用结构测试 + 静态审计验证:
bash tests/kimi/run-tests.sh通过(校验 name=superpowers-zh、skills=./skills/、sessionStart.skill=using-superpowers、skillInstructions含全部 12 个工具映射 token、版本同步条目存在、无 Kimi 不支持的字段).kimi-plugin/plugin.json为合法 JSON.version-bump.json+scripts/sync-plugin-version.js)均含.kimi-plugin/plugin.json条目scripts/audit.sh静态校验 0 FAIL;README.md→docs/README.kimi.md链接可解析严格性
人工审核