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
@@ -9,14 +9,14 @@ cd /your/project
9
9
  npx superpowers-zh
10
10
  ```
11
11
 
12
- 安装脚本会自动检测 `.antigravity/` 目录并将 skills 复制到该目录。
12
+ 安装脚本会自动检测 `.agents/` 目录并将 skills 复制到该目录。
13
13
 
14
14
  ## 手动安装
15
15
 
16
16
  ```bash
17
17
  git clone https://github.com/jnMetaCode/superpowers-zh.git
18
- mkdir -p /your/project/.antigravity/skills
19
- cp -r superpowers-zh/skills/* /your/project/.antigravity/skills/
18
+ mkdir -p /your/project/.agents/skills
19
+ cp -r superpowers-zh/skills/* /your/project/.agents/skills/
20
20
  ```
21
21
 
22
22
  ## 工作原理
@@ -27,7 +27,7 @@ Antigravity 支持多种规则文件格式:
27
27
  |------|--------|------|
28
28
  | `GEMINI.md` | 最高 | Antigravity 专属规则 |
29
29
  | `AGENTS.md` | 中 | 通用规则(Antigravity、Cursor、Claude Code 共享) |
30
- | `.antigravity/rules.md` | 中 | 项目级规则目录 |
30
+ | `.agents/rules.md` | 中 | 项目级规则目录 |
31
31
  | `CLAUDE.md` | 低 | 也会被自动读取 |
32
32
 
33
33
  ### 推荐配置方式
@@ -37,10 +37,10 @@ Antigravity 支持多种规则文件格式:
37
37
  ```markdown
38
38
  # GEMINI.md
39
39
 
40
- 使用 .antigravity/ 目录下的 superpowers skills 来指导工作流程。
40
+ 使用 .agents/ 目录下的 superpowers skills 来指导工作流程。
41
41
  优先使用 brainstorming(头脑风暴)开始新任务。
42
42
 
43
- Skills 列表参见 .antigravity/ 目录。
43
+ Skills 列表参见 .agents/ 目录。
44
44
  ```
45
45
 
46
46
  **方式二**:在 `AGENTS.md` 中引用(多工具共享):
@@ -49,7 +49,7 @@ Skills 列表参见 .antigravity/ 目录。
49
49
  # AGENTS.md
50
50
 
51
51
  本项目使用 superpowers-zh skills 框架。
52
- Skills 位于 .antigravity/(Antigravity)或 .claude/skills/(Claude Code)目录下。
52
+ Skills 位于 .agents/(Antigravity)或 .claude/skills/(Claude Code)目录下。
53
53
  ```
54
54
 
55
55
  ### 工具映射
@@ -0,0 +1,49 @@
1
+ # 华为云码道 CodeArts 使用指南
2
+
3
+ [华为云码道 CodeArts(CodeArts Doer / Snap)](https://www.huaweicloud.com/product/codeartsdoer.html)是华为云出品的 AI 编程助手,支持 CLI、客户端以及 IntelliJ IDEA / VS Code 插件形态。skills 存放在项目的 `.codeartsdoer/skills/` 目录下。
4
+
5
+ ## 一键安装(推荐)
6
+
7
+ 在你的项目根目录运行:
8
+
9
+ ```bash
10
+ npx superpowers-zh
11
+ ```
12
+
13
+ 自动检测到 `.codeartsdoer/` 时会安装到 CodeArts。检测不到时显式指定:
14
+
15
+ ```bash
16
+ npx superpowers-zh --tool codearts
17
+ ```
18
+
19
+ 安装内容:
20
+
21
+ - `.codeartsdoer/skills/` — 20 个 skill(每个含 `SKILL.md` 及其 `scripts/` 等附属文件)
22
+
23
+ ## Skill 加载优先级
24
+
25
+ | 位置 | 说明 |
26
+ |------|------|
27
+ | `.codeartsdoer/skills/` | 项目级,仅当前项目 |
28
+
29
+ ## ⚠️ 关于自动触发
30
+
31
+ 本适配为 **skills-only**:把 skills 放到 `.codeartsdoer/skills/`,依赖 CodeArts 自身的 skill 发现机制加载。
32
+
33
+ - 如果 CodeArts 会自动扫描并按需触发 `.codeartsdoer/skills/` 下的 skill,则装完重启即可生效。
34
+ - 如果发现**不会自动触发**,可以在对话里**手动点名** skill(例如「用 brainstorming skill 做需求分析」),skill 内容依然可用。
35
+
36
+ > CodeArts 的 bootstrap / 指令文件约定(类似 `CLAUDE.md` 的自动引导文件)我们尚未验证。如果你是 CodeArts 用户、了解它读取哪个指令文件来自动加载规则,欢迎在 [issue #20](https://github.com/jnMetaCode/superpowers-zh/issues/20) 反馈,我们会补上自动触发的 bootstrap 生成。
37
+
38
+ ## 卸载
39
+
40
+ ```bash
41
+ npx superpowers-zh --uninstall
42
+ ```
43
+
44
+ 移除 `.codeartsdoer/skills/` 下由 superpowers-zh 安装的 skill 目录。
45
+
46
+ ## 反馈
47
+
48
+ - 提交 Issue:https://github.com/jnMetaCode/superpowers-zh/issues
49
+ - 项目主页:https://github.com/jnMetaCode/superpowers-zh
@@ -0,0 +1,54 @@
1
+ # CodeBuddy 使用指南
2
+
3
+ [CodeBuddy](https://copilot.tencent.com)(腾讯云 AI 编程助手 / AI IDE)加载 superpowers-zh skills 的方式与 Claude Code 类似:项目根目录的 `CODEBUDDY.md` 作为 bootstrap 引导,skills 放在 `.codebuddy/skills/` 下。
4
+
5
+ ## 一键安装(推荐)
6
+
7
+ 在你的项目根目录运行:
8
+
9
+ ```bash
10
+ npx superpowers-zh
11
+ ```
12
+
13
+ 自动检测到 `.codebuddy/` 或 `CODEBUDDY.md` 时会安装到 CodeBuddy。检测不到时显式指定:
14
+
15
+ ```bash
16
+ npx superpowers-zh --tool codebuddy
17
+ ```
18
+
19
+ 安装内容:
20
+
21
+ - `.codebuddy/skills/` — 20 个 skill(每个含 `SKILL.md`)
22
+ - `CODEBUDDY.md` — bootstrap 引导(已存在则在哨兵注释间追加,不覆盖你的内容)
23
+
24
+ ## Skill 加载优先级
25
+
26
+ | 位置 | 说明 |
27
+ |------|------|
28
+ | `.codebuddy/skills/` | 项目级,仅当前项目 |
29
+
30
+ > 目前仅支持项目级安装。CodeBuddy 的用户级(全局)skills 加载路径尚未验证,确认可行后再补 `--global` 支持。
31
+
32
+ ## 使用
33
+
34
+ 1. 安装完成后**重启 CodeBuddy**。
35
+ 2. CodeBuddy 读取 `CODEBUDDY.md` 后,会在任务匹配某个 skill 的触发条件时,读取对应的 `.codebuddy/skills/<skill-name>/SKILL.md` 并遵循其流程。
36
+ 3. 当任务涉及需求分析、TDD、系统化调试、代码审查等场景时,对应 skill 会被引用。
37
+
38
+ ## 卸载
39
+
40
+ ```bash
41
+ npx superpowers-zh --uninstall
42
+ ```
43
+
44
+ 移除 `.codebuddy/skills/` 下的 skills,并按哨兵注释精确切除 `CODEBUDDY.md` 里的 superpowers-zh 段落(不误删你自己的内容)。
45
+
46
+ ## 故障排查
47
+
48
+ - **skills 没生效**:确认已重启 CodeBuddy;确认 `CODEBUDDY.md` 里存在 `# Superpowers-ZH 中文增强版` 段落。
49
+ - **自动检测不到**:用 `npx superpowers-zh --tool codebuddy` 显式指定。
50
+
51
+ ## 反馈
52
+
53
+ - 提交 Issue:https://github.com/jnMetaCode/superpowers-zh/issues
54
+ - 项目主页:https://github.com/jnMetaCode/superpowers-zh
@@ -0,0 +1,86 @@
1
+ # Superpowers 中文版 · Kimi Code 指南
2
+
3
+ 在 [Kimi Code](https://github.com/MoonshotAI/kimi-code) 上使用 superpowers-zh 的完整说明。
4
+
5
+ ## 安装
6
+
7
+ superpowers-zh 通过 Kimi Code 的插件清单 `.kimi-plugin/plugin.json` 集成,**直接指向仓库现有的 `skills/` 目录**——不复制 skill、不建 symlink、不装 hook、无任何运行时依赖。
8
+
9
+ 打开插件管理器:
10
+
11
+ ```text
12
+ /plugins
13
+ ```
14
+
15
+ 如果 Kimi 插件市场已收录,进入 `Marketplace` > `Superpowers 中文版` 安装即可。
16
+
17
+ 也可以直接从本仓库安装:
18
+
19
+ ```text
20
+ /plugins install https://github.com/jnMetaCode/superpowers-zh
21
+ ```
22
+
23
+ 如需验证尚未发布的改动,显式指定分支:
24
+
25
+ ```text
26
+ /plugins install https://github.com/jnMetaCode/superpowers-zh/tree/main
27
+ ```
28
+
29
+ Kimi Code 在**新会话**才会应用插件变更。安装、更新、启用、禁用或重载插件后,用 `/new` 开一个新会话。
30
+
31
+ ## 工作原理
32
+
33
+ Kimi 插件清单位于 `.kimi-plugin/plugin.json`,做三件事:
34
+
35
+ 1. 把 Kimi Code 指向仓库现有的 `skills/` 目录;
36
+ 2. 通过 `sessionStart.skill` 在会话开始时加载 `using-superpowers`(这是让 skill 在恰当时机自动触发的关键);
37
+ 3. 通过 `skillInstructions` 提供 Kimi 专属的工具映射。
38
+
39
+ ## 工具映射
40
+
41
+ skill 内容描述的是「动作」而非写死某个运行时的工具名。在 Kimi Code 上它们对应到:
42
+
43
+ - 「向用户提问」/「问澄清问题」/「给出多选项」→ `AskUserQuestion`
44
+ - 「创建待办」/「在待办清单中标记完成」→ `TodoList`
45
+ - 「分派子智能体」/「Task tool (general-purpose)」→ `Agent`(用 Kimi 的 subagent 类型,如 `coder`/`explore`/`plan`,**不要**传 `general-purpose`)
46
+ - 「调用某个 skill」→ Kimi Code 原生 `Skill` 工具
47
+ - 「读文件」/「写文件」/「改文件」→ `Read` / `Write` / `Edit`
48
+ - 「跑 shell 命令」→ `Bash`
49
+ - 「搜索文件内容」→ `Grep`
50
+ - 「按路径/模式找文件」→ `Glob`
51
+ - 「抓取 URL」→ `FetchURL`
52
+ - 「联网搜索」→ `WebSearch`
53
+
54
+ 完整映射写在清单的 `skillInstructions` 字段里,由 Kimi 在运行时读取。
55
+
56
+ ## 更新
57
+
58
+ 用 Kimi Code 的插件管理器:
59
+
60
+ ```text
61
+ /plugins
62
+ ```
63
+
64
+ 选中 Superpowers 中文版更新,更新后用 `/new` 开新会话。
65
+
66
+ ## 排错
67
+
68
+ ### 插件没加载
69
+
70
+ 1. 跑 `/plugins info superpowers-zh` 看诊断信息;
71
+ 2. 确认插件已启用;
72
+ 3. 安装或更新后用 `/new` 开新会话。
73
+
74
+ ### 直接 GitHub 安装装到了旧版本
75
+
76
+ 对于裸仓库 URL,Kimi Code 会装最新的 GitHub release(若存在)。要在下一个 release 前测试未发布的改动,显式指定分支:
77
+
78
+ ```text
79
+ /plugins install https://github.com/jnMetaCode/superpowers-zh/tree/main
80
+ ```
81
+
82
+ ### skill 不触发
83
+
84
+ 1. 用 `/plugins info superpowers-zh` 确认插件已启用;
85
+ 2. 用 `/new` 开新会话;
86
+ 3. 试验收提示词:`我们来做个 react todo list`。集成正常的话,会在写任何代码之前先加载 `brainstorming`。
@@ -0,0 +1,54 @@
1
+ # Superpowers 中文版 · Pi 指南
2
+
3
+ 在 [Pi](https://github.com/earendil-works/pi)(oh-my-pi)上使用 superpowers-zh 的完整说明。
4
+
5
+ ## 安装
6
+
7
+ superpowers-zh 通过 Pi 的扩展机制集成,**直接指向仓库现有的 `skills/` 目录**——不复制 skill、不建 symlink、无额外运行时依赖。
8
+
9
+ 集成由 `package.json` 里的 `pi` 字段声明:
10
+
11
+ ```json
12
+ "pi": {
13
+ "skills": ["./skills"],
14
+ "extensions": ["./.pi/extensions/superpowers.ts"]
15
+ }
16
+ ```
17
+
18
+ 并带 `pi-package` keyword,便于 Pi 发现这是一个 Pi 包。
19
+
20
+ 按 Pi 的包安装方式安装 `superpowers-zh`(参考 Pi 文档的包管理命令),Pi 会读取上述 `pi` 配置,挂载 `skills/` 并加载 `.pi/extensions/superpowers.ts` 扩展。
21
+
22
+ ## 工作原理
23
+
24
+ `.pi/extensions/superpowers.ts` 注册了 Pi 的生命周期钩子:
25
+
26
+ 1. **`resources_discover`** — 把仓库的 `skills/` 目录贡献给 Pi 的技能系统;
27
+ 2. **`session_start` / `session_compact`** — 标记需要重新注入 bootstrap;
28
+ 3. **`context`** — 在会话上下文中注入 `using-superpowers` 的内容(去除 frontmatter)+ Pi 工具映射,作为「You have superpowers」bootstrap,让 skill 在恰当时机被遵循;
29
+ 4. **`agent_end`** — 一轮结束后停止重复注入。
30
+
31
+ 注入带有唯一标记,已存在时不会重复注入;并且会插入到 compaction summary 之后,避免被压缩流程吞掉。
32
+
33
+ ## 工具映射
34
+
35
+ Pi 有原生技能系统,但**不暴露** `Skill` 工具。skill 内容描述「动作」,在 Pi 上对应到小写工具:
36
+
37
+ - 「调用某个 skill」→ Pi 原生技能:用 `read` 加载对应 `SKILL.md`,或由人类显式 `/skill:name`
38
+ - 「读/写/改文件」→ `read` / `write` / `edit`
39
+ - 「跑 shell 命令」→ `bash`
40
+ - 「搜索文件内容」→ `grep`,「按名找文件」→ `find`,「列目录」→ `ls`
41
+ - 「分派子智能体」→ 若装了 `pi-subagents` 的 `subagent` 工具则用之;没有则在本会话内完成或说明能力缺失,**不要**臆造 `Task` 调用
42
+ - 「待办清单」→ 若装了 todo/task 工具则用之;否则用 plan 文件或仓库内 `TODO.md` 跟踪;旧的 `TodoWrite` 引用按此处理
43
+
44
+ 完整映射见 [`skills/using-superpowers/references/pi-tools.md`](../skills/using-superpowers/references/pi-tools.md),扩展也会把同样的映射注入会话。
45
+
46
+ ## 验证
47
+
48
+ ```bash
49
+ bash tests/pi/run-tests.sh
50
+ ```
51
+
52
+ 该测试动态加载扩展并校验:声明了 `pi` 包配置、注册了正确的生命周期钩子(且无 pre-compaction 注入)、`resources_discover` 贡献了 `skills/` 目录、`session_start` 注入了「You have superpowers」+「Pi tool mapping」、pi-tools 参考文档存在。
53
+
54
+ > 注:扩展是 TypeScript(仅 `import type`,运行时无类型依赖)。Node 22.6–23.5 需 `--experimental-strip-types`(run-tests.sh 已带),23.6+ 默认支持。
@@ -9,16 +9,18 @@ cd /your/project
9
9
  npx superpowers-zh
10
10
  ```
11
11
 
12
- 安装脚本会自动检测 `.trae/` 目录并将 skills 复制到 `.trae/rules/`。
12
+ 安装脚本会自动检测 `.trae/` 目录,将各 skill 完整复制到 `.trae/skills/`(含 `SKILL.md` 及其 `scripts/` 等附属文件),并在 `.trae/rules/superpowers-zh.md` 生成一份 bootstrap 规则用于自动触发。
13
13
 
14
14
  ## 手动安装
15
15
 
16
16
  ```bash
17
17
  git clone https://github.com/jnMetaCode/superpowers-zh.git
18
- mkdir -p /your/project/.trae/rules
19
- cp -r superpowers-zh/skills/* /your/project/.trae/rules/
18
+ mkdir -p /your/project/.trae/skills
19
+ cp -r superpowers-zh/skills/* /your/project/.trae/skills/
20
20
  ```
21
21
 
22
+ > 手动复制只会放好 skill 文件,不会生成 `.trae/rules/` 下的 bootstrap 自动触发规则。建议优先用上面的 `npx superpowers-zh`,否则需要在对话里手动点名 skill 才会激活。
23
+
22
24
  ## 工作原理
23
25
 
24
26
  Trae 使用 `.rules` 机制管理 AI 行为:
@@ -32,7 +34,7 @@ Trae 使用 `.rules` 机制管理 AI 行为:
32
34
 
33
35
  ### Skills 适配
34
36
 
35
- superpowers-zh 的 SKILL.md 文件可以直接作为 Trae 的 rules 使用。Trae 会在初始化时加载 `.trae/rules/` 下的所有规则文件。
37
+ 安装器把各 skill 放在 `.trae/skills/<skill-name>/`,并在 `.trae/rules/superpowers-zh.md` 写入一份 bootstrap 规则。Trae 初始化时加载 `.trae/rules/` 下的规则,bootstrap 规则会引导 AI 在任务匹配时读取对应的 `.trae/skills/<skill-name>/SKILL.md` 并遵循其流程。
36
38
 
37
39
  ### 推荐配置
38
40
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superpowers-zh",
3
3
  "description": "AI 编程超能力中文版 — TDD、调试、代码审查等经过实战验证的工作方法论",
4
- "version": "1.5.0",
4
+ "version": "1.7.0",
5
5
  "contextFileName": "GEMINI.md"
6
6
  }
@@ -7,13 +7,6 @@ set -euo pipefail
7
7
  SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
8
8
  PLUGIN_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
9
9
 
10
- # Check if legacy skills directory exists and build warning
11
- warning_message=""
12
- legacy_skills_dir="${HOME}/.config/superpowers/skills"
13
- if [ -d "$legacy_skills_dir" ]; then
14
- warning_message="\n\n<important-reminder>IN YOUR FIRST REPLY AFTER SEEING THIS MESSAGE YOU MUST TELL THE USER:⚠️ **WARNING:** Superpowers now uses Claude Code's skills system. Custom skills in ~/.config/superpowers/skills will not be read. Move custom skills to ~/.claude/skills instead. To make this message go away, remove ~/.config/superpowers/skills</important-reminder>"
15
- fi
16
-
17
10
  # Read using-superpowers content
18
11
  using_superpowers_content=$(cat "${PLUGIN_ROOT}/skills/using-superpowers/SKILL.md" 2>&1 || echo "Error reading using-superpowers skill")
19
12
 
@@ -31,8 +24,7 @@ escape_for_json() {
31
24
  }
32
25
 
33
26
  using_superpowers_escaped=$(escape_for_json "$using_superpowers_content")
34
- warning_escaped=$(escape_for_json "$warning_message")
35
- session_context="<EXTREMELY_IMPORTANT>\nYou have superpowers.\n\n**Below is the full content of your 'superpowers:using-superpowers' skill - your introduction to using skills. For all other skills, use the 'Skill' tool:**\n\n${using_superpowers_escaped}\n\n${warning_escaped}\n</EXTREMELY_IMPORTANT>"
27
+ session_context="<EXTREMELY_IMPORTANT>\nYou have superpowers.\n\n**Below is the full content of your 'superpowers:using-superpowers' skill - your introduction to using skills. For all other skills, use the 'Skill' tool:**\n\n${using_superpowers_escaped}\n</EXTREMELY_IMPORTANT>"
36
28
 
37
29
  # Output context injection as JSON.
38
30
  # Cursor hooks expect additional_context (snake_case).
@@ -45,13 +37,13 @@ session_context="<EXTREMELY_IMPORTANT>\nYou have superpowers.\n\n**Below is the
45
37
  # See: https://github.com/obra/superpowers/issues/571
46
38
  if [ -n "${CURSOR_PLUGIN_ROOT:-}" ]; then
47
39
  # Cursor sets CURSOR_PLUGIN_ROOT (may also set CLAUDE_PLUGIN_ROOT)
48
- printf '{\n "additional_context": "%s"\n}\n' "$session_context"
40
+ printf '{\n "additional_context": "%s"\n}\n' "$session_context" | cat
49
41
  elif [ -n "${CLAUDE_PLUGIN_ROOT:-}" ] && [ -z "${COPILOT_CLI:-}" ]; then
50
42
  # Claude Code sets CLAUDE_PLUGIN_ROOT without COPILOT_CLI
51
- printf '{\n "hookSpecificOutput": {\n "hookEventName": "SessionStart",\n "additionalContext": "%s"\n }\n}\n' "$session_context"
43
+ printf '{\n "hookSpecificOutput": {\n "hookEventName": "SessionStart",\n "additionalContext": "%s"\n }\n}\n' "$session_context" | cat
52
44
  else
53
45
  # Copilot CLI (sets COPILOT_CLI=1) or unknown platform — SDK standard format
54
- printf '{\n "additionalContext": "%s"\n}\n' "$session_context"
46
+ printf '{\n "additionalContext": "%s"\n}\n' "$session_context" | cat
55
47
  fi
56
48
 
57
49
  exit 0
package/package.json CHANGED
@@ -1,16 +1,18 @@
1
1
  {
2
2
  "name": "superpowers-zh",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "engines": {
5
5
  "node": ">=20.0.0"
6
6
  },
7
- "description": "AI 编程超能力中文增强版 — superpowers(159k+ ⭐)完整汉化 + 4 个中国原创 skills,支持 Claude Code / Copilot CLI / Hermes Agent / Cursor / Claw Code / Windsurf / Kiro / Gemini CLI / Qoder 等 18 款工具",
7
+ "description": "AI 编程超能力中文增强版 — superpowers(250k+ ⭐)完整汉化 + 4 个中国原创 skills,支持 Claude Code / Copilot CLI / Hermes Agent / Cursor / Claw Code / Windsurf / Kiro / Gemini CLI / Qoder 等 20 款工具",
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
13
  "scripts": {
14
+ "site": "node site/build.mjs",
15
+ "site:deploy": "node site/build.mjs && wrangler pages deploy site/dist --project-name=superpowers-zh-site",
14
16
  "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
17
  },
16
18
  "files": [
@@ -24,6 +26,7 @@
24
26
  ".codex-plugin/",
25
27
  ".opencode/INSTALL.md",
26
28
  ".opencode/plugins/",
29
+ ".pi/extensions/",
27
30
  "CLAUDE.md",
28
31
  "GEMINI.md",
29
32
  "RELEASE-NOTES.md",
@@ -54,17 +57,28 @@
54
57
  "hermes-agent",
55
58
  "claw-code",
56
59
  "qoder",
60
+ "codebuddy",
61
+ "codearts",
57
62
  "ai-coding",
58
63
  "skills",
59
64
  "chinese",
60
65
  "中文",
61
66
  "tdd",
62
67
  "debugging",
63
- "code-review"
68
+ "code-review",
69
+ "pi-package"
64
70
  ],
71
+ "pi": {
72
+ "skills": [
73
+ "./skills"
74
+ ],
75
+ "extensions": [
76
+ "./.pi/extensions/superpowers.ts"
77
+ ]
78
+ },
65
79
  "repository": {
66
80
  "type": "git",
67
- "url": "https://github.com/jnMetaCode/superpowers-zh.git"
81
+ "url": "git+https://github.com/jnMetaCode/superpowers-zh.git"
68
82
  },
69
83
  "homepage": "https://github.com/jnMetaCode/superpowers-zh",
70
84
  "author": "jnMetaCode",
@@ -1,6 +1,11 @@
1
1
  ---
2
2
  name: brainstorming
3
3
  description: "在任何创造性工作之前必须使用此技能——创建功能、构建组件、添加功能或修改行为。在实现之前先探索用户意图、需求和设计。"
4
+ version: "1.0.0"
5
+ license: MIT
6
+ metadata:
7
+ hermes:
8
+ tags: [design, planning]
4
9
  ---
5
10
 
6
11
  # 头脑风暴:将想法转化为设计
@@ -9,11 +9,11 @@
9
9
  *
10
10
  * This template provides a consistent frame with:
11
11
  * - OS-aware light/dark theming
12
- * - Fixed header and selection indicator bar
12
+ * - Header branding and connection status
13
13
  * - Scrollable main content area
14
14
  * - CSS helpers for common UI patterns
15
15
  *
16
- * Content is injected via placeholder comment in #claude-content.
16
+ * Content is injected via placeholder comment in #frame-content.
17
17
  */
18
18
 
19
19
  * { box-sizing: border-box; margin: 0; padding: 0; }
@@ -63,34 +63,37 @@
63
63
  }
64
64
 
65
65
  /* ===== FRAME STRUCTURE ===== */
66
- .header {
67
- background: var(--bg-secondary);
68
- padding: 0.5rem 1.5rem;
69
- display: flex;
70
- justify-content: space-between;
71
- align-items: center;
72
- border-bottom: 1px solid var(--border);
73
- flex-shrink: 0;
66
+ .brand { display: flex; align-items: center; min-width: 0; overflow: hidden; color: var(--text-secondary); line-height: 1; }
67
+ .brand a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 0.5rem; min-width: 0; max-width: 100%; line-height: 1; }
68
+ .brand-copy { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1; transform: translateY(-1px); }
69
+ .brand-logo { display: block; height: 1em; width: auto; max-width: 180px; flex-shrink: 0; filter: invert(1); }
70
+ @media (prefers-color-scheme: dark) {
71
+ .brand-logo { filter: none; }
74
72
  }
75
- .header h1 { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
76
- .header .status { font-size: 0.7rem; color: var(--success); display: flex; align-items: center; gap: 0.4rem; }
77
- .header .status::before { content: ''; width: 6px; height: 6px; background: var(--success); border-radius: 50%; }
73
+ .status { font-size: 0.7rem; color: var(--status-color, var(--success)); display: flex; align-items: center; gap: 0.4rem; justify-self: end; white-space: nowrap; line-height: 1; }
74
+ .status::before { content: ''; width: 6px; height: 6px; background: var(--status-color, var(--success)); border-radius: 50%; }
78
75
 
79
76
  .main { flex: 1; overflow-y: auto; }
80
- #claude-content { padding: 2rem; min-height: 100%; }
77
+ #frame-content { padding: 2rem; min-height: 100%; }
81
78
 
82
- .indicator-bar {
79
+ .header {
83
80
  background: var(--bg-secondary);
84
- border-top: 1px solid var(--border);
81
+ border-bottom: 1px solid var(--border);
85
82
  padding: 0.5rem 1.5rem;
86
83
  flex-shrink: 0;
87
- text-align: center;
84
+ display: grid;
85
+ grid-template-columns: minmax(0, 1fr) auto;
86
+ align-items: center;
87
+ gap: 1rem;
88
+ min-height: 42px;
88
89
  }
89
- .indicator-bar span {
90
+ .header .brand { justify-self: start; width: 100%; font-size: 0.75rem; line-height: 1; }
91
+ .header .status { grid-column: 2; line-height: 1; }
92
+ .header span {
90
93
  font-size: 0.75rem;
91
94
  color: var(--text-secondary);
92
95
  }
93
- .indicator-bar .selected-text {
96
+ .header .selected-text {
94
97
  color: var(--accent);
95
98
  font-weight: 500;
96
99
  }
@@ -196,19 +199,15 @@
196
199
  </head>
197
200
  <body>
198
201
  <div class="header">
199
- <h1><a href="https://github.com/obra/superpowers" style="color: inherit; text-decoration: none;">Superpowers Brainstorming</a></h1>
200
- <div class="status">Connected</div>
202
+ <!-- BRANDING -->
203
+ <div class="status">Connecting…</div>
201
204
  </div>
202
205
 
203
206
  <div class="main">
204
- <div id="claude-content">
207
+ <div id="frame-content">
205
208
  <!-- CONTENT -->
206
209
  </div>
207
210
  </div>
208
211
 
209
- <div class="indicator-bar">
210
- <span id="indicator-text">Click an option above, then return to the terminal</span>
211
- </div>
212
-
213
212
  </body>
214
213
  </html>