superpowers-zh 1.7.0 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -51,7 +51,7 @@ const LEGACY_AGENT_FILENAMES = ['code-reviewer.md'];
51
51
  // global.dir 用户级 skills 目录(相对 home)
52
52
  // global.detect home 下用于自动检测该工具是否安装的标记目录
53
53
  // global.boot 可选,用户级 bootstrap 文件(相对 home);无则仅靠 skill 自动发现
54
- // 无 global 的工具(Cursor/Kiro/Trae/Aider/DeerFlow/VS Code/Hermes/Claw)规则是项目级、
54
+ // 无 global 的工具(Cursor/Kiro/Trae/Aider/DeerFlow/VS Code/Hermes/Claw/Cline/Kilo Code)规则是项目级、
55
55
  // 或存在于应用内设置,没有稳定的用户级 skills 加载路径 —— --global 会明确拒绝而非写无效路径。
56
56
  const TARGETS = [
57
57
  { name: 'Claude Code', dir: '.claude/skills', detect: '.claude', global: { dir: '.claude/skills', detect: '.claude', boot: '.claude/CLAUDE.md' } },
@@ -82,6 +82,13 @@ const TARGETS = [
82
82
  // 仅 skills-only —— 其 bootstrap/指令文件约定未证实,靠 CodeArts 自身 skill 发现;
83
83
  // 若不自动触发需在对话里手动点名 skill(docs 已说明)。
84
84
  { name: 'CodeArts', dir: '.codeartsdoer/skills', detect: '.codeartsdoer' },
85
+ // Cline / Kilo Code 是 VS Code 扩展,加载的是「rules」而非 skills,且 rules 每轮常驻
86
+ // system prompt。因此 skills 放各自的 skills/ 目录(不被自动加载),只在 rules 目录里
87
+ // 放一份小索引 —— 见 generateClineBootstrapRule / generateKiloCodeBootstrapRule。
88
+ // 均无 global:Cline 全局 rules 在 ~/Documents/Cline/Rules(随 OS 变,Linux/WSL 还有
89
+ // ~/Cline/Rules 回退),不是通用 --global 能可靠覆盖的路径;Kilo 全局需改 kilo.jsonc。
90
+ { name: 'Cline', dir: '.cline/skills', detect: '.clinerules' },
91
+ { name: 'Kilo Code', dir: '.kilocode/skills', detect: ['.kilocode', '.kilo', 'kilo.jsonc'] },
85
92
  ];
86
93
 
87
94
  function countDirs(dir) {
@@ -160,6 +167,95 @@ ${skillTable}
160
167
  console.log(` ✅ Trae: bootstrap rule -> ${rulePath}`);
161
168
  }
162
169
 
170
+ // Cline:`.clinerules/` 下所有 .md / .txt 都会被合并进 system prompt(docs.cline.bot
171
+ // /customization/cline-rules 明确),是常驻开销 —— 所以 20 个 SKILL.md 绝不能放进去,
172
+ // 只放一份小的索引 rule,skills 本体放 .cline/skills/ 由 agent 按需读。
173
+ // 不写 YAML frontmatter:Cline 目前只支持 `paths` 一个条件字段,无 frontmatter 即始终生效。
174
+ // 子目录是否递归扫描官方没写,因此索引 rule 保持在 .clinerules/ 根层、单文件。
175
+ function generateClineBootstrapRule(projectDir) {
176
+ const rulesDir = resolve(projectDir, '.clinerules');
177
+ mkdirSync(rulesDir, { recursive: true });
178
+
179
+ const skillEntries = scanSkillEntries(SKILLS_SRC);
180
+ const skillTable = skillEntries.map(s => `| ${s.name} | ${s.desc} |`).join('\n');
181
+
182
+ const rule = `# Superpowers-ZH 中文增强版
183
+
184
+ 你已加载 superpowers-zh 技能框架(${skillEntries.length} 个 skills)。
185
+
186
+ ## 核心规则
187
+
188
+ 1. **收到任务时,先检查是否有匹配的 skill** — 哪怕只有 1% 的可能性也要检查
189
+ 2. **设计先于编码** — 收到功能需求时,先用 brainstorming skill 做需求分析
190
+ 3. **测试先于实现** — 写代码前先写测试(TDD)
191
+ 4. **验证先于完成** — 声称完成前必须运行验证命令
192
+
193
+ ## 可用 Skills
194
+
195
+ Skills 位于 \`.cline/skills/\` 目录,每个 skill 有独立的 \`SKILL.md\` 文件。
196
+
197
+ | Skill | 触发条件 |
198
+ |-------|---------|
199
+ ${skillTable}
200
+
201
+ ## 如何使用
202
+
203
+ 当任务匹配某个 skill 的触发条件时,用读文件工具打开对应的
204
+ \`.cline/skills/<skill-name>/SKILL.md\`,并严格遵循其流程。
205
+
206
+ **不要**把 skill 正文复制到本文件 —— \`.clinerules/\` 里的内容每轮都进 prompt,
207
+ 按需读取才能把常驻开销控制在这张索引表。
208
+ `;
209
+
210
+ const rulePath = resolve(rulesDir, 'superpowers-zh.md');
211
+ writeFileSync(rulePath, rule, 'utf8');
212
+ console.log(` ✅ Cline: bootstrap rule -> ${rulePath}`);
213
+ }
214
+
215
+ // Kilo Code:v7 起官方推荐 .kilo/rules/ + 在 kilo.jsonc 的 instructions 数组里显式登记,
216
+ // 但那要改用户的 kilo.jsonc(JSONC 带注释,安全合并困难,且属于侵入用户配置)。
217
+ // 官方同时明确 `.kilocode/rules/` 向后兼容且无需配置即生效,故走这条:零配置改动。
218
+ // 与 Cline 同理 —— rules 是常驻开销,只放索引,skills 本体放 .kilocode/skills/。
219
+ function generateKiloCodeBootstrapRule(projectDir) {
220
+ const rulesDir = resolve(projectDir, '.kilocode', 'rules');
221
+ mkdirSync(rulesDir, { recursive: true });
222
+
223
+ const skillEntries = scanSkillEntries(SKILLS_SRC);
224
+ const skillTable = skillEntries.map(s => `| ${s.name} | ${s.desc} |`).join('\n');
225
+
226
+ const rule = `# Superpowers-ZH 中文增强版
227
+
228
+ 你已加载 superpowers-zh 技能框架(${skillEntries.length} 个 skills)。
229
+
230
+ ## 核心规则
231
+
232
+ 1. **收到任务时,先检查是否有匹配的 skill** — 哪怕只有 1% 的可能性也要检查
233
+ 2. **设计先于编码** — 收到功能需求时,先用 brainstorming skill 做需求分析
234
+ 3. **测试先于实现** — 写代码前先写测试(TDD)
235
+ 4. **验证先于完成** — 声称完成前必须运行验证命令
236
+
237
+ ## 可用 Skills
238
+
239
+ Skills 位于 \`.kilocode/skills/\` 目录,每个 skill 有独立的 \`SKILL.md\` 文件。
240
+
241
+ | Skill | 触发条件 |
242
+ |-------|---------|
243
+ ${skillTable}
244
+
245
+ ## 如何使用
246
+
247
+ 当任务匹配某个 skill 的触发条件时,用读文件工具打开对应的
248
+ \`.kilocode/skills/<skill-name>/SKILL.md\`,并严格遵循其流程。
249
+
250
+ **不要**把 skill 正文复制到本文件 —— rules 每轮都进 prompt,按需读取才能把
251
+ 常驻开销控制在这张索引表。
252
+ `;
253
+
254
+ const rulePath = resolve(rulesDir, 'superpowers-zh.md');
255
+ writeFileSync(rulePath, rule, 'utf8');
256
+ console.log(` ✅ Kilo Code: bootstrap rule -> ${rulePath}`);
257
+ }
258
+
163
259
  function generateQoderBootstrap(baseDir, isGlobal) {
164
260
  const rulesDir = resolve(baseDir, '.qoder', 'rules');
165
261
  mkdirSync(rulesDir, { recursive: true });
@@ -474,6 +570,43 @@ ${skillList}
474
570
  }
475
571
  }
476
572
 
573
+ // CLI 工具的可执行文件名 —— 用于检测落空时扫 PATH 给出针对性建议(issue #48)。
574
+ // 只列 CLI:IDE(Cursor/Trae/Qoder 等)装在应用目录里,PATH 上探不到。
575
+ const CLI_PROBES = {
576
+ 'Claude Code': ['claude', 'copilot'],
577
+ 'Codex CLI': ['codex'],
578
+ 'Gemini CLI': ['gemini'],
579
+ 'OpenCode': ['opencode'],
580
+ 'Aider': ['aider'],
581
+ 'Qwen Code': ['qwen'],
582
+ 'OpenClaw': ['openclaw'],
583
+ 'Claw Code': ['claw'],
584
+ 'Hermes Agent': ['hermes'],
585
+ };
586
+
587
+ // 在 PATH 里找可执行文件。只查文件是否存在,不 spawn 进程 ——
588
+ // 绝不在用户机器上执行探测命令(既慢又有副作用风险)。
589
+ function isOnPath(bin) {
590
+ const sep = process.platform === 'win32' ? ';' : ':';
591
+ const dirs = (process.env.PATH || '').split(sep).filter(Boolean);
592
+ const exts = process.platform === 'win32'
593
+ ? ['', ...(process.env.PATHEXT || '.COM;.EXE;.BAT;.CMD').split(';').filter(Boolean)]
594
+ : [''];
595
+ for (const dir of dirs) {
596
+ for (const ext of exts) {
597
+ try { if (existsSync(join(dir, bin + ext))) return true; } catch {}
598
+ }
599
+ }
600
+ return false;
601
+ }
602
+
603
+ // 反查 TARGETS.name -> 最短别名,用于给用户拼出可直接复制的 --tool 命令
604
+ function shortestAlias(toolName) {
605
+ return Object.keys(TOOL_ALIASES)
606
+ .filter(a => TOOL_ALIASES[a] === toolName)
607
+ .sort((a, b) => a.length - b.length)[0];
608
+ }
609
+
477
610
  // 工具名称别名映射(用户输入 -> TARGETS.name)
478
611
  const TOOL_ALIASES = {
479
612
  'claude': 'Claude Code',
@@ -511,6 +644,10 @@ const TOOL_ALIASES = {
511
644
  'codeartsdoer': 'CodeArts',
512
645
  'codearts-doer': 'CodeArts',
513
646
  'huawei': 'CodeArts',
647
+ 'cline': 'Cline',
648
+ 'kilocode': 'Kilo Code',
649
+ 'kilo': 'Kilo Code',
650
+ 'kilo-code': 'Kilo Code',
514
651
  };
515
652
 
516
653
  function showHelp() {
@@ -560,7 +697,7 @@ function installForTarget(target, baseDir, isGlobal) {
560
697
  `\n 这通常是 npx 缓存目录权限或路径问题。请尝试:\n` +
561
698
  ` 1. 清理缓存后重试: npm cache clean --force && npx superpowers-zh\n` +
562
699
  ` 2. 或全局安装: npm i -g superpowers-zh && superpowers-zh\n` +
563
- ` 3. 或手动克隆复制: 见 https://github.com/jnMetaCode/superpowers-zh#方式二手动安装`
700
+ ` 3. 或手动克隆复制: 见 https://github.com/jnMetaCode/superpowers-zh#快速开始`
564
701
  );
565
702
  }
566
703
  const scopeTag = isGlobal ? '[全局]' : '[项目]';
@@ -597,6 +734,14 @@ function installForTarget(target, baseDir, isGlobal) {
597
734
  if (target.name === 'CodeBuddy') {
598
735
  generateCodeBuddyBootstrap(baseDir);
599
736
  }
737
+
738
+ if (target.name === 'Cline') {
739
+ generateClineBootstrapRule(baseDir);
740
+ }
741
+
742
+ if (target.name === 'Kilo Code') {
743
+ generateKiloCodeBootstrapRule(baseDir);
744
+ }
600
745
  }
601
746
 
602
747
  function isHomeDir(p) {
@@ -612,6 +757,8 @@ const BOOTSTRAP_DELETE = [
612
757
  '.trae/rules/superpowers-zh.md',
613
758
  '.qoder/rules/superpowers-zh.md',
614
759
  '.agents/rules.md',
760
+ '.clinerules/superpowers-zh.md',
761
+ '.kilocode/rules/superpowers-zh.md',
615
762
  ];
616
763
  const BOOTSTRAP_CLEAN_SECTION = [
617
764
  'CLAUDE.md',
@@ -845,7 +992,7 @@ function install(forceToolName, force, isGlobal) {
845
992
  if (isGlobal && !target.global) {
846
993
  // 部分工具(如 Gemini CLI 的扩展目录)有专属全局方式,但与通用 --global 复制机制不同,
847
994
  // 指向对应 docs;其余工具规则为项目级或存于应用内设置,无稳定用户级路径。
848
- const docSlug = { 'Gemini CLI': 'gemini-cli', 'Antigravity': 'antigravity', 'Trae': 'trae', 'Aider': 'aider', 'Hermes Agent': 'hermes', 'Kiro': 'kiro' }[target.name];
995
+ const docSlug = { 'Gemini CLI': 'gemini-cli', 'Antigravity': 'antigravity', 'Trae': 'trae', 'Aider': 'aider', 'Hermes Agent': 'hermes', 'Kiro': 'kiro', 'Cline': 'cline', 'Kilo Code': 'kilocode' }[target.name];
849
996
  console.error(
850
997
  ` ❌ ${target.name} 不支持通用全局安装(--global)。
851
998
 
@@ -883,16 +1030,39 @@ function install(forceToolName, force, isGlobal) {
883
1030
  const where = isGlobal ? '你的用户主目录(~)' : '当前目录';
884
1031
  const flag = isGlobal ? '--global ' : '';
885
1032
  console.log(` ⚠️ 未在${where}检测到任何已知 AI 编程工具的标记。\n`);
886
- console.log(' 为避免装错工具,未做任何安装。请用 --tool 显式指定你的工具,例如:\n');
887
- console.log(` npx superpowers-zh ${flag}--tool claude # Claude Code / Copilot CLI`);
1033
+
1034
+ // issue #48:用户明明装了 opencode / codex,但项目里没留下标记目录(没跑过、
1035
+ // 或配置在别处),只报「未检测到」很让人懵。扫 PATH 找已装的 CLI,直接给出
1036
+ // 可复制的命令。注意:只提示,绝不自动安装 —— 自动装错工具正是 issue #33。
1037
+ const onPath = Object.entries(CLI_PROBES)
1038
+ .filter(([toolName]) => !isGlobal || pool.some(t => t.name === toolName))
1039
+ .filter(([, bins]) => bins.some(isOnPath));
1040
+
1041
+ if (onPath.length) {
1042
+ // 探到了具体工具就不再列通用示例 —— 直接给可复制的命令,别让用户在一堆
1043
+ // 无关工具名里自己挑。
1044
+ console.log(' 不过在 PATH 里找到了这些已安装的 CLI,你要装的应该是其中之一:\n');
1045
+ for (const [toolName] of onPath) {
1046
+ console.log(` npx superpowers-zh ${flag}--tool ${shortestAlias(toolName).padEnd(13)}# ${toolName}`);
1047
+ }
1048
+ console.log('\n 为避免装错,未自动安装 —— PATH 上装了不代表这个项目要用它。');
1049
+ console.log(' 用上面任一条命令显式指定即可。\n');
1050
+ } else {
1051
+ console.log(' 为避免装错工具,未做任何安装。请用 --tool 显式指定你的工具,例如:\n');
1052
+ console.log(` npx superpowers-zh ${flag}--tool claude # Claude Code / Copilot CLI`);
1053
+ if (isGlobal) {
1054
+ console.log(` npx superpowers-zh ${flag}--tool codex # Codex CLI`);
1055
+ console.log(` npx superpowers-zh ${flag}--tool qoder # Qoder\n`);
1056
+ } else {
1057
+ console.log(` npx superpowers-zh ${flag}--tool antigravity # Google Antigravity`);
1058
+ console.log(` npx superpowers-zh ${flag}--tool trae # Trae`);
1059
+ console.log(` npx superpowers-zh ${flag}--tool cursor # Cursor\n`);
1060
+ }
1061
+ }
1062
+
888
1063
  if (isGlobal) {
889
- console.log(` npx superpowers-zh ${flag}--tool codex # Codex CLI`);
890
- console.log(` npx superpowers-zh ${flag}--tool qoder # Qoder\n`);
891
1064
  console.log(` 支持全局安装的工具:${GLOBAL_TARGETS.map(t => t.name).join('、')}\n`);
892
1065
  } else {
893
- console.log(` npx superpowers-zh ${flag}--tool antigravity # Google Antigravity`);
894
- console.log(` npx superpowers-zh ${flag}--tool trae # Trae`);
895
- console.log(` npx superpowers-zh ${flag}--tool cursor # Cursor\n`);
896
1066
  console.log(` 全部可用别名:${Object.keys(TOOL_ALIASES).join(', ')}\n`);
897
1067
  }
898
1068
  process.exit(1);
@@ -0,0 +1,78 @@
1
+ # Superpowers 中文版 — Cline 安装指南
2
+
3
+ 在 [Cline](https://cline.bot)(VS Code AI 编程扩展)中使用 superpowers-zh 的完整指南。
4
+
5
+ ## 快速安装
6
+
7
+ ```bash
8
+ cd /your/project
9
+ npx superpowers-zh --tool cline
10
+ ```
11
+
12
+ 自动检测:安装脚本发现项目里有 `.clinerules/` 目录时也会自动装 Cline。**如果你还没建过 rules,就用上面的 `--tool cline` 显式指定。**
13
+
14
+ 装完会得到两样东西:
15
+
16
+ ```
17
+ .cline/skills/ # 20 个 skill 本体,按需读取
18
+ .clinerules/
19
+ └── superpowers-zh.md # 一份小索引,常驻 system prompt
20
+ ```
21
+
22
+ ## 工作原理(和其他工具不一样,值得读一下)
23
+
24
+ Cline 没有「skills」概念,它加载的是 **Rules**:`.clinerules/` 目录下所有 `.md` / `.txt` 会被**合并进每一轮的 system prompt**。
25
+
26
+ 这跟 skills 的懒加载完全不同 —— 所以**绝不能把 20 个 SKILL.md 直接放进 `.clinerules/`**,那会让每轮对话都背着几万字的常驻开销,Cline 官方也提示规则超过约 300 行后遵守度会下降。
27
+
28
+ superpowers-zh 的做法:
29
+
30
+ | 放哪 | 内容 | 何时进 prompt |
31
+ |------|------|--------------|
32
+ | `.clinerules/superpowers-zh.md` | 核心规则 + 20 个 skill 的名称/触发条件索引表 | 每轮常驻(很小) |
33
+ | `.cline/skills/<name>/SKILL.md` | skill 完整流程正文 | 仅当任务匹配、Cline 主动读取时 |
34
+
35
+ 索引 rule 里明确告诉 Cline:匹配到触发条件就去读对应的 `SKILL.md`,**不要**把正文抄进 rules。
36
+
37
+ ### 为什么不写 YAML frontmatter
38
+
39
+ Cline 目前只支持 `paths`(glob 数组)一个条件字段。不写 frontmatter 就是「始终生效」,正是我们要的效果,所以索引 rule 是纯 Markdown。
40
+
41
+ ## 手动安装
42
+
43
+ ```bash
44
+ git clone https://github.com/jnMetaCode/superpowers-zh.git
45
+ mkdir -p /your/project/.cline/skills /your/project/.clinerules
46
+ cp -r superpowers-zh/skills/* /your/project/.cline/skills/
47
+ ```
48
+
49
+ 然后在 `.clinerules/superpowers-zh.md` 里手写一份索引(内容参考 `npx` 装出来的那份)。**推荐直接用 `npx`** —— 索引表是根据 skills 的 frontmatter 自动生成的,手写容易漏。
50
+
51
+ ## 关于全局安装
52
+
53
+ `--global` 对 Cline **不支持**。Cline 的全局 rules 目录随操作系统变化:
54
+
55
+ - macOS / Linux:`~/Documents/Cline/Rules`
56
+ - Windows:`Documents\Cline\Rules`
57
+ - Linux / WSL 有时是 `~/Cline/Rules`
58
+
59
+ 没有一条稳定路径能让通用 `--global` 可靠命中,写错等于「装了不生效」,所以宁可不做。请用项目级安装。想全局用的话,把 `npx` 生成的那份 `superpowers-zh.md` 手动拷进你系统上实际的 Cline 全局 rules 目录即可。
60
+
61
+ ## 使用
62
+
63
+ 装好后新开一个 Cline 会话(rules 在会话开始时加载)。然后正常提需求即可:
64
+
65
+ - 「给用户模块加个批量导出功能」→ 应当先触发 brainstorming 做需求澄清,而不是直接写代码
66
+ - 也可以手动点名:「用 test-driven-development skill 做这个」
67
+
68
+ ## 更新 / 卸载
69
+
70
+ ```bash
71
+ npx superpowers-zh --tool cline # 更新(覆盖式,幂等)
72
+ npx superpowers-zh --uninstall # 卸载,同时清掉 .clinerules/superpowers-zh.md
73
+ ```
74
+
75
+ ## 获取帮助
76
+
77
+ - 提交 Issue:https://github.com/jnMetaCode/superpowers-zh/issues
78
+ - Cline Rules 文档:https://docs.cline.bot/customization/cline-rules
@@ -0,0 +1,86 @@
1
+ # Superpowers 中文版 — Kilo Code 安装指南
2
+
3
+ 在 [Kilo Code](https://kilo.ai)(VS Code AI 编程扩展 / CLI)中使用 superpowers-zh 的完整指南。
4
+
5
+ ## 快速安装
6
+
7
+ ```bash
8
+ cd /your/project
9
+ npx superpowers-zh --tool kilocode
10
+ ```
11
+
12
+ 自动检测:项目里存在 `.kilocode/`、`.kilo/` 或 `kilo.jsonc` 任一时会自动装 Kilo Code。
13
+
14
+ 装完会得到:
15
+
16
+ ```
17
+ .kilocode/skills/ # 20 个 skill 本体,按需读取
18
+ .kilocode/rules/
19
+ └── superpowers-zh.md # 一份小索引,自动生效
20
+ ```
21
+
22
+ ## 工作原理
23
+
24
+ Kilo Code 加载的是 **Rules**(规则会并入 system prompt),不是懒加载的 skills。所以和 Cline 同理:**不能把 20 个 SKILL.md 直接塞进 rules 目录**,否则每轮对话都背着巨大的常驻开销。
25
+
26
+ superpowers-zh 的做法:
27
+
28
+ | 放哪 | 内容 | 何时进 prompt |
29
+ |------|------|--------------|
30
+ | `.kilocode/rules/superpowers-zh.md` | 核心规则 + 20 个 skill 的索引表 | 常驻(很小) |
31
+ | `.kilocode/skills/<name>/SKILL.md` | skill 完整流程正文 | 仅当任务匹配、Kilo 主动读取时 |
32
+
33
+ ## 为什么用 `.kilocode/rules/` 而不是新版的 `kilo.jsonc`
34
+
35
+ Kilo Code 从 Roo 衍生的 v5 迁到了基于 OpenCode 的 v7,配置方式变了:
36
+
37
+ | | 旧(v5 及兼容路径) | 新(v7 推荐) |
38
+ |---|---|---|
39
+ | 规则目录 | `.kilocode/rules/` | `.kilo/rules/` |
40
+ | 是否需要登记 | **不需要,自动生效** | **需要**,要把路径写进 `kilo.jsonc` 的 `instructions` 数组 |
41
+
42
+ 我们选 `.kilocode/rules/`,原因是**不改你的 `kilo.jsonc`**:
43
+
44
+ 1. 官方明确 `.kilocode/rules/` 向后兼容,无需任何配置即生效;
45
+ 2. `kilo.jsonc` 是带注释的 JSONC,安装脚本要安全合并它很容易把你的配置改坏;
46
+ 3. 那是你的配置文件,装个 skills 框架不该动它。
47
+
48
+ ### 如果你想迁到 v7 的方式
49
+
50
+ 手动加一行即可(把现有规则文件挪到 `.kilo/rules/` 并登记):
51
+
52
+ ```jsonc
53
+ {
54
+ "instructions": [".kilo/rules/superpowers-zh.md"]
55
+ }
56
+ ```
57
+
58
+ 改完 `kilo.jsonc` 后**新开一个会话**才会生效。
59
+
60
+ > ⚠️ 需要说明的是:`.kilocode/rules/` 的兼容性来自官方文档中「现有规则会继续工作」的表述。若你在 v7 上装完发现索引 rule 没被加载,按上面的方式迁到 `.kilo/rules/` + `kilo.jsonc`,并欢迎来 issue 里反馈,我们会据此调整默认路径。
61
+
62
+ ## 手动安装
63
+
64
+ ```bash
65
+ git clone https://github.com/jnMetaCode/superpowers-zh.git
66
+ mkdir -p /your/project/.kilocode/skills /your/project/.kilocode/rules
67
+ cp -r superpowers-zh/skills/* /your/project/.kilocode/skills/
68
+ ```
69
+
70
+ 索引 rule 建议交给 `npx` 生成 —— 它是按 skills 的 frontmatter 自动拼的,手写容易漏。
71
+
72
+ ## 关于全局安装
73
+
74
+ `--global` 对 Kilo Code **不支持**:它的全局规则同样要走 `kilo.jsonc` 登记,没有「复制到某个用户级目录就生效」的通用路径。请用项目级安装。
75
+
76
+ ## 更新 / 卸载
77
+
78
+ ```bash
79
+ npx superpowers-zh --tool kilocode # 更新(覆盖式,幂等)
80
+ npx superpowers-zh --uninstall # 卸载,同时清掉 .kilocode/rules/superpowers-zh.md
81
+ ```
82
+
83
+ ## 获取帮助
84
+
85
+ - 提交 Issue:https://github.com/jnMetaCode/superpowers-zh/issues
86
+ - Kilo Code 自定义规则文档:https://kilo.ai/docs/customize/custom-rules
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superpowers-zh",
3
3
  "description": "AI 编程超能力中文版 — TDD、调试、代码审查等经过实战验证的工作方法论",
4
- "version": "1.7.0",
4
+ "version": "1.7.2",
5
5
  "contextFileName": "GEMINI.md"
6
6
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "superpowers-zh",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "engines": {
5
5
  "node": ">=20.0.0"
6
6
  },
7
- "description": "AI 编程超能力中文增强版 — superpowers(250k+ ⭐)完整汉化 + 4 个中国原创 skills,支持 Claude Code / Copilot CLI / Hermes Agent / Cursor / Claw Code / Windsurf / Kiro / Gemini CLI / Qoder 等 20 款工具",
7
+ "description": "AI 编程超能力中文增强版 — superpowers(250k+ ⭐)完整汉化 + 4 个中国原创 skills,支持 Claude Code / Copilot CLI / Hermes Agent / Cursor / Claw Code / Windsurf / Kiro / Gemini CLI / Qoder 等 22 款工具",
8
8
  "type": "module",
9
9
  "main": ".opencode/plugins/superpowers.js",
10
10
  "bin": {