Files
superpowers-zh/package.json
AI不止语 6cb1cd89bc feat(installer): 新增 Cline 与 Kilo Code 适配(22 款工具,#112、#88)
两款都是 VS Code 扩展,加载的是「rules」而非懒加载的 skills —— rules 会
并入每一轮 system prompt。所以照搬「把 20 个 SKILL.md 复制进规则目录」会
让每轮对话背着几万字常驻开销(Cline 官方也提示规则超约 300 行后遵守度下降)。

改用仓库既有的 Trae 模式:规则目录里只放一份小索引(核心规则 + 20 个 skill
的名称/触发条件表),skills 本体放各自的 skills/ 目录由 agent 按需读取。

Cline(#112)
- skills -> .cline/skills/,索引 -> .clinerules/superpowers-zh.md
- 不写 YAML frontmatter:Cline 目前只支持 paths 一个条件字段,
  无 frontmatter 即始终生效,正是所需
- 索引保持在 .clinerules/ 根层单文件 —— 子目录是否递归扫描官方未说明

Kilo Code(#88)
- skills -> .kilocode/skills/,索引 -> .kilocode/rules/superpowers-zh.md
- 走 .kilocode/rules/ 而非 v7 推荐的 .kilo/rules/ + kilo.jsonc:后者需要把
  路径登记进用户的 kilo.jsonc,那是带注释的 JSONC,安装器安全合并容易改坏
  用户配置。官方明确 .kilocode/rules/ 向后兼容且零配置生效,故选它。
  docs 里写了想迁到 v7 方式该改哪一行,以及万一没生效怎么反馈。

接入点(全部为新增,未改动任何既有工具的条目)
- TARGETS 加 2 条,检测标记 .clinerules / [.kilocode,.kilo,kilo.jsonc] 均唯一
- installForTarget 分发、TOOL_ALIASES(cline/kilocode/kilo/kilo-code)
- BOOTSTRAP_DELETE 加两份索引路径,--uninstall 能清干净
- --global 明确拒绝并指向 docs:Cline 全局 rules 路径随 OS 变
  (~/Documents/Cline/Rules,Linux/WSL 还有 ~/Cline/Rules 回退),
  Kilo 全局需改 kilo.jsonc,都不是通用 --global 能可靠命中的
- audit.sh TOOLS 数组加 cline kilocode,纳入 install/幂等/卸载回归
- 新增 docs/README.cline.md、docs/README.kilocode.md
- 计数 20 -> 22:简繁 README、package.json、CLAUDE.md、3 份 plugin manifest
  (RELEASE-NOTES 里的历史计数是过往版本记录,不动)

实测
- 两款均通过 装 / 二次装幂等 / 卸载无残留
- 检测隔离:.clinerules 只触发 Cline、.kilocode|.kilo|kilo.jsonc 只触发
  Kilo Code;.claude/.cursor/.trae/.qoder/.codebuddy 检测结果与改动前一致;
  .claude + .clinerules 共存时两款并行安装正常
- audit.sh: 130 pass / 0 fail(2 项 warn 为既有上游漂移,见 #19)

路径依据:docs.cline.bot/customization/cline-rules、kilo.ai/docs/customize/custom-rules

两款合并为一个提交:共用同一套「rules 型工具」机制与同一批计数改动,
拆开会产生 21 款的中间状态,audit 无法在中间提交上自洽通过。
2026-08-07 17:38:37 +08:00

87 lines
2.0 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"name": "superpowers-zh",
"version": "1.7.1",
"engines": {
"node": ">=20.0.0"
},
"description": "AI 编程超能力中文增强版 — superpowers250k+ ⭐)完整汉化 + 4 个中国原创 skills支持 Claude Code / Copilot CLI / Hermes Agent / Cursor / Claw Code / Windsurf / Kiro / Gemini CLI / Qoder 等 22 款工具",
"type": "module",
"main": ".opencode/plugins/superpowers.js",
"bin": {
"superpowers-zh": "bin/superpowers-zh.js"
},
"scripts": {
"site": "node site/build.mjs",
"site:deploy": "node site/build.mjs && wrangler pages deploy site/dist --project-name=superpowers-zh-site",
"version": "node scripts/sync-plugin-version.js && git add .claude-plugin/plugin.json .claude-plugin/marketplace.json .cursor-plugin/plugin.json .codex-plugin/plugin.json gemini-extension.json"
},
"files": [
"bin/",
"skills/",
"hooks/",
"assets/",
".claude-plugin/",
".cursor-plugin/",
".codex/INSTALL.md",
".codex-plugin/",
".opencode/INSTALL.md",
".opencode/plugins/",
".pi/extensions/",
"CLAUDE.md",
"GEMINI.md",
"RELEASE-NOTES.md",
"RELEASE-NOTES.zh.md",
"gemini-extension.json",
"docs/",
"README.md",
"LICENSE"
],
"keywords": [
"superpowers",
"claude-code",
"cursor",
"codex",
"gemini",
"kiro",
"deerflow",
"trae",
"antigravity",
"openclaw",
"windsurf",
"aider",
"opencode",
"qwen",
"vscode",
"copilot",
"hermes",
"hermes-agent",
"claw-code",
"qoder",
"codebuddy",
"codearts",
"ai-coding",
"skills",
"chinese",
"中文",
"tdd",
"debugging",
"code-review",
"pi-package"
],
"pi": {
"skills": [
"./skills"
],
"extensions": [
"./.pi/extensions/superpowers.ts"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/jnMetaCode/superpowers-zh.git"
},
"homepage": "https://github.com/jnMetaCode/superpowers-zh",
"author": "jnMetaCode",
"license": "MIT"
}