cc-devflow 4.1.5 → 4.2.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.
- package/.claude/CLAUDE.md +87 -1091
- package/.claude/commands/core/architecture.md +32 -2
- package/.claude/commands/core/guidelines.md +27 -2
- package/.claude/commands/core/roadmap.md +33 -4
- package/.claude/commands/core/style.md +53 -263
- package/.claude/commands/flow/CLAUDE.md +28 -0
- package/.claude/commands/flow/archive.md +2 -2
- package/.claude/commands/flow/checklist.md +9 -251
- package/.claude/commands/flow/clarify.md +9 -127
- package/.claude/commands/flow/constitution.md +1 -1
- package/.claude/commands/flow/context.md +1 -1
- package/.claude/commands/flow/dev.md +19 -395
- package/.claude/commands/flow/ideate.md +13 -13
- package/.claude/commands/flow/init.md +19 -30
- package/.claude/commands/flow/new.md +12 -268
- package/.claude/commands/flow/quality.md +10 -153
- package/.claude/commands/flow/release.md +18 -81
- package/.claude/commands/flow/restart.md +15 -16
- package/.claude/commands/flow/spec.md +14 -164
- package/.claude/commands/flow/status.md +12 -12
- package/.claude/commands/flow/update.md +4 -4
- package/.claude/commands/flow/upgrade.md +6 -6
- package/.claude/commands/flow/verify.md +19 -78
- package/.claude/commands/flow/workspace.md +1 -1
- package/.claude/docs/guides/INIT_TROUBLESHOOTING.md +7 -7
- package/.claude/docs/guides/NEW_TROUBLESHOOTING.md +44 -96
- package/.claude/docs/guides/ROADMAP_TROUBLESHOOTING.md +1 -1
- package/.claude/docs/guides/TASK_COMPLETION_MARKING.md +5 -5
- package/.claude/docs/templates/ATTEMPT_TEMPLATE.md +1 -1
- package/.claude/docs/templates/BACKLOG_TEMPLATE.md +3 -3
- package/.claude/docs/templates/CLARIFICATION_REPORT_TEMPLATE.md +5 -5
- package/.claude/docs/templates/ERROR_LOG_TEMPLATE.md +2 -2
- package/.claude/docs/templates/INIT_FLOW_TEMPLATE.md +3 -3
- package/.claude/docs/templates/NEW_ORCHESTRATION_TEMPLATE.md +33 -64
- package/.claude/docs/templates/RESEARCH_TEMPLATE.md +3 -3
- package/.claude/docs/templates/ROADMAP_DIALOGUE_TEMPLATE.md +2 -2
- package/.claude/docs/templates/ROADMAP_TEMPLATE.md +2 -2
- package/.claude/docs/templates/STYLE_TEMPLATE.md +3 -3
- package/.claude/docs/templates/UI_PROTOTYPE_TEMPLATE.md +8 -9
- package/.claude/guides/workflow-guides/flow-orchestrator.md +31 -265
- package/.claude/hooks/CLAUDE.md +1 -1
- package/.claude/hooks/checklist-gate.js +4 -4
- package/.claude/hooks/inject-agent-context.ts +2 -2
- package/.claude/scripts/calculate-checklist-completion.sh +2 -2
- package/.claude/scripts/check-prerequisites.sh +2 -2
- package/.claude/scripts/checklist-errors.sh +4 -4
- package/.claude/scripts/flow-quality-full.sh +5 -5
- package/.claude/scripts/flow-quality-quick.sh +4 -4
- package/.claude/scripts/flow-workspace-init.sh +2 -2
- package/.claude/scripts/generate-clarification-report.sh +4 -4
- package/.claude/scripts/recover-workflow.sh +70 -73
- package/.claude/scripts/run-quality-gates.sh +1 -1
- package/.claude/scripts/setup-epic.sh +2 -2
- package/.claude/scripts/setup-ralph-loop.sh +2 -2
- package/.claude/scripts/validate-research.sh +1 -1
- package/.claude/scripts/verify-setup.sh +1 -1
- package/.claude/skills/cc-devflow-orchestrator/SKILL.md +113 -108
- package/.claude/skills/workflow/CLAUDE.md +24 -0
- package/.claude/skills/workflow/flow-dev/CLAUDE.md +14 -76
- package/.claude/skills/workflow/flow-dev/SKILL.md +58 -60
- package/.claude/skills/workflow/flow-dev/context.jsonl +4 -8
- package/.claude/skills/workflow/flow-init/SKILL.md +46 -144
- package/.claude/skills/workflow/flow-init/assets/RESEARCH_TEMPLATE.md +1 -1
- package/.claude/skills/workflow/flow-init/context.jsonl +3 -3
- package/.claude/skills/workflow/flow-init/scripts/check-prerequisites.sh +1 -1
- package/.claude/skills/workflow/flow-init/scripts/validate-research.sh +1 -1
- package/.claude/skills/workflow/flow-release/SKILL.md +23 -56
- package/.claude/skills/workflow/flow-release/context.jsonl +5 -7
- package/.claude/skills/workflow/flow-spec/CLAUDE.md +15 -101
- package/.claude/skills/workflow/flow-spec/SKILL.md +40 -511
- package/.claude/skills/workflow/flow-spec/context.jsonl +5 -7
- package/.claude/skills/workflow/flow-verify/CLAUDE.md +10 -0
- package/.claude/skills/workflow/flow-verify/SKILL.md +53 -0
- package/.claude/skills/workflow/flow-verify/context.jsonl +5 -0
- package/.claude/skills/workflow.yaml +72 -267
- package/CHANGELOG.md +72 -0
- package/README.md +96 -69
- package/README.zh-CN.md +95 -67
- package/bin/cc-devflow-cli.js +154 -0
- package/bin/harness.js +22 -0
- package/docs/commands/README.md +34 -38
- package/docs/commands/README.zh-CN.md +34 -36
- package/docs/commands/core-roadmap.md +2 -2
- package/docs/commands/core-roadmap.zh-CN.md +2 -2
- package/docs/commands/core-style.md +29 -381
- package/docs/commands/core-style.zh-CN.md +29 -381
- package/docs/commands/flow-init.md +10 -10
- package/docs/commands/flow-init.zh-CN.md +11 -11
- package/docs/commands/flow-new.md +25 -260
- package/docs/commands/flow-new.zh-CN.md +26 -257
- package/docs/guides/getting-started.md +16 -15
- package/docs/guides/getting-started.zh-CN.md +10 -12
- package/lib/compiler/__tests__/manifest.test.js +156 -0
- package/lib/compiler/__tests__/parser.test.js +21 -0
- package/lib/compiler/index.js +17 -1
- package/lib/compiler/manifest.js +68 -6
- package/lib/compiler/parser.js +5 -0
- package/lib/harness/CLAUDE.md +21 -0
- package/lib/harness/cli.js +208 -0
- package/lib/harness/index.js +16 -0
- package/lib/harness/operations/dispatch.js +285 -0
- package/lib/harness/operations/init.js +48 -0
- package/lib/harness/operations/janitor.js +74 -0
- package/lib/harness/operations/pack.js +100 -0
- package/lib/harness/operations/plan.js +29 -0
- package/lib/harness/operations/release.js +83 -0
- package/lib/harness/operations/resume.js +44 -0
- package/lib/harness/operations/verify.js +163 -0
- package/lib/harness/planner.js +141 -0
- package/lib/harness/schemas.js +108 -0
- package/lib/harness/store.js +240 -0
- package/package.json +9 -1
|
@@ -1,267 +1,88 @@
|
|
|
1
1
|
# =============================================================================
|
|
2
|
-
# CC-DevFlow Workflow Schema
|
|
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: "
|
|
15
|
-
description: CC-DevFlow
|
|
8
|
+
version: "6.0.0"
|
|
9
|
+
description: CC-DevFlow Harness-First workflow schema
|
|
16
10
|
|
|
17
11
|
# =============================================================================
|
|
18
12
|
# 工件定义 (Artifacts)
|
|
19
13
|
# =============================================================================
|
|
20
|
-
#
|
|
21
|
-
# -
|
|
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:
|
|
87
|
-
generates: devflow/requirements/{REQ}/
|
|
88
|
-
requires: [
|
|
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:
|
|
96
|
-
generates: devflow/requirements/{REQ}/
|
|
97
|
-
requires: [
|
|
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:
|
|
122
|
-
generates:
|
|
123
|
-
requires: [
|
|
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:
|
|
209
|
-
generates: devflow/requirements/{REQ}/
|
|
210
|
-
requires: [
|
|
211
|
-
skill: flow-
|
|
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:
|
|
217
|
-
generates: devflow/requirements/{REQ}/
|
|
218
|
-
requires: [
|
|
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
|
-
|
|
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
|
-
#
|
|
94
|
+
# 仅登记仓库内实际存在的 skill 目录
|
|
274
95
|
|
|
275
96
|
skills:
|
|
276
97
|
workflow:
|
|
277
98
|
- id: flow-init
|
|
278
99
|
path: workflow/flow-init
|
|
279
|
-
description:
|
|
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:
|
|
103
|
+
description: 主链规格阶段 (task-manifest)
|
|
286
104
|
- id: flow-dev
|
|
287
105
|
path: workflow/flow-dev
|
|
288
|
-
description:
|
|
289
|
-
- id: flow-
|
|
290
|
-
path: workflow/flow-
|
|
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:
|
|
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:
|
|
126
|
+
description: 系统化调试
|
|
323
127
|
- id: brainstorming
|
|
324
128
|
path: domain/brainstorming
|
|
325
129
|
description: 需求头脑风暴
|
|
@@ -343,14 +147,8 @@ skills:
|
|
|
343
147
|
- id: tdd-enforcer
|
|
344
148
|
path: guardrail/tdd-enforcer
|
|
345
149
|
description: TDD 顺序强制执行
|
|
346
|
-
- id: file-header-guardian
|
|
347
|
-
path: guardrail/file-header-guardian
|
|
348
|
-
description: 文件头注释守护
|
|
349
150
|
|
|
350
151
|
utility:
|
|
351
|
-
- id: git-commit
|
|
352
|
-
path: utility/git-commit
|
|
353
|
-
description: Git 提交工作流
|
|
354
152
|
- id: npm-release
|
|
355
153
|
path: utility/npm-release
|
|
356
154
|
description: NPM 包发布
|
|
@@ -363,12 +161,6 @@ skills:
|
|
|
363
161
|
- id: skill-creator
|
|
364
162
|
path: utility/skill-creator
|
|
365
163
|
description: Skill 创建向导
|
|
366
|
-
- id: skill-developer
|
|
367
|
-
path: utility/skill-developer
|
|
368
|
-
description: Skill 开发指南
|
|
369
|
-
- id: writing-skills
|
|
370
|
-
path: utility/writing-skills
|
|
371
|
-
description: Skill 编写最佳实践
|
|
372
164
|
- id: file-standards
|
|
373
165
|
path: utility/file-standards
|
|
374
166
|
description: 文件命名规范
|
|
@@ -377,38 +169,51 @@ skills:
|
|
|
377
169
|
description: Constitution 快速参考
|
|
378
170
|
|
|
379
171
|
# =============================================================================
|
|
380
|
-
# 上下文注入配置
|
|
172
|
+
# 上下文注入配置
|
|
381
173
|
# =============================================================================
|
|
382
174
|
context:
|
|
383
|
-
# 全局上下文(所有 Skill 都会注入)
|
|
384
175
|
global:
|
|
385
176
|
- file: .claude/rules/project-constitution.md
|
|
386
177
|
reason: Quality rules and constraints
|
|
387
178
|
|
|
388
|
-
# 按 Skill 类型的默认上下文
|
|
389
179
|
defaults:
|
|
390
180
|
workflow:
|
|
391
|
-
- file: devflow/requirements/{REQ}/
|
|
392
|
-
reason:
|
|
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
|
|
393
186
|
optional: true
|
|
394
187
|
domain:
|
|
395
|
-
- file: devflow/requirements/{REQ}/
|
|
188
|
+
- file: devflow/requirements/{REQ}/task-manifest.json
|
|
396
189
|
reason: Current task context
|
|
397
190
|
optional: true
|
|
398
191
|
|
|
399
192
|
# =============================================================================
|
|
400
|
-
#
|
|
193
|
+
# 废弃命令/技能映射
|
|
401
194
|
# =============================================================================
|
|
402
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"
|
|
403
208
|
- id: flow-prd
|
|
404
209
|
replacement: flow-spec
|
|
405
|
-
message: "Use /flow
|
|
210
|
+
message: "Use /flow:spec instead"
|
|
406
211
|
- id: flow-tech
|
|
407
212
|
replacement: flow-spec
|
|
408
|
-
message: "Use /flow
|
|
213
|
+
message: "Use /flow:spec instead"
|
|
409
214
|
- id: flow-ui
|
|
410
215
|
replacement: flow-spec
|
|
411
|
-
message: "Use /flow
|
|
216
|
+
message: "Use /flow:spec instead"
|
|
412
217
|
- id: flow-epic
|
|
413
218
|
replacement: flow-spec
|
|
414
|
-
message: "Use /flow
|
|
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.2.0] - 2026-02-19
|
|
11
|
+
|
|
12
|
+
### 🧠 Long-Running Harness Protocol Alignment
|
|
13
|
+
|
|
14
|
+
v4.2.0 unifies long-running execution protocol across project-level `/core:*` commands and requirement-level `/flow:*` skills, reducing context-loss regressions and premature completion.
|
|
15
|
+
|
|
16
|
+
#### Added
|
|
17
|
+
|
|
18
|
+
- **Project-level harness protocol**
|
|
19
|
+
- Added `Initializer / Worker / Done Gate` guidance to:
|
|
20
|
+
- `.claude/commands/core/roadmap.md`
|
|
21
|
+
- `.claude/commands/core/architecture.md`
|
|
22
|
+
- `.claude/commands/core/guidelines.md`
|
|
23
|
+
- `.claude/commands/core/style.md`
|
|
24
|
+
- Standardized resumable artifacts under `devflow/.core-harness/*` (`checklist`, `progress`, `handoff`)
|
|
25
|
+
|
|
26
|
+
- **Requirement-level protocol parity**
|
|
27
|
+
- Added the same long-running protocol to:
|
|
28
|
+
- `.claude/skills/workflow/flow-init/SKILL.md`
|
|
29
|
+
- `.claude/skills/workflow/flow-spec/SKILL.md`
|
|
30
|
+
- `.claude/skills/workflow/flow-dev/SKILL.md`
|
|
31
|
+
- Standardized requirement session artifacts:
|
|
32
|
+
- `session-checklist.json`
|
|
33
|
+
- `session-progress.md`
|
|
34
|
+
- `session-handoff.md`
|
|
35
|
+
|
|
36
|
+
- **Routing-level enforcement**
|
|
37
|
+
- Extended `.claude/skills/cc-devflow-orchestrator/SKILL.md` with project-level harness routing defaults and artifact-backed completion rules
|
|
38
|
+
|
|
39
|
+
#### Benefits
|
|
40
|
+
|
|
41
|
+
- ✅ Consistent long-running behavior between `/core:*` and `/flow:*`
|
|
42
|
+
- ✅ Clear resumability across context windows
|
|
43
|
+
- ✅ Stronger done criteria via artifact-backed gates (instead of subjective completion)
|
|
44
|
+
|
|
45
|
+
## [4.1.6] - 2026-02-18
|
|
46
|
+
|
|
47
|
+
### 🔧 Multi-Platform Adapt Pipeline Stabilization
|
|
48
|
+
|
|
49
|
+
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.
|
|
50
|
+
|
|
51
|
+
#### Fixed
|
|
52
|
+
|
|
53
|
+
- **Command parser robustness**
|
|
54
|
+
- `.claude/commands/**/CLAUDE.md` is now excluded from command parsing
|
|
55
|
+
- Prevents false `Missing YAML frontmatter` failures during `npm run adapt`
|
|
56
|
+
|
|
57
|
+
- **Harness runtime chain bootstrap**
|
|
58
|
+
- `cc-devflow init` and `cc-devflow adapt` now auto-add missing `harness:*` npm scripts into target `package.json`
|
|
59
|
+
- Added `cc-devflow harness <subcommand>` passthrough so injected scripts have a stable runtime entry
|
|
60
|
+
- Injected scripts are now machine-portable (`cc-devflow harness ...`) with no absolute-path coupling
|
|
61
|
+
- Auto-repairs legacy `node bin/harness.js <cmd>`, old `npx` wrappers, and prior absolute-path script values
|
|
62
|
+
|
|
63
|
+
- **Manifest consistency across platforms**
|
|
64
|
+
- Separated source hash (`sourceHash`) and emitted target hash (`hash`)
|
|
65
|
+
- Drift detection now compares emitted artifact hashes correctly
|
|
66
|
+
- Legacy manifest entries auto-trigger one-time recompilation for migration
|
|
67
|
+
|
|
68
|
+
- **Stale entry cleanup**
|
|
69
|
+
- Added stale command entry pruning scoped by source prefix + platform
|
|
70
|
+
- Eliminates historical rename/delete residue causing noisy `adapt --check` drift reports
|
|
71
|
+
|
|
72
|
+
- **Split-output tracking**
|
|
73
|
+
- Manifest dedup key upgraded from `source+platform` to `source+platform+target`
|
|
74
|
+
- Prevents multi-output artifacts from overwriting each other
|
|
75
|
+
|
|
76
|
+
#### Benefits
|
|
77
|
+
|
|
78
|
+
- ✅ `npm run adapt` no longer fails on documentation files in command directories
|
|
79
|
+
- ✅ `npm run adapt -- --check` produces reliable drift signals
|
|
80
|
+
- ✅ Incremental compile behavior is stable for multi-output emitters
|
|
81
|
+
|
|
10
82
|
## [4.1.5] - 2026-02-08
|
|
11
83
|
|
|
12
84
|
### 🧹 Remove Git Worktree Management
|