@pzy560117/opensuper 0.2.7 → 0.2.8

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/README.md CHANGED
@@ -69,13 +69,15 @@ opensuper init
69
69
 
70
70
  `opensuper init` will:
71
71
 
72
- 1. Prompt you to select AI platforms (auto-detects existing configs)
73
- 2. Choose install scope: project-level (current directory) or global (home directory)
74
- 3. Select language for OpenSuper skills: English or 中文
72
+ 1. Prompt you to select AI platforms (auto-detects existing configs)
73
+ 2. Choose install scope: project-level (current directory) or global (home directory)
74
+ 3. Select language for OpenSuper skills: English or 中文
75
75
  4. Install [OpenSpec](https://github.com/Fission-AI/OpenSpec) skills
76
76
  5. Install [Superpowers](https://github.com/obra/superpowers) skills
77
77
  6. Deploy OpenSuper skills (in your chosen language) to selected platforms
78
- 7. Create `docs/superpowers/specs/` and `docs/superpowers/plans/` working directories
78
+ 7. Create `docs/superpowers/specs/` and `docs/superpowers/plans/` working directories
79
+
80
+ The OpenSuper skill language also determines the default language for documents generated during OpenSuper orchestration. Choosing 中文 makes `proposal.md`, `design.md`, `tasks.md`, delta specs, Design Docs, Plans, and verification reports default to Chinese prose; choosing English makes them default to English prose. Commands, paths, frontmatter keys, code identifiers, package names, and API names stay in their original form.
79
81
 
80
82
  > [!TIP]
81
83
  > update version
@@ -130,9 +132,9 @@ When multiple existing components are found on the same platform, interactive in
130
132
 
131
133
  | Option | Description |
132
134
  |--------|-------------|
133
- | `--json` | Output npm and skill update results as JSON |
134
- | `--language <lang>` | Override detected skill language (`en`, `zh`) |
135
- | `--scope <scope>` | Update only `global` or `project` scope |
135
+ | `--json` | Output npm and skill update results as JSON |
136
+ | `--language <lang>` | Override detected skill language (`en`, `zh`); also determines the default prose language for OpenSuper-generated documents |
137
+ | `--scope <scope>` | Update only `global` or `project` scope |
136
138
 
137
139
  ## Supported Platforms
138
140
 
@@ -157,9 +159,11 @@ When multiple existing components are found on the same platform, interactive in
157
159
 
158
160
  ## Skills
159
161
 
160
- After `opensuper init`, three groups of skills are installed to the selected platform's `skills/` directory:
161
-
162
- ### OpenSuper Skills
162
+ After `opensuper init`, three groups of skills are installed to the selected platform's `skills/` directory:
163
+
164
+ When Chinese OpenSuper skills are installed, OpenSuper passes Chinese output requirements to the OpenSpec and Superpowers skills it invokes, so workflow document prose defaults to Chinese. Installing English skills applies the corresponding English default.
165
+
166
+ ### OpenSuper Skills
163
167
 
164
168
  | Skill | Description |
165
169
  |-------|-------------|
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.6",
2
+ "version": "0.2.8",
3
3
  "skills": [
4
4
  "opensuper/SKILL.md",
5
5
  "opensuper/scripts/opensuper-guard.sh",
@@ -3,9 +3,16 @@ name: opensuper
3
3
  description: "OpenSuper — OpenSpec + Superpowers dual-star development workflow. Start with /opensuper for automatic phase detection and dispatch to subcommands. Five phases: open → design → build → verify → archive."
4
4
  ---
5
5
 
6
- # OpenSuper — OpenSpec + Superpowers Dual-Star Development Workflow
7
-
8
- OpenSpec and Superpowers orbit the same goal like a binary star system. OpenSpec handles WHAT, Superpowers handles HOW.
6
+ # OpenSuper — OpenSpec + Superpowers Dual-Star Development Workflow
7
+
8
+ ## Output Language Contract
9
+
10
+ - Output language: English.
11
+ - This skill writes all user-facing responses and generated documents in English by default, including `proposal.md`, `design.md`, `tasks.md`, delta specs, Design Docs, Plans, verification reports, and archive notes.
12
+ - Keep commands, paths, frontmatter keys, code identifiers, package names, and API names in their original form.
13
+ - Use another prose language only when the user explicitly requests it.
14
+
15
+ OpenSpec and Superpowers orbit the same goal like a binary star system. OpenSpec handles WHAT, Superpowers handles HOW.
9
16
 
10
17
  ```
11
18
  OpenSpec handles WHAT — outline, proposal, spec lifecycle, archive
@@ -3,9 +3,16 @@ name: opensuper-archive
3
3
  description: "OpenSuper Phase 5: Archive. Invoke with /opensuper-archive. Sync delta spec to main spec, archive change."
4
4
  ---
5
5
 
6
- # OpenSuper Phase 5: Archive (Archive)
7
-
8
- ## Prerequisites
6
+ # OpenSuper Phase 5: Archive (Archive)
7
+
8
+ ## Output Language Contract
9
+
10
+ - Output language: English.
11
+ - This skill writes all user-facing responses and generated documents in English by default, including `proposal.md`, `design.md`, `tasks.md`, delta specs, Design Docs, Plans, verification reports, and archive notes.
12
+ - Keep commands, paths, frontmatter keys, code identifiers, package names, and API names in their original form.
13
+ - Use another prose language only when the user explicitly requests it.
14
+
15
+ ## Prerequisites
9
16
 
10
17
  - Verification passed (Phase 4 complete)
11
18
  - Branch handled
@@ -3,9 +3,16 @@ name: opensuper-build
3
3
  description: "OpenSuper Phase 3: Plan and Build. Invoke with /opensuper-build. Create plans and choose execution method (subagent or direct) for implementation."
4
4
  ---
5
5
 
6
- # OpenSuper Phase 3: Plan and Build (Build)
7
-
8
- ## Prerequisites
6
+ # OpenSuper Phase 3: Plan and Build (Build)
7
+
8
+ ## Output Language Contract
9
+
10
+ - Output language: English.
11
+ - This skill writes all user-facing responses and generated documents in English by default, including `proposal.md`, `design.md`, `tasks.md`, delta specs, Design Docs, Plans, verification reports, and archive notes.
12
+ - Keep commands, paths, frontmatter keys, code identifiers, package names, and API names in their original form.
13
+ - Use another prose language only when the user explicitly requests it.
14
+
15
+ ## Prerequisites
9
16
 
10
17
  - Design Doc has been created (Phase 2 complete)
11
18
  - Active change exists
@@ -27,11 +34,12 @@ Proceed to Step 1 after verification passes. The script outputs specific failure
27
34
 
28
35
  ### 1. Create Plan
29
36
 
30
- **Immediately execute:** Use the Skill tool to load the `superpowers:writing-plans` skill. Skipping this step is prohibited.
31
-
32
- After the skill loads, follow its guidance to create a plan. Plan requirements:
33
- - Save to `docs/superpowers/plans/YYYY-MM-DD-<feature>.md`
34
- - Reference design document, break down into executable tasks
37
+ **Immediately execute:** Use the Skill tool to load the `superpowers:writing-plans` skill and pass this requirement: `Output language: English`. Skipping this step is prohibited.
38
+
39
+ After the skill loads, follow its guidance to create a plan. Plan requirements:
40
+ - Save to `docs/superpowers/plans/YYYY-MM-DD-<feature>.md`
41
+ - Reference design document, break down into executable tasks
42
+ - Plan prose must be written in English; frontmatter keys, paths, commands, and code identifiers stay in their original form
35
43
  - **Plan file header must contain associated metadata**:
36
44
 
37
45
  ```yaml
@@ -125,9 +133,9 @@ bash "$OPENSUPER_STATE" set <name> build_mode direct
125
133
 
126
134
  Without `direct_override: true`, `build_mode=direct` in full workflow is blocked by both guard and state transition.
127
135
 
128
- Then, **immediately execute:** Use the Skill tool to load the corresponding skill. Skipping this step is prohibited.
129
-
130
- If the selected Superpowers skill is unavailable, stop the process and prompt to install or enable the corresponding skill. Do not substitute this step with normal conversation.
136
+ Then, **immediately execute:** Use the Skill tool to load the corresponding skill and pass this requirement: `Output language: English`. Skipping this step is prohibited.
137
+
138
+ If the selected Superpowers skill is unavailable, stop the process and prompt to install or enable the corresponding skill. Do not substitute this step with normal conversation.
131
139
 
132
140
  After the skill loads, follow its guidance to execute:
133
141
  - Execute tasks according to plan
@@ -3,9 +3,16 @@ name: opensuper-design
3
3
  description: "OpenSuper Phase 2: Deep Design. Invoke with /opensuper-design. Produce Design Doc and delta spec through brainstorming."
4
4
  ---
5
5
 
6
- # OpenSuper Phase 2: Deep Design (Design)
7
-
8
- ## Prerequisites
6
+ # OpenSuper Phase 2: Deep Design (Design)
7
+
8
+ ## Output Language Contract
9
+
10
+ - Output language: English.
11
+ - This skill writes all user-facing responses and generated documents in English by default, including `proposal.md`, `design.md`, `tasks.md`, delta specs, Design Docs, Plans, verification reports, and archive notes.
12
+ - Keep commands, paths, frontmatter keys, code identifiers, package names, and API names in their original form.
13
+ - Use another prose language only when the user explicitly requests it.
14
+
15
+ ## Prerequisites
9
16
 
10
17
  - Active change exists (proposal.md, design.md, tasks.md)
11
18
  - No Design Doc (no corresponding file under `docs/superpowers/specs/`)
@@ -36,11 +43,13 @@ Read `proposal.md` and `design.md` under the active change, organize core conten
36
43
  **Immediately execute:** Use the Skill tool to load the `superpowers:brainstorming` skill, ARGUMENTS contains:
37
44
 
38
45
  ```
39
- Change: <change-name>
40
- Proposal summary: <proposal core content>
41
- Design summary: <design.md architectural decisions>
42
- Skip context exploration, proceed directly to design questioning.
43
- ```
46
+ Change: <change-name>
47
+ Output language: English
48
+ Proposal summary: <proposal core content>
49
+ Design summary: <design.md architectural decisions>
50
+ Skip context exploration, proceed directly to design questioning.
51
+ Generated Design Docs, delta specs, discussion summaries, and follow-up task prose must be written in English; commands, paths, frontmatter keys, and code identifiers stay in their original form.
52
+ ```
44
53
 
45
54
  Skipping this step is prohibited, and continuing without loading this skill is prohibited.
46
55
 
@@ -3,9 +3,16 @@ name: opensuper-hotfix
3
3
  description: "OpenSuper preset path: Bug fix / hotfix. Skip brainstorming, directly open → build → verify → archive. Applicable for behavior fixes, scenarios not involving new capability design."
4
4
  ---
5
5
 
6
- # OpenSuper Preset Path: Hotfix
7
-
8
- Quick bug fix workflow: open → build → verify → archive. Skip brainstorming and full plan, applicable for behavior fixes not involving new capability design.
6
+ # OpenSuper Preset Path: Hotfix
7
+
8
+ ## Output Language Contract
9
+
10
+ - Output language: English.
11
+ - This skill writes all user-facing responses and generated documents in English by default, including `proposal.md`, `design.md`, `tasks.md`, delta specs, Design Docs, Plans, verification reports, and archive notes.
12
+ - Keep commands, paths, frontmatter keys, code identifiers, package names, and API names in their original form.
13
+ - Use another prose language only when the user explicitly requests it.
14
+
15
+ Quick bug fix workflow: open → build → verify → archive. Skip brainstorming and full plan, applicable for behavior fixes not involving new capability design.
9
16
 
10
17
  **Applicable conditions** (all must be met):
11
18
  1. Fix bugs in existing functionality, no new capability
@@ -33,9 +40,9 @@ OPENSUPER_ARCHIVE="${OPENSUPER_ARCHIVE:-$(find "${OPENSUPER_SEARCH_ROOTS[@]}" -p
33
40
 
34
41
  Reuse OpenSuper open capability to create change, but use hotfix defaults: do not execute `openspec-explore` long exploration, directly enter streamlined change creation.
35
42
 
36
- **Immediately execute:** Use the Skill tool to load the `openspec-new-change` skill. Skipping this step is prohibited.
37
-
38
- After the skill loads, follow its guidance to create streamlined artifacts:
43
+ **Immediately execute:** Use the Skill tool to load the `openspec-new-change` skill and pass this requirement: `Output language: English`. Skipping this step is prohibited.
44
+
45
+ After the skill loads, follow its guidance to create streamlined artifacts:
39
46
  - `proposal.md` — problem description + root cause analysis + fix goal (no solution comparison needed)
40
47
  - `design.md` — fix solution (one is enough, no multi-solution comparison needed)
41
48
  - `tasks.md` — fix task list
@@ -3,9 +3,16 @@ name: opensuper-open
3
3
  description: "OpenSuper Phase 1: Open. Invoke with /opensuper-open. Explore ideas through OpenSpec and create change structure (proposal + design + tasks)."
4
4
  ---
5
5
 
6
- # OpenSuper Phase 1: Open
7
-
8
- ## Prerequisites
6
+ # OpenSuper Phase 1: Open
7
+
8
+ ## Output Language Contract
9
+
10
+ - Output language: English.
11
+ - This skill writes all user-facing responses and generated documents in English by default, including `proposal.md`, `design.md`, `tasks.md`, delta specs, Design Docs, Plans, verification reports, and archive notes.
12
+ - Keep commands, paths, frontmatter keys, code identifiers, package names, and API names in their original form.
13
+ - Use another prose language only when the user explicitly requests it.
14
+
15
+ ## Prerequisites
9
16
 
10
17
  - No active change, or user wishes to create a new change
11
18
 
@@ -28,13 +35,15 @@ fi
28
35
 
29
36
  ### 1. Explore Idea
30
37
 
31
- **Immediately execute:** Use the Skill tool to load the `openspec-explore` skill. Skipping this step is prohibited.
32
-
33
- After the skill loads, freely explore the problem space following its guidance.
38
+ **Immediately execute:** Use the Skill tool to load the `openspec-explore` skill and pass this requirement: `Output language: English`. Skipping this step is prohibited.
39
+
40
+ After the skill loads, freely explore the problem space following its guidance. Exploration notes, problem breakdowns, and candidate solutions must be written in English.
34
41
 
35
42
  ### 2. Create Change Structure
36
43
 
37
- **Immediately execute:** Use the Skill tool to load the `openspec-new-change` skill. If user intent is unclear and needs to form a proposal first, load `openspec-propose` instead. Skipping this step is prohibited.
44
+ **Immediately execute:** Use the Skill tool to load the `openspec-new-change` skill and pass this requirement: `Output language: English`. If user intent is unclear and needs to form a proposal first, load `openspec-propose` instead and pass the same English output requirement. Skipping this step is prohibited.
45
+
46
+ The generated `proposal.md`, `design.md`, and `tasks.md` prose must be written in English; commands, paths, field names, and code identifiers stay in their original form.
38
47
 
39
48
  Confirm the following artifacts have been created:
40
49
 
@@ -3,9 +3,16 @@ name: opensuper-tweak
3
3
  description: "OpenSuper preset path: Non-bug small changes (tweak). Skip brainstorming and full plan, directly open → lightweight build → light verify → archive. Applicable for copy, configuration, documentation or prompt local optimization."
4
4
  ---
5
5
 
6
- # OpenSuper Preset Path: Tweak
7
-
8
- Tweak is a preset workflow of OpenSuper's five-phase capabilities, not a separate parallel process. It reuses open, build, verify, archive capabilities, only skipping brainstorming and full plan.
6
+ # OpenSuper Preset Path: Tweak
7
+
8
+ ## Output Language Contract
9
+
10
+ - Output language: English.
11
+ - This skill writes all user-facing responses and generated documents in English by default, including `proposal.md`, `design.md`, `tasks.md`, delta specs, Design Docs, Plans, verification reports, and archive notes.
12
+ - Keep commands, paths, frontmatter keys, code identifiers, package names, and API names in their original form.
13
+ - Use another prose language only when the user explicitly requests it.
14
+
15
+ Tweak is a preset workflow of OpenSuper's five-phase capabilities, not a separate parallel process. It reuses open, build, verify, archive capabilities, only skipping brainstorming and full plan.
9
16
 
10
17
  Applicable for small-scale non-bug changes, such as copy adjustments, configuration adjustments, documentation or prompt local optimization.
11
18
 
@@ -36,9 +43,9 @@ OPENSUPER_ARCHIVE="${OPENSUPER_ARCHIVE:-$(find "${OPENSUPER_SEARCH_ROOTS[@]}" -p
36
43
 
37
44
  Reuse OpenSuper open capability to create change, but use tweak defaults: do not execute `openspec-explore` long exploration, directly enter streamlined change creation.
38
45
 
39
- **Immediately execute:** Use the Skill tool to load the `openspec-new-change` skill. Skipping this step is prohibited.
40
-
41
- After the skill loads, follow its guidance to create streamlined artifacts:
46
+ **Immediately execute:** Use the Skill tool to load the `openspec-new-change` skill and pass this requirement: `Output language: English`. Skipping this step is prohibited.
47
+
48
+ After the skill loads, follow its guidance to create streamlined artifacts:
42
49
  - `proposal.md` — change motivation + goals + scope
43
50
  - `design.md` — brief implementation description (no solution comparison needed)
44
51
  - `tasks.md` — not exceeding 3 tasks
@@ -3,9 +3,16 @@ name: opensuper-verify
3
3
  description: "OpenSuper Phase 4: Verify and Complete. Invoke with /opensuper-verify. Verify implementation matches design, handle development branch."
4
4
  ---
5
5
 
6
- # OpenSuper Phase 4: Verify and Complete (Verify)
7
-
8
- ## Prerequisites
6
+ # OpenSuper Phase 4: Verify and Complete (Verify)
7
+
8
+ ## Output Language Contract
9
+
10
+ - Output language: English.
11
+ - This skill writes all user-facing responses and generated documents in English by default, including `proposal.md`, `design.md`, `tasks.md`, delta specs, Design Docs, Plans, verification reports, and archive notes.
12
+ - Keep commands, paths, frontmatter keys, code identifiers, package names, and API names in their original form.
13
+ - Use another prose language only when the user explicitly requests it.
14
+
15
+ ## Prerequisites
9
16
 
10
17
  - Code has been committed (Phase 3 complete)
11
18
  - All tasks in tasks.md are complete
@@ -79,9 +86,9 @@ bash "$OPENSUPER_STATE" transition <name> verify-fail
79
86
 
80
87
  When scale assessment result is "large":
81
88
 
82
- **Immediately execute:** Use the Skill tool to load the `openspec-verify-change` skill. Skipping this step is prohibited.
83
-
84
- After the skill loads, follow its guidance to verify. Check items:
89
+ **Immediately execute:** Use the Skill tool to load the `openspec-verify-change` skill and pass this requirement: `Output language: English`. Skipping this step is prohibited.
90
+
91
+ After the skill loads, follow its guidance to verify. Check items:
85
92
  1. All tasks in tasks.md completed (`[x]`)
86
93
  2. Implementation matches design.md design decisions
87
94
  3. Implementation matches brainstorming design document
@@ -104,7 +111,7 @@ bash "$OPENSUPER_STATE" transition <name> verify-fail
104
111
 
105
112
  ### 3. Completion (Superpowers)
106
113
 
107
- **Immediately execute:** Use the Skill tool to load the `superpowers:finishing-a-development-branch` skill. Skipping this step is prohibited.
114
+ **Immediately execute:** Use the Skill tool to load the `superpowers:finishing-a-development-branch` skill and pass this requirement: `Output language: English`. Skipping this step is prohibited.
108
115
 
109
116
  If `superpowers:finishing-a-development-branch` is unavailable, stop the process and prompt to install or enable Superpowers skills. Do not substitute this step with normal conversation.
110
117
 
@@ -3,9 +3,16 @@ name: opensuper
3
3
  description: "OpenSuper — OpenSpec + Superpowers 双星开发流程。用 /opensuper 启动,自动检测阶段并分发到子命令。五阶段:开启 → 深度设计 → 计划与构建 → 验证与收尾 → 归档。"
4
4
  ---
5
5
 
6
- # OpenSuper — OpenSpec + Superpowers 双星开发流程
7
-
8
- OpenSpec 与 Superpowers 如双星系统围绕同一目标运转。
6
+ # OpenSuper — OpenSpec + Superpowers 双星开发流程
7
+
8
+ ## 产出语言契约
9
+
10
+ - 产出语言:中文。
11
+ - 本 skill 的所有面向用户输出和生成文档默认使用中文,包括 `proposal.md`、`design.md`、`tasks.md`、delta spec、Design Doc、Plan、verification report 和归档说明。
12
+ - 命令、路径、frontmatter key、代码标识符、包名和 API 名称保持原文。
13
+ - 只有用户明确要求英文时才改用英文正文。
14
+
15
+ OpenSpec 与 Superpowers 如双星系统围绕同一目标运转。
9
16
 
10
17
  ```
11
18
  OpenSpec 负责 WHAT — 大纲、提案、spec 生命周期、归档
@@ -3,9 +3,16 @@ name: opensuper-archive
3
3
  description: "OpenSuper 阶段 5:归档。用 /opensuper-archive 调用。同步 delta spec 到主 spec,归档 change。"
4
4
  ---
5
5
 
6
- # OpenSuper 阶段 5:归档(Archive)
7
-
8
- ## 前置条件
6
+ # OpenSuper 阶段 5:归档(Archive)
7
+
8
+ ## 产出语言契约
9
+
10
+ - 产出语言:中文。
11
+ - 本 skill 的所有面向用户输出和生成文档默认使用中文,包括 `proposal.md`、`design.md`、`tasks.md`、delta spec、Design Doc、Plan、verification report 和归档说明。
12
+ - 命令、路径、frontmatter key、代码标识符、包名和 API 名称保持原文。
13
+ - 只有用户明确要求英文时才改用英文正文。
14
+
15
+ ## 前置条件
9
16
 
10
17
  - 验证已通过(阶段 4 完成)
11
18
  - 分支已处理
@@ -3,9 +3,16 @@ name: opensuper-build
3
3
  description: "OpenSuper 阶段 3:计划与构建。用 /opensuper-build 调用。制定计划并选择执行方式(subagent 或直接执行)实施。"
4
4
  ---
5
5
 
6
- # OpenSuper 阶段 3:计划与构建(Build)
7
-
8
- ## 前置条件
6
+ # OpenSuper 阶段 3:计划与构建(Build)
7
+
8
+ ## 产出语言契约
9
+
10
+ - 产出语言:中文。
11
+ - 本 skill 的所有面向用户输出和生成文档默认使用中文,包括 `proposal.md`、`design.md`、`tasks.md`、delta spec、Design Doc、Plan、verification report 和归档说明。
12
+ - 命令、路径、frontmatter key、代码标识符、包名和 API 名称保持原文。
13
+ - 只有用户明确要求英文时才改用英文正文。
14
+
15
+ ## 前置条件
9
16
 
10
17
  - Design Doc 已创建(阶段 2 完成)
11
18
  - 活跃 change 存在
@@ -27,11 +34,12 @@ bash "$OPENSUPER_STATE" check <name> build
27
34
 
28
35
  ### 1. 制定计划
29
36
 
30
- **立即执行:** 使用 Skill 工具加载 `superpowers:writing-plans` 技能。禁止跳过此步骤。
31
-
32
- 技能加载后,按其指引制定计划。计划要求:
33
- - 保存至 `docs/superpowers/plans/YYYY-MM-DD-<feature>.md`
34
- - 引用设计文档,拆分为可执行任务
37
+ **立即执行:** 使用 Skill 工具加载 `superpowers:writing-plans` 技能,并传入要求:`产出语言:中文`。禁止跳过此步骤。
38
+
39
+ 技能加载后,按其指引制定计划。计划要求:
40
+ - 保存至 `docs/superpowers/plans/YYYY-MM-DD-<feature>.md`
41
+ - 引用设计文档,拆分为可执行任务
42
+ - Plan 正文必须使用中文;frontmatter key、路径、命令和代码标识符保持原文
35
43
  - **Plan 文件头必须包含关联元数据**:
36
44
 
37
45
  ```yaml
@@ -125,9 +133,9 @@ bash "$OPENSUPER_STATE" set <name> build_mode direct
125
133
 
126
134
  没有 `direct_override: true` 时,full workflow 的 `build_mode=direct` 会被 guard 和状态转换同时拦截。
127
135
 
128
- 然后,**立即执行:** 使用 Skill 工具加载对应技能。禁止跳过此步骤。
129
-
130
- 如所选 Superpowers 技能不可用,停止流程并提示安装或启用对应技能,不要用普通对话替代该步骤。
136
+ 然后,**立即执行:** 使用 Skill 工具加载对应技能,并传入要求:`产出语言:中文`。禁止跳过此步骤。
137
+
138
+ 如所选 Superpowers 技能不可用,停止流程并提示安装或启用对应技能,不要用普通对话替代该步骤。
131
139
 
132
140
  技能加载后,按其指引执行:
133
141
  - 按计划执行任务
@@ -3,9 +3,16 @@ name: opensuper-design
3
3
  description: "OpenSuper 阶段 2:深度设计。用 /opensuper-design 调用。通过 brainstorming 产出 Design Doc 和 delta spec。"
4
4
  ---
5
5
 
6
- # OpenSuper 阶段 2:深度设计(Design)
7
-
8
- ## 前置条件
6
+ # OpenSuper 阶段 2:深度设计(Design)
7
+
8
+ ## 产出语言契约
9
+
10
+ - 产出语言:中文。
11
+ - 本 skill 的所有面向用户输出和生成文档默认使用中文,包括 `proposal.md`、`design.md`、`tasks.md`、delta spec、Design Doc、Plan、verification report 和归档说明。
12
+ - 命令、路径、frontmatter key、代码标识符、包名和 API 名称保持原文。
13
+ - 只有用户明确要求英文时才改用英文正文。
14
+
15
+ ## 前置条件
9
16
 
10
17
  - 活跃 change 已存在(proposal.md、design.md、tasks.md)
11
18
  - 无 Design Doc(`docs/superpowers/specs/` 下无对应文件)
@@ -36,11 +43,13 @@ bash "$OPENSUPER_STATE" check <name> design
36
43
  **立即执行:** 使用 Skill 工具加载 `superpowers:brainstorming` 技能,ARGUMENTS 包含:
37
44
 
38
45
  ```
39
- Change: <change-name>
40
- Proposal 摘要: <proposal 核心内容>
41
- Design 摘要: <design.md 架构决策>
42
- 跳过上下文探索,直接进入设计提问。
43
- ```
46
+ Change: <change-name>
47
+ 产出语言:中文
48
+ Proposal 摘要: <proposal 核心内容>
49
+ Design 摘要: <design.md 架构决策>
50
+ 跳过上下文探索,直接进入设计提问。
51
+ 生成的 Design Doc、delta spec、讨论摘要和后续任务正文必须使用中文;命令、路径、frontmatter key、代码标识符保持原文。
52
+ ```
44
53
 
45
54
  禁止跳过此步骤,禁止在未加载该技能的情况下继续。
46
55
 
@@ -3,9 +3,16 @@ name: opensuper-hotfix
3
3
  description: "OpenSuper 预设路径:Bug fix / 热修复。跳过 brainstorming,直接 open → build → verify → archive。适用于行为修复、不涉及新 capability 设计的场景。"
4
4
  ---
5
5
 
6
- # OpenSuper 预设路径:Hotfix
7
-
8
- 快速 bug fix 工作流:open → build → verify → archive。跳过 brainstorming 和完整 plan,适用于行为修复、不涉及新 capability 设计的场景。
6
+ # OpenSuper 预设路径:Hotfix
7
+
8
+ ## 产出语言契约
9
+
10
+ - 产出语言:中文。
11
+ - 本 skill 的所有面向用户输出和生成文档默认使用中文,包括 `proposal.md`、`design.md`、`tasks.md`、delta spec、Design Doc、Plan、verification report 和归档说明。
12
+ - 命令、路径、frontmatter key、代码标识符、包名和 API 名称保持原文。
13
+ - 只有用户明确要求英文时才改用英文正文。
14
+
15
+ 快速 bug fix 工作流:open → build → verify → archive。跳过 brainstorming 和完整 plan,适用于行为修复、不涉及新 capability 设计的场景。
9
16
 
10
17
  **适用条件**(必须全部满足):
11
18
  1. 修复已有功能的 bug,不新增 capability
@@ -33,9 +40,9 @@ OPENSUPER_ARCHIVE="${OPENSUPER_ARCHIVE:-$(find "${OPENSUPER_SEARCH_ROOTS[@]}" -p
33
40
 
34
41
  复用 OpenSuper open 能力创建 change,但使用 hotfix 默认值:不执行 `openspec-explore` 长探索,直接进入精简 change 创建。
35
42
 
36
- **立即执行:** 使用 Skill 工具加载 `openspec-new-change` 技能。禁止跳过此步骤。
37
-
38
- 技能加载后,按其指引创建精简版产物:
43
+ **立即执行:** 使用 Skill 工具加载 `openspec-new-change` 技能,并传入要求:`产出语言:中文`。禁止跳过此步骤。
44
+
45
+ 技能加载后,按其指引创建精简版产物:
39
46
  - `proposal.md` — 问题描述 + 根因分析 + 修复目标(无需方案对比)
40
47
  - `design.md` — 修复方案(1 个即可,无需多方案对比)
41
48
  - `tasks.md` — 修复任务清单
@@ -3,9 +3,16 @@ name: opensuper-open
3
3
  description: "OpenSuper 阶段 1:开启。用 /opensuper-open 调用。通过 OpenSpec 探索想法、创建 change 结构(proposal + design + tasks)。"
4
4
  ---
5
5
 
6
- # OpenSuper 阶段 1:开启(Open)
7
-
8
- ## 前置条件
6
+ # OpenSuper 阶段 1:开启(Open)
7
+
8
+ ## 产出语言契约
9
+
10
+ - 产出语言:中文。
11
+ - 本 skill 的所有面向用户输出和生成文档默认使用中文,包括 `proposal.md`、`design.md`、`tasks.md`、delta spec、Design Doc、Plan、verification report 和归档说明。
12
+ - 命令、路径、frontmatter key、代码标识符、包名和 API 名称保持原文。
13
+ - 只有用户明确要求英文时才改用英文正文。
14
+
15
+ ## 前置条件
9
16
 
10
17
  - 无活跃 change,或用户希望创建新 change
11
18
 
@@ -13,13 +20,15 @@ description: "OpenSuper 阶段 1:开启。用 /opensuper-open 调用。通过
13
20
 
14
21
  ### 1. 探索想法
15
22
 
16
- **立即执行:** 使用 Skill 工具加载 `openspec-explore` 技能。禁止跳过此步骤。
17
-
18
- 技能加载后,按其指引自由探索问题空间。
23
+ **立即执行:** 使用 Skill 工具加载 `openspec-explore` 技能,并传入要求:`产出语言:中文`。禁止跳过此步骤。
24
+
25
+ 技能加载后,按其指引自由探索问题空间。探索结论、问题拆解和候选方案正文必须使用中文。
19
26
 
20
27
  ### 2. 创建 Change 结构 + 初始化状态
21
28
 
22
- **立即执行:** 使用 Skill 工具加载 `openspec-new-change` 技能。若用户意图未明确、需要先形成建议,改为加载 `openspec-propose`。禁止跳过此步骤。
29
+ **立即执行:** 使用 Skill 工具加载 `openspec-new-change` 技能,并传入要求:`产出语言:中文`。若用户意图未明确、需要先形成建议,改为加载 `openspec-propose`,同样传入中文产出要求。禁止跳过此步骤。
30
+
31
+ 创建的 `proposal.md`、`design.md`、`tasks.md` 正文必须使用中文;命令、路径、字段名、代码标识符保持原文。
23
32
 
24
33
  确认以下产物已创建:
25
34
 
@@ -3,9 +3,16 @@ name: opensuper-tweak
3
3
  description: "OpenSuper 预设路径:非 bug 的小改动(tweak)。跳过 brainstorming 和完整 plan,直接 open → lightweight build → light verify → archive。适用于文案、配置、文档或 prompt 的局部优化。"
4
4
  ---
5
5
 
6
- # OpenSuper 预设路径:Tweak
7
-
8
- Tweak 是 OpenSuper 五阶段能力的预设工作流,不是独立的平行流程。它复用 open、build、verify、archive 能力,仅跳过 brainstorming 和完整 plan。
6
+ # OpenSuper 预设路径:Tweak
7
+
8
+ ## 产出语言契约
9
+
10
+ - 产出语言:中文。
11
+ - 本 skill 的所有面向用户输出和生成文档默认使用中文,包括 `proposal.md`、`design.md`、`tasks.md`、delta spec、Design Doc、Plan、verification report 和归档说明。
12
+ - 命令、路径、frontmatter key、代码标识符、包名和 API 名称保持原文。
13
+ - 只有用户明确要求英文时才改用英文正文。
14
+
15
+ Tweak 是 OpenSuper 五阶段能力的预设工作流,不是独立的平行流程。它复用 open、build、verify、archive 能力,仅跳过 brainstorming 和完整 plan。
9
16
 
10
17
  适用于非 bug 的小范围变更,例如文案调整、配置调整、文档或 prompt 的局部优化。
11
18
 
@@ -36,9 +43,9 @@ OPENSUPER_ARCHIVE="${OPENSUPER_ARCHIVE:-$(find "${OPENSUPER_SEARCH_ROOTS[@]}" -p
36
43
 
37
44
  复用 OpenSuper open 能力创建 change,但使用 tweak 默认值:不执行 `openspec-explore` 长探索,直接进入精简 change 创建。
38
45
 
39
- **立即执行:** 使用 Skill 工具加载 `openspec-new-change` 技能。禁止跳过此步骤。
40
-
41
- 技能加载后,按其指引创建精简版产物:
46
+ **立即执行:** 使用 Skill 工具加载 `openspec-new-change` 技能,并传入要求:`产出语言:中文`。禁止跳过此步骤。
47
+
48
+ 技能加载后,按其指引创建精简版产物:
42
49
  - `proposal.md` — 变更动机 + 目标 + 范围
43
50
  - `design.md` — 简短实现说明(无需方案对比)
44
51
  - `tasks.md` — 不超过 3 个任务
@@ -3,9 +3,16 @@ name: opensuper-verify
3
3
  description: "OpenSuper 阶段 4:验证与收尾。用 /opensuper-verify 调用。验证实现符合设计,处理开发分支。"
4
4
  ---
5
5
 
6
- # OpenSuper 阶段 4:验证与收尾(Verify)
7
-
8
- ## 前置条件
6
+ # OpenSuper 阶段 4:验证与收尾(Verify)
7
+
8
+ ## 产出语言契约
9
+
10
+ - 产出语言:中文。
11
+ - 本 skill 的所有面向用户输出和生成文档默认使用中文,包括 `proposal.md`、`design.md`、`tasks.md`、delta spec、Design Doc、Plan、verification report 和归档说明。
12
+ - 命令、路径、frontmatter key、代码标识符、包名和 API 名称保持原文。
13
+ - 只有用户明确要求英文时才改用英文正文。
14
+
15
+ ## 前置条件
9
16
 
10
17
  - 代码已提交(阶段 3 完成)
11
18
  - tasks.md 全部任务已完成
@@ -79,9 +86,9 @@ bash "$OPENSUPER_STATE" transition <name> verify-fail
79
86
 
80
87
  当规模评估结果为"大"时:
81
88
 
82
- **立即执行:** 使用 Skill 工具加载 `openspec-verify-change` 技能。禁止跳过此步骤。
83
-
84
- 技能加载后,按其指引验证。检查项:
89
+ **立即执行:** 使用 Skill 工具加载 `openspec-verify-change` 技能,并传入要求:`产出语言:中文`。禁止跳过此步骤。
90
+
91
+ 技能加载后,按其指引验证。检查项:
85
92
  1. tasks.md 全部任务已完成(`[x]`)
86
93
  2. 实现符合 design.md 设计决策
87
94
  3. 实现符合 brainstorming 设计文档
@@ -104,9 +111,9 @@ bash "$OPENSUPER_STATE" transition <name> verify-fail
104
111
 
105
112
  ### 3. 收尾(Superpowers)
106
113
 
107
- **立即执行:** 使用 Skill 工具加载 `superpowers:finishing-a-development-branch` 技能。禁止跳过此步骤。
108
-
109
- 如 `superpowers:finishing-a-development-branch` 不可用,停止流程并提示安装或启用 Superpowers 技能,不要用普通对话替代该步骤。
114
+ **立即执行:** 使用 Skill 工具加载 `superpowers:finishing-a-development-branch` 技能,并传入要求:`产出语言:中文`。禁止跳过此步骤。
115
+
116
+ 如 `superpowers:finishing-a-development-branch` 不可用,停止流程并提示安装或启用 Superpowers 技能,不要用普通对话替代该步骤。
110
117
 
111
118
  技能加载后,按其指引收尾。分支处理选项:
112
119
  1. 本地合并到主分支
@@ -120,7 +127,7 @@ bash "$OPENSUPER_STATE" transition <name> verify-fail
120
127
 
121
128
  ### 4. 记录验证证据
122
129
 
123
- 验证报告必须落盘,并在 `.opensuper.yaml` 中记录;分支处理完成后也必须写入状态字段。不要手动设置 `verify_result: pass`,通过 guard 自动流转。
130
+ 验证报告必须落盘,并在 `.opensuper.yaml` 中记录;分支处理完成后也必须写入状态字段。验证报告正文必须使用中文。不要手动设置 `verify_result: pass`,通过 guard 自动流转。
124
131
 
125
132
  ```bash
126
133
  mkdir -p docs/superpowers/reports
package/bin/opensuper.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,62 +1,59 @@
1
- {
2
- "name": "@pzy560117/opensuper",
3
- "version": "0.2.7",
4
- "description": "OpenSpec + Superpowers dual-star development workflow",
5
- "keywords": [
6
- "opensuper",
7
- "openspec",
8
- "superpowers",
9
- "skills",
10
- "workflow"
11
- ],
12
- "license": "MIT",
13
- "author": "benym",
14
- "type": "module",
15
- "publishConfig": {
16
- "access": "public"
17
- },
18
- "bin": {
19
- "opensuper": "bin/opensuper.js"
20
- },
21
- "files": [
22
- "dist",
23
- "bin",
24
- "assets",
25
- "scripts/postinstall.js",
26
- "!dist/**/*.test.js",
27
- "!dist/**/__tests__"
28
- ],
29
- "scripts": {
30
- "build": "node build.js",
31
- "dev": "tsc --watch",
32
- "test": "vitest run",
33
- "test:coverage": "vitest run --coverage",
34
- "test:watch": "vitest",
35
- "lint": "eslint src/",
36
- "lint:fix": "eslint src/ --fix",
37
- "format": "prettier --write src/",
38
- "format:check": "prettier --check src/",
39
- "test:shell": "node scripts/run-bats.js test/shell/*.bats",
40
- "prepare": "pnpm run build",
41
- "prepublishOnly": "node scripts/prepublish-check.js && pnpm run build",
42
- "postinstall": "node scripts/postinstall.js"
43
- },
44
- "packageManager": "pnpm@10.18.3",
45
- "engines": {
46
- "node": ">=20"
47
- },
48
- "devDependencies": {
49
- "@eslint/js": "^10.0.1",
50
- "@types/node": "^24.2.0",
51
- "@vitest/coverage-v8": "^4.1.6",
52
- "eslint": "^10.4.0",
53
- "prettier": "^3.8.3",
54
- "typescript": "^5.9.3",
55
- "typescript-eslint": "^8.59.3",
56
- "vitest": "^4.1.6"
57
- },
58
- "dependencies": {
59
- "@inquirer/prompts": "^8.4.3",
60
- "commander": "^14.0.0"
61
- }
62
- }
1
+ {
2
+ "name": "@pzy560117/opensuper",
3
+ "version": "0.2.8",
4
+ "description": "OpenSpec + Superpowers dual-star development workflow",
5
+ "keywords": [
6
+ "opensuper",
7
+ "openspec",
8
+ "superpowers",
9
+ "skills",
10
+ "workflow"
11
+ ],
12
+ "license": "MIT",
13
+ "author": "benym",
14
+ "type": "module",
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "bin": {
19
+ "opensuper": "bin/opensuper.js"
20
+ },
21
+ "files": [
22
+ "dist",
23
+ "bin",
24
+ "assets",
25
+ "scripts/postinstall.js",
26
+ "!dist/**/*.test.js",
27
+ "!dist/**/__tests__"
28
+ ],
29
+ "engines": {
30
+ "node": ">=20"
31
+ },
32
+ "devDependencies": {
33
+ "@eslint/js": "^10.0.1",
34
+ "@types/node": "^24.2.0",
35
+ "@vitest/coverage-v8": "^4.1.6",
36
+ "eslint": "^10.4.0",
37
+ "prettier": "^3.8.3",
38
+ "typescript": "^5.9.3",
39
+ "typescript-eslint": "^8.59.3",
40
+ "vitest": "^4.1.6"
41
+ },
42
+ "dependencies": {
43
+ "@inquirer/prompts": "^8.4.3",
44
+ "commander": "^14.0.0"
45
+ },
46
+ "scripts": {
47
+ "build": "node build.js",
48
+ "dev": "tsc --watch",
49
+ "test": "vitest run",
50
+ "test:coverage": "vitest run --coverage",
51
+ "test:watch": "vitest",
52
+ "lint": "eslint src/",
53
+ "lint:fix": "eslint src/ --fix",
54
+ "format": "prettier --write src/",
55
+ "format:check": "prettier --check src/",
56
+ "test:shell": "node scripts/run-bats.js test/shell/*.bats",
57
+ "postinstall": "node scripts/postinstall.js"
58
+ }
59
+ }