cc-devflow 4.1.4 → 4.1.6

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 (128) hide show
  1. package/.claude/CLAUDE.md +87 -1183
  2. package/.claude/commands/core/architecture.md +2 -2
  3. package/.claude/commands/core/guidelines.md +2 -2
  4. package/.claude/commands/core/roadmap.md +4 -4
  5. package/.claude/commands/core/style.md +40 -268
  6. package/.claude/commands/flow/CLAUDE.md +28 -0
  7. package/.claude/commands/flow/archive.md +2 -2
  8. package/.claude/commands/flow/checklist.md +9 -251
  9. package/.claude/commands/flow/clarify.md +9 -127
  10. package/.claude/commands/flow/constitution.md +1 -1
  11. package/.claude/commands/flow/context.md +1 -1
  12. package/.claude/commands/flow/dev.md +19 -395
  13. package/.claude/commands/flow/fix.md +1 -6
  14. package/.claude/commands/flow/ideate.md +13 -13
  15. package/.claude/commands/flow/init.md +19 -41
  16. package/.claude/commands/flow/new.md +12 -268
  17. package/.claude/commands/flow/quality.md +10 -153
  18. package/.claude/commands/flow/release.md +18 -131
  19. package/.claude/commands/flow/restart.md +15 -16
  20. package/.claude/commands/flow/spec.md +14 -164
  21. package/.claude/commands/flow/status.md +12 -12
  22. package/.claude/commands/flow/update.md +4 -4
  23. package/.claude/commands/flow/upgrade.md +6 -6
  24. package/.claude/commands/flow/verify.md +19 -78
  25. package/.claude/commands/flow/workspace.md +3 -20
  26. package/.claude/docs/guides/INIT_TROUBLESHOOTING.md +7 -7
  27. package/.claude/docs/guides/NEW_TROUBLESHOOTING.md +44 -96
  28. package/.claude/docs/guides/ROADMAP_TROUBLESHOOTING.md +1 -1
  29. package/.claude/docs/guides/TASK_COMPLETION_MARKING.md +5 -5
  30. package/.claude/docs/guides/TEAM_MODE_GUIDE.md +0 -1
  31. package/.claude/docs/templates/ATTEMPT_TEMPLATE.md +1 -1
  32. package/.claude/docs/templates/BACKLOG_TEMPLATE.md +3 -3
  33. package/.claude/docs/templates/CLARIFICATION_REPORT_TEMPLATE.md +5 -5
  34. package/.claude/docs/templates/ERROR_LOG_TEMPLATE.md +2 -2
  35. package/.claude/docs/templates/INIT_FLOW_TEMPLATE.md +3 -3
  36. package/.claude/docs/templates/NEW_ORCHESTRATION_TEMPLATE.md +33 -64
  37. package/.claude/docs/templates/RESEARCH_TEMPLATE.md +3 -3
  38. package/.claude/docs/templates/ROADMAP_DIALOGUE_TEMPLATE.md +2 -2
  39. package/.claude/docs/templates/ROADMAP_TEMPLATE.md +2 -2
  40. package/.claude/docs/templates/STYLE_TEMPLATE.md +3 -3
  41. package/.claude/docs/templates/UI_PROTOTYPE_TEMPLATE.md +8 -9
  42. package/.claude/guides/workflow-guides/flow-orchestrator.md +31 -265
  43. package/.claude/hooks/CLAUDE.md +1 -1
  44. package/.claude/hooks/checklist-gate.js +4 -4
  45. package/.claude/hooks/inject-agent-context.ts +2 -2
  46. package/.claude/hooks/teammate-idle-hook.ts +1 -1
  47. package/.claude/rules/devflow-conventions.md +2 -93
  48. package/.claude/scripts/CLAUDE.md +1 -4
  49. package/.claude/scripts/calculate-checklist-completion.sh +2 -2
  50. package/.claude/scripts/check-prerequisites.sh +2 -2
  51. package/.claude/scripts/checklist-errors.sh +4 -4
  52. package/.claude/scripts/common.sh +12 -147
  53. package/.claude/scripts/flow-quality-full.sh +5 -5
  54. package/.claude/scripts/flow-quality-quick.sh +4 -4
  55. package/.claude/scripts/flow-workspace-init.sh +2 -2
  56. package/.claude/scripts/generate-clarification-report.sh +4 -4
  57. package/.claude/scripts/recover-workflow.sh +70 -73
  58. package/.claude/scripts/run-quality-gates.sh +1 -1
  59. package/.claude/scripts/setup-epic.sh +2 -2
  60. package/.claude/scripts/setup-ralph-loop.sh +2 -2
  61. package/.claude/scripts/validate-research.sh +1 -1
  62. package/.claude/scripts/verify-setup.sh +1 -1
  63. package/.claude/skills/cc-devflow-orchestrator/SKILL.md +88 -108
  64. package/.claude/skills/workflow/CLAUDE.md +24 -0
  65. package/.claude/skills/workflow/flow-dev/CLAUDE.md +14 -76
  66. package/.claude/skills/workflow/flow-dev/SKILL.md +29 -67
  67. package/.claude/skills/workflow/flow-dev/context.jsonl +4 -8
  68. package/.claude/skills/workflow/flow-init/SKILL.md +23 -186
  69. package/.claude/skills/workflow/flow-init/assets/RESEARCH_TEMPLATE.md +1 -1
  70. package/.claude/skills/workflow/flow-init/context.jsonl +3 -3
  71. package/.claude/skills/workflow/flow-init/scripts/check-prerequisites.sh +1 -1
  72. package/.claude/skills/workflow/flow-init/scripts/create-requirement.sh +15 -134
  73. package/.claude/skills/workflow/flow-init/scripts/validate-research.sh +1 -1
  74. package/.claude/skills/workflow/flow-release/SKILL.md +20 -110
  75. package/.claude/skills/workflow/flow-release/context.jsonl +5 -7
  76. package/.claude/skills/workflow/flow-spec/CLAUDE.md +15 -101
  77. package/.claude/skills/workflow/flow-spec/SKILL.md +15 -518
  78. package/.claude/skills/workflow/flow-spec/context.jsonl +5 -7
  79. package/.claude/skills/workflow/flow-verify/CLAUDE.md +10 -0
  80. package/.claude/skills/workflow/flow-verify/SKILL.md +53 -0
  81. package/.claude/skills/workflow/flow-verify/context.jsonl +5 -0
  82. package/.claude/skills/workflow.yaml +72 -270
  83. package/CHANGELOG.md +72 -0
  84. package/README.md +91 -69
  85. package/README.zh-CN.md +90 -67
  86. package/bin/harness.js +22 -0
  87. package/docs/commands/README.md +34 -38
  88. package/docs/commands/README.zh-CN.md +34 -36
  89. package/docs/commands/core-roadmap.md +2 -2
  90. package/docs/commands/core-roadmap.zh-CN.md +2 -2
  91. package/docs/commands/core-style.md +29 -381
  92. package/docs/commands/core-style.zh-CN.md +29 -381
  93. package/docs/commands/flow-init.md +10 -10
  94. package/docs/commands/flow-init.zh-CN.md +11 -11
  95. package/docs/commands/flow-new.md +25 -260
  96. package/docs/commands/flow-new.zh-CN.md +26 -257
  97. package/docs/guides/getting-started.md +16 -15
  98. package/docs/guides/getting-started.zh-CN.md +10 -12
  99. package/lib/compiler/__tests__/manifest.test.js +156 -0
  100. package/lib/compiler/__tests__/parser.test.js +21 -0
  101. package/lib/compiler/index.js +17 -1
  102. package/lib/compiler/manifest.js +68 -6
  103. package/lib/compiler/parser.js +5 -0
  104. package/lib/harness/CLAUDE.md +21 -0
  105. package/lib/harness/cli.js +208 -0
  106. package/lib/harness/index.js +16 -0
  107. package/lib/harness/operations/dispatch.js +285 -0
  108. package/lib/harness/operations/init.js +48 -0
  109. package/lib/harness/operations/janitor.js +74 -0
  110. package/lib/harness/operations/pack.js +100 -0
  111. package/lib/harness/operations/plan.js +29 -0
  112. package/lib/harness/operations/release.js +83 -0
  113. package/lib/harness/operations/resume.js +44 -0
  114. package/lib/harness/operations/verify.js +163 -0
  115. package/lib/harness/planner.js +141 -0
  116. package/lib/harness/schemas.js +108 -0
  117. package/lib/harness/store.js +240 -0
  118. package/package.json +9 -1
  119. package/.claude/scripts/flow-workspace-start.sh +0 -217
  120. package/.claude/scripts/flow-workspace-switch.sh +0 -234
  121. package/.claude/skills/domain/using-git-worktrees/SKILL.md +0 -252
  122. package/.claude/skills/domain/using-git-worktrees/assets/SHELL_ALIASES.md +0 -133
  123. package/.claude/skills/domain/using-git-worktrees/context.jsonl +0 -4
  124. package/.claude/skills/domain/using-git-worktrees/scripts/worktree-cleanup.sh +0 -218
  125. package/.claude/skills/domain/using-git-worktrees/scripts/worktree-create.sh +0 -232
  126. package/.claude/skills/domain/using-git-worktrees/scripts/worktree-list.sh +0 -130
  127. package/.claude/skills/domain/using-git-worktrees/scripts/worktree-status.sh +0 -140
  128. package/.claude/skills/domain/using-git-worktrees/scripts/worktree-switch.sh +0 -70
@@ -0,0 +1,10 @@
1
+ # flow-verify/
2
+ > L2 | 父级: /Users/dimon/001Area/80-CodeWorld/002-devflow/cc-devflow/.claude/skills/workflow/CLAUDE.md
3
+
4
+ 成员清单
5
+ SKILL.md: flow:verify 的核心指令,定义 quick/strict gate 与 release 前准入规则。
6
+ context.jsonl: flow-verify 上下文注入定义(task-manifest/report-card/harness-state)。
7
+
8
+ 法则: 成员完整·一行一文件·父级链接·技术词前置
9
+
10
+ [PROTOCOL]: 变更时更新此头部,然后检查 CLAUDE.md
@@ -0,0 +1,53 @@
1
+ ---
2
+ name: flow-verify
3
+ description: 'Run layered quick/strict gates and emit report-card for a requirement. Use before release and after major dev changes.'
4
+ ---
5
+
6
+ # Flow-Verify Skill
7
+
8
+ > [PROTOCOL]: 变更时更新此头部,然后检查 CLAUDE.md
9
+
10
+ ## Purpose
11
+
12
+ 执行质量门禁并输出 `report-card.json`,作为发布前唯一准入依据。
13
+
14
+ ## Input Format
15
+
16
+ ```bash
17
+ /flow:verify "REQ_ID" [--strict] [--skip-review]
18
+ ```
19
+
20
+ ## Execution Steps
21
+
22
+ 1. 解析参数。
23
+ 2. 调用验证引擎:
24
+
25
+ ```bash
26
+ npm run harness:verify -- --change-id "${REQ_ID}" [--strict] [--skip-review]
27
+ ```
28
+
29
+ 3. 读取并检查输出:
30
+ - `devflow/requirements/${REQ_ID}/report-card.json`
31
+ - `overall == "pass"` 才能进入 release
32
+
33
+ ## Gate Model
34
+
35
+ - Quick Gate(默认):
36
+ - lint
37
+ - typecheck
38
+ - test
39
+ - Strict Gate(`--strict`):
40
+ - test:integration(如存在)
41
+ - npm audit
42
+ - codex review(可 `--skip-review`)
43
+
44
+ ## Exit Criteria
45
+
46
+ - `report-card.json` 生成成功
47
+ - 若 `overall=fail`,停止发布并修复失败项
48
+
49
+ ## Next Step
50
+
51
+ ```bash
52
+ /flow:release "${REQ_ID}"
53
+ ```
@@ -0,0 +1,5 @@
1
+ {"file": "devflow/requirements/{REQ}/task-manifest.json", "reason": "Task status baseline"}
2
+ {"file": "devflow/requirements/{REQ}/report-card.json", "reason": "Previous verification result", "optional": true}
3
+ {"file": "devflow/requirements/{REQ}/harness-state.json", "reason": "Lifecycle status", "optional": true}
4
+ {"file": "devflow/requirements/{REQ}/context-package.md", "reason": "Constraints and next commands", "optional": true}
5
+ {"file": ".claude/rules/project-constitution.md", "reason": "Quality rules and constraints"}
@@ -1,267 +1,88 @@
1
1
  # =============================================================================
2
- # CC-DevFlow Workflow Schema v5.0.0 (借鉴 OpenSpec schema.yaml)
2
+ # CC-DevFlow Workflow Schema v6.0.0 (Harness-First)
3
3
  # =============================================================================
4
- # 声明式依赖图,支持:
5
- # 1. 文件存在性状态检测(通过 generates 路径)
6
- # 2. 依赖关系验证(通过 requires 数组)
7
- # 3. 上下文注入(通过 context.jsonl)
8
- # 4. 向后兼容(fallback 到 orchestration_status.json)
9
- #
10
4
  # [PROTOCOL]: 变更时更新此头部,然后检查 CLAUDE.md
11
5
  # =============================================================================
12
6
 
13
7
  name: cc-devflow
14
- version: "5.0.0"
15
- description: CC-DevFlow 声明式工作流 Schema
8
+ version: "6.0.0"
9
+ description: CC-DevFlow Harness-First workflow schema
16
10
 
17
11
  # =============================================================================
18
12
  # 工件定义 (Artifacts)
19
13
  # =============================================================================
20
- # 每个工件代表工作流中的一个产出物,包含:
21
- # - id: 唯一标识符
22
- # - generates: 输出文件路径(支持 {REQ} 占位符)
23
- # - requires: 依赖的工件 ID 列表
24
- # - skill: 生成此工件的 Skill
25
- # - optional: 是否可选(默认 false)
26
- # - glob: 是否使用 glob 模式检测(默认 false)
27
- # - instruction: 生成指令(可选)
14
+ # 主链:init -> spec -> dev -> verify -> release
15
+ # 产物最小集:context-package / task-manifest / report-card / release-note
28
16
 
29
17
  artifacts:
30
- # ---------------------------------------------------------------------------
31
- # 项目级工件 (执行一次)
32
- # ---------------------------------------------------------------------------
33
- - id: roadmap
34
- generates: devflow/ROADMAP.md
35
- requires: []
36
- skill: core-roadmap
37
- instruction: |
38
- 创建项目路线图,定义长期目标和里程碑。
39
-
40
- - id: backlog
41
- generates: devflow/BACKLOG.md
42
- requires: []
43
- skill: core-roadmap
44
- instruction: |
45
- 创建产品需求池,记录所有待处理需求。
46
-
47
- - id: architecture
48
- generates: devflow/ARCHITECTURE.md
49
- requires: []
50
- skill: core-architecture
51
- instruction: |
52
- 创建架构设计文档,定义系统整体结构。
53
-
54
- - id: frontend_spec
55
- generates: devflow/spec/frontend/index.md
56
- requires: []
57
- skill: core-guidelines
58
- instruction: |
59
- 创建前端规范索引,定义前端开发标准。
60
-
61
- - id: backend_spec
62
- generates: devflow/spec/backend/index.md
63
- requires: []
64
- skill: core-guidelines
65
- instruction: |
66
- 创建后端规范索引,定义后端开发标准。
67
-
68
- - id: style_guide
69
- generates: devflow/STYLE.md
70
- requires: []
71
- skill: core-style
72
- instruction: |
73
- 创建代码风格指南,定义编码规范。
74
-
75
- # ---------------------------------------------------------------------------
76
- # 需求级工件 (每个需求执行)
77
- # ---------------------------------------------------------------------------
78
- - id: brainstorm
79
- generates: devflow/requirements/{REQ}/BRAINSTORM.md
18
+ - id: context_package
19
+ generates: devflow/requirements/{REQ}/context-package.md
80
20
  requires: []
81
21
  skill: flow-init
82
22
  instruction: |
83
- 初始化需求,进行头脑风暴会话。
84
- 捕获原始意图、问题背景、初步想法。
23
+ 初始化需求并生成上下文包。
85
24
 
86
- - id: research
87
- generates: devflow/requirements/{REQ}/research/*.md
88
- requires: [brainstorm]
25
+ - id: harness_state
26
+ generates: devflow/requirements/{REQ}/harness-state.json
27
+ requires: [context_package]
89
28
  skill: flow-init
90
- glob: true
91
29
  instruction: |
92
- 进行技术调研,收集相关资料。
93
- 输出调研报告到 research/ 目录。
30
+ 记录 requirement 生命周期状态。
94
31
 
95
- - id: clarifications
96
- generates: devflow/requirements/{REQ}/clarifications/*.md
97
- requires: [brainstorm]
98
- skill: flow-clarify
99
- glob: true
100
- optional: true
101
- instruction: |
102
- 澄清需求疑问,记录问答过程。
103
-
104
- - id: prd
105
- generates: devflow/requirements/{REQ}/PRD.md
106
- requires: [brainstorm]
107
- skill: flow-spec
108
- instruction: |
109
- 创建产品需求文档 (PRD)。
110
- 定义用户故事、验收标准、优先级。
111
-
112
- - id: tech_design
113
- generates: devflow/requirements/{REQ}/TECH_DESIGN.md
114
- requires: [prd]
32
+ - id: task_manifest
33
+ generates: devflow/requirements/{REQ}/task-manifest.json
34
+ requires: [context_package]
115
35
  skill: flow-spec
116
- optional: true
117
36
  instruction: |
118
- 创建技术设计文档。
119
- 定义架构方案、接口设计、数据模型。
37
+ 生成依赖可执行的任务清单。
120
38
 
121
- - id: data_model
122
- generates: devflow/requirements/{REQ}/data-model.md
123
- requires: [prd]
124
- skill: flow-spec
125
- optional: true
126
- instruction: |
127
- 创建数据模型文档。
128
- 定义实体关系、字段说明。
129
-
130
- - id: contracts
131
- generates: devflow/requirements/{REQ}/contracts/*.yaml
132
- requires: [tech_design]
133
- skill: flow-spec
134
- glob: true
135
- optional: true
136
- instruction: |
137
- 创建 API 契约文件 (OpenAPI/GraphQL)。
138
-
139
- - id: ui_prototype
140
- generates: devflow/requirements/{REQ}/UI_PROTOTYPE.html
141
- requires: [prd]
142
- skill: flow-spec
143
- optional: true
144
- instruction: |
145
- 创建 UI 原型。
146
- 使用 HTML/CSS 展示界面设计。
147
-
148
- - id: checklists
149
- generates: devflow/requirements/{REQ}/checklists/*.md
150
- requires: [prd]
151
- skill: flow-checklist
152
- glob: true
153
- optional: true
154
- instruction: |
155
- 创建质量检查清单。
156
- 验证 PRD 完整性和一致性。
157
-
158
- - id: epic
159
- generates: devflow/requirements/{REQ}/EPIC.md
160
- requires: [prd]
161
- skill: flow-spec
162
- instruction: |
163
- 创建 Epic 规划文档。
164
- 定义阶段划分、里程碑、风险评估。
165
-
166
- - id: tasks
167
- generates: devflow/requirements/{REQ}/TASKS.md
168
- requires: [epic]
169
- skill: flow-spec
170
- instruction: |
171
- 创建任务分解文档。
172
- 将 Epic 拆分为可执行的任务列表。
173
-
174
- - id: implementation_plan
175
- generates: devflow/requirements/{REQ}/tasks/IMPLEMENTATION_PLAN.md
176
- requires: [tasks]
177
- skill: flow-dev
178
- instruction: |
179
- 创建实施计划。
180
- 详细说明每个任务的实现步骤。
181
-
182
- - id: source_code
183
- generates: src/**
184
- requires: [tasks]
185
- skill: flow-dev
186
- glob: true
187
- instruction: |
188
- 实现源代码。
189
- 遵循 TDD 流程:测试先行。
190
-
191
- - id: test_code
192
- generates: tests/**
193
- requires: [tasks]
39
+ - id: runtime_events
40
+ generates: .harness/runtime/{REQ}/**
41
+ requires: [task_manifest]
194
42
  skill: flow-dev
195
43
  glob: true
44
+ optional: true
196
45
  instruction: |
197
- 实现测试代码。
198
- 覆盖单元测试、集成测试。
199
-
200
- - id: quality_report
201
- generates: devflow/requirements/{REQ}/QUALITY_REPORT.md
202
- requires: [source_code, test_code]
203
- skill: flow-quality
204
- instruction: |
205
- 创建质量报告。
206
- 包含测试覆盖率、安全扫描结果。
46
+ 执行任务并写入 checkpoint/events。
207
47
 
208
- - id: test_report
209
- generates: devflow/requirements/{REQ}/TEST_REPORT.md
210
- requires: [quality_report]
211
- skill: flow-quality
48
+ - id: report_card
49
+ generates: devflow/requirements/{REQ}/report-card.json
50
+ requires: [task_manifest]
51
+ skill: flow-verify
212
52
  instruction: |
213
- 创建测试报告。
214
- 记录测试执行结果和问题。
53
+ 执行 quick/strict 质量门禁并产出报告卡。
215
54
 
216
- - id: security_report
217
- generates: devflow/requirements/{REQ}/SECURITY_REPORT.md
218
- requires: [quality_report]
219
- skill: flow-quality
220
- optional: true
221
- instruction: |
222
- 创建安全报告。
223
- 记录安全扫描发现和修复建议。
224
-
225
- - id: release_plan
226
- generates: devflow/requirements/{REQ}/RELEASE_PLAN.md
227
- requires: [quality_report]
55
+ - id: release_note
56
+ generates: devflow/requirements/{REQ}/RELEASE_NOTE.md
57
+ requires: [report_card]
228
58
  skill: flow-release
59
+ optional: true
229
60
  instruction: |
230
- 创建发布计划。
231
- 定义发布步骤、回滚策略。
61
+ 发布通过后生成发布说明。
232
62
 
233
- # ---------------------------------------------------------------------------
234
- # Bug 修复工件
235
- # ---------------------------------------------------------------------------
236
63
  - id: bug_analysis
237
64
  generates: devflow/bugs/{BUG}/ANALYSIS.md
238
65
  requires: []
239
66
  skill: flow-fix
67
+ optional: true
240
68
  instruction: |
241
- 分析 Bug 根因。
242
- 记录复现步骤、影响范围。
69
+ 分析 Bug 根因并沉淀修复输入。
243
70
 
244
71
  - id: bug_plan
245
72
  generates: devflow/bugs/{BUG}/PLAN.md
246
73
  requires: [bug_analysis]
247
74
  skill: flow-fix
75
+ optional: true
248
76
  instruction: |
249
- 创建 Bug 修复计划。
250
- 定义修复方案、测试策略。
77
+ 生成 Bug 修复计划。
251
78
 
252
79
  # =============================================================================
253
80
  # 状态检测配置
254
81
  # =============================================================================
255
82
  detection:
256
- # 主要检测方法:文件存在性
257
83
  method: file_existence
258
-
259
- # 向后兼容:fallback 到 orchestration_status.json
260
- fallback: orchestration_status.json
261
-
262
- # glob 模式配置
84
+ fallback: harness-state.json
263
85
  glob_options:
264
- # 忽略的文件模式
265
86
  ignore:
266
87
  - "**/.DS_Store"
267
88
  - "**/*.bak"
@@ -270,48 +91,31 @@ detection:
270
91
  # =============================================================================
271
92
  # Skill 分类定义
272
93
  # =============================================================================
273
- # 保留原有分类,用于 Skill 发现和文档
94
+ # 仅登记仓库内实际存在的 skill 目录
274
95
 
275
96
  skills:
276
97
  workflow:
277
98
  - id: flow-init
278
99
  path: workflow/flow-init
279
- description: 需求初始化 (支持 worktree)
280
- - id: flow-clarify
281
- path: workflow/flow-clarify
282
- description: 需求澄清
100
+ description: 主链初始化 (context-package + harness-state)
283
101
  - id: flow-spec
284
102
  path: workflow/flow-spec
285
- description: 统一规格阶段 (PRD + Tech + UI + Epic)
103
+ description: 主链规格阶段 (task-manifest)
286
104
  - id: flow-dev
287
105
  path: workflow/flow-dev
288
- description: 开发执行 (TDD + Ralph Loop)
289
- - id: flow-quality
290
- path: workflow/flow-quality
291
- description: 质量验证
106
+ description: 主链开发执行 (dispatch/resume)
107
+ - id: flow-verify
108
+ path: workflow/flow-verify
109
+ description: 主链质量门禁 (report-card)
292
110
  - id: flow-release
293
111
  path: workflow/flow-release
294
- description: 发布管理 (支持 worktree 清理)
112
+ description: 主链发布收尾 (release/janitor)
113
+ - id: flow-quality
114
+ path: workflow/flow-quality
115
+ description: 旧质量流程 (deprecated)
295
116
  - id: flow-fix
296
117
  path: workflow/flow-fix
297
118
  description: Bug 修复
298
- - id: flow-checklist
299
- path: workflow/flow-checklist
300
- description: 质量检查清单
301
-
302
- core:
303
- - id: core-roadmap
304
- path: workflow/core-roadmap
305
- description: 项目路线图
306
- - id: core-architecture
307
- path: workflow/core-architecture
308
- description: 架构设计
309
- - id: core-guidelines
310
- path: workflow/core-guidelines
311
- description: 开发规范
312
- - id: core-style
313
- path: workflow/core-style
314
- description: 代码风格
315
119
 
316
120
  domain:
317
121
  - id: tdd
@@ -319,7 +123,7 @@ skills:
319
123
  description: TDD Iron Law 执行
320
124
  - id: debugging
321
125
  path: domain/debugging
322
- description: 4阶段系统化调试
126
+ description: 系统化调试
323
127
  - id: brainstorming
324
128
  path: domain/brainstorming
325
129
  description: 需求头脑风暴
@@ -335,9 +139,6 @@ skills:
335
139
  - id: finishing-branch
336
140
  path: domain/finishing-branch
337
141
  description: 分支完成决策
338
- - id: using-git-worktrees
339
- path: domain/using-git-worktrees
340
- description: Git Worktree 管理
341
142
 
342
143
  guardrail:
343
144
  - id: constitution-guardian
@@ -346,14 +147,8 @@ skills:
346
147
  - id: tdd-enforcer
347
148
  path: guardrail/tdd-enforcer
348
149
  description: TDD 顺序强制执行
349
- - id: file-header-guardian
350
- path: guardrail/file-header-guardian
351
- description: 文件头注释守护
352
150
 
353
151
  utility:
354
- - id: git-commit
355
- path: utility/git-commit
356
- description: Git 提交工作流
357
152
  - id: npm-release
358
153
  path: utility/npm-release
359
154
  description: NPM 包发布
@@ -366,12 +161,6 @@ skills:
366
161
  - id: skill-creator
367
162
  path: utility/skill-creator
368
163
  description: Skill 创建向导
369
- - id: skill-developer
370
- path: utility/skill-developer
371
- description: Skill 开发指南
372
- - id: writing-skills
373
- path: utility/writing-skills
374
- description: Skill 编写最佳实践
375
164
  - id: file-standards
376
165
  path: utility/file-standards
377
166
  description: 文件命名规范
@@ -380,38 +169,51 @@ skills:
380
169
  description: Constitution 快速参考
381
170
 
382
171
  # =============================================================================
383
- # 上下文注入配置 (借鉴 Trellis)
172
+ # 上下文注入配置
384
173
  # =============================================================================
385
174
  context:
386
- # 全局上下文(所有 Skill 都会注入)
387
175
  global:
388
176
  - file: .claude/rules/project-constitution.md
389
177
  reason: Quality rules and constraints
390
178
 
391
- # 按 Skill 类型的默认上下文
392
179
  defaults:
393
180
  workflow:
394
- - file: devflow/requirements/{REQ}/BRAINSTORM.md
395
- reason: Original intent alignment
181
+ - file: devflow/requirements/{REQ}/context-package.md
182
+ reason: Execution context package
183
+ optional: true
184
+ - file: devflow/requirements/{REQ}/task-manifest.json
185
+ reason: Executable task graph
396
186
  optional: true
397
187
  domain:
398
- - file: devflow/requirements/{REQ}/TASKS.md
188
+ - file: devflow/requirements/{REQ}/task-manifest.json
399
189
  reason: Current task context
400
190
  optional: true
401
191
 
402
192
  # =============================================================================
403
- # 废弃的 Skill (保留兼容)
193
+ # 废弃命令/技能映射
404
194
  # =============================================================================
405
195
  deprecated:
196
+ - id: flow-new
197
+ replacement: flow-init
198
+ message: "Use /flow:init -> /flow:spec -> /flow:dev -> /flow:verify -> /flow:release"
199
+ - id: flow-clarify
200
+ replacement: flow-spec
201
+ message: "Clarification stage removed from default chain"
202
+ - id: flow-checklist
203
+ replacement: flow-verify
204
+ message: "Checklist stage merged into verification gates"
205
+ - id: flow-quality
206
+ replacement: flow-verify
207
+ message: "Use /flow:verify for quick/strict gates"
406
208
  - id: flow-prd
407
209
  replacement: flow-spec
408
- message: "Use /flow-spec instead"
210
+ message: "Use /flow:spec instead"
409
211
  - id: flow-tech
410
212
  replacement: flow-spec
411
- message: "Use /flow-spec instead"
213
+ message: "Use /flow:spec instead"
412
214
  - id: flow-ui
413
215
  replacement: flow-spec
414
- message: "Use /flow-spec instead"
216
+ message: "Use /flow:spec instead"
415
217
  - id: flow-epic
416
218
  replacement: flow-spec
417
- message: "Use /flow-spec instead"
219
+ message: "Use /flow:spec instead"
package/CHANGELOG.md CHANGED
@@ -7,6 +7,78 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ---
9
9
 
10
+ ## [4.1.6] - 2026-02-18
11
+
12
+ ### 🔧 Multi-Platform Adapt Pipeline Stabilization
13
+
14
+ v4.1.6 fixes multi-platform `adapt` compilation drift and parsing failures, with a focus on deterministic incremental behavior across Codex/Cursor/Qwen/Antigravity targets.
15
+
16
+ #### Fixed
17
+
18
+ - **Command parser robustness**
19
+ - `.claude/commands/**/CLAUDE.md` is now excluded from command parsing
20
+ - Prevents false `Missing YAML frontmatter` failures during `npm run adapt`
21
+
22
+ - **Manifest consistency across platforms**
23
+ - Separated source hash (`sourceHash`) and emitted target hash (`hash`)
24
+ - Drift detection now compares emitted artifact hashes correctly
25
+ - Legacy manifest entries auto-trigger one-time recompilation for migration
26
+
27
+ - **Stale entry cleanup**
28
+ - Added stale command entry pruning scoped by source prefix + platform
29
+ - Eliminates historical rename/delete residue causing noisy `adapt --check` drift reports
30
+
31
+ - **Split-output tracking**
32
+ - Manifest dedup key upgraded from `source+platform` to `source+platform+target`
33
+ - Prevents multi-output artifacts from overwriting each other
34
+
35
+ #### Benefits
36
+
37
+ - ✅ `npm run adapt` no longer fails on documentation files in command directories
38
+ - ✅ `npm run adapt -- --check` produces reliable drift signals
39
+ - ✅ Incremental compile behavior is stable for multi-output emitters
40
+
41
+ ## [4.1.5] - 2026-02-08
42
+
43
+ ### 🧹 Remove Git Worktree Management
44
+
45
+ v4.1.5 removes worktree management from DevFlow. Git topology (branches, worktrees, merges) is now fully user-managed, simplifying the workflow and reducing coupling.
46
+
47
+ #### Removed
48
+
49
+ - **using-git-worktrees skill**
50
+ - Deleted `.claude/skills/domain/using-git-worktrees/` (SKILL.md, scripts, assets)
51
+ - Removed worktree-create, worktree-switch, worktree-cleanup, worktree-list, worktree-status scripts
52
+
53
+ - **Workspace worktree scripts**
54
+ - Deleted `.claude/scripts/flow-workspace-start.sh`
55
+ - Deleted `.claude/scripts/flow-workspace-switch.sh`
56
+
57
+ - **Common.sh worktree functions**
58
+ - Removed 159 lines of worktree-related helper functions
59
+
60
+ #### Changed
61
+
62
+ - **Flow commands and skills**
63
+ - Updated flow-init, flow-release, flow-fix, flow-workspace to remove worktree references
64
+ - Simplified `create-requirement.sh` (removed worktree creation logic)
65
+ - Updated `workflow.yaml` dependency graph
66
+
67
+ - **Documentation**
68
+ - Updated `.claude/CLAUDE.md` architecture description
69
+ - Removed Git branch conventions from `devflow-conventions.md`
70
+ - Cleaned up `scripts/CLAUDE.md` member list
71
+ - Updated `TEAM_MODE_GUIDE.md`
72
+
73
+ #### Benefits
74
+
75
+ - ✅ Simpler workflow: DevFlow focuses on requirement management, not Git topology
76
+ - ✅ User control: Developers manage branches/worktrees as they prefer
77
+ - ✅ Reduced coupling: No assumptions about Git structure
78
+ - ✅ Cleaner codebase: -2345 lines of code removed
79
+
80
+ ---
81
+
10
82
  ## [4.1.4] - 2026-02-08
11
83
 
12
84
  ### 🧭 Workspace Worktree Session Recovery & Release Flow Clarity