6aspec 2.0.0-dev.2 → 2.0.0-dev.22

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 (88) hide show
  1. package/.6aspec/rules/brown/brown_archive_sop.md +8 -8
  2. package/.6aspec/rules/brown/brown_constitution.md +11 -0
  3. package/.6aspec/rules/brown/brown_continue_sop.md +5 -2
  4. package/.6aspec/rules/brown/brown_design_sop.md +168 -28
  5. package/.6aspec/rules/brown/brown_explore_sop.md +314 -0
  6. package/.6aspec/rules/brown/brown_ff_sop.md +31 -18
  7. package/.6aspec/rules/brown/brown_impact_sop.md +101 -45
  8. package/.6aspec/rules/brown/brown_implement_sop.md +3 -3
  9. package/.6aspec/rules/brown/brown_list_sop.md +12 -12
  10. package/.6aspec/rules/brown/brown_new_sop.md +58 -34
  11. package/.6aspec/rules/brown/brown_proposal_sop.md +293 -75
  12. package/.6aspec/rules/brown/brown_quick_sop.md +5 -5
  13. package/.6aspec/rules/brown/brown_review_sop.md +4 -4
  14. package/.6aspec/rules/brown/brown_rollback_sop.md +29 -19
  15. package/.6aspec/rules/brown/brown_specs_sop.md +370 -120
  16. package/.6aspec/rules/brown/brown_status_sop.md +13 -3
  17. package/.6aspec/rules/brown/brown_tasks_sop.md +18 -5
  18. package/.6aspec/rules/brown/brown_understand_sop.md +111 -40
  19. package/.6aspec/rules/brown/brown_verify_sop.md +1 -1
  20. package/.6aspec/rules/green/{6A_archive_sop.md → green_archive_sop.md} +3 -3
  21. package/.6aspec/rules/green/{6A_clarify_sop.md → green_clarify_sop.md} +1 -1
  22. package/.6aspec/rules/green/{6A_code_implementation_sop.md → green_code_implementation_sop.md} +3 -3
  23. package/.6aspec/rules/green/{6A_continue_sop.md → green_continue_sop.md} +3 -3
  24. package/.6aspec/rules/green/green_status_schema.md +4 -4
  25. package/.6aspec/rules/green/{6A_status_sop.md → green_status_sop.md} +3 -3
  26. package/.6aspec/rules/green/{6A_tasks_sop.md → green_tasks_sop.md} +1 -1
  27. package/.claude/commands/6aspec/brown/explore.md +11 -0
  28. package/.claude/commands/6aspec/green/archive.md +1 -1
  29. package/.claude/commands/6aspec/green/clarify.md +2 -2
  30. package/.claude/commands/6aspec/green/continue.md +1 -1
  31. package/.claude/commands/6aspec/green/design.md +2 -2
  32. package/.claude/commands/6aspec/green/{execute-task.md → implement.md} +1 -1
  33. package/.claude/commands/6aspec/green/import-model-table.md +1 -1
  34. package/.claude/commands/6aspec/green/init.md +2 -2
  35. package/.claude/commands/6aspec/green/model.md +2 -2
  36. package/.claude/commands/6aspec/green/new.md +2 -2
  37. package/.claude/commands/6aspec/green/rollback.md +1 -1
  38. package/.claude/commands/6aspec/green/status.md +1 -1
  39. package/.claude/commands/6aspec/green/tasks.md +2 -2
  40. package/.claude/commands/6aspec/green/visual-logic.md +2 -2
  41. package/.claude/commands/opsx/apply.md +152 -0
  42. package/.claude/commands/opsx/archive.md +157 -0
  43. package/.claude/commands/opsx/bulk-archive.md +242 -0
  44. package/.claude/commands/opsx/continue.md +114 -0
  45. package/.claude/commands/opsx/explore.md +174 -0
  46. package/.claude/commands/opsx/ff.md +94 -0
  47. package/.claude/commands/opsx/new.md +69 -0
  48. package/.claude/commands/opsx/onboard.md +525 -0
  49. package/.claude/commands/opsx/sync.md +134 -0
  50. package/.claude/commands/opsx/verify.md +164 -0
  51. package/.claude/settings.local.json +21 -1
  52. package/.cursor/commands/6aspec/brown/explore.md +11 -0
  53. package/.cursor/commands/6aspec/green/archive.md +1 -1
  54. package/.cursor/commands/6aspec/green/clarify.md +2 -2
  55. package/.cursor/commands/6aspec/green/continue.md +1 -1
  56. package/.cursor/commands/6aspec/green/design.md +2 -2
  57. package/.cursor/commands/6aspec/green/{execute-task.md → implement.md} +1 -1
  58. package/.cursor/commands/6aspec/green/import-model-table.md +1 -1
  59. package/.cursor/commands/6aspec/green/init.md +2 -2
  60. package/.cursor/commands/6aspec/green/model.md +2 -2
  61. package/.cursor/commands/6aspec/green/new.md +2 -2
  62. package/.cursor/commands/6aspec/green/rollback.md +1 -1
  63. package/.cursor/commands/6aspec/green/status.md +1 -1
  64. package/.cursor/commands/6aspec/green/tasks.md +2 -2
  65. package/.cursor/commands/6aspec/green/visual-logic.md +2 -2
  66. package/.cursor/commands/opsx-apply.md +152 -0
  67. package/.cursor/commands/opsx-archive.md +157 -0
  68. package/.cursor/commands/opsx-bulk-archive.md +242 -0
  69. package/.cursor/commands/opsx-continue.md +114 -0
  70. package/.cursor/commands/opsx-explore.md +174 -0
  71. package/.cursor/commands/opsx-ff.md +94 -0
  72. package/.cursor/commands/opsx-new.md +69 -0
  73. package/.cursor/commands/opsx-onboard.md +525 -0
  74. package/.cursor/commands/opsx-sync.md +134 -0
  75. package/.cursor/commands/opsx-verify.md +164 -0
  76. package/README.md +1 -1
  77. package/bin/6aspec +17 -1
  78. package/lib/cli.js +178 -45
  79. package/package.json +1 -1
  80. /package/.6aspec/rules/green/{6A_constitution.md → green_constitution.md} +0 -0
  81. /package/.6aspec/rules/green/{6A_design_sop.md → green_design_sop.md} +0 -0
  82. /package/.6aspec/rules/green/{6A_import_model_table_sop.md → green_import_model_table_sop.md} +0 -0
  83. /package/.6aspec/rules/green/{6A_init_event_list_sop.md → green_init_event_list_sop.md} +0 -0
  84. /package/.6aspec/rules/green/{6A_init_map_sop.md → green_init_map_sop.md} +0 -0
  85. /package/.6aspec/rules/green/{6A_model_sop.md → green_model_sop.md} +0 -0
  86. /package/.6aspec/rules/green/{6A_new_sop.md → green_new_sop.md} +0 -0
  87. /package/.6aspec/rules/green/{6A_rollback_sop.md → green_rollback_sop.md} +0 -0
  88. /package/.6aspec/rules/green/{6A_visual_logic_sop.md → green_visual_logic_sop.md} +0 -0
@@ -14,9 +14,15 @@ Phase 4: 任务拆解与排期
14
14
 
15
15
  2. **读取前置文档**
16
16
 
17
- - `6aspecdoc/brown/<name>/artifacts/01-understanding.md`
18
- - `6aspecdoc/brown/<name>/artifacts/02-impact-analysis.md`
19
- - `6aspecdoc/brown/<name>/artifacts/03-technical-design.md`
17
+ 根据 `flowDepth` 读取不同的前置文档:
18
+
19
+ **轻量级流程**:
20
+ - `6aspecdoc/brown/<name>/artifacts/design.md`
21
+ - `6aspecdoc/brown/<name>/artifacts/specs.md`
22
+
23
+ **标准级/完整级流程**:
24
+ - `6aspecdoc/brown/<name>/artifacts/design.md`
25
+ - `6aspecdoc/brown/<name>/artifacts/specs.md`
20
26
 
21
27
  3. **原子任务拆解**
22
28
 
@@ -73,7 +79,7 @@ Phase 4: 任务拆解与排期
73
79
 
74
80
  6. **创建任务总览**
75
81
 
76
- 创建 `6aspecdoc/brown/<name>/artifacts/04-tasks-overview.md`:
82
+ 创建 `6aspecdoc/brown/<name>/artifacts/tasks-overview.md`:
77
83
  ```markdown
78
84
  # Phase 4: 任务拆解与排期
79
85
 
@@ -164,6 +170,13 @@ Phase 4: 任务拆解与排期
164
170
  }
165
171
  ```
166
172
 
173
+ 同时更新 `6aspecdoc/brown/<name>/requirement.md`:
174
+ - 更新"状态"字段为 `📋 Implement 待开始`
175
+ - 更新"最后修改"时间戳为 `<timestamp>`
176
+ - 更新"当前阶段"为 `Tasks - 任务拆解(已完成)`
177
+ - 更新"下一步操作"为 `运行 /6aspec:brown:implement 开始执行任务`
178
+ - 在"进度概览"中标记 Tasks 阶段为已完成 `[x]`
179
+
167
180
  **输出**
168
181
 
169
182
  ```
@@ -186,7 +199,7 @@ Phase 4: 任务拆解与排期
186
199
  <列出关键里程碑>
187
200
 
188
201
  ### 文档位置
189
- - 6aspecdoc/brown/<name>/artifacts/04-tasks-overview.md
202
+ - 6aspecdoc/brown/<name>/artifacts/tasks-overview.md
190
203
  - 6aspecdoc/brown/<name>/tasks/TASK-*.md
191
204
 
192
205
  ### 下一步
@@ -1,6 +1,10 @@
1
1
  # 棕地需求 - Understand SOP
2
2
 
3
- Phase 1: 需求理解与现状分析
3
+ 需求理解与现状分析
4
+
5
+ **适用流程**:标准级、完整级
6
+
7
+ **流程定位**:标准级/完整级的第一阶段,基于需求描述分析现有系统
4
8
 
5
9
  **输入**:`/6aspec:brown:understand` 后可选需求名称。如果省略,从上下文推断或提示选择。
6
10
 
@@ -17,15 +21,19 @@ Phase 1: 需求理解与现状分析
17
21
  2. **检查状态**
18
22
 
19
23
  读取 `6aspecdoc/brown/<name>/status.json`:
20
- - 如果 `phases.understand` 不是 "pending",提示已完成或跳过
21
- - 确认需求级别(P0/P1/P2)
22
- - P2 需求提示使用 `/6aspec:brown:quick`
24
+ - 确认流程深度为 "standard" "complete"
25
+ - 如果是 "lightweight",提示轻量级流程不需要understand阶段,应该直接运行 `/6aspec:brown:proposal`
26
+ - 确认 `phases.understand` 为 "pending"
27
+ - 如果understand已完成,提示使用 `/6aspec:brown:continue` 进入下一阶段
28
+ - 如果是简单需求,提示考虑使用 `/6aspec:brown:quick` 快速通道
23
29
 
24
30
  3. **读取需求描述**
25
31
 
26
- 读取 `6aspecdoc/brown/<name>/status.json` 中的 `inputSource` 字段判断输入类型:
27
- - `type = "text"`:读取 `requirement.md` 中的"原始需求"部分获取需求描述。
28
- - `type = "file"`:读取 `requirement.md` 中记录的来源文件路径,然后读取该文件获取完整需求内容。
32
+ 读取 `6aspecdoc/brown/<name>/artifacts/original-requirement.md` 获取原始需求内容:
33
+ - 如果 `inputSource.type = "text"`:文档中包含用户输入的原始需求描述
34
+ - 如果 `inputSource.type = "file"`:文档中包含来源文件路径的引用
35
+
36
+ **注意**:Understand 阶段不依赖 proposal,直接基于原始需求分析现有系统
29
37
 
30
38
  4. **分析现有系统**
31
39
 
@@ -66,39 +74,37 @@ Phase 1: 需求理解与现状分析
66
74
 
67
75
  5. **生成待明确问题清单**
68
76
 
69
- 基于分析结果,生成问题清单:
77
+ 基于现状分析和需求描述,生成需要用户明确的问题清单:
78
+
79
+ **问题类型**:
70
80
  - 字段设计问题(名称、类型、必填、默认值、值域)
71
81
  - 业务规则问题(是否可修改、是否继承、是否同步)
72
82
  - 权限和统计问题(权限控制、统计报表)
83
+ - 集成和兼容问题(与其他模块的集成、数据迁移)
84
+
85
+ 这些问题将在本阶段提出,并引导用户回答,为 specs 阶段的需求定义提供依据。
73
86
 
74
87
  6. **创建分析文档**
75
88
 
76
- 创建 `6aspecdoc/brown/<name>/artifacts/01-understanding.md`:
89
+ 创建 `6aspecdoc/brown/<name>/artifacts/understanding.md`:
77
90
  ```markdown
78
- # Phase 1: 需求理解与现状分析
91
+ # 需求理解与现状分析
79
92
 
80
93
  > **需求**: <name>
81
- > **阶段**: Phase 1 - 需求理解
94
+ > **流程**: <flowDepth>
95
+ > **阶段**: Understand
82
96
  > **状态**: ✅ 已完成
83
97
  > **完成时间**: <timestamp>
84
98
 
85
- ## 1. 需求概述
99
+ ## 1. 现有系统分析
86
100
 
87
- ### 业务目标
88
- <为什么需要这个功能>
89
-
90
- ### 使用场景
91
- <谁用、什么时候用、怎么用>
92
-
93
- ## 2. 现有系统分析
94
-
95
- ### 2.1 相关实体类
101
+ ### 1.1 相关实体类
96
102
  <列出相关实体类及其职责>
97
103
 
98
- ### 2.2 相关服务类
104
+ ### 1.2 相关服务类
99
105
  <列出相关服务类及其职责>
100
106
 
101
- ### 2.3 数据库表关系图
107
+ ### 1.3 数据库表关系图
102
108
  ```mermaid
103
109
  erDiagram
104
110
  TableA ||--o{ TableB : "关系"
@@ -112,7 +118,7 @@ Phase 1: 需求理解与现状分析
112
118
  }
113
119
  ```
114
120
 
115
- ### 2.4 核心业务流程图
121
+ ### 1.4 核心业务流程图
116
122
  ```mermaid
117
123
  flowchart TB
118
124
  Start[开始] --> Process[处理步骤]
@@ -121,10 +127,10 @@ Phase 1: 需求理解与现状分析
121
127
  Decision -->|否| End2[结束路径2]
122
128
  ```
123
129
 
124
- ### 2.5 隐性假设和约束
130
+ ### 1.5 隐性假设和约束
125
131
  <列出识别的隐性假设和约束>
126
132
 
127
- ## 3. 待明确问题清单
133
+ ## 2. 待明确问题清单
128
134
 
129
135
  ### 字段设计
130
136
  1. 字段名称:[待确认]
@@ -142,7 +148,7 @@ Phase 1: 需求理解与现状分析
142
148
  9. 是否需要权限控制:[待确认]
143
149
  10. 是否需要统计报表:[待确认]
144
150
 
145
- ## 4. 下一步
151
+ ## 3. 下一步
146
152
 
147
153
  请回答上述待明确问题,然后运行 `/6aspec:brown:specs` 定义需求规格。
148
154
  ```
@@ -150,29 +156,92 @@ Phase 1: 需求理解与现状分析
150
156
  7. **更新状态**
151
157
 
152
158
  更新 `6aspecdoc/brown/<name>/status.json`:
159
+
160
+ **标准级流程**:
161
+ ```json
162
+ {
163
+ "status": "impact_pending",
164
+ "flowDepth": "standard",
165
+ "phases": {
166
+ "proposal": "done",
167
+ "understand": "done",
168
+ "impact": "pending",
169
+ "specs": "blocked",
170
+ "design": "blocked",
171
+ "tasks": "blocked",
172
+ "implement": "blocked"
173
+ },
174
+ "artifacts": ["proposal.md", "understanding.md"]
175
+ }
176
+ ```
177
+
178
+ **完整级流程**:
153
179
  ```json
154
180
  {
155
- "status": "specs_pending",
181
+ "status": "impact_pending",
182
+ "flowDepth": "complete",
156
183
  "phases": {
184
+ "proposal": "done",
157
185
  "understand": "done",
158
- "specs": "pending",
159
- "impact": "blocked",
160
- ...
186
+ "impact": "pending",
187
+ "specs": "blocked",
188
+ "design": "blocked",
189
+ "tasks": "blocked",
190
+ "implement": "blocked",
191
+ "verify": "blocked",
192
+ "review": "blocked"
161
193
  },
162
- "artifacts": ["01-understanding.md"]
194
+ "artifacts": ["proposal.md", "understanding.md"]
163
195
  }
164
196
  ```
165
197
 
198
+ 同时更新 `6aspecdoc/brown/<name>/requirement.md`:
199
+ - 更新"状态"字段为 `📋 Impact 待开始`
200
+ - 更新"最后修改"时间戳为 `<timestamp>`
201
+ - 更新"当前阶段"为 `Understand - 需求理解与现状分析(已完成)`
202
+ - 更新"下一步操作"为 `运行 /6aspec:brown:impact 继续下一阶段`
203
+ - 在"进度概览"中标记 Understand 阶段为已完成 `[x]`
204
+
166
205
  8. **停止并等待用户指令**
167
206
 
168
207
  **输出**
169
208
 
170
- 完成后,显示:
209
+ 根据 `flowDepth` 显示不同的输出信息:
210
+
211
+ **标准级流程**:
212
+ ```
213
+ ## Understand 完成:<name>
214
+
215
+ **流程**: 标准级
216
+ **进度**: 2/6 阶段完成
217
+
218
+ ### 分析结果
219
+ - 相关实体类:<数量>
220
+ - 相关服务类:<数量>
221
+ - 数据库表:<数量>
222
+ - 待明确问题:<数量>
223
+
224
+ ### 关键发现
225
+ <列出 2-3 个关键发现>
226
+
227
+ ### 待明确问题(重要)
228
+ <列出最重要的 3-5 个问题>
229
+
230
+ ### 文档位置
231
+ 6aspecdoc/brown/<name>/artifacts/understanding.md
232
+
233
+ ### 下一步
234
+ - 直接回答上述待明确问题 → 我会更新本阶段文档(understanding.md)中的问题答案
235
+ - 运行 `/6aspec:brown:impact` → 进入影响面分析阶段
236
+ - 运行 `/6aspec:brown:continue` → 自动进入下一阶段
237
+ ```
238
+
239
+ **完整级流程**:
171
240
  ```
172
- ## Phase 1 完成:需求理解与现状分析
241
+ ## Understand 完成:<name>
173
242
 
174
- **需求**: <name>
175
- **进度**: 1/7 阶段完成
243
+ **流程**: 完整级
244
+ **进度**: 2/8 阶段完成
176
245
 
177
246
  ### 分析结果
178
247
  - 相关实体类:<数量>
@@ -187,24 +256,26 @@ Phase 1: 需求理解与现状分析
187
256
  <列出最重要的 3-5 个问题>
188
257
 
189
258
  ### 文档位置
190
- 6aspecdoc/brown/<name>/artifacts/01-understanding.md
259
+ 6aspecdoc/brown/<name>/artifacts/understanding.md
191
260
 
192
261
  ### 下一步
193
- - 直接回答上述待明确问题 → 我会更新本阶段文档(01-understanding.md
194
- - 运行 `/6aspec:brown:specs` → 进入需求规格定义阶段
262
+ - 直接回答上述待明确问题 → 我会更新本阶段文档(understanding.md)中的问题答案
263
+ - 运行 `/6aspec:brown:impact` → 进入影响面分析阶段
195
264
  - 运行 `/6aspec:brown:continue` → 自动进入下一阶段
196
265
  ```
197
266
 
198
267
  **用户补充信息时的处理**
199
268
 
200
269
  当用户回答待明确问题或补充需求信息时(未使用阶段命令):
201
- 1. 将用户的回答整合到 `01-understanding.md` 中对应的问题项(将"[待确认]"替换为实际答案)
270
+ 1. 将用户的回答整合到 `understanding.md` 中对应的问题项(将"[待确认]"替换为实际答案)
202
271
  2. 如果回答引发新的发现或问题,同步更新文档的相关章节
203
272
  3. 展示变更摘要(更新了哪些问题的答案、新增了哪些发现)
204
273
  4. 再次提示:可以继续补充,或通过命令进入下一阶段
205
274
  5. **禁止**:不得自动进入下一阶段
206
275
 
207
276
  **防护措施**
277
+ - 只适用于标准级和完整级流程
278
+ - 必须先完成proposal阶段
208
279
  - 必须先读取需求描述再开始分析
209
280
  - 如果找不到相关代码,询问用户提供更多关键词
210
281
  - 如果分析不充分,不要强行生成文档,而是询问用户
@@ -129,7 +129,7 @@
129
129
 
130
130
  **6.1 设计遵循验证**(借鉴 OpenSpec)
131
131
 
132
- - 读取 `artifacts/design.md` 或 `artifacts/03-technical-design.md`
132
+ - 读取 `artifacts/design.md`
133
133
  - 提取关键设计决策:
134
134
  - 数据库变更方案
135
135
  - 代码实现方案
@@ -103,7 +103,7 @@ find 6aspecdoc/green -maxdepth 2 -name ".green-status.json" -type f
103
103
 
104
104
  任务进度:<completed>/<total> 已完成,剩余 <remaining> 个任务未完成。
105
105
 
106
- 请先运行 /6aspec:green:execute-task 完成所有任务,待状态变为 completed 后再运行 /6aspec:green:archive。
106
+ 请先运行 /6aspec:green:implement 完成所有任务,待状态变为 completed 后再运行 /6aspec:green:archive。
107
107
  ```
108
108
 
109
109
  **3.3 检查状态(硬性门禁)**
@@ -116,7 +116,7 @@ find 6aspecdoc/green -maxdepth 2 -name ".green-status.json" -type f
116
116
  当前状态:<current-status>
117
117
  要求状态:completed(所有任务已完成)
118
118
 
119
- 归档前必须完成主流程至“所有任务已完成”。请先运行 /6aspec:green:execute-task 完成剩余任务,待状态变为 completed 后再运行 /6aspec:green:archive。
119
+ 归档前必须完成主流程至”所有任务已完成”。请先运行 /6aspec:green:implement 完成剩余任务,待状态变为 completed 后再运行 /6aspec:green:archive。
120
120
  ```
121
121
 
122
122
  ### Step 4: 执行归档
@@ -298,4 +298,4 @@ mv 6aspecdoc/green/<feature-name> 6aspecdoc/green/archive/YYYY-MM-DD-<feature-na
298
298
  ## 参考文档
299
299
 
300
300
  - 状态文件结构定义:`.6aspec/rules/green/green_status_schema.md`
301
- - 状态查询SOP:`.6aspec/rules/green/6A_status_sop.md`
301
+ - 状态查询SOP:`.6aspec/rules/green/green_status_sop.md`
@@ -59,7 +59,7 @@ find 6aspecdoc/green -maxdepth 2 -name ".green-status.json" -type f
59
59
 
60
60
  主流程中需求澄清窗口已结束,进入领域建模及后续阶段后不得再修改需求澄清范围。若确有需求变更,请与产品/业务方评估后,通过新需求或变更流程处理。
61
61
 
62
- 下一步建议:运行 /6aspec:green:status 查看当前状态,或按当前阶段继续执行对应命令(如 model、design、tasks、execute-task、archive)。
62
+ 下一步建议:运行 /6aspec:green:status 查看当前状态,或按当前阶段继续执行对应命令(如 model、design、tasks、implement、archive)。
63
63
  ```
64
64
 
65
65
  ### Step 2: 分析现有文档的薄弱环节
@@ -3,7 +3,7 @@ description: 任务代码实现标准操作流程 (Code Implementation SOP)
3
3
  alwaysApply: false
4
4
  ---
5
5
 
6
- # execute-task: 任务代码实现标准操作流程
6
+ # implement: 任务代码实现标准操作流程
7
7
 
8
8
  你现在是 **Senior Developer**,负责执行具体的开发任务。你的核心职责是将 `6aspecdoc/green/<feature-name>/tasks/task_xxx.md` 转化为高质量、可运行的业务代码。
9
9
 
@@ -92,13 +92,13 @@ alwaysApply: false
92
92
 
93
93
  ---
94
94
 
95
- ✅ **已完成:执行开发任务 (execute-task)**
95
+ ✅ **已完成:执行开发任务 (implement)**
96
96
 
97
97
  📊 **进度:4/4 (主流程) - 全部完成!🎉**
98
98
 
99
99
  **任务状态:**
100
100
  - 当前任务已完成,请检查 `tasks/README.md` 查看整体进度
101
- - 如还有未完成的任务,继续执行 `execute-task` 命令
101
+ - 如还有未完成的任务,继续执行 `implement` 命令
102
102
  - 如所有任务已完成,恭喜!整个开发流程已完成
103
103
 
104
104
  **完整流程图:**
@@ -72,8 +72,8 @@ find 6aspecdoc/green -maxdepth 2 -name ".green-status.json" -type f
72
72
  | `requirement_clarified` | `/6aspec:green:model` | 开始领域建模 |
73
73
  | `modeled` | `/6aspec:green:design` | 开始技术方案设计 |
74
74
  | `designed` | `/6aspec:green:tasks` | 开始任务拆解 |
75
- | `tasks_created` | `/6aspec:green:execute-task` | 开始执行第一个任务 |
76
- | `implementing` | `/6aspec:green:execute-task` | 继续执行下一个任务 |
75
+ | `tasks_created` | `/6aspec:green:implement` | 开始执行第一个任务 |
76
+ | `implementing` | `/6aspec:green:implement` | 继续执行下一个任务 |
77
77
  | `completed` | 提示归档 | 所有任务已完成 |
78
78
  | `archived` | 无操作 | 需求已归档 |
79
79
 
@@ -183,4 +183,4 @@ find 6aspecdoc/green -maxdepth 2 -name ".green-status.json" -type f
183
183
  ## 参考文档
184
184
 
185
185
  - 状态文件结构定义:`.6aspec/rules/green/green_status_schema.md`
186
- - 状态查询SOP:`.6aspec/rules/green/6A_status_sop.md`
186
+ - 状态查询SOP:`.6aspec/rules/green/green_status_sop.md`
@@ -63,8 +63,8 @@
63
63
  | `requirement_clarified` | 需求已澄清 | `/6aspec:green:model`(可选:`/6aspec:green:clarify` 继续深化) |
64
64
  | `modeled` | 领域建模完成 | `/6aspec:green:design` |
65
65
  | `designed` | 技术方案完成 | `/6aspec:green:tasks` |
66
- | `tasks_created` | 任务已拆解 | `/6aspec:green:execute-task` |
67
- | `implementing` | 实施中 | `/6aspec:green:execute-task` |
66
+ | `tasks_created` | 任务已拆解 | `/6aspec:green:implement` |
67
+ | `implementing` | 实施中 | `/6aspec:green:implement` |
68
68
  | `completed` | 已完成 | `/6aspec:green:archive` |
69
69
  | `archived` | 已归档 | - |
70
70
 
@@ -130,7 +130,7 @@ tasks (任务列表)
130
130
  | `designed` | `modeled` | `/6aspec:green:rollback` | artifacts/tech-design.md、api-definition.md、visual-logic.md(若存在) |
131
131
  | `tasks_created` | `designed` | `/6aspec:green:rollback` | tasks/ 目录下全部文件 |
132
132
 
133
- **不允许回退**:`created`(无上一阶段)、`implementing`、`completed`、`archived`。详见 `.6aspec/rules/green/6A_rollback_sop.md`。
133
+ **不允许回退**:`created`(无上一阶段)、`implementing`、`completed`、`archived`。详见 `.6aspec/rules/green/green_rollback_sop.md`。
134
134
 
135
135
  ## 示例
136
136
 
@@ -250,7 +250,7 @@ tasks (任务列表)
250
250
  "lastExecuted": "task_05_session_management.md"
251
251
  },
252
252
  "nextAction": {
253
- "command": "execute-task",
253
+ "command": "implement",
254
254
  "description": "继续执行剩余 3 个任务"
255
255
  }
256
256
  }
@@ -146,8 +146,8 @@ const status = JSON.parse(fs.readFileSync(statusPath, 'utf8'));
146
146
  | `requirement_clarified` | 运行 /6aspec:green:model 开始领域建模(可选:运行 /6aspec:green:clarify 继续深化需求) |
147
147
  | `modeled` | 运行 /6aspec:green:design 开始技术方案设计 |
148
148
  | `designed` | 运行 /6aspec:green:tasks 开始任务拆解 |
149
- | `tasks_created` | 运行 /6aspec:green:execute-task 开始执行任务 |
150
- | `implementing` | 运行 /6aspec:green:execute-task 继续执行任务 |
149
+ | `tasks_created` | 运行 /6aspec:green:implement 开始执行任务 |
150
+ | `implementing` | 运行 /6aspec:green:implement 继续执行任务 |
151
151
  | `completed` | 运行 /6aspec:green:archive 归档需求 |
152
152
  | `archived` | 需求已归档 |
153
153
 
@@ -208,7 +208,7 @@ const status = JSON.parse(fs.readFileSync(statusPath, 'utf8'));
208
208
  最后执行:task_05_session_management.md
209
209
 
210
210
  ### 下一步建议
211
- 运行 /6aspec:green:execute-task 继续执行任务
211
+ 运行 /6aspec:green:implement 继续执行任务
212
212
  或运行 /6aspec:green:continue 自动执行下一步
213
213
  ```
214
214
 
@@ -170,7 +170,7 @@ alwaysApply: false
170
170
  📊 **进度:3/4 (主流程)**
171
171
 
172
172
  **下一步建议:**
173
- - 【主流程】执行开发任务:命令 `execute-task`
173
+ - 【主流程】执行开发任务:命令 `implement`
174
174
  开始执行具体的开发任务,将设计转化为代码实现
175
175
 
176
176
  **完整流程图:**
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: "6aspec:brown: Explore"
3
+ description: 前期探索(轻量级流程可选)
4
+ category: Workflow
5
+ tags: [workflow, explore, lightweight, brownfield]
6
+ ---
7
+
8
+ 1. Immediate response upon activation: brown field requirement workflow - **Explore** has been activated
9
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
10
+ 3. Read file: `.6aspec/rules/brown/brown_explore_sop.md`
11
+ 4. Strictly follow the SOP defined in that file
@@ -3,6 +3,6 @@ description: 归档已完成的绿地需求
3
3
  ---
4
4
 
5
5
  1. Immediate response upon activation: archive workflow has been activated
6
- 2. Read file: `.6aspec/rules/green/6A_archive_sop.md`
6
+ 2. Read file: `.6aspec/rules/green/green_archive_sop.md`
7
7
  3. Strictly follow the "Archive Workflow SOP" defined in that file
8
8
  4. Archive the completed requirement
@@ -3,11 +3,11 @@ description: 深化需求澄清(对已有需求进行更细节的澄清和补
3
3
  ---
4
4
 
5
5
  1. Immediate response upon activation: clarify workflow has been activated
6
- 2. **You must first read and strictly abide by the principles in the constitutional documents**:`.6aspec/rules/green/6A_constitution.md`
6
+ 2. **You must first read and strictly abide by the principles in the constitutional documents**:`.6aspec/rules/green/green_constitution.md`
7
7
  3. **Context Restriction**:
8
8
  - Do NOT perform `codebase_search`.
9
9
  - Do NOT read any files unless they are explicitly provided by the user (via '@') or explicitly listed in the SOP steps.
10
10
  - Stop and ask the user if you think you need more information.
11
- 4. Read file: `.6aspec/rules/green/6A_clarify_sop.md`
11
+ 4. Read file: `.6aspec/rules/green/green_clarify_sop.md`
12
12
  5. Strictly follow the "Requirement Clarification SOP" defined in that file
13
13
  6. Update the requirement document with clarified details
@@ -3,6 +3,6 @@ description: 自动执行绿地需求的下一步工作流
3
3
  ---
4
4
 
5
5
  1. Immediate response upon activation: continue workflow has been activated
6
- 2. Read file: `.6aspec/rules/green/6A_continue_sop.md`
6
+ 2. Read file: `.6aspec/rules/green/green_continue_sop.md`
7
7
  3. Strictly follow the "Continue Workflow SOP" defined in that file
8
8
  4. Automatically execute the next step based on current status
@@ -2,7 +2,7 @@
2
2
  description: design workflow
3
3
  ---
4
4
  1. Immediate response upon activation: design workflow has been activated.
5
- 2. **You must first read and strictly abide by the principles in the constitutional documents**:`.6aspec/rules/green/6A_constitution.md`
6
- 3. Read file: `.6aspec/rules/green/6A_design_sop.md`
5
+ 2. **You must first read and strictly abide by the principles in the constitutional documents**:`.6aspec/rules/green/green_constitution.md`
6
+ 3. Read file: `.6aspec/rules/green/green_design_sop.md`
7
7
  4. Strictly follow the "New Feature Architecture SOP" defined in that file.
8
8
  5. Output the Technical Design Document (TDD).
@@ -10,7 +10,7 @@ description: 执行开发任务 (Execute Task)
10
10
  当用户提供一个任务文件路径(如 `@task_01_api_xxx.md`)并要求“执行任务”时:
11
11
 
12
12
  1. **激活角色**:切换至 `Senior Developer` 角色。
13
- 2. **调用 SOP**:严格遵循 `.6aspec/rules/green/6A_code_implementation_sop.md` 中的协议。
13
+ 2. **调用 SOP**:严格遵循 `.6aspec/rules/green/green_code_implementation_sop.md` 中的协议。
14
14
  - **Step 0**: 上下文加载 (Task + TDD + Rules)
15
15
  - **Step 1**: 自底向上编码 (DTO -> Repo -> Service -> API)
16
16
  - **Step 2**: 质量检查 (Lint)
@@ -2,7 +2,7 @@
2
2
  description: import-model-table workflow
3
3
  ---
4
4
  1. Immediate response upon activation: import-model-table workflow has been activated
5
- 2. Read file: `.6aspec/rules/green/6A_import_model_table_sop.md`
5
+ 2. Read file: `.6aspec/rules/green/green_import_model_table_sop.md`
6
6
  3. Strictly follow the "Import Model Table SOP" defined in that file
7
7
  4. Execute the python script to import entities
8
8
 
@@ -4,11 +4,11 @@ description: Init Project Artifacts (Functional Map & Event List)
4
4
  Immediate response upon activation: Project Artifacts Initialization workflow has been activated.
5
5
 
6
6
  Phase 1: Functional Capability Map
7
- 1. Read file: `.6aspec/rules/green/6A_init_map_sop.md`
7
+ 1. Read file: `.6aspec/rules/green/green_init_map_sop.md`
8
8
  2. Strictly follow the "Init Functional Capability Map SOP" defined in that file.
9
9
  3. Execute the codebase scan and update the artifact at `.6aspec/biz/functional-capability-Map.md`.
10
10
 
11
11
  Phase 2: Event List
12
- 1. Read file: `.6aspec/rules/green/6A_init_event_list_sop.md`
12
+ 1. Read file: `.6aspec/rules/green/green_init_event_list_sop.md`
13
13
  2. Strictly follow the "Event List Generation SOP" defined in that file.
14
14
  3. Execute the codebase scan and update the artifact at `.6aspec/biz/event-list.md`.
@@ -2,11 +2,11 @@
2
2
  description: model workflow
3
3
  ---
4
4
  1. Immediate response upon activation: model workflow has been activated
5
- 2. **You must first read and strictly abide by the principles in the constitutional documents**:`.6aspec/rules/green/6A_constitution.md`
5
+ 2. **You must first read and strictly abide by the principles in the constitutional documents**:`.6aspec/rules/green/green_constitution.md`
6
6
  3. **Context Restriction**:
7
7
  - Do NOT perform `codebase_search`.
8
8
  - Do NOT read any files unless they are explicitly provided by the user (via '@') or explicitly listed in the SOP steps.
9
9
  - Stop and ask the user if you think you need more information.
10
- 4. Read file: `.6aspec/rules/green/6A_model_sop.md`
10
+ 4. Read file: `.6aspec/rules/green/green_model_sop.md`
11
11
  5. Strictly follow the "Domain modeling and database design Architecture SOP" defined in that file
12
12
  6. Output the Domain model and table design
@@ -3,11 +3,11 @@ description: 开始一个新的绿地需求(需求澄清与结构化)
3
3
  ---
4
4
 
5
5
  1. Immediate response upon activation: new feature workflow has been activated
6
- 2. **You must first read and strictly abide by the principles in the constitutional documents**:`.6aspec/rules/green/6A_constitution.md`
6
+ 2. **You must first read and strictly abide by the principles in the constitutional documents**:`.6aspec/rules/green/green_constitution.md`
7
7
  3. **Context Restriction**:
8
8
  - Do NOT perform `codebase_search`.
9
9
  - Do NOT read any files unless they are explicitly provided by the user (via '@') or explicitly listed in the SOP steps.
10
10
  - Stop and ask the user if you think you need more information.
11
- 4. Read file: `.6aspec/rules/green/6A_new_sop.md`
11
+ 4. Read file: `.6aspec/rules/green/green_new_sop.md`
12
12
  5. Strictly follow the "New Feature Requirement SOP" defined in that file
13
13
  6. Output the structured requirement document
@@ -3,6 +3,6 @@ description: 流程回退(单步回退并删除当前阶段工件,需用户
3
3
  ---
4
4
 
5
5
  1. Immediate response upon activation: rollback workflow has been activated
6
- 2. Read file: `.6aspec/rules/green/6A_rollback_sop.md`
6
+ 2. Read file: `.6aspec/rules/green/green_rollback_sop.md`
7
7
  3. Strictly follow the "Rollback SOP" defined in that file
8
8
  4. **Do not** perform any file deletion or status file update until the user has explicitly confirmed (e.g. "确认回退" or "执行回退")
@@ -3,6 +3,6 @@ description: 查看绿地需求的当前状态和进度
3
3
  ---
4
4
 
5
5
  1. Immediate response upon activation: status workflow has been activated
6
- 2. Read file: `.6aspec/rules/green/6A_status_sop.md`
6
+ 2. Read file: `.6aspec/rules/green/green_status_sop.md`
7
7
  3. Strictly follow the "Status Query SOP" defined in that file
8
8
  4. Output the current status and progress
@@ -2,7 +2,7 @@
2
2
  description: tasks workflow
3
3
  ---
4
4
  1. Immediate response upon activation: tasks workflow has been activated
5
- 2. **You must first read and strictly abide by the principles in the constitutional documents**:`.6aspec/rules/green/6A_constitution.md`
6
- 3. Read file: `.6aspec/rules/green/6A_tasks_sop.md`
5
+ 2. **You must first read and strictly abide by the principles in the constitutional documents**:`.6aspec/rules/green/green_constitution.md`
6
+ 3. Read file: `.6aspec/rules/green/green_tasks_sop.md`
7
7
  4. Strictly follow the "Task Decomposition SOP" defined in that file
8
8
  5. Output the task list
@@ -2,8 +2,8 @@
2
2
  description: visual-logic workflow
3
3
  ---
4
4
  1. Immediate response upon activation: visual-logic workflow has been activated.
5
- 2. **You must first read and strictly abide by the principles in the constitutional documents**:`.6aspec/rules/green/6A_constitution.md`
6
- 3. Read file: `.6aspec/rules/green/6A_visual_logic_sop.md`.
5
+ 2. **You must first read and strictly abide by the principles in the constitutional documents**:`.6aspec/rules/green/green_constitution.md`
6
+ 3. Read file: `.6aspec/rules/green/green_visual_logic_sop.md`.
7
7
  4. Strictly follow the "Visual Logic Diagrams SOP" defined in that file.
8
8
  5. Output Mermaid diagrams as specified in the SOP.
9
9