superpowers-zh 1.2.1 → 1.5.0

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.
Files changed (35) hide show
  1. package/.claude-plugin/marketplace.json +3 -3
  2. package/.claude-plugin/plugin.json +2 -2
  3. package/.codex-plugin/plugin.json +48 -0
  4. package/.cursor-plugin/plugin.json +2 -4
  5. package/CLAUDE.md +120 -0
  6. package/GEMINI.md +4 -4
  7. package/README.md +61 -19
  8. package/RELEASE-NOTES.md +1180 -0
  9. package/RELEASE-NOTES.zh.md +236 -0
  10. package/assets/app-icon.png +0 -0
  11. package/assets/superpowers-small.svg +1 -0
  12. package/bin/superpowers-zh.js +62 -18
  13. package/docs/README.openclaw.md +7 -4
  14. package/docs/README.qoder.md +95 -0
  15. package/docs/README.trae.md +11 -0
  16. package/gemini-extension.json +1 -1
  17. package/hooks/hooks-cursor.json +1 -1
  18. package/package.json +11 -4
  19. package/skills/brainstorming/scripts/server.cjs +33 -17
  20. package/skills/brainstorming/scripts/start-server.sh +9 -14
  21. package/skills/brainstorming/scripts/stop-server.sh +9 -8
  22. package/skills/chinese-code-review/SKILL.md +1 -1
  23. package/skills/chinese-commit-conventions/SKILL.md +1 -1
  24. package/skills/chinese-documentation/SKILL.md +1 -1
  25. package/skills/chinese-git-workflow/SKILL.md +1 -1
  26. package/skills/finishing-a-development-branch/SKILL.md +107 -32
  27. package/skills/requesting-code-review/SKILL.md +8 -10
  28. package/skills/requesting-code-review/code-reviewer.md +124 -104
  29. package/skills/using-git-worktrees/SKILL.md +114 -97
  30. package/skills/using-superpowers/SKILL.md +1 -1
  31. package/skills/using-superpowers/references/qoder-tools.md +43 -0
  32. package/agents/code-reviewer.md +0 -48
  33. package/commands/brainstorm.md +0 -5
  34. package/commands/execute-plan.md +0 -5
  35. package/commands/write-plan.md +0 -5
@@ -0,0 +1,236 @@
1
+ # Superpowers-ZH 中文版 Release Notes
2
+
3
+ > 本文档记录 `jnMetaCode/superpowers-zh` 中文 fork 自身的 release 历史。
4
+ >
5
+ > 上游 `obra/superpowers` 的英文 release notes 见 [`RELEASE-NOTES.md`](./RELEASE-NOTES.md)(原样保留,未翻译)。
6
+
7
+ ---
8
+
9
+ ## v1.5.0 (2026-05-21)
10
+
11
+ ### 🆕 Qoder 适配(第 18 款工具,#26、#34)
12
+
13
+ Qoder 是阿里推出的 AI IDE,社区有多个用户提需求要求支持。本版本完成端到端适配:
14
+
15
+ - `bin/superpowers-zh.js` — `TARGETS` 加 Qoder(`dir: .qoder/skills`,`detect: .qoder`),`TOOL_ALIASES` 加 `qoder`
16
+ - `generateQoderBootstrap()` — 生成 `.qoder/rules/superpowers-zh.md`(`trigger: always_on` + `alwaysApply: true`),让"先头脑风暴 / 先 TDD / 先验证"等核心规则每个会话自动加载,**不依赖模型对 description 的隐式匹配**
17
+ - `skills/using-superpowers/references/qoder-tools.md` — 新增工具映射 reference(Qoder 大部分工具与 Claude Code 同名,只有 `EnterPlanMode/ExitPlanMode` → `EnterSpecMode/ExitSpecMode` 一个差异;附 Quest MCP 工具清单)
18
+ - `docs/README.qoder.md` — 完整安装/使用/卸载/故障排查指南
19
+ - `scripts/audit.sh` — `TOOLS` 数组加 qoder,CI 自动跑 18 款工具的 install/idempotent/uninstall 回归
20
+
21
+ **安装方法:**
22
+
23
+ ```bash
24
+ cd /your/qoder-project
25
+ npx superpowers-zh --tool qoder # 显式
26
+ # 或在有 .qoder/ 的项目里:
27
+ npx superpowers-zh # 自动检测
28
+ ```
29
+
30
+ 装完重启 Qoder,输入 `/` 即可看到 20 个 skill。
31
+
32
+ ### ⚠️ Qoder Rules schema 来源说明
33
+
34
+ Qoder Rules 的 frontmatter schema(`trigger: always_on` / `model_decision` / `manual`)**官方文档(docs.qoder.com/zh/user-guide/rules)目前未公开**。本次实现的 schema 来自 GitHub 上 4 份真实社区样本(`python-office`、`termiClaude`、`QoderTest`、`TelegramFileServer`)的交叉验证。
35
+
36
+ 如果 Qoder 后续改了 schema,生成的 rule 文件可能需要打开 Qoder Settings → Rules 重新选择"始终生效"类型。
37
+
38
+ ### 🔧 文案对齐
39
+
40
+ - README、CLAUDE.md、package.json description:17 款 → 18 款
41
+ - 3 个 plugin manifest(`.claude-plugin/{plugin,marketplace}.json`、`.cursor-plugin/plugin.json`)description 同步
42
+
43
+ ### 设计取舍:为什么用 always_on bootstrap 而非裸 skill
44
+
45
+ 社区有用户(@Yanyz-ok)建议"按 AI 编程工具拆分/重写 skill"。我们刻意**不走这条路**:
46
+
47
+ 1. **skill 是工作方法论,不是工具实现** —— "先写测试再写代码"这个约束在 Claude Code、Qoder、Hermes 上落地工具不同,但方法论不变。重写会让 17 份 SKILL.md 维护负担 ×17 但本质增量 0。
48
+ 2. **平台内置工具 vs skill 是嵌套关系,不是替代关系** —— Qoder/Quest 的 `search_codebase`、`update_memory` 解决"怎么做",skill 解决"什么时候做",模型不会混淆。
49
+ 3. **上游 superpowers 明确禁止"无 eval 证据的工具专属重写"** —— fork 守同样规矩。
50
+
51
+ 工具映射写在 `references/qoder-tools.md` + `docs/README.qoder.md` 里就够了,不需要每个 skill 内部复制一遍。详见 issue #26 完整讨论。
52
+
53
+ ### Refs
54
+
55
+ - closes #26(建议新增 qoder 的支持)
56
+ - closes #34(建议支持 qoder,#26 重复)
57
+
58
+ ---
59
+
60
+ ## v1.4.0 (2026-05-12)
61
+
62
+ 本版本核心目标:**修复全量质量审计发现的所有上游漂移 P0 缺陷**。改动全部是"主站有的同步过来"性质,不引入主站没有的新功能。
63
+
64
+ ### 🔴 上游同步:v5.0.6 brainstorm server 拆分(PR #30)
65
+
66
+ 上游 v5.0.6(commit 9e3ed21)把 brainstorm server 的内容目录拆成 `CONTENT_DIR` + `STATE_DIR` peer 结构,但我们的 server 脚本还停在旧 `SCREEN_DIR` 单目录版本,导致 visual brainstorming 教程指向新路径但 server 用旧结构卡死。
67
+
68
+ - `skills/brainstorming/scripts/server.cjs` — 81 行 cherry-pick 同步
69
+ - `skills/brainstorming/scripts/start-server.sh` — 36 行同步
70
+ - `skills/brainstorming/scripts/stop-server.sh` — 29 行同步
71
+
72
+ **修复后:所有 visual brainstorming 用户路径解析正常。**
73
+
74
+ ### 🔴 上游同步:v5.1.0 Code Review 整合(PR #30)
75
+
76
+ 上游 v5.1.0 PR #1299 把 reviewer persona + checklist + dispatch 模板整合到单一 `code-reviewer.md` 实现 self-contained,并把 SKILL.md 里的 `superpowers:code-reviewer` 命名子代理引用改成 `general-purpose` Task + 模板路径形式。我们的版本停留在 v5.0.x 拆分式。
77
+
78
+ - `skills/requesting-code-review/SKILL.md` 改 4 处:3 处 `superpowers:code-reviewer` 引用清零;占位符从 5 个精简到 4 个对齐上游;"执行计划" 集成段从 "每批(3 个任务)后审查" 改为 "每个任务完成后或在自然 checkpoint 审查"(对齐上游 v5.1.0 subagent 节奏调整)
79
+ - `skills/requesting-code-review/code-reviewer.md` 完整重写为 v5.1.0 self-contained 版(H header 6/6 对齐上游)
80
+
81
+ **修复后:所有走 review 流程的用户得到的指令指向 `general-purpose` Task 而非已废弃的命名子代理。**
82
+
83
+ ### 🔴 上游同步:v5.1.0 worktree 安全修复(PR #28)
84
+
85
+ 上游 v5.1.0 [#991](https://github.com/obra/superpowers/issues/991) 修复了两类 worktree 安全问题:subagent 嵌套创建 + cleanup 误删 harness-managed workspace。
86
+
87
+ - `skills/using-git-worktrees/SKILL.md` 全面重构:新增 Step 0 检测现有隔离(GIT_DIR/GIT_COMMON + submodule 守卫 + 同意流程);Step 1 重组为 1a Native Tools + 1b Git Worktree Fallback + 沙盒回退;删除旧"示例工作流"段(含 `/Users/jesse` 硬编码)
88
+ - `skills/finishing-a-development-branch/SKILL.md` 全面重构:新增 Step 2 检测环境(三态表);旧 Step 2-5 重编号为 3-6;Step 4 新增分离 HEAD 3 选项变体;Step 5 Option 1 重写(MAIN_ROOT cwd safety + merge→verify→cleanup→delete 严格排序);Step 6 清理范围限定在 `.worktrees/` / `worktrees/` / `~/.config/superpowers/worktrees/`,外部 harness-managed workspace 一律不动
89
+
90
+ **修复后:subagent 不再嵌套创建 worktree;清理不会误删 harness-managed workspace。**
91
+
92
+ ### 🔴 平台兼容性修复:Windows Cursor hook 回归(PR #30)
93
+
94
+ `hooks/hooks-cursor.json` 的 command 之前被本地改成直接调 unix shell `./hooks/session-start`,丢失上游的 polyglot wrapper `./hooks/run-hook.cmd session-start`,Windows + Cursor 组合用户 hook 完全不触发。
95
+
96
+ - 1 行恢复上游 polyglot wrapper
97
+
98
+ **修复后:Windows Cursor 用户 hook 正常触发。**
99
+
100
+ ### 🆕 防回归基建:CI 自动漂移检测(PR #31)
101
+
102
+ 新增 `scripts/audit.sh` + `.github/workflows/audit.yml`,每次 PR 自动跑 4 类共 90+ 项检查:
103
+
104
+ 1. 静态校验(JSON parse / SKILL.md frontmatter / symlink / hook 可执行性)
105
+ 2. Installer 功能(17 款工具装/重装/卸载全跑)
106
+ 3. 上游对齐(hooks 4 文件 + brainstorm scripts 3 文件 + 14 翻译 skill 结构层级 + code-reviewer.md self-contained 结构)
107
+ 4. 交叉引用(README → docs/ 链接 + skill 间引用 + 装完后 .claude/skills/using-superpowers/SKILL.md 路径解析)
108
+
109
+ WARN(不阻塞)vs FAIL(阻塞)分级:本次"4 个 P0 漂"事件如果当时有这个 audit 在 CI 跑,PR 阶段就会被拦下。
110
+
111
+ **未来意义:维护者下次手抖把 `hooks-cursor.json` 改坏 / 上游同步漏一项,CI 立刻拦下。**
112
+
113
+ ### 🔧 工具链小修
114
+
115
+ - `scripts/sync-plugin-version.js` 加入 `gemini-extension.json`(之前漏掉,导致 gemini extension manifest 卡在 1.1.6 老版本)
116
+ - `package.json` 的 `version` 钩子 git add 列表同步更新
117
+
118
+ ### 安装路径方针澄清
119
+
120
+ 本版本明确:**有官方 plugin marketplace 的工具(Claude Code / Codex CLI / OpenCode / VS Code)首选 marketplace 路径**,npx `superpowers-zh` 主要服务没有 marketplace 的工具(Cursor / Trae / Kiro / Gemini CLI / Hermes / Aider / Antigravity / Windsurf / Qwen / Claw / OpenClaw / DeerFlow 共 13 款)。fork 不再尝试给 marketplace 工具加 npx 路径的"完整支持"——它们走主站路径即可。
121
+
122
+ ### 不在本版本范围
123
+
124
+ - `executing-plans/SKILL.md` 我们扩写了 105 行中文示例(主动选择,保留——是 fork 的中文优化,非漂移)
125
+ - `using-superpowers/SKILL.md` 的"中国特色技能路由"段(fork 增量,保留)
126
+ - 各 reviewer-prompt.md 翻译差异(结构对齐,纯翻译漂移,无行为 bug)
127
+ - open issues #18/#21/#26/#20(fork 增量需求,按方针延后)
128
+
129
+ ### Refs
130
+
131
+ - PR #28(worktree 安全修复)
132
+ - PR #30(brainstorm scripts + code-reviewer 整合 + hooks-cursor + SKILL.md 引用)
133
+ - PR #31(audit script + CI workflow)
134
+ - issue #19 跟踪上游 v5.0.6 / v5.1.0 同步 → 关键项目全部覆盖
135
+
136
+ ---
137
+
138
+ ## v1.3.0 (2026-05-10)
139
+
140
+ ### 跟上游对齐 (v5.1.0)
141
+
142
+ - **同步上游 v5.1.0 的目录变更**:上游主动删除了 `commands/`(3 个 deprecated stub)和 `agents/code-reviewer.md`(已上升进 `requesting-code-review` skill)。中文 fork 跟随删除以与上游意图对齐。详见上游 [#1188](https://github.com/obra/superpowers/pull/1188) 与 PR #1299。
143
+ - **`bin/superpowers-zh.js`** 移除安装时复制 `agents/` 到 `.claude/agents/` 的逻辑,**保留** uninstall 时的清理逻辑(用于已装用户清理残留 `code-reviewer.md`,防止双 source of truth)。
144
+ - **`.github/workflows/ci.yml`** 删除 "Validate agents" 验证段(`agents/` 已删,验证空目录无意义)。
145
+
146
+ ### 补齐上游遗漏的根级文件
147
+
148
+ - **`CLAUDE.md`** —— 上游 contributor 指南(含 anti-slop-PR 规则)的中文翻译,末尾追加中文 fork 自己的 PR 流程说明。
149
+ - **`AGENTS.md`** —— 软链接 → `CLAUDE.md`(mode 120000,跟上游一致)。Codex CLI 等工具从 `AGENTS.md` 自动加载等同读取 CLAUDE.md。
150
+ - **Known limitation**:`npm pack` 默认不跟随 symlink,因此 npm publish 出来的 tarball 不包含 AGENTS.md。这不影响实际使用:AGENTS.md 是 Codex CLI 在用户自己项目目录读的文件,不是从 `superpowers-zh` 安装包读的;通过 `git clone` 拿到仓库的贡献者会正确解析 symlink。
151
+ - **`RELEASE-NOTES.md`** —— 上游 release notes 原样保留(英文版,1180 行)。
152
+ - **`RELEASE-NOTES.zh.md`** —— 本文件,中文 fork 自身 release 记录。
153
+ - **`.codex-plugin/plugin.json`** —— Codex CLI plugin manifest(中文版本地化:name/description/displayName 改为中文版,URL 指向 `jnMetaCode/superpowers-zh`)。
154
+ - **`.version-bump.json`** —— 上游版本管理配置文件。
155
+ - **`scripts/bump-version.sh`** —— 上游版本同步脚本(含 `--check` 漂移检测、`--audit` 仓库审计)。中文版 npm version 钩子继续用 `scripts/sync-plugin-version.js`,bump-version.sh 作为补充工具引入。
156
+ - **`assets/app-icon.png`** + **`assets/superpowers-small.svg`** —— Codex marketplace 需要的图标资产。
157
+ - **4 个新增上游测试**:`tests/claude-code/test-requesting-code-review.sh`、`tests/claude-code/test-worktree-native-preference.sh`、`tests/opencode/test-bootstrap-caching.{mjs,sh}`。
158
+
159
+ ### 主动修复上游 v5.1.0 的疏忽
160
+
161
+ - **`.cursor-plugin/plugin.json`** 删除 dangling 的 `"agents": "./agents/"` 和 `"commands": "./commands/"` 两行。上游 v5.1.0 删了目录但忘了同步清理 manifest(git blame 显示这两行从 2026-02-13 加入后从未更新)。中文 fork 主动修掉(向上游开 issue 是后续动作)。
162
+
163
+ ### 修中文版自己的老漂移(PR #23)
164
+
165
+ - **`.claude-plugin/marketplace.json`** 的 `plugins[0].version` 卡在 `1.1.8` 的老漂移修复(追上其他 4 个 manifest,1.3.0 release 时统一升到 1.3.0)。原因是中文版简化版 `sync-plugin-version.js` 之前只 match 顶层 `"version":` 字段,跳过嵌套位置;导致 Claude Code marketplace 用户看到的 plugin 版本一直停在 1.1.8,跟 npm 包真实版本不同步。
166
+ - **`scripts/sync-plugin-version.js`** 增强为支持嵌套字段路径(`plugins.0.version`)。`TARGETS` 改为对象数组 `{ path, field }`,对齐上游 `.version-bump.json` 格式。仍使用 regex 替换而非 JSON re-stringify,保留原文件格式(缩进、行内/多行数组等不被破坏)。
167
+
168
+ ### 不引入
169
+
170
+ - 上游 `scripts/sync-to-codex-plugin.sh`(推 OpenAI Codex marketplace 用,硬编码 `prime-radiant-inc/openai-codex-plugins`,中文版用不上)
171
+ - 配套测试 `tests/codex-plugin-sync/test-sync-to-codex-plugin.sh`
172
+
173
+ ### 不动(中文版叠加层全部保留)
174
+
175
+ `bin/` + npx 流程、`docs/` 中文工具文档、4 个 `chinese-*` skill、`mcp-builder`、`workflow-runner`、`README.md` 主推 npx 路径、`.codex/INSTALL.md`、`.opencode/INSTALL.md`、`.gemini/`、`scripts/sync-plugin-version.js` —— 这些是符合"保持上游主流程不变 + 中文版叠加新增"原则的中文 fork 沉淀,全部保留。
176
+
177
+ ---
178
+
179
+ ## v1.2.1 (2026-05-05)
180
+
181
+ ### 修复
182
+
183
+ - **`--uninstall` 数据丢失边界 case** —— 加哨兵注释 + 保守 fallback,杜绝在某些路径上误删用户数据。
184
+
185
+ ---
186
+
187
+ ## v1.2.0 (2026-05-05)
188
+
189
+ ### 新增
190
+
191
+ - **`--uninstall` 子命令** —— `npx superpowers-zh --uninstall` 一条命令清理已安装的 skills(#17)。
192
+ - **HOME 目录守护** —— uninstall 时强校验工作目录非用户 HOME,杜绝误删全局文件。
193
+ - **计数显示修复** —— 安装后输出实际安装的 skill 数量(之前显示固定值)。
194
+
195
+ ---
196
+
197
+ ## v1.1.9 (2026-04-28)
198
+
199
+ ### 修复
200
+
201
+ - **Claude Code bootstrap 修复** —— npx 安装到 CC 目标时自动补上 `CLAUDE.md` bootstrap,根治 skill 不触发问题(#14)。
202
+
203
+ ### 变更
204
+
205
+ - **Node 引擎要求** 提升到 `>=20`(Node 14/16/18 均已 EOL)。
206
+ - **README 重排**:相关项目表挪到显眼位置;姊妹项目区块独立成"相关项目生态"章节,重点推广 orchestrator。
207
+ - **QQ 群** 标识改为 QQ 2群。
208
+
209
+ ---
210
+
211
+ ## v1.1.8 (2026-04-19)
212
+
213
+ ### 新增
214
+
215
+ - **Claw Code 支持**(第 17 款工具,Rust 版 AI CLI)—— auto-detect `.claw/` 或 `CLAW.md`,支持 `--tool claw/claw-code/clawcode`。
216
+ - **CNB(腾讯云原生构建)平台适配** —— `chinese-git-workflow` skill 新增 CNB 章节,含 `.cnb.yml` CI 示例(#6)。
217
+
218
+ ---
219
+
220
+ ## v1.1.0 – v1.1.7 早期开发(2026-03 ~ 2026-04)
221
+
222
+ 中文 fork 在这一时期完成了主要的多工具适配与中文化基建:
223
+
224
+ - 第 1 款 → 第 16 款工具陆续上线:Claude Code、Cursor、Codex CLI、Gemini CLI、Trae、VS Code (Copilot)、Antigravity、Hermes Agent、Copilot CLI、Windsurf、Aider、OpenCode、Qwen Code(通义灵码)、Kiro、OpenClaw、DeerFlow 2.0
225
+ - 4 个中国原创 skill 沉淀:`chinese-code-review`、`chinese-commit-conventions`、`chinese-documentation`、`chinese-git-workflow`
226
+ - `mcp-builder`、`workflow-runner` 两个补充 skill
227
+ - npx 一条命令自动检测项目工具并安装
228
+ - 跨平台兼容性修复:Windows `cpSync` 问题、低版本 Node 兼容、Antigravity/Aider/Gemini CLI 自动生成 bootstrap
229
+
230
+ ---
231
+
232
+ ## v1.0.0 (2026-03-09)
233
+
234
+ - 中文 fork 初始版本,基于上游 `obra/superpowers` v5.0.0 翻译。
235
+ - 完整翻译 14 个上游 skill。
236
+ - 首批支持 Claude Code 一种工具。
Binary file
@@ -0,0 +1 @@
1
+ <?xml version="1.0" encoding="UTF-8"?><svg id="Calque_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M394.28,207.8c.81,2.41,1.39,4.78,1.8,7.07,1.61,9.03-.93,17.78-5.99,21.74-22.6,17.7-49.85,29.35-75.34,38.6-.59.22-1.09.28-1.4.34-2.22.47-4.95,1.04-7.25,0-1.46-.66-2.25-1.74-2.66-2.3-1.56-2.1-1.59-4.31-1.56-5.13.1-2.67-.01-4.69,0-4.82.45-3.52.91-10.66,1.41-21.28.6-3.87,2.16-9.63,6.94-13.96,4.01-3.62,8.33-4.6,14.59-5.87,10.76-2.19,37.21-8.22,47.42-16.56,1.63-1.33,2.97-2.65,4.19-3.96,3.72-3.99,6.39-7.92,7.93-10.36,3.22,3.22,7.25,8.48,9.92,16.47Z"/><path d="M428.67,185.28c-2.33,11.99-8.91,22.32-15.88,30.38.27-5.5-.05-12.11-1.86-19.08-5.04-19.36-19.74-34.7-37.78-37.78-32.21-9.74-70.59,3.79-99.08,18.29-3.87,1.95-9.52-2.77-11.84-8.16-3.32-7.71-1.63-6.28,2.61-8.49,38.31-20.03,82.01-39.61,123.91-29.7,8.26,1.95,15.96,5.26,23.48,10.54,11.32,7.96,20.21,24.74,16.44,44Z"/><path d="M117.72,304.2c-.81-2.41-1.39-4.78-1.8-7.07-1.61-9.03.93-17.78,5.99-21.74,22.6-17.7,49.85-29.35,75.34-38.6.59-.22,1.09-.28,1.4-.34,2.22-.47,4.95-1.04,7.25,0,1.46.66,2.25,1.74,2.66,2.3,1.56,2.1,1.59,4.31,1.56,5.13-.1,2.67.01,4.69,0,4.82-.45,3.52-.91,10.66-1.41,21.28-.6,3.87-2.16,9.63-6.94,13.96-4.01,3.62-8.33,4.6-14.59,5.87-10.76,2.19-37.21,8.22-47.42,16.56-1.63,1.33-2.97,2.65-4.19,3.96-3.72,3.99-6.39,7.92-7.93,10.36-3.22-3.22-7.25-8.48-9.92-16.47Z"/><path d="M83.33,326.72c2.33-11.99,8.91-22.32,15.88-30.38-.27,5.5.05,12.11,1.86,19.08,5.04,19.36,19.74,34.7,37.78,37.78,32.21,9.74,70.59-3.79,99.08-18.29,3.87-1.95,9.52,2.77,11.84,8.16,3.32,7.71,1.63,6.28-2.61,8.49-38.31,20.03-82.01,39.61-123.91,29.7-8.26-1.95-15.96-5.26-23.48-10.54-11.32-7.96-20.21-24.74-16.44-44Z"/><ellipse cx="255.16" cy="258.86" rx="28.95" ry="28.76"/></svg>
@@ -39,9 +39,13 @@ function copyDirSync(src, dest) {
39
39
  const __dirname = dirname(fileURLToPath(import.meta.url));
40
40
  const PKG = JSON.parse(readFileSync(resolve(__dirname, '..', 'package.json'), 'utf8'));
41
41
  const SKILLS_SRC = resolve(__dirname, '..', 'skills');
42
- const AGENTS_SRC = resolve(__dirname, '..', 'agents');
43
42
  const PROJECT_DIR = process.cwd();
44
43
 
44
+ // 历史遗留 agent 文件名 — 用于 --uninstall 清理已装用户机器上的残留。
45
+ // 上游 v5.1.0 把 agents/code-reviewer.md 上升进 requesting-code-review skill,
46
+ // agents/ 目录已删,但旧版本装过的用户机器上仍有残留文件需要清理。
47
+ const LEGACY_AGENT_FILENAMES = ['code-reviewer.md'];
48
+
45
49
  const TARGETS = [
46
50
  { name: 'Claude Code', dir: '.claude/skills', detect: '.claude' },
47
51
  { name: 'Cursor', dir: '.cursor/skills', detect: ['.cursor', '.cursorrules'] },
@@ -59,6 +63,7 @@ const TARGETS = [
59
63
  { name: 'Qwen Code', dir: '.qwen/skills', detect: '.qwen' },
60
64
  { name: 'Hermes Agent', dir: '.hermes/skills', detect: ['.hermes', 'HERMES.md', '.hermes.md'] },
61
65
  { name: 'Claw Code', dir: '.claw/skills', detect: ['.claw', 'CLAW.md'] },
66
+ { name: 'Qoder', dir: '.qoder/skills', detect: '.qoder' },
62
67
  ];
63
68
 
64
69
  function countDirs(dir) {
@@ -137,6 +142,51 @@ ${skillTable}
137
142
  console.log(` ✅ Trae: bootstrap rule -> ${rulePath}`);
138
143
  }
139
144
 
145
+ function generateQoderBootstrap(projectDir) {
146
+ const rulesDir = resolve(projectDir, '.qoder', 'rules');
147
+ mkdirSync(rulesDir, { recursive: true });
148
+
149
+ const skillEntries = scanSkillEntries(SKILLS_SRC);
150
+ const skillTable = skillEntries.map(s => `| ${s.name} | ${s.desc} |`).join('\n');
151
+
152
+ // Qoder rules schema(来源:社区实际样本,docs.qoder.com/zh/user-guide/rules 没公开)
153
+ // trigger: always_on → "始终生效",适用于所有智能会话和内联对话
154
+ // trigger: model_decision + description: ... → 模型按描述自主决定
155
+ // trigger: manual → 仅 @rule 手动触发
156
+ const rule = `---
157
+ trigger: always_on
158
+ alwaysApply: true
159
+ ---
160
+
161
+ # Superpowers-ZH 中文增强版
162
+
163
+ 你已加载 superpowers-zh 技能框架(${skillEntries.length} 个 skills)。
164
+
165
+ ## 核心规则
166
+
167
+ 1. **收到任务时,先检查是否有匹配的 skill** — 哪怕只有 1% 的可能性也要检查
168
+ 2. **设计先于编码** — 收到功能需求时,先用 brainstorming skill 做需求分析
169
+ 3. **测试先于实现** — 写代码前先写测试(TDD)
170
+ 4. **验证先于完成** — 声称完成前必须运行验证命令
171
+
172
+ ## 可用 Skills
173
+
174
+ Skills 位于 \`.qoder/skills/\` 目录,每个 skill 有独立的 \`SKILL.md\` 文件。
175
+
176
+ | Skill | 触发条件 |
177
+ |-------|---------|
178
+ ${skillTable}
179
+
180
+ ## 如何使用
181
+
182
+ 当任务匹配某个 skill 的触发条件时,读取对应的 \`.qoder/skills/<skill-name>/SKILL.md\` 并严格遵循其流程。也可输入 \`/<skill-name>\` 显式调用。
183
+ `;
184
+
185
+ const rulePath = resolve(rulesDir, 'superpowers-zh.md');
186
+ writeFileSync(rulePath, rule, 'utf8');
187
+ console.log(` ✅ Qoder: bootstrap rule -> ${rulePath}`);
188
+ }
189
+
140
190
  function generateAntigravityBootstrap(projectDir) {
141
191
  const skillEntries = scanSkillEntries(SKILLS_SRC);
142
192
  const skillList = skillEntries.map(s => `- **${s.name}**: ${s.desc}`).join('\n');
@@ -381,6 +431,7 @@ const TOOL_ALIASES = {
381
431
  'claw': 'Claw Code',
382
432
  'claw-code': 'Claw Code',
383
433
  'clawcode': 'Claw Code',
434
+ 'qoder': 'Qoder',
384
435
  };
385
436
 
386
437
  function showHelp() {
@@ -433,6 +484,10 @@ function installForTarget(target) {
433
484
  generateTraeBootstrapRule(PROJECT_DIR);
434
485
  }
435
486
 
487
+ if (target.name === 'Qoder') {
488
+ generateQoderBootstrap(PROJECT_DIR);
489
+ }
490
+
436
491
  if (target.name === 'Antigravity') {
437
492
  generateAntigravityBootstrap(PROJECT_DIR);
438
493
  }
@@ -451,11 +506,6 @@ function installForTarget(target) {
451
506
 
452
507
  if (target.name === 'Claude Code') {
453
508
  generateClaudeCodeBootstrap(PROJECT_DIR);
454
- if (existsSync(AGENTS_SRC)) {
455
- const agentsDest = resolve(PROJECT_DIR, '.claude', 'agents');
456
- mkdirSync(agentsDest, { recursive: true });
457
- copyDirSync(AGENTS_SRC, agentsDest);
458
- }
459
509
  }
460
510
  }
461
511
 
@@ -470,6 +520,7 @@ function isHomeDir(p) {
470
520
  // 卸载支持:完整删除的 bootstrap 文件、需要清理段落的 bootstrap 文件
471
521
  const BOOTSTRAP_DELETE = [
472
522
  '.trae/rules/superpowers-zh.md',
523
+ '.qoder/rules/superpowers-zh.md',
473
524
  '.antigravity/rules.md',
474
525
  ];
475
526
  const BOOTSTRAP_CLEAN_SECTION = [
@@ -597,18 +648,18 @@ function uninstall() {
597
648
  }
598
649
  }
599
650
 
600
- // 顺带清理 .claude/agents 下我们装过的 agent(agents 源是平铺的文件,例如 code-reviewer.md)
651
+ // 清理 .claude/agents 下旧版本装过的 legacy agent(v1.2.x 及之前会装 code-reviewer.md,
652
+ // v1.3.0 起跟随上游 v5.1.0 移除)。即使 agents/ 源目录已删,已装用户跑 --uninstall 仍应能清干净。
601
653
  const agentsDest = resolve(PROJECT_DIR, '.claude', 'agents');
602
- if (existsSync(AGENTS_SRC) && existsSync(agentsDest)) {
603
- const srcAgentNames = new Set(readdirSync(AGENTS_SRC).filter(n => n !== '.DS_Store'));
654
+ if (existsSync(agentsDest)) {
604
655
  let agentsRemoved = 0;
605
656
  for (const entry of readdirSync(agentsDest)) {
606
- if (srcAgentNames.has(entry)) {
657
+ if (LEGACY_AGENT_FILENAMES.includes(entry)) {
607
658
  rmSync(resolve(agentsDest, entry), { recursive: true, force: true });
608
659
  agentsRemoved++;
609
660
  }
610
661
  }
611
- if (agentsRemoved > 0) console.log(` ✅ Claude Code agents: 移除 ${agentsRemoved} 个 -> ${agentsDest}`);
662
+ if (agentsRemoved > 0) console.log(` ✅ Claude Code agents: 移除 ${agentsRemoved} 个旧版残留 -> ${agentsDest}`);
612
663
  try {
613
664
  const left = readdirSync(agentsDest).filter(n => n !== '.DS_Store');
614
665
  if (left.length === 0) rmSync(agentsDest, { recursive: true, force: true });
@@ -709,13 +760,6 @@ function install(forceToolName, force) {
709
760
  console.log(` ✅ 默认安装: ${countDirs(dest)} 个 skills -> ${dest}`);
710
761
 
711
762
  generateClaudeCodeBootstrap(PROJECT_DIR);
712
-
713
- if (existsSync(AGENTS_SRC)) {
714
- const agentsDest = resolve(PROJECT_DIR, '.claude', 'agents');
715
- mkdirSync(agentsDest, { recursive: true });
716
- copyDirSync(AGENTS_SRC, agentsDest);
717
- console.log(` ✅ 默认安装: agents -> ${agentsDest}`);
718
- }
719
763
  }
720
764
 
721
765
  console.log('\n 安装完成!重启你的 AI 编程工具即可生效。\n');
@@ -62,11 +62,14 @@ OpenClaw 与 Claude Code 使用相同的工具名称,skills 无需额外适配
62
62
 
63
63
  ## 使用
64
64
 
65
- 安装完成后重启 OpenClaw,所有 skills 会自动生效。你可以:
65
+ 安装完成后重启 OpenClaw,所有 skills 会自动生效。AI 会按任务上下文自动调用对应 skill:
66
66
 
67
- - 输入 `/brainstorming` 开始头脑风暴
68
- - 输入 `/commit` 使用中文提交规范
69
- - 在任何编码任务中,skills 会被自动调用
67
+ - 新任务 / 新功能 → `brainstorming`(头脑风暴)
68
+ - 写 commit message → `chinese-commit-conventions`(中文 commit 规范)
69
+ - 调试问题 → `systematic-debugging`
70
+ - 完成任务后 → `requesting-code-review`(请求代码审查)
71
+
72
+ 无需手动 slash command 触发 —— AI 通过 skill frontmatter 的 `description` 字段自主选择匹配的 skill。如果想强制触发某个 skill,直接在指令里点名:"用 brainstorming 帮我想一下 X 怎么做"。
70
73
 
71
74
  ## 全局 Skills
72
75
 
@@ -0,0 +1,95 @@
1
+ # Superpowers 中文版 — Qoder 安装指南
2
+
3
+ 在 [Qoder](https://qoder.com)(阿里推出的 AI IDE)中使用 superpowers-zh 的完整指南。
4
+
5
+ ## 自动安装
6
+
7
+ ```bash
8
+ cd /your/project
9
+ npx superpowers-zh
10
+ ```
11
+
12
+ 安装脚本会自动检测 `.qoder/` 目录并:
13
+
14
+ 1. 把 20 个 skills 复制到 `.qoder/skills/<name>/SKILL.md`
15
+ 2. 生成一个**始终生效**的 bootstrap rule `.qoder/rules/superpowers-zh.md`(`trigger: always_on`),让 Qoder 每个会话都加载核心规则与 skill 索引
16
+
17
+ 如果项目目录里还没有 `.qoder/`,可以显式指定:
18
+
19
+ ```bash
20
+ npx superpowers-zh --tool qoder
21
+ ```
22
+
23
+ ## 手动安装
24
+
25
+ ```bash
26
+ git clone https://github.com/jnMetaCode/superpowers-zh.git
27
+ cp -r superpowers-zh/skills /your/project/.qoder/skills
28
+ ```
29
+
30
+ 或全局安装(对所有项目生效):
31
+
32
+ ```bash
33
+ cp -r superpowers-zh/skills ~/.qoder/skills
34
+ ```
35
+
36
+ ## Skill 加载优先级
37
+
38
+ | 位置 | 优先级 | 说明 |
39
+ |------|--------|------|
40
+ | `.qoder/skills/` | 最高 | 项目级,仅当前项目 |
41
+ | `~/.qoder/skills/` | 中 | 用户级,所有项目共享 |
42
+
43
+ > 同名 skill 项目级覆盖用户级。
44
+
45
+ ## 使用
46
+
47
+ 1. 安装完成后**重启 Qoder**
48
+ 2. 在对话框输入 `/` 即可看到已加载的 skills 列表
49
+ 3. bootstrap rule(`.qoder/rules/superpowers-zh.md`)会被 Qoder 识别为"始终生效",每个会话自动加载核心规则
50
+ 4. Qoder 还会根据 skill 的 `description` 自动判断何时调用;也可输入 `/<skill-name>` 手动触发
51
+
52
+ > Qoder Rules schema(`trigger: always_on` / `model_decision` / `manual`)来自社区实际样本,官方文档(docs.qoder.com/zh/user-guide/rules)目前只公开 UI 配置流程未公开 frontmatter schema。如果 Qoder 后续改了 schema,rule 文件可能需要打开 Qoder Settings → Rules 重新选择类型。
53
+
54
+ ## 工具映射说明
55
+
56
+ skills 中引用的 Claude Code 工具名称(`Read` / `Write` / `Edit` / `Bash` / `Grep` / `Glob` / `WebFetch` / `WebSearch` 等)在 Qoder 中**同名对应**,无需额外映射。
57
+
58
+ 少数差异:
59
+
60
+ | Claude Code | Qoder 等价 |
61
+ |-------------|-----------|
62
+ | `EnterPlanMode` / `ExitPlanMode` | `EnterSpecMode` / `ExitSpecMode` |
63
+ | `Task`(子 agent) | `Task`(支持 `explore-agent` / `plan-agent` / `qoder-guide` 等 agent 类型)|
64
+ | `TodoWrite` | `TodoWrite` |
65
+
66
+ > Skill 是工作方法论,不是工具实现 —— 即使工具名略有差异,模型也会自动选用最近似的 Qoder 工具完成。无需为 Qoder 重写 skill。
67
+
68
+ ## 故障排查
69
+
70
+ ### 装好了但 `/` 看不到 skills
71
+
72
+ 1. 确认 `.qoder/skills/<skill-name>/SKILL.md` 文件存在
73
+ 2. 确认 `SKILL.md` 文件的 frontmatter 完整(`name` + `description`,`description` 不超过 1024 字符)
74
+ 3. **必须重启 Qoder** —— 新装的 skill 不会热加载
75
+
76
+ ### skill 不被自动调用
77
+
78
+ Qoder 按 description 文本匹配用户意图来决定何时调用 skill。如果某个 skill 自动调用不可靠,可在对话中显式输入 `/<skill-name>` 手动触发。
79
+
80
+ 中国原创的 4 个 `chinese-*` skill 本身就是**手动触发**设计(避免污染上游 skill 的自动调度),需要显式 `/chinese-code-review` / `/chinese-commit-conventions` 等。
81
+
82
+ ## 卸载
83
+
84
+ ```bash
85
+ cd /your/project
86
+ npx superpowers-zh --uninstall
87
+ ```
88
+
89
+ 会移除 `.qoder/skills/` 目录下所有 superpowers-zh 装的 skill 文件夹(保留你自己写的)。
90
+
91
+ ## 获取帮助
92
+
93
+ - 提交 Issue:https://github.com/jnMetaCode/superpowers-zh/issues
94
+ - 项目主页:https://github.com/jnMetaCode/superpowers-zh
95
+ - Qoder 官方文档:https://docs.qoder.com/zh/extensions/skills
@@ -56,6 +56,17 @@ cd /your/project
56
56
  npx superpowers-zh
57
57
  ```
58
58
 
59
+ ## 卸载 / 误装清理
60
+
61
+ 如果不小心在主目录(`~`)误跑了 `npx superpowers-zh`,会把 skills 和 `.trae/rules/superpowers-zh.md` 写到你的 home。v1.2.1 起会主动拒绝,但老版本可能已经污染过。清理:
62
+
63
+ ```bash
64
+ cd ~ # 或具体的项目目录
65
+ npx superpowers-zh@latest --uninstall
66
+ ```
67
+
68
+ 会删除 `.trae/skills/` 下装过的 skill、`.trae/rules/superpowers-zh.md`,并清理 `CLAUDE.md` 等文件里的 superpowers-zh 段(保留你自己写的内容)。
69
+
59
70
  ## 获取帮助
60
71
 
61
72
  - 提交 Issue:https://github.com/jnMetaCode/superpowers-zh/issues
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superpowers-zh",
3
3
  "description": "AI 编程超能力中文版 — TDD、调试、代码审查等经过实战验证的工作方法论",
4
- "version": "1.1.6",
4
+ "version": "1.5.0",
5
5
  "contextFileName": "GEMINI.md"
6
6
  }
@@ -3,7 +3,7 @@
3
3
  "hooks": {
4
4
  "sessionStart": [
5
5
  {
6
- "command": "./hooks/session-start"
6
+ "command": "./hooks/run-hook.cmd session-start"
7
7
  }
8
8
  ]
9
9
  }
package/package.json CHANGED
@@ -1,27 +1,33 @@
1
1
  {
2
2
  "name": "superpowers-zh",
3
- "version": "1.2.1",
3
+ "version": "1.5.0",
4
4
  "engines": {
5
5
  "node": ">=20.0.0"
6
6
  },
7
- "description": "AI 编程超能力中文增强版 — superpowers(99k+ ⭐)完整汉化 + 6 个中国原创 skills,支持 Claude Code / Copilot CLI / Hermes Agent / Cursor / Claw Code / Windsurf / Kiro / Gemini CLI 等 17 款工具",
7
+ "description": "AI 编程超能力中文增强版 — superpowers(159k+ ⭐)完整汉化 + 4 个中国原创 skills,支持 Claude Code / Copilot CLI / Hermes Agent / Cursor / Claw Code / Windsurf / Kiro / Gemini CLI / Qoder 等 18 款工具",
8
8
  "type": "module",
9
9
  "main": ".opencode/plugins/superpowers.js",
10
10
  "bin": {
11
11
  "superpowers-zh": "bin/superpowers-zh.js"
12
12
  },
13
+ "scripts": {
14
+ "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"
15
+ },
13
16
  "files": [
14
17
  "bin/",
15
18
  "skills/",
16
- "agents/",
17
- "commands/",
18
19
  "hooks/",
20
+ "assets/",
19
21
  ".claude-plugin/",
20
22
  ".cursor-plugin/",
21
23
  ".codex/INSTALL.md",
24
+ ".codex-plugin/",
22
25
  ".opencode/INSTALL.md",
23
26
  ".opencode/plugins/",
27
+ "CLAUDE.md",
24
28
  "GEMINI.md",
29
+ "RELEASE-NOTES.md",
30
+ "RELEASE-NOTES.zh.md",
25
31
  "gemini-extension.json",
26
32
  "docs/",
27
33
  "README.md",
@@ -47,6 +53,7 @@
47
53
  "hermes",
48
54
  "hermes-agent",
49
55
  "claw-code",
56
+ "qoder",
50
57
  "ai-coding",
51
58
  "skills",
52
59
  "chinese",