superpowers-zh 1.7.1 → 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.
- package/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +2 -2
- package/.codex-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +2 -2
- package/CLAUDE.md +1 -1
- package/README.md +71 -20
- package/README.zh-Hant.md +69 -18
- package/RELEASE-NOTES.zh.md +43 -0
- package/assets/sponsors/cubence.jpg +0 -0
- package/bin/superpowers-zh.js +180 -10
- package/docs/README.cline.md +78 -0
- package/docs/README.kilocode.md +86 -0
- package/gemini-extension.json +1 -1
- package/package.json +2 -2
- package/skills/using-superpowers/references/copilot-tools.md +32 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "superpowers-zh",
|
|
3
|
-
"description": "AI 编程超能力中文增强版:20 个 skills,支持 Claude Code / Hermes Agent / Cursor / Claw Code / Qoder 等
|
|
3
|
+
"description": "AI 编程超能力中文增强版:20 个 skills,支持 Claude Code / Hermes Agent / Cursor / Claw Code / Qoder 等 22 款工具",
|
|
4
4
|
"owner": {
|
|
5
5
|
"name": "jnMetaCode",
|
|
6
6
|
"url": "https://github.com/jnMetaCode"
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"plugins": [
|
|
9
9
|
{
|
|
10
10
|
"name": "superpowers-zh",
|
|
11
|
-
"description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 4 中国原创 + 2 上游历史保留),支持 Claude Code / Hermes Agent / Cursor / Claw Code / Qoder 等
|
|
12
|
-
"version": "1.7.
|
|
11
|
+
"description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 4 中国原创 + 2 上游历史保留),支持 Claude Code / Hermes Agent / Cursor / Claw Code / Qoder 等 22 款工具",
|
|
12
|
+
"version": "1.7.2",
|
|
13
13
|
"source": "./",
|
|
14
14
|
"author": {
|
|
15
15
|
"name": "jnMetaCode",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "superpowers-zh",
|
|
3
|
-
"description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 4 中国原创 + 2 上游历史保留),支持 Claude Code / Hermes Agent / Cursor / Claw Code / Qoder 等
|
|
4
|
-
"version": "1.7.
|
|
3
|
+
"description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 4 中国原创 + 2 上游历史保留),支持 Claude Code / Hermes Agent / Cursor / Claw Code / Qoder 等 22 款工具",
|
|
4
|
+
"version": "1.7.2",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "jnMetaCode",
|
|
7
7
|
"url": "https://github.com/jnMetaCode"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "superpowers-zh",
|
|
3
3
|
"displayName": "Superpowers 中文版",
|
|
4
|
-
"description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 4 中国原创 + 2 上游历史保留),支持 Cursor / Claude Code / Hermes Agent / Claw Code / Qoder 等
|
|
5
|
-
"version": "1.7.
|
|
4
|
+
"description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 4 中国原创 + 2 上游历史保留),支持 Cursor / Claude Code / Hermes Agent / Claw Code / Qoder 等 22 款工具",
|
|
5
|
+
"version": "1.7.2",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "jnMetaCode",
|
|
8
8
|
"url": "https://github.com/jnMetaCode"
|
package/CLAUDE.md
CHANGED
|
@@ -109,7 +109,7 @@ Skill 不是普通文档 —— 它是塑造 agent 行为的代码。如果你
|
|
|
109
109
|
|
|
110
110
|
## 关于本中文 fork(superpowers-zh)
|
|
111
111
|
|
|
112
|
-
本仓库 `jnMetaCode/superpowers-zh` 是上游 `obra/superpowers` 的**中文增强 fork**,定位为:完整翻译上游 skill + 叠加 4 个中国原创 skill(chinese-code-review / chinese-commit-conventions / chinese-documentation / chinese-git-workflow)+ 多工具适配(npx 一条命令支持
|
|
112
|
+
本仓库 `jnMetaCode/superpowers-zh` 是上游 `obra/superpowers` 的**中文增强 fork**,定位为:完整翻译上游 skill + 叠加 4 个中国原创 skill(chinese-code-review / chinese-commit-conventions / chinese-documentation / chinese-git-workflow)+ 多工具适配(npx 一条命令支持 22 款 IDE/CLI)。
|
|
113
113
|
|
|
114
114
|
**上述规则适用于向 `obra/superpowers` 上游提 PR 时的行为约束。** 向中文 fork 提 PR 时按本仓库自己的 PR 模板与流程执行,但其中的核心原则**同样适用**:
|
|
115
115
|
|
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
🌐 **简体中文** | [繁體中文](README.zh-Hant.md) | [English (upstream)](https://github.com/obra/superpowers)
|
|
4
4
|
|
|
5
|
-
> 🦸 **superpowers(250k+ ⭐)完整汉化 + 4 个中国原创 skills** — 让 Claude Code / Copilot CLI / Hermes Agent / Cursor / Windsurf / Kiro / Gemini CLI / Qoder 等 **
|
|
5
|
+
> 🦸 **superpowers(250k+ ⭐)完整汉化 + 4 个中国原创 skills** — 让 Claude Code / Copilot CLI / Hermes Agent / Cursor / Windsurf / Kiro / Gemini CLI / Qoder 等 **22 款 AI 编程工具**真正会干活。从头脑风暴到代码审查,从 TDD 到调试,每个 skill 都是经过实战验证的工作方法论。
|
|
6
6
|
|
|
7
|
-
Chinese community edition of [superpowers](https://github.com/obra/superpowers) — 20 skills across
|
|
7
|
+
Chinese community edition of [superpowers](https://github.com/obra/superpowers) — 20 skills across 22 AI coding tools, including full translations and China-specific development skills.
|
|
8
8
|
|
|
9
9
|
[](https://sp.aiolaola.com)
|
|
10
10
|
[](https://github.com/jnMetaCode/superpowers-zh)
|
|
@@ -12,18 +12,20 @@ Chinese community edition of [superpowers](https://github.com/obra/superpowers)
|
|
|
12
12
|
[](https://opensource.org/licenses/MIT)
|
|
13
13
|
[](https://makeapullrequest.com)
|
|
14
14
|
|
|
15
|
-
> 📖 **免费配套学习** → [从零学会 AI 编程](https://aiolaola.com/?utm_source=github&utm_campaign=superpowers)
|
|
15
|
+
> 📖 **免费配套学习** → [从零学会 AI 编程](https://aiolaola.com/?utm_source=github&utm_campaign=superpowers)(180 节)+ [从零构建 AI 智能体](https://aiolaola.com/course/ai-agent?utm_source=github&utm_campaign=superpowers)(40 节):两门免费实操课 + 实战社区,superpowers 装好后配上方法论效率翻倍
|
|
16
|
+
>
|
|
17
|
+
> 🌍 Also available in [English](https://aiolaola.com/en?utm_source=github&utm_campaign=superpowers) · [日本語](https://aiolaola.com/ja?utm_source=github&utm_campaign=superpowers) · [Español](https://aiolaola.com/es?utm_source=github&utm_campaign=superpowers) · [한국어](https://aiolaola.com/ko?utm_source=github&utm_campaign=superpowers) · [繁體中文](https://aiolaola.com/zh-Hant?utm_source=github&utm_campaign=superpowers)
|
|
16
18
|
|
|
17
|
-
> 🆕 **v1.7.
|
|
18
|
-
> -
|
|
19
|
-
> -
|
|
20
|
-
> -
|
|
19
|
+
> 🆕 **v1.7.2 更新亮点**([完整 Release Notes →](RELEASE-NOTES.zh.md))
|
|
20
|
+
> - 🧩 新增 **Cline** 与 **Kilo Code** 两款 VS Code 扩展(工具数 20 → 22)—— 按 rules 常驻开销做了专门设计,索引仅 4.5 KB
|
|
21
|
+
> - 🔧 检测落空时会扫 PATH 给出**可直接复制的 `--tool` 命令**,不再只报「未检测到」
|
|
22
|
+
> - 📦 README 补上 **Plugin Marketplace 安装方式**(`claude plugin marketplace add`,升级只需一条命令)
|
|
21
23
|
|
|
22
24
|
### 📊 项目规模
|
|
23
25
|
|
|
24
26
|
| 📦 翻译 Skills | 🇨🇳 中国特色 Skills | 🤖 支持工具 |
|
|
25
27
|
|:---:|:---:|:---:|
|
|
26
|
-
| **14** | **6** | **Claude Code / Copilot CLI / Hermes Agent / Cursor / Windsurf / Kiro / Gemini CLI / Codex / Aider / Trae / VS Code (Copilot) / DeerFlow / OpenCode / OpenClaw / Qwen Code / Antigravity / Claw Code / Qoder / CodeBuddy(腾讯)/ CodeArts
|
|
28
|
+
| **14** | **6** | **Claude Code / Copilot CLI / Hermes Agent / Cursor / Windsurf / Kiro / Gemini CLI / Codex / Aider / Trae / VS Code (Copilot) / DeerFlow / OpenCode / OpenClaw / Qwen Code / Antigravity / Claw Code / Qoder / CodeBuddy(腾讯)/ CodeArts(华为云码道)/ Cline / Kilo Code** |
|
|
27
29
|
|
|
28
30
|
---
|
|
29
31
|
|
|
@@ -31,11 +33,30 @@ Chinese community edition of [superpowers](https://github.com/obra/superpowers)
|
|
|
31
33
|
|
|
32
34
|
<table>
|
|
33
35
|
<tr>
|
|
34
|
-
<td width="
|
|
35
|
-
<a href="https://passport.compshare.cn/register?referral_code=ETD3L5JBM13CtKARkMORot&ytag=
|
|
36
|
+
<td width="25%">
|
|
37
|
+
<a href="https://passport.compshare.cn/register?referral_code=ETD3L5JBM13CtKARkMORot&ytag=GPU_YY_YX_git_superpowers-zh">
|
|
38
|
+
<img src="assets/sponsors/compshare.jpg" alt="优云智算 by UCloud — 热门国产模型按次调用套餐包,低至 49 元/月起" width="100%">
|
|
39
|
+
</a>
|
|
36
40
|
</td>
|
|
37
|
-
<td>
|
|
38
|
-
|
|
41
|
+
<td width="75%" valign="middle">
|
|
42
|
+
|
|
43
|
+
感谢 [优云智算](https://passport.compshare.cn/register?referral_code=ETD3L5JBM13CtKARkMORot&ytag=GPU_YY_YX_git_superpowers-zh) 赞助本项目!优云智算是 UCloud 旗下 AI 云平台,主打包月、按次的高性价比国模 Agent Plan 套餐,支持 GLM-5.2,低至 **49 元/月**起。同时提供官转稳定海外模型。支持接入 Claude Code、Codex 及 API 调用。支持企业高并发、7×24 技术支持、自助开票。🎁 **通过[此链接](https://passport.compshare.cn/register?referral_code=ETD3L5JBM13CtKARkMORot&ytag=GPU_YY_YX_git_superpowers-zh)注册的用户,可得免费 5 元平台体验金!**
|
|
44
|
+
|
|
45
|
+
</td>
|
|
46
|
+
</tr>
|
|
47
|
+
</table>
|
|
48
|
+
|
|
49
|
+
<table>
|
|
50
|
+
<tr>
|
|
51
|
+
<td width="25%">
|
|
52
|
+
<a href="https://cubence.com/signup?code=SCW29JP9">
|
|
53
|
+
<img src="assets/sponsors/cubence.jpg" alt="Cubence — 专业 AI API 网关,稳定高效的 API 中转服务,支持 Claude Code、Codex、Gemini 等多种模型" width="100%">
|
|
54
|
+
</a>
|
|
55
|
+
</td>
|
|
56
|
+
<td width="75%" valign="middle">
|
|
57
|
+
|
|
58
|
+
感谢 [Cubence](https://cubence.com/signup?code=SCW29JP9) 对本项目的支持。Cubence 是一家致力为客户提供稳定、高效的 API 中转服务商。从 25 年 9 月运营至今,提供了 Claude Code、Codex、Gemini 等多种模型支持。🎁 **Cubence 为本开源项目的用户提供了特别的专属优惠码 `AGENCY`,通过[此链接](https://cubence.com/signup?code=SCW29JP9)注册的用户,首次购买即可享受 9 折优惠!**
|
|
59
|
+
|
|
39
60
|
</td>
|
|
40
61
|
</tr>
|
|
41
62
|
</table>
|
|
@@ -82,7 +103,7 @@ AI:在开始实现之前,我需要了解几个关键问题:
|
|
|
82
103
|
| ⭐ Star 数 | 250k+ | — |
|
|
83
104
|
| 📦 Skills 总数 | 14 | **20**(14 翻译 + 4 国产原创 + 2 上游历史保留) |
|
|
84
105
|
| 🌐 语言 | 英文 | 中文(技术术语保留英文) |
|
|
85
|
-
| 🤖 **支持工具** | **6 款**:Claude Code / Cursor / Codex / OpenCode / Copilot CLI / Gemini CLI | **
|
|
106
|
+
| 🤖 **支持工具** | **6 款**:Claude Code / Cursor / Codex / OpenCode / Copilot CLI / Gemini CLI | **22 款**:上述 6 款 + Hermes Agent / Trae / Kiro / Qwen Code(通义灵码)/ OpenClaw / Claw Code / Antigravity / DeerFlow / VS Code / Windsurf / Aider / Qoder / CodeBuddy(腾讯) / CodeArts(华为云码道) / Cline / Kilo Code |
|
|
86
107
|
| ⚡ **安装方式** | 按工具分别装(每款一条不同的 plugin marketplace 命令) | **`npx superpowers-zh` 一条命令自动识别项目里的工具并安装**;识别不出可 `--tool <name>` 显式指定 |
|
|
87
108
|
| 🇨🇳 Git 平台 | GitHub 为主 | GitHub + Gitee + Coding + 极狐 GitLab + **CNB(腾讯云原生构建)** |
|
|
88
109
|
| 🇨🇳 CI/CD 示例 | GitHub Actions | GitHub Actions + Gitee Go + Coding CI + 极狐 CI + `.cnb.yml` |
|
|
@@ -96,9 +117,9 @@ AI:在开始实现之前,我需要了解几个关键问题:
|
|
|
96
117
|
| 💬 社区 | Discord | 微信公众号「AI不止语」+ 微信群 + QQ 群 |
|
|
97
118
|
| 📜 License | MIT | MIT |
|
|
98
119
|
|
|
99
|
-
**一句话总结:** 英文上游 = 方法论内核;中文增强版 = 方法论内核 **+**
|
|
120
|
+
**一句话总结:** 英文上游 = 方法论内核;中文增强版 = 方法论内核 **+** 22 款工具一键适配 **+** 国内 Git/CI 生态 **+** 中文化表达习惯。
|
|
100
121
|
|
|
101
|
-
### 🤖 支持
|
|
122
|
+
### 🤖 支持 22 款主流 AI 编程工具
|
|
102
123
|
|
|
103
124
|
| 工具 | 类型 | 一键安装 | 手动安装 |
|
|
104
125
|
|------|------|:---:|:---:|
|
|
@@ -122,6 +143,8 @@ AI:在开始实现之前,我需要了解几个关键问题:
|
|
|
122
143
|
| [Qoder](https://qoder.com) (阿里 AI IDE) | IDE | `npx superpowers-zh` | `.qoder/skills/` + `.qoder/rules/` |
|
|
123
144
|
| [CodeBuddy](https://copilot.tencent.com) (腾讯 AI IDE) | IDE | `npx superpowers-zh` | `.codebuddy/skills/` + `CODEBUDDY.md` |
|
|
124
145
|
| [华为云码道 CodeArts](https://www.huaweicloud.com/product/codeartsdoer.html) | IDE | `npx superpowers-zh` | `.codeartsdoer/skills/` |
|
|
146
|
+
| [Cline](https://cline.bot) | IDE 插件 | `npx superpowers-zh --tool cline` | `.cline/skills/` + `.clinerules/` |
|
|
147
|
+
| [Kilo Code](https://kilo.ai) | IDE 插件 | `npx superpowers-zh --tool kilocode` | `.kilocode/skills/` + `.kilocode/rules/` |
|
|
125
148
|
|
|
126
149
|
> 运行 `npx superpowers-zh` 会自动检测你项目中使用的工具,将 20 个 skills 安装到正确位置。
|
|
127
150
|
|
|
@@ -182,7 +205,7 @@ npx superpowers-zh --global --tool claude # 或指定工具
|
|
|
182
205
|
|
|
183
206
|
全局安装把 skills 装到工具的**用户级目录**(如 `~/.claude/skills`),一次安装所有项目自动可用,更新时也只需重装一次。**项目级优先、全局兜底**,二者可共存。
|
|
184
207
|
|
|
185
|
-
支持通用全局安装的工具(均为 docs 已证实的用户级加载路径):**Claude Code · Codex CLI · Qoder · Windsurf · Qwen Code · OpenClaw · OpenCode**。其中 **Codex CLI** 全局装到 `~/.agents/skills`(Codex 启动扫描目录)。其余工具(Cursor / Kiro / Trae / Aider / DeerFlow / VS Code / Hermes / Claw)规则是项目级或存于应用内设置,`--global` 会提示改用项目级;**Gemini CLI / Antigravity** 有各自专属的全局方式(Gemini 走扩展目录),见对应 `docs/README.*.md`。
|
|
208
|
+
支持通用全局安装的工具(均为 docs 已证实的用户级加载路径):**Claude Code · Codex CLI · Qoder · Windsurf · Qwen Code · OpenClaw · OpenCode**。其中 **Codex CLI** 全局装到 `~/.agents/skills`(Codex 启动扫描目录)。其余工具(Cursor / Kiro / Trae / Aider / DeerFlow / VS Code / Hermes / Claw / Cline / Kilo Code)规则是项目级或存于应用内设置,`--global` 会提示改用项目级;**Gemini CLI / Antigravity** 有各自专属的全局方式(Gemini 走扩展目录),见对应 `docs/README.*.md`。
|
|
186
209
|
|
|
187
210
|
| | 项目级(默认) | 全局(`--global`) |
|
|
188
211
|
|---|---|---|
|
|
@@ -191,7 +214,35 @@ npx superpowers-zh --global --tool claude # 或指定工具
|
|
|
191
214
|
| 适合 | 单项目、需项目内版本固定 | 多项目、想一次装好到处可用 |
|
|
192
215
|
| 卸载 | `npx superpowers-zh --uninstall` | `npx superpowers-zh --global --uninstall` |
|
|
193
216
|
|
|
194
|
-
###
|
|
217
|
+
### 方式二:Claude Code Plugin Marketplace
|
|
218
|
+
|
|
219
|
+
**仅限 Claude Code。** 走官方 plugin 机制装,好处是升级只要一条 `claude plugin update`,不用重跑 npx:
|
|
220
|
+
|
|
221
|
+
```bash
|
|
222
|
+
claude plugin marketplace add jnMetaCode/superpowers-zh
|
|
223
|
+
claude plugin install superpowers-zh@superpowers-zh
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
装完 `claude plugin list` 应该看到:
|
|
227
|
+
|
|
228
|
+
```
|
|
229
|
+
❯ superpowers-zh@superpowers-zh
|
|
230
|
+
Version: <当前版本>
|
|
231
|
+
Scope: user
|
|
232
|
+
Status: ✔ enabled
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
升级与卸载:
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
claude plugin marketplace update superpowers-zh # 先刷新 marketplace 缓存
|
|
239
|
+
claude plugin update superpowers-zh@superpowers-zh # 再升级 plugin(需重启生效)
|
|
240
|
+
claude plugin uninstall superpowers-zh@superpowers-zh # 卸载
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
> **和方式一怎么选?** marketplace 装的是**完整 plugin**(skills + hooks + bootstrap 由 Claude Code 统一托管、随版本更新),但只服务 Claude Code 一款工具。要装给其余 19 款工具,仍然用方式一的 `npx superpowers-zh`。两者可以共存,但同一个项目里别重复装 Claude Code,否则 skills 会出现两份。
|
|
244
|
+
|
|
245
|
+
### 方式三:手动安装(low-fidelity,仅作备选)
|
|
195
246
|
|
|
196
247
|
> ⚠️ **手动 `cp -r skills` 是低保版安装,不等同于完整 plugin。**
|
|
197
248
|
>
|
|
@@ -225,7 +276,7 @@ cp -r superpowers-zh/skills /your/project/.claw/skills # Claw Code(Rust
|
|
|
225
276
|
cp -r superpowers-zh/skills /your/project/.qoder/skills # Qoder(阿里 AI IDE)
|
|
226
277
|
```
|
|
227
278
|
|
|
228
|
-
###
|
|
279
|
+
### 方式四:在配置文件中引用
|
|
229
280
|
|
|
230
281
|
根据你使用的工具,在对应配置文件中引用 skills:
|
|
231
282
|
|
|
@@ -250,7 +301,7 @@ cp -r superpowers-zh/skills /your/project/.qoder/skills # Qoder(阿里 AI
|
|
|
250
301
|
| Claw Code | `.claw/skills/*/SKILL.md` | Rust 版 CLI agent,兼容 Claude Code 的 SKILL.md 格式 |
|
|
251
302
|
| Qoder | `.qoder/skills/*/SKILL.md` + `.qoder/rules/superpowers-zh.md` | 阿里 AI IDE,自动生成 `trigger: always_on` 的 bootstrap rule |
|
|
252
303
|
|
|
253
|
-
> **详细安装指南**:[Kiro](docs/README.kiro.md) · [DeerFlow](docs/README.deerflow.md) · [Trae](docs/README.trae.md) · [Antigravity](docs/README.antigravity.md) · [VS Code](docs/README.vscode.md) · [Codex](docs/README.codex.md) · [OpenCode](docs/README.opencode.md) · [OpenClaw](docs/README.openclaw.md) · [Windsurf](docs/README.windsurf.md) · [Gemini CLI](docs/README.gemini-cli.md) · [Aider](docs/README.aider.md) · [Qwen Code](docs/README.qwen.md) · [Hermes Agent](docs/README.hermes.md) · [Qoder](docs/README.qoder.md) · [CodeBuddy](docs/README.codebuddy.md) · [华为云码道](docs/README.codearts.md) · [Kimi Code](docs/README.kimi.md) · [Pi](docs/README.pi.md)
|
|
304
|
+
> **详细安装指南**:[Kiro](docs/README.kiro.md) · [DeerFlow](docs/README.deerflow.md) · [Trae](docs/README.trae.md) · [Antigravity](docs/README.antigravity.md) · [VS Code](docs/README.vscode.md) · [Codex](docs/README.codex.md) · [OpenCode](docs/README.opencode.md) · [OpenClaw](docs/README.openclaw.md) · [Windsurf](docs/README.windsurf.md) · [Gemini CLI](docs/README.gemini-cli.md) · [Aider](docs/README.aider.md) · [Qwen Code](docs/README.qwen.md) · [Hermes Agent](docs/README.hermes.md) · [Qoder](docs/README.qoder.md) · [CodeBuddy](docs/README.codebuddy.md) · [华为云码道](docs/README.codearts.md) · [Kimi Code](docs/README.kimi.md) · [Pi](docs/README.pi.md) · [Cline](docs/README.cline.md) · [Kilo Code](docs/README.kilocode.md)
|
|
254
305
|
|
|
255
306
|
### 卸载 / 误装清理(v1.2.1+)
|
|
256
307
|
|
|
@@ -364,7 +415,7 @@ MIT License — 自由使用,商业或个人均可。
|
|
|
364
415
|
|
|
365
416
|
<div align="center">
|
|
366
417
|
|
|
367
|
-
**🦸 AI 编程超能力:让 Claude Code / Hermes Agent / Cursor / Claw Code / Qoder 等
|
|
418
|
+
**🦸 AI 编程超能力:让 Claude Code / Hermes Agent / Cursor / Claw Code / Qoder 等 22 款工具真正会干活**
|
|
368
419
|
|
|
369
420
|
[Star 本项目](https://github.com/jnMetaCode/superpowers-zh) · [提交 Issue](https://github.com/jnMetaCode/superpowers-zh/issues) · [贡献代码](https://github.com/jnMetaCode/superpowers-zh/pulls)
|
|
370
421
|
|
package/README.zh-Hant.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
🌐 [简体中文](README.md) | **繁體中文** | [English (upstream)](https://github.com/obra/superpowers)
|
|
4
4
|
|
|
5
|
-
> 🦸 **superpowers(250k+ ⭐)完整漢化 + 4 個中國原創 skills** — 讓 Claude Code / Copilot CLI / Hermes Agent / Cursor / Windsurf / Kiro / Gemini CLI / Qoder 等 **
|
|
5
|
+
> 🦸 **superpowers(250k+ ⭐)完整漢化 + 4 個中國原創 skills** — 讓 Claude Code / Copilot CLI / Hermes Agent / Cursor / Windsurf / Kiro / Gemini CLI / Qoder 等 **22 款 AI 編程工具**真正會幹活。從頭腦風暴到程式碼審查,從 TDD 到除錯,每個 skill 都是經過實戰驗證的工作方法論。
|
|
6
6
|
|
|
7
|
-
Chinese community edition of [superpowers](https://github.com/obra/superpowers) — 20 skills across
|
|
7
|
+
Chinese community edition of [superpowers](https://github.com/obra/superpowers) — 20 skills across 22 AI coding tools, including full translations and China-specific development skills.
|
|
8
8
|
|
|
9
9
|
[](https://sp.aiolaola.com)
|
|
10
10
|
[](https://github.com/jnMetaCode/superpowers-zh)
|
|
@@ -12,18 +12,20 @@ Chinese community edition of [superpowers](https://github.com/obra/superpowers)
|
|
|
12
12
|
[](https://opensource.org/licenses/MIT)
|
|
13
13
|
[](https://makeapullrequest.com)
|
|
14
14
|
|
|
15
|
+
> 📖 **免費配套學習** → [從零學會 AI 編程](https://aiolaola.com/zh-Hant?utm_source=github&utm_campaign=superpowers-tw)(180 節)+ [AI 智能體課程](https://aiolaola.com/zh-Hant/course/agents?utm_source=github&utm_campaign=superpowers-tw)(40 節)— 繁體中文實作課程,免費
|
|
16
|
+
|
|
15
17
|
> 📖 **免費配套學習** → [從零學會 AI 編程](https://aiolaola.com/?utm_source=github&utm_campaign=superpowers):180 節免費實操課 + 《AI 編程實戰三卷書》線上閱讀 + 實戰社群 · superpowers 裝好後配上方法論效率翻倍 · 永久免費
|
|
16
18
|
|
|
17
|
-
> 🆕 **v1.7.
|
|
18
|
-
> -
|
|
19
|
-
> -
|
|
20
|
-
> -
|
|
19
|
+
> 🆕 **v1.7.2 更新亮點**([完整 Release Notes →](RELEASE-NOTES.zh.md))
|
|
20
|
+
> - 🧩 新增 **Cline** 與 **Kilo Code** 兩款 VS Code 外掛(工具數 20 → 22)—— 針對 rules 常駐開銷做了專門設計,索引僅 4.5 KB
|
|
21
|
+
> - 🔧 偵測落空時會掃 PATH 給出**可直接複製的 `--tool` 命令**,不再只報「未偵測到」
|
|
22
|
+
> - 📦 README 補上 **Plugin Marketplace 安裝方式**(`claude plugin marketplace add`,升級只需一條命令)
|
|
21
23
|
|
|
22
24
|
### 📊 專案規模
|
|
23
25
|
|
|
24
26
|
| 📦 翻譯 Skills | 🇨🇳 中國特色 Skills | 🤖 支援工具 |
|
|
25
27
|
|:---:|:---:|:---:|
|
|
26
|
-
| **14** | **6** | **Claude Code / Copilot CLI / Hermes Agent / Cursor / Windsurf / Kiro / Gemini CLI / Codex / Aider / Trae / VS Code (Copilot) / DeerFlow / OpenCode / OpenClaw / Qwen Code / Antigravity / Claw Code / Qoder / CodeBuddy(騰訊)/ CodeArts
|
|
28
|
+
| **14** | **6** | **Claude Code / Copilot CLI / Hermes Agent / Cursor / Windsurf / Kiro / Gemini CLI / Codex / Aider / Trae / VS Code (Copilot) / DeerFlow / OpenCode / OpenClaw / Qwen Code / Antigravity / Claw Code / Qoder / CodeBuddy(騰訊)/ CodeArts(華為雲碼道)/ Cline / Kilo Code** |
|
|
27
29
|
|
|
28
30
|
---
|
|
29
31
|
|
|
@@ -31,11 +33,30 @@ Chinese community edition of [superpowers](https://github.com/obra/superpowers)
|
|
|
31
33
|
|
|
32
34
|
<table>
|
|
33
35
|
<tr>
|
|
34
|
-
<td width="
|
|
35
|
-
<a href="https://passport.compshare.cn/register?referral_code=ETD3L5JBM13CtKARkMORot&ytag=
|
|
36
|
+
<td width="25%">
|
|
37
|
+
<a href="https://passport.compshare.cn/register?referral_code=ETD3L5JBM13CtKARkMORot&ytag=GPU_YY_YX_git_superpowers-zh">
|
|
38
|
+
<img src="assets/sponsors/compshare.jpg" alt="優雲智算 by UCloud — 熱門國產模型按次調用套餐包,低至 49 元/月起" width="100%">
|
|
39
|
+
</a>
|
|
36
40
|
</td>
|
|
37
|
-
<td>
|
|
38
|
-
|
|
41
|
+
<td width="75%" valign="middle">
|
|
42
|
+
|
|
43
|
+
感謝 [優雲智算](https://passport.compshare.cn/register?referral_code=ETD3L5JBM13CtKARkMORot&ytag=GPU_YY_YX_git_superpowers-zh) 贊助本專案!優雲智算是 UCloud 旗下 AI 雲平台,主打包月、按次的高性價比國模 Agent Plan 方案,支援 GLM-5.2,低至 **49 元/月**起。同時提供官轉穩定海外模型。支援接入 Claude Code、Codex 及 API 呼叫。支援企業高併發、7×24 技術支援、自助開票。🎁 **透過[此連結](https://passport.compshare.cn/register?referral_code=ETD3L5JBM13CtKARkMORot&ytag=GPU_YY_YX_git_superpowers-zh)註冊的使用者,可得免費 5 元平台體驗金!**
|
|
44
|
+
|
|
45
|
+
</td>
|
|
46
|
+
</tr>
|
|
47
|
+
</table>
|
|
48
|
+
|
|
49
|
+
<table>
|
|
50
|
+
<tr>
|
|
51
|
+
<td width="25%">
|
|
52
|
+
<a href="https://cubence.com/signup?code=SCW29JP9">
|
|
53
|
+
<img src="assets/sponsors/cubence.jpg" alt="Cubence — 專業 AI API 閘道,穩定高效的 API 中轉服務,支援 Claude Code、Codex、Gemini 等多種模型" width="100%">
|
|
54
|
+
</a>
|
|
55
|
+
</td>
|
|
56
|
+
<td width="75%" valign="middle">
|
|
57
|
+
|
|
58
|
+
感謝 [Cubence](https://cubence.com/signup?code=SCW29JP9) 對本專案的支持。Cubence 是一家致力為客戶提供穩定、高效的 API 中轉服務商。從 25 年 9 月營運至今,提供了 Claude Code、Codex、Gemini 等多種模型支援。🎁 **Cubence 為本開源專案的使用者提供了特別的專屬優惠碼 `AGENCY`,透過[此連結](https://cubence.com/signup?code=SCW29JP9)註冊的使用者,首次購買即可享受 9 折優惠!**
|
|
59
|
+
|
|
39
60
|
</td>
|
|
40
61
|
</tr>
|
|
41
62
|
</table>
|
|
@@ -82,7 +103,7 @@ AI:在開始實作之前,我需要了解幾個關鍵問題:
|
|
|
82
103
|
| ⭐ Star 數 | 250k+ | — |
|
|
83
104
|
| 📦 Skills 總數 | 14 | **20**(14 翻譯 + 4 國產原創 + 2 上游歷史保留) |
|
|
84
105
|
| 🌐 語言 | 英文 | 中文(技術術語保留英文) |
|
|
85
|
-
| 🤖 **支援工具** | **6 款**:Claude Code / Cursor / Codex / OpenCode / Copilot CLI / Gemini CLI | **
|
|
106
|
+
| 🤖 **支援工具** | **6 款**:Claude Code / Cursor / Codex / OpenCode / Copilot CLI / Gemini CLI | **22 款**:上述 6 款 + Hermes Agent / Trae / Kiro / Qwen Code(通義靈碼)/ OpenClaw / Claw Code / Antigravity / DeerFlow / VS Code / Windsurf / Aider / Qoder / CodeBuddy(騰訊) / CodeArts(華為雲碼道) / Cline / Kilo Code |
|
|
86
107
|
| ⚡ **安裝方式** | 按工具分別裝(每款一條不同的 plugin marketplace 命令) | **`npx superpowers-zh` 一條命令自動識別專案裡的工具並安裝**;識別不出可 `--tool <name>` 顯式指定 |
|
|
87
108
|
| 🇨🇳 Git 平台 | GitHub 為主 | GitHub + Gitee + Coding + 極狐 GitLab + **CNB(騰訊雲原生建置)** |
|
|
88
109
|
| 🇨🇳 CI/CD 範例 | GitHub Actions | GitHub Actions + Gitee Go + Coding CI + 極狐 CI + `.cnb.yml` |
|
|
@@ -96,9 +117,9 @@ AI:在開始實作之前,我需要了解幾個關鍵問題:
|
|
|
96
117
|
| 💬 社群 | Discord | 微信公眾號「AI不止語」+ 微信群 + QQ 群 |
|
|
97
118
|
| 📜 License | MIT | MIT |
|
|
98
119
|
|
|
99
|
-
**一句話總結:** 英文上游 = 方法論核心;中文增強版 = 方法論核心 **+**
|
|
120
|
+
**一句話總結:** 英文上游 = 方法論核心;中文增強版 = 方法論核心 **+** 22 款工具一鍵適配 **+** 國內 Git/CI 生態 **+** 中文化表達習慣。
|
|
100
121
|
|
|
101
|
-
### 🤖 支援
|
|
122
|
+
### 🤖 支援 22 款主流 AI 編程工具
|
|
102
123
|
|
|
103
124
|
| 工具 | 類型 | 一鍵安裝 | 手動安裝 |
|
|
104
125
|
|------|------|:---:|:---:|
|
|
@@ -122,6 +143,8 @@ AI:在開始實作之前,我需要了解幾個關鍵問題:
|
|
|
122
143
|
| [Qoder](https://qoder.com) (阿里 AI IDE) | IDE | `npx superpowers-zh` | `.qoder/skills/` + `.qoder/rules/` |
|
|
123
144
|
| [CodeBuddy](https://copilot.tencent.com) (騰訊 AI IDE) | IDE | `npx superpowers-zh` | `.codebuddy/skills/` + `CODEBUDDY.md` |
|
|
124
145
|
| [華為雲碼道 CodeArts](https://www.huaweicloud.com/product/codeartsdoer.html) | IDE | `npx superpowers-zh` | `.codeartsdoer/skills/` |
|
|
146
|
+
| [Cline](https://cline.bot) | IDE 外掛 | `npx superpowers-zh --tool cline` | `.cline/skills/` + `.clinerules/` |
|
|
147
|
+
| [Kilo Code](https://kilo.ai) | IDE 外掛 | `npx superpowers-zh --tool kilocode` | `.kilocode/skills/` + `.kilocode/rules/` |
|
|
125
148
|
|
|
126
149
|
> 執行 `npx superpowers-zh` 會自動偵測你專案中使用的工具,將 20 個 skills 安裝到正確位置。
|
|
127
150
|
|
|
@@ -182,7 +205,7 @@ npx superpowers-zh --global --tool claude # 或指定工具
|
|
|
182
205
|
|
|
183
206
|
全域安裝把 skills 裝到工具的**使用者級目錄**(如 `~/.claude/skills`),一次安裝所有專案自動可用,更新時也只需重裝一次。**專案級優先、全域兜底**,二者可共存。
|
|
184
207
|
|
|
185
|
-
支援通用全域安裝的工具(均為 docs 已證實的使用者級載入路徑):**Claude Code · Codex CLI · Qoder · Windsurf · Qwen Code · OpenClaw · OpenCode**。其中 **Codex CLI** 全域裝到 `~/.agents/skills`(Codex 啟動掃描目錄)。其餘工具(Cursor / Kiro / Trae / Aider / DeerFlow / VS Code / Hermes / Claw)規則是專案級或存於應用內設定,`--global` 會提示改用專案級;**Gemini CLI / Antigravity** 有各自專屬的全域方式(Gemini 走擴充目錄),見對應 `docs/README.*.md`。
|
|
208
|
+
支援通用全域安裝的工具(均為 docs 已證實的使用者級載入路徑):**Claude Code · Codex CLI · Qoder · Windsurf · Qwen Code · OpenClaw · OpenCode**。其中 **Codex CLI** 全域裝到 `~/.agents/skills`(Codex 啟動掃描目錄)。其餘工具(Cursor / Kiro / Trae / Aider / DeerFlow / VS Code / Hermes / Claw / Cline / Kilo Code)規則是專案級或存於應用內設定,`--global` 會提示改用專案級;**Gemini CLI / Antigravity** 有各自專屬的全域方式(Gemini 走擴充目錄),見對應 `docs/README.*.md`。
|
|
186
209
|
|
|
187
210
|
| | 專案級(預設) | 全域(`--global`) |
|
|
188
211
|
|---|---|---|
|
|
@@ -191,7 +214,35 @@ npx superpowers-zh --global --tool claude # 或指定工具
|
|
|
191
214
|
| 適合 | 單專案、需專案內版本固定 | 多專案、想一次裝好到處可用 |
|
|
192
215
|
| 解除安裝 | `npx superpowers-zh --uninstall` | `npx superpowers-zh --global --uninstall` |
|
|
193
216
|
|
|
194
|
-
###
|
|
217
|
+
### 方式二:Claude Code Plugin Marketplace
|
|
218
|
+
|
|
219
|
+
**僅限 Claude Code。** 走官方 plugin 機制安裝,好處是升級只要一條 `claude plugin update`,不用重跑 npx:
|
|
220
|
+
|
|
221
|
+
```bash
|
|
222
|
+
claude plugin marketplace add jnMetaCode/superpowers-zh
|
|
223
|
+
claude plugin install superpowers-zh@superpowers-zh
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
裝完 `claude plugin list` 應該看到:
|
|
227
|
+
|
|
228
|
+
```
|
|
229
|
+
❯ superpowers-zh@superpowers-zh
|
|
230
|
+
Version: <当前版本>
|
|
231
|
+
Scope: user
|
|
232
|
+
Status: ✔ enabled
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
升級與卸載:
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
claude plugin marketplace update superpowers-zh # 先刷新 marketplace 快取
|
|
239
|
+
claude plugin update superpowers-zh@superpowers-zh # 再升級 plugin(需重啟生效)
|
|
240
|
+
claude plugin uninstall superpowers-zh@superpowers-zh # 卸載
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
> **和方式一怎麼選?** marketplace 裝的是**完整 plugin**(skills + hooks + bootstrap 由 Claude Code 統一託管、隨版本更新),但只服務 Claude Code 一款工具。要裝給其餘 19 款工具,仍然用方式一的 `npx superpowers-zh`。兩者可以共存,但同一個專案裡別重複裝 Claude Code,否則 skills 會出現兩份。
|
|
244
|
+
|
|
245
|
+
### 方式三:手動安裝(low-fidelity,僅作備選)
|
|
195
246
|
|
|
196
247
|
> ⚠️ **手動 `cp -r skills` 是低保版安裝,不等同於完整 plugin。**
|
|
197
248
|
>
|
|
@@ -225,7 +276,7 @@ cp -r superpowers-zh/skills /your/project/.claw/skills # Claw Code(Rust
|
|
|
225
276
|
cp -r superpowers-zh/skills /your/project/.qoder/skills # Qoder(阿里 AI IDE)
|
|
226
277
|
```
|
|
227
278
|
|
|
228
|
-
###
|
|
279
|
+
### 方式四:在設定檔中引用
|
|
229
280
|
|
|
230
281
|
根據你使用的工具,在對應設定檔中引用 skills:
|
|
231
282
|
|
|
@@ -364,7 +415,7 @@ MIT License — 自由使用,商業或個人均可。
|
|
|
364
415
|
|
|
365
416
|
<div align="center">
|
|
366
417
|
|
|
367
|
-
**🦸 AI 編程超能力:讓 Claude Code / Hermes Agent / Cursor / Claw Code / Qoder 等
|
|
418
|
+
**🦸 AI 編程超能力:讓 Claude Code / Hermes Agent / Cursor / Claw Code / Qoder 等 22 款工具真正會幹活**
|
|
368
419
|
|
|
369
420
|
[Star 本專案](https://github.com/jnMetaCode/superpowers-zh) · [提交 Issue](https://github.com/jnMetaCode/superpowers-zh/issues) · [貢獻程式碼](https://github.com/jnMetaCode/superpowers-zh/pulls)
|
|
370
421
|
|
package/RELEASE-NOTES.zh.md
CHANGED
|
@@ -6,6 +6,49 @@
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## v1.7.2 (2026-08-07)
|
|
10
|
+
|
|
11
|
+
### 🆕 新增 Cline 与 Kilo Code 适配(工具数 20 → 22,关 #112、#88)
|
|
12
|
+
|
|
13
|
+
两款都是 VS Code 扩展,加载的是 **rules 而非懒加载的 skills** —— rules 会并入**每一轮** system prompt。照搬「把 20 个 SKILL.md 复制进规则目录」会让每轮对话背着 **182 KB** 常驻开销(Cline 官方也提示规则超约 300 行后遵守度下降)。
|
|
14
|
+
|
|
15
|
+
改用仓库既有的 **Trae 模式**:规则目录只放一份索引(核心规则 + 20 个 skill 的名称/触发条件表,实测 **4.5 KB**,比全量塞入小 40 倍),skills 本体放各自 `skills/` 目录由 agent 按需读取。
|
|
16
|
+
|
|
17
|
+
- **Cline**:skills → `.cline/skills/`,索引 → `.clinerules/superpowers-zh.md`。不写 YAML frontmatter —— Cline 目前只支持 `paths` 一个条件字段,无 frontmatter 即始终生效。索引保持在 `.clinerules/` 根层单文件(子目录是否递归扫描官方未说明)。
|
|
18
|
+
- **Kilo Code**:skills → `.kilocode/skills/`,索引 → `.kilocode/rules/superpowers-zh.md`。**有意不走 v7 推荐的 `.kilo/rules/` + `kilo.jsonc`** —— 后者需把路径登记进用户的 `kilo.jsonc`(带注释的 JSONC,安装器安全合并容易改坏用户配置)。官方明确 `.kilocode/rules/` 向后兼容且零配置生效,故选它;docs 里写明了想迁到 v7 该改哪一行,以及万一没生效如何反馈。
|
|
19
|
+
- 两者均**无 `--global`**:Cline 全局 rules 路径随 OS 变(`~/Documents/Cline/Rules`,Linux/WSL 还有 `~/Cline/Rules` 回退),Kilo 全局同样要走 `kilo.jsonc` 登记 —— 不是通用复制机制能可靠命中的,`--global` 明确拒绝并指向 docs,绝不写无效路径。
|
|
20
|
+
- 路径依据:[docs.cline.bot](https://docs.cline.bot/customization/cline-rules)、[kilo.ai](https://kilo.ai/docs/customize/custom-rules)。
|
|
21
|
+
|
|
22
|
+
### 🔧 检测落空时给出针对性建议(关 #48)
|
|
23
|
+
|
|
24
|
+
装了 opencode / codex 但项目里没留下标记目录时,原先只报「未检测到任何已知 AI 编程工具」,用户无从判断下一步。
|
|
25
|
+
|
|
26
|
+
- 新增 PATH 探测:检测落空时扫 PATH 找已安装的 CLI,直接打印可复制的 `--tool` 命令。
|
|
27
|
+
- **只提示、不自动安装** —— 自动装错工具正是 #33 修掉的问题:PATH 上装了不代表这个项目要用它。
|
|
28
|
+
- `isOnPath()` 只查文件是否存在,**不 spawn 进程**(不在用户机器上执行探测命令);Windows 下遍历 `PATHEXT`。
|
|
29
|
+
- `--global` 模式只建议支持全局的工具,不推荐装不了的。
|
|
30
|
+
- 健壮性已测:`PATH` 为空 / 含空段 / 未定义三种退化情形均优雅退出 1,无未捕获异常。
|
|
31
|
+
|
|
32
|
+
### 📄 文档
|
|
33
|
+
|
|
34
|
+
- **补充 plugin marketplace 安装方式(关 #39)**:`.claude-plugin/marketplace.json` 从 v1.7.x 起就存在且可用,但 README 从未写过怎么用。已实测 `plugin validate` / `marketplace add jnMetaCode/superpowers-zh`(GitHub 直连克隆)/ `plugin install` 全链路通过,安装缓存内含全部 20 个 SKILL.md。简繁 README 新增「方式二」,原手动安装与配置文件引用顺延为方式三 / 四。
|
|
35
|
+
- **修正 Copilot CLI 在 Windows 的工具面(关 #93)**:`copilot-tools.md` 原先只记 `bash` + `async:true` 一套,但 Windows 实测(Copilot CLI 1.0.69-1)注册的是 `powershell` + `detach`,没有 `bash`/`async` 家族。现拆成两张表并注明「两套不会同时出现」,补充两个坑:`.sh` 需显式走 Git Bash;`stop_powershell` 停不掉 `detach:true` 的进程,需按真实 Windows PID(非 MSYS PID)`Stop-Process`。
|
|
36
|
+
- 新增 `docs/README.cline.md`、`docs/README.kilocode.md`。
|
|
37
|
+
- 修正 installer 报错文案里失效的章节锚点(改为指向父级 `#快速开始`,不再依赖会变的章节编号)。
|
|
38
|
+
- 计数 20 → 22 同步:简繁 README、`package.json`、`CLAUDE.md`、3 份 plugin manifest。
|
|
39
|
+
|
|
40
|
+
### ✅ 验证
|
|
41
|
+
|
|
42
|
+
- `scripts/audit.sh`:**130 pass / 0 fail**(2 项 warn 为既有上游漂移,见 #19)
|
|
43
|
+
- 发版前深度验证(比 audit 严,断言实际落盘而非只看退出码):**82 项全通过**
|
|
44
|
+
- 22 款工具:装 → 断言 20 个 skill 落盘 → 二次装幂等 → 卸载后零残留;无 `skills/skills` 嵌套
|
|
45
|
+
- 19 个检测标记逐一验证只触发预期工具,既有 20 款检测结果与改动前一致
|
|
46
|
+
- `--global`:7 款成功、14 款明确拒绝且退出码 1;拒绝信息引用的 8 份 docs 均存在
|
|
47
|
+
- bootstrap 索引断言:表行数 = 20、无空 description、Cline 无 frontmatter、路径指向正确
|
|
48
|
+
- **npm 包端到端**:`npm pack` → 从 tarball 装 → 用打包后的二进制真实跑 Cline 自动检测 → 20 skills + 索引生成 → 卸载零残留
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
9
52
|
## v1.7.0 (2026-07-13)
|
|
10
53
|
|
|
11
54
|
### 🆕 新增两款国产 IDE 工具支持(工具数 18 → 20)
|
|
Binary file
|
package/bin/superpowers-zh.js
CHANGED
|
@@ -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
|
-
|
|
887
|
-
|
|
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
|
package/gemini-extension.json
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "superpowers-zh",
|
|
3
|
-
"version": "1.7.
|
|
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 等
|
|
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": {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
| `Read`(读取文件) | `view` |
|
|
8
8
|
| `Write`(创建文件) | `create` |
|
|
9
9
|
| `Edit`(编辑文件) | `edit` |
|
|
10
|
-
| `Bash`(运行命令) | `bash` |
|
|
10
|
+
| `Bash`(运行命令) | `bash`(Windows 上常为 `powershell`,见[异步 Shell 会话](#异步-shell-会话)) |
|
|
11
11
|
| `Grep`(搜索文件内容) | `grep` |
|
|
12
12
|
| `Glob`(按名称搜索文件) | `glob` |
|
|
13
13
|
| `Skill` 工具(调用技能) | `skill` |
|
|
@@ -31,7 +31,11 @@ Copilot CLI 的 `task` 工具接受 `agent_type` 参数:
|
|
|
31
31
|
|
|
32
32
|
## 异步 Shell 会话
|
|
33
33
|
|
|
34
|
-
Copilot CLI 支持持久化的异步 shell 会话,这在 Claude Code
|
|
34
|
+
Copilot CLI 支持持久化的异步 shell 会话,这在 Claude Code 中没有直接等价物。
|
|
35
|
+
|
|
36
|
+
> ⚠️ **shell 工具面随平台和版本而异,下面两套工具名不会同时出现。** 动手之前先确认你这个 build 实际注册的是哪一套 —— 照着不存在的工具名调用,agent 会找不到工具然后即兴发挥。Windows 上常见的是 powershell 那一套(实测 Copilot CLI 1.0.69-1 / Windows 只有 powershell,没有任何 `bash` / `async` 家族工具)。
|
|
37
|
+
|
|
38
|
+
**Unix / macOS —— bash 一套:**
|
|
35
39
|
|
|
36
40
|
| 工具 | 用途 |
|
|
37
41
|
|------|---------|
|
|
@@ -41,6 +45,32 @@ Copilot CLI 支持持久化的异步 shell 会话,这在 Claude Code 中没有
|
|
|
41
45
|
| `stop_bash` | 终止异步会话 |
|
|
42
46
|
| `list_bash` | 列出所有活跃的 shell 会话 |
|
|
43
47
|
|
|
48
|
+
**Windows —— powershell 一套:**
|
|
49
|
+
|
|
50
|
+
| 工具 | 用途 |
|
|
51
|
+
|------|---------|
|
|
52
|
+
| `powershell` 配合 `detach: true` | 在后台启动长时间运行的命令(参数名是 `detach`,**不是** `async`) |
|
|
53
|
+
| `read_powershell` | 读取会话的输出 |
|
|
54
|
+
| `stop_powershell` | 终止会话 |
|
|
55
|
+
| `list_powershell` | 列出所有活跃的 shell 会话 |
|
|
56
|
+
| (无 `write_powershell`) | 这一套**没有**向运行中会话发送输入的工具 |
|
|
57
|
+
|
|
58
|
+
### Windows 上的两个坑
|
|
59
|
+
|
|
60
|
+
**1. `.sh` 脚本不能裸跑。** powershell 下直接执行 `scripts/start-server.sh` 会报 `The term 'scripts/start-server.sh' is not recognized...`,必须显式走 Git Bash:
|
|
61
|
+
|
|
62
|
+
```powershell
|
|
63
|
+
& "C:\Program Files\Git\bin\bash.exe" scripts/start-server.sh
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**2. `stop_powershell` 停不掉 `detach: true` 启动的进程。** detached 进程要按 PID 停:
|
|
67
|
+
|
|
68
|
+
```powershell
|
|
69
|
+
Stop-Process -Id <PID>
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
所以**不要把 `stop_*` 当作 detached 常驻进程的唯一清理路径** —— 必须先拿到真实的 Windows PID(不是 MSYS PID),再 `Stop-Process`。涉及长驻 server 的 skill(如 brainstorming 的视觉伴侣)在 Windows 上尤其要注意这一点。
|
|
73
|
+
|
|
44
74
|
## 额外的 Copilot CLI 工具
|
|
45
75
|
|
|
46
76
|
| 工具 | 用途 |
|