superpowers-zh 1.5.0 → 1.7.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 (46) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.codex-plugin/plugin.json +3 -2
  4. package/.cursor-plugin/plugin.json +1 -1
  5. package/.pi/extensions/superpowers.ts +121 -0
  6. package/README.md +74 -35
  7. package/README.zh-Hant.md +353 -0
  8. package/RELEASE-NOTES.zh.md +59 -0
  9. package/assets/qr-wechat.jpg +0 -0
  10. package/bin/superpowers-zh.js +242 -98
  11. package/docs/README.antigravity.md +7 -7
  12. package/docs/README.codearts.md +49 -0
  13. package/docs/README.codebuddy.md +54 -0
  14. package/docs/README.kimi.md +86 -0
  15. package/docs/README.pi.md +54 -0
  16. package/docs/README.trae.md +6 -4
  17. package/gemini-extension.json +1 -1
  18. package/hooks/session-start +4 -12
  19. package/package.json +18 -4
  20. package/skills/brainstorming/SKILL.md +5 -0
  21. package/skills/brainstorming/scripts/frame-template.html +25 -26
  22. package/skills/brainstorming/scripts/helper.js +101 -22
  23. package/skills/brainstorming/scripts/server.cjs +399 -30
  24. package/skills/brainstorming/scripts/start-server.sh +70 -9
  25. package/skills/brainstorming/scripts/stop-server.sh +66 -2
  26. package/skills/chinese-code-review/SKILL.md +5 -0
  27. package/skills/chinese-commit-conventions/SKILL.md +5 -0
  28. package/skills/chinese-documentation/SKILL.md +5 -0
  29. package/skills/chinese-git-workflow/SKILL.md +5 -0
  30. package/skills/dispatching-parallel-agents/SKILL.md +5 -0
  31. package/skills/executing-plans/SKILL.md +7 -2
  32. package/skills/finishing-a-development-branch/SKILL.md +7 -2
  33. package/skills/mcp-builder/SKILL.md +5 -0
  34. package/skills/receiving-code-review/SKILL.md +5 -0
  35. package/skills/requesting-code-review/SKILL.md +5 -0
  36. package/skills/subagent-driven-development/SKILL.md +5 -0
  37. package/skills/systematic-debugging/SKILL.md +5 -0
  38. package/skills/test-driven-development/SKILL.md +5 -0
  39. package/skills/using-git-worktrees/SKILL.md +14 -24
  40. package/skills/using-superpowers/SKILL.md +24 -72
  41. package/skills/using-superpowers/references/codex-tools.md +2 -2
  42. package/skills/using-superpowers/references/pi-tools.md +28 -0
  43. package/skills/verification-before-completion/SKILL.md +5 -0
  44. package/skills/workflow-runner/SKILL.md +5 -0
  45. package/skills/writing-plans/SKILL.md +5 -0
  46. package/skills/writing-skills/SKILL.md +5 -0
@@ -1,10 +1,15 @@
1
1
  ---
2
2
  name: using-superpowers
3
3
  description: 在开始任何对话时使用——确立如何查找和使用技能,要求在任何响应(包括澄清性问题)之前调用 Skill 工具
4
+ version: "1.0.0"
5
+ license: MIT
6
+ metadata:
7
+ hermes:
8
+ tags: [meta, getting-started]
4
9
  ---
5
10
 
6
11
  <SUBAGENT-STOP>
7
- 如果你是作为子智能体被分派来执行特定任务的,跳过此技能。
12
+ 如果你是作为子智能体被分派来执行特定任务的,忽略此技能。
8
13
  </SUBAGENT-STOP>
9
14
 
10
15
  <EXTREMELY-IMPORTANT>
@@ -12,70 +17,23 @@ description: 在开始任何对话时使用——确立如何查找和使用技
12
17
 
13
18
  如果一个技能适用于你的任务,你没有选择。你必须使用它。
14
19
 
15
- 这不可协商。这不是可选的。你不能通过合理化来逃避。
20
+ 这不可协商。你不能通过合理化来逃避。
16
21
  </EXTREMELY-IMPORTANT>
17
22
 
18
- ## 指令优先级
19
-
20
- Superpowers 技能覆盖默认系统提示行为,但**用户指令始终具有最高优先级**:
21
-
22
- 1. **用户的明确指令**(CLAUDE.md、GEMINI.md、AGENTS.md、直接请求)——最高优先级
23
- 2. **Superpowers 技能** ——在冲突处覆盖默认系统行为
24
- 3. **默认系统提示** ——最低优先级
25
-
26
- 如果 CLAUDE.md、GEMINI.md 或 AGENTS.md 说"不要使用 TDD",而某个技能说"始终使用 TDD",遵循用户的指令。用户拥有控制权。
27
-
28
- ## 如何访问技能
29
-
30
- **在 Claude Code 中:** 使用 `Skill` 工具。当你调用一个技能时,其内容会被加载并呈现给你——直接遵循即可。绝不要用 Read 工具读取技能文件。
31
-
32
- **在 Copilot CLI 中:** 使用 `skill` 工具。技能从已安装的插件中自动发现。`skill` 工具的工作方式与 Claude Code 的 `Skill` 工具相同。
33
-
34
- **在 Hermes Agent 中:** 使用 `skill_view` 工具加载技能。Hermes 支持三级渐进式加载:`skills_list` 浏览 → `skill_view(name)` 加载完整内容 → `skill_view(name, path)` 查看引用文件。
35
-
36
- **在 Gemini CLI 中:** 技能通过 `activate_skill` 工具激活。Gemini 在会话开始时加载技能元数据,并按需激活完整内容。
23
+ ## 规则
37
24
 
38
- **在其他环境中:** 查看你的平台文档了解技能的加载方式。
25
+ **在任何响应或操作之前调用相关或被请求的技能**——包括澄清性问题、探索代码库、或查看文件之前。如果调用后发现技能不适合当前情况,你不需要使用它。
39
26
 
40
- ## 平台适配
27
+ **在进入 EnterPlanMode 之前:** 如果你还没有头脑风暴过,先调用头脑风暴技能。
41
28
 
42
- 技能使用 Claude Code 的工具名称。非 CC 平台:查看 `references/copilot-tools.md`(Copilot CLI)、`references/hermes-tools.md`(Hermes Agent)、`references/codex-tools.md`(Codex)、`references/qoder-tools.md`(Qoder)了解工具对应关系。Gemini CLI 用户通过 GEMINI.md 自动获得工具映射。
29
+ 然后宣布"使用 [技能] 来 [目的]",并严格遵循该技能。如果它有检查清单,为每个条目创建一个待办。
43
30
 
44
- # 使用技能
31
+ ## 技能优先级
45
32
 
46
- ## 规则
33
+ 当多个技能都适用时,流程技能优先——它们决定处理方式,然后由实现技能(前端设计等)负责执行。头脑风暴和系统化调试是 Superpowers 中最常见的流程技能,但这条规则适用于任何流程技能。
47
34
 
48
- **在任何响应或操作之前调用相关或被请求的技能。** 哪怕只有 1% 的可能性某个技能适用,你都应该调用该技能来检查。如果调用后发现技能不适合当前情况,你不需要使用它。
49
-
50
- ```dot
51
- digraph skill_flow {
52
- "收到用户消息" [shape=doublecircle];
53
- "即将进入 EnterPlanMode?" [shape=doublecircle];
54
- "已经头脑风暴过?" [shape=diamond];
55
- "调用头脑风暴技能" [shape=box];
56
- "可能有技能适用?" [shape=diamond];
57
- "调用 Skill 工具" [shape=box];
58
- "宣布:'使用 [技能] 来 [目的]'" [shape=box];
59
- "有检查清单?" [shape=diamond];
60
- "为每个条目创建 TodoWrite 待办" [shape=box];
61
- "严格遵循技能" [shape=box];
62
- "响应(包括澄清)" [shape=doublecircle];
63
-
64
- "即将进入 EnterPlanMode?" -> "已经头脑风暴过?";
65
- "已经头脑风暴过?" -> "调用头脑风暴技能" [label="否"];
66
- "已经头脑风暴过?" -> "可能有技能适用?" [label="是"];
67
- "调用头脑风暴技能" -> "可能有技能适用?";
68
-
69
- "收到用户消息" -> "可能有技能适用?";
70
- "可能有技能适用?" -> "调用 Skill 工具" [label="是,哪怕只有 1%"];
71
- "可能有技能适用?" -> "响应(包括澄清)" [label="确定不适用"];
72
- "调用 Skill 工具" -> "宣布:'使用 [技能] 来 [目的]'";
73
- "宣布:'使用 [技能] 来 [目的]'" -> "有检查清单?";
74
- "有检查清单?" -> "为每个条目创建 TodoWrite 待办" [label="是"];
75
- "有检查清单?" -> "严格遵循技能" [label="否"];
76
- "为每个条目创建 TodoWrite 待办" -> "严格遵循技能";
77
- }
78
- ```
35
+ - "让我们构建 X" → 先用 superpowers:brainstorming,再用实现技能。
36
+ - "修复这个 bug" → 先用 superpowers:systematic-debugging,再用领域技能。
79
37
 
80
38
  ## 红线
81
39
 
@@ -96,15 +54,17 @@ digraph skill_flow {
96
54
  | "这样做感觉很高效" | 无纪律的行动浪费时间。技能防止这一点。 |
97
55
  | "我知道那是什么意思" | 知道概念 ≠ 使用技能。调用它。 |
98
56
 
99
- ## 技能优先级
57
+ ## 平台适配
100
58
 
101
- 当多个技能可能适用时,使用此顺序:
59
+ 如果你的运行环境在下面列出,请阅读对应的参考文件获取特殊说明:
102
60
 
103
- 1. **流程技能优先**(头脑风暴、调试)- 这些决定如何处理任务
104
- 2. **实现技能其次**(前端设计、mcp-builder)- 这些指导执行
61
+ - Codex:`references/codex-tools.md`
62
+ - Pi:`references/pi-tools.md`
63
+ - Copilot CLI:`references/copilot-tools.md`
64
+ - Hermes Agent:`references/hermes-tools.md`
65
+ - Qoder:`references/qoder-tools.md`
105
66
 
106
- "让我们构建 X" → 先头脑风暴,再使用实现技能。
107
- "修复这个 bug" → 先调试,再使用领域特定技能。
67
+ Gemini CLI 用户通过 GEMINI.md 自动获得 `references/gemini-tools.md` 的工具映射。
108
68
 
109
69
  ## 中国特色技能路由
110
70
 
@@ -125,14 +85,6 @@ digraph skill_flow {
125
85
 
126
86
  中国特色技能与翻译技能**叠加使用**,不互斥。例如:做代码审查时,同时使用 requesting-code-review(流程)+ chinese-code-review(风格)。
127
87
 
128
- ## 技能类型
129
-
130
- **刚性的**(TDD、调试):严格遵循。不要偏离纪律。
131
-
132
- **灵活的**(模式):根据上下文调整原则。
133
-
134
- 技能本身会告诉你它属于哪种。
135
-
136
88
  ## 用户指令
137
89
 
138
- 指令说明做什么,而非怎么做。"添加 X"或"修复 Y"不意味着跳过工作流。
90
+ 用户指令(CLAUDE.md、AGENTS.md、GEMINI.md 等、直接请求)优先于技能,技能又优先于默认行为。只有当你的人类伙伴明确告诉你跳过时,才能跳过技能工作流或指令。
@@ -6,7 +6,7 @@ Skills 使用 Claude Code 的工具名称。在 Codex 中遇到这些名称时
6
6
  |---------------|---------------|
7
7
  | `Task` 工具(派遣子 agent) | `spawn_agent` |
8
8
  | 多个 `Task` 调用(并行) | 多个 `spawn_agent` 调用 |
9
- | Task 返回结果 | `wait` |
9
+ | Task 返回结果 | `wait_agent` |
10
10
  | Task 自动完成 | `close_agent` 释放槽位 |
11
11
  | `TodoWrite`(任务跟踪) | `update_plan` |
12
12
  | `Skill` 工具(调用 skill) | Skills 原生加载——直接按说明操作 |
@@ -22,4 +22,4 @@ Skills 使用 Claude Code 的工具名称。在 Codex 中遇到这些名称时
22
22
  multi_agent = true
23
23
  ```
24
24
 
25
- 启用后可使用 `spawn_agent`、`wait` 和 `close_agent`,支持 `dispatching-parallel-agents` 和 `subagent-driven-development` 等 skills。
25
+ 启用后可使用 `spawn_agent`、`wait_agent` 和 `close_agent`,支持 `dispatching-parallel-agents` 和 `subagent-driven-development` 等 skills。使用 subagent-driven-development 时,implementer 和 reviewer 子 agent 完成全部工作后应始终 `close_agent` 释放。
@@ -0,0 +1,28 @@
1
+ # Pi Tool Mapping
2
+
3
+ Skills speak in actions ("dispatch a subagent", "create a todo", "read a file"). On Pi these resolve to the tools below.
4
+
5
+ | Action skills request | Pi equivalent |
6
+ | --- | --- |
7
+ | Invoke a skill | Pi native skills: load the relevant `SKILL.md` with `read`, or let the human use `/skill:name` |
8
+ | Read a file | `read` |
9
+ | Create a file | `write` |
10
+ | Edit a file | `edit` |
11
+ | Run a shell command | `bash` |
12
+ | Search file contents | `grep` when active; otherwise `bash` with `rg`/`grep` |
13
+ | Find files by name | `find` or `bash` with shell globs |
14
+ | List files and subdirectories | `ls` when active; otherwise `bash` with `ls` |
15
+ | Dispatch a subagent (`Subagent (general-purpose):` template) | Use an installed subagent tool such as `subagent` from `pi-subagents` if available |
16
+ | Task tracking ("create a todo", "mark complete") | Use an installed todo/task tool if available, otherwise track tasks in the plan or `TODO.md` |
17
+
18
+ ## Skills
19
+
20
+ Pi discovers skills from configured skill directories and installed Pi packages. A Superpowers Pi package should expose `skills/` through its `pi.skills` manifest entry. Pi does not expose Claude Code's `Skill` tool, but the agent should still follow the Superpowers rule: when a skill applies, load and follow it before responding.
21
+
22
+ ## Subagents
23
+
24
+ Pi core does not ship a standard subagent tool. The `pi-subagents` package is a strong optional companion and provides a `subagent` tool with single-agent, chain, parallel, async, forked-context, and resume/status workflows. If no subagent tool is available, do not fabricate `Task` calls; execute sequentially in the current session or explain that the optional subagent capability is not installed.
25
+
26
+ ## Task lists
27
+
28
+ Pi core does not ship a standard task-list tool. If a todo/task extension is installed, use its documented tool. Otherwise use Superpowers plan files, checklists in Markdown, or a repo-local `TODO.md` for task tracking. Older Superpowers docs may refer to `TodoWrite`; treat that as the task-tracking action above.
@@ -1,6 +1,11 @@
1
1
  ---
2
2
  name: verification-before-completion
3
3
  description: 在宣称工作完成、已修复或测试通过之前使用,在提交或创建 PR 之前——必须运行验证命令并确认输出后才能声称成功;始终用证据支撑断言
4
+ version: "1.0.0"
5
+ license: MIT
6
+ metadata:
7
+ hermes:
8
+ tags: [quality, verification]
4
9
  ---
5
10
 
6
11
  # 完成前验证
@@ -1,6 +1,11 @@
1
1
  ---
2
2
  name: workflow-runner
3
3
  description: "在 Claude Code / OpenClaw / Cursor 中直接运行 agency-orchestrator YAML 工作流——无需 API key,使用当前会话的 LLM 作为执行引擎。当用户提供 .yaml 工作流文件或要求多角色协作完成任务时触发。"
4
+ version: "1.0.0"
5
+ license: MIT
6
+ metadata:
7
+ hermes:
8
+ tags: [execution, workflow]
4
9
  ---
5
10
 
6
11
  # 工作流执行器:在 AI 工具内运行多角色编排
@@ -1,6 +1,11 @@
1
1
  ---
2
2
  name: writing-plans
3
3
  description: 当你有规格说明或需求用于多步骤任务时使用,在动手写代码之前
4
+ version: "1.0.0"
5
+ license: MIT
6
+ metadata:
7
+ hermes:
8
+ tags: [planning, documentation]
4
9
  ---
5
10
 
6
11
  # 编写计划
@@ -1,6 +1,11 @@
1
1
  ---
2
2
  name: writing-skills
3
3
  description: 当创建新技能、编辑现有技能或在部署前验证技能是否有效时使用
4
+ version: "1.0.0"
5
+ license: MIT
6
+ metadata:
7
+ hermes:
8
+ tags: [skills, documentation]
4
9
  ---
5
10
 
6
11
  # 编写技能