cc-devflow 4.5.0 → 4.5.1

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 (45) hide show
  1. package/.claude/skills/cc-plan/CHANGELOG.md +14 -0
  2. package/.claude/skills/cc-plan/PLAYBOOK.md +19 -2
  3. package/.claude/skills/cc-plan/SKILL.md +52 -20
  4. package/.claude/skills/cc-plan/assets/DESIGN_TEMPLATE.md +70 -1
  5. package/.claude/skills/cc-plan/assets/TASKS_TEMPLATE.md +13 -0
  6. package/.claude/skills/cc-plan/assets/TASK_MANIFEST_TEMPLATE.json +3 -1
  7. package/.claude/skills/cc-plan/assets/TINY_DESIGN_TEMPLATE.md +22 -0
  8. package/.claude/skills/cc-roadmap/CHANGELOG.md +12 -0
  9. package/.claude/skills/cc-roadmap/PLAYBOOK.md +24 -1
  10. package/.claude/skills/cc-roadmap/SKILL.md +50 -15
  11. package/.claude/skills/cc-roadmap/assets/BACKLOG_TEMPLATE.md +15 -0
  12. package/.claude/skills/cc-roadmap/assets/ROADMAP_TEMPLATE.md +37 -0
  13. package/.claude/skills/cc-roadmap/assets/TRACKING_TEMPLATE.json +2 -1
  14. package/CHANGELOG.md +20 -0
  15. package/CODE_OF_CONDUCT.md +39 -0
  16. package/CODE_OF_CONDUCT.zh-CN.md +39 -0
  17. package/CONTRIBUTING.md +195 -0
  18. package/CONTRIBUTING.zh-CN.md +195 -0
  19. package/README.md +141 -150
  20. package/README.zh-CN.md +144 -148
  21. package/SECURITY.md +56 -0
  22. package/SECURITY.zh-CN.md +56 -0
  23. package/docs/examples/example-bindings.json +3 -3
  24. package/docs/examples/full-design-blocked/BACKLOG.md +1 -1
  25. package/docs/examples/full-design-blocked/README.md +1 -1
  26. package/docs/examples/full-design-blocked/ROADMAP.md +1 -1
  27. package/docs/examples/full-design-blocked/changes/REQ-002-bulk-invite-import/planning/design.md +1 -1
  28. package/docs/examples/full-design-blocked/changes/REQ-002-bulk-invite-import/planning/tasks.md +1 -1
  29. package/docs/examples/full-design-blocked/roadmap-tracking.json +1 -1
  30. package/docs/examples/local-handoff/BACKLOG.md +1 -1
  31. package/docs/examples/local-handoff/README.md +1 -1
  32. package/docs/examples/local-handoff/ROADMAP.md +1 -1
  33. package/docs/examples/local-handoff/changes/REQ-003-audit-log-export/planning/design.md +1 -1
  34. package/docs/examples/local-handoff/changes/REQ-003-audit-log-export/planning/tasks.md +1 -1
  35. package/docs/examples/local-handoff/roadmap-tracking.json +1 -1
  36. package/docs/examples/pdca-loop/BACKLOG.md +1 -1
  37. package/docs/examples/pdca-loop/README.md +1 -1
  38. package/docs/examples/pdca-loop/ROADMAP.md +1 -1
  39. package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/planning/design.md +1 -1
  40. package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/planning/task-manifest.json +2 -2
  41. package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/planning/tasks.md +1 -1
  42. package/docs/examples/pdca-loop/roadmap-tracking.json +1 -1
  43. package/docs/guides/getting-started.md +5 -0
  44. package/docs/guides/getting-started.zh-CN.md +5 -0
  45. package/package.json +7 -1
@@ -1,5 +1,19 @@
1
1
  # CC-Plan Skill Changelog
2
2
 
3
+ ## v3.5.6 - 2026-04-28
4
+
5
+ - require non-trivial plans to compare named option roles, including minimal viable and ideal architecture, before freezing a recommendation
6
+ - add implementation decision horizon and error/rescue mapping so full designs resolve implementation-time ambiguity before `cc-do`
7
+ - strengthen test-first planning with test framework evidence, coverage quality mapping, and mandatory regression tests for changed existing behavior
8
+ - add conditional UI and DX/operator gates for design completeness, interaction states, target persona, time to first value, and magic moment
9
+
10
+ ## v3.5.5 - 2026-04-28
11
+
12
+ - require over-broad asks to split back into roadmap stages or separate REQ/FIX candidates before detailed planning
13
+ - clarify that `tiny-design` is a short approved design, not permission to skip the design gate
14
+ - add implementation surface mapping so file responsibilities are locked before task decomposition
15
+ - add review calibration so only build-blocking scope, ambiguity, verification, or execution issues fail the planning gate
16
+
3
17
  ## v3.5.4 - 2026-04-27
4
18
 
5
19
  - require planning outputs to resolve the runtime output policy before writing `planning/design.md`, `planning/tasks.md`, or `change-meta.json`
@@ -20,6 +20,12 @@
20
20
  7. 同 blast radius 内的完整边界优先做完,跨系统或无证据扩张才 defer。
21
21
  8. 具体执行计划默认测试先行;没有 Red/Green/Refactor 链或 TDD exception,不准交给 `cc-do`。
22
22
  9. 新 change 目录必须使用 `REQ-<number>-<description>` 或 `FIX-<number>-<description>`;旧小写目录只读兼容,不再作为新输出。
23
+ 10. 原始需求跨多个独立子系统时,先拆回 roadmap / 多个 REQ/FIX;不要把一个大杂烩压成单个计划。
24
+ 11. `tiny-design` 仍然必须被批准,它只是短设计,不是跳过设计。
25
+ 12. 非 trivial 方案必须至少比较 `minimal viable` 和 `ideal architecture` 两种角色,小方案没有天然优先权。
26
+ 13. `full-design` 必须冻结 implementation decision horizon 和 error/rescue map,避免 `cc-do` 临场补设计。
27
+ 14. 测试框架来源、覆盖质量和回归测试必须在计划阶段写清,不准靠执行阶段猜。
28
+ 15. UI 和 developer/operator-facing 范围只在适用时触发对应 gate,不把每个计划都塞成大审查清单。
23
29
 
24
30
  ## Required Outputs
25
31
 
@@ -53,8 +59,14 @@
53
59
  8. `planning/tasks.md` 顶部必须写清 frozen decisions、commands to trust、do-not-re-decide。
54
60
  9. `planning/task-manifest.json` 必须是 `cc-do` 的真相源,而不是装饰文件。
55
61
  10. `planning/design.md` 必须包含 `Existing Leverage`、`NOT in scope`、`Failure Modes`、`Test Diagram`,除非明确说明为什么不适用。
56
- 11. artifact、CLI、包、容器、文档入口必须在计划阶段写清分发和 discoverability,不准到 `cc-act` 才发现没人能用。
57
- 12. 行为变更任务必须拆成 `[TEST] -> [IMPL] -> [REFACTOR]` 或写明 TDD exception;不能用“实现并测试”混成一个任务。
62
+ 11. `planning/design.md` `planning/tasks.md` 必须包含 implementation surface map:文件、职责、归属理由、耦合风险。
63
+ 12. `full-design` 必须包含 implementation decision horizon error/rescue map;不适用时写清 N/A 理由。
64
+ 13. 新 artifact、CLI、包、容器、文档入口必须在计划阶段写清分发和 discoverability,不准到 `cc-act` 才发现没人能用。
65
+ 14. 行为变更任务必须拆成 `[TEST] -> [IMPL] -> [REFACTOR]` 或写明 TDD exception;不能用“实现并测试”混成一个任务。
66
+ 15. 回归测试不能 defer。修改既有行为且缺少覆盖时,必须先计划 regression test。
67
+ 16. UI scope 要写 design completeness score 和 loading / empty / error / success / partial 状态。
68
+ 17. developer/operator-facing scope 要写 target persona、time to first value、magic moment 和 install / run / debug / upgrade 风险。
69
+ 18. Review gate 只拦会导致实现错误、执行卡住、范围越界、验证缺失的问题;文字偏好和 nice-to-have 只能作为 advisory。
58
70
 
59
71
  ## Approval Flow
60
72
 
@@ -71,7 +83,12 @@
71
83
  - 现有代码已经解决了哪些子问题?
72
84
  - 最小完整方案触达哪些文件,为什么没有更小边界?
73
85
  - 数据流、状态流或执行流怎么走?
86
+ - 每个会触达的文件职责是什么,为什么属于这个文件,而不是另一个平行位置?
87
+ - 为什么推荐方案胜过 `minimal viable` / `ideal architecture` 的另一端?
88
+ - foundation / core / integration / polish 阶段哪些决策已经冻结,哪些仍是 blocked question?
89
+ - 每条 failure path 的 rescue action、用户可见结果和测试证据是什么?
74
90
  - 每条新增 code path / user flow / error path 的第一条失败测试是什么?
91
+ - 测试框架来源是什么,现有覆盖是 strong、happy-path-only、smoke-only 还是 missing?
75
92
  - 哪些生产失败模式已经处理,哪些 defer 到 backlog?
76
93
 
77
94
  ## Design Mode Switch
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cc-plan
3
- version: 3.5.4
3
+ version: 3.5.6
4
4
  description: Use when a requirement, roadmap item, or bug needs scope clarification, design decisions, and executable task breakdown before coding starts.
5
5
  triggers:
6
6
  - 帮我规划这个需求
@@ -34,6 +34,8 @@ writes:
34
34
  entry_gate:
35
35
  - Read roadmap handoff, current requirement files, code, docs, and tests before drafting design.
36
36
  - Freeze problem, constraints, non-goals, and success criteria before proposing implementation tasks.
37
+ - If the raw ask spans multiple independent subsystems, split it back into roadmap stages or separate REQ/FIX candidates before asking implementation details.
38
+ - "For non-trivial designs, compare named option roles: minimal viable, ideal architecture, and optional hybrid. Do not default to smallest unless it best serves the goal."
37
39
  - Plan executable work as Red/Green/Refactor by default; identify the first failing test before any production implementation task, or write an explicit TDD exception with replacement evidence.
38
40
  - Assign a canonical change key before writing artifacts; feature work must use `REQ-<number>-<description>`, and bug-fix work must use `FIX-<number>-<description>`.
39
41
  - Do not generate planning/tasks.md, planning/task-manifest.json, or change-meta.json until the recommended design is approved.
@@ -106,9 +108,11 @@ tool_budget:
106
108
 
107
109
  先给出默认 planning 形态,再解释为什么不是另外两种。`cc-plan` 的第一件事不是产出文档,而是压平 planning 密度。
108
110
 
111
+ `tiny-design` 只是短设计,不是免设计。再小的变更也必须在 `planning/design.md` 里写清边界、验证和用户批准状态,不能用“太简单”跳过设计 gate。
112
+
109
113
  ## Harness Contract
110
114
 
111
- - Allowed actions: clarify scope, compare designs, freeze decisions, and write only `planning/design.md`, `planning/tasks.md`, `planning/task-manifest.json`, and `change-meta.json`.
115
+ - Allowed actions: clarify scope, compare designs, split over-broad asks into separate planning candidates, freeze decisions, and write only `planning/design.md`, `planning/tasks.md`, `planning/task-manifest.json`, and `change-meta.json`.
112
116
  - Forbidden actions: writing production code, splitting planning into new side documents, or emitting tasks before approval.
113
117
  - Required evidence: design choices, task boundaries, and verification commands must point back to repo facts or explicit user approval.
114
118
  - Reroute rule: if the problem expands to project strategy go back to `roadmap`; if the plan is already frozen move straight to `cc-do`.
@@ -166,9 +170,10 @@ tool_budget:
166
170
 
167
171
  1. 先确认当前对象是一个 requirement,而不是整个项目路线图。
168
172
  2. 如果来源于 `roadmap`,必须先定位对应的 `RM-ID`,读清 `devflow/ROADMAP.md` / `devflow/BACKLOG.md` 的版本、证据、约束、success signal、next decision、primary capability、expected spec delta。
169
- 3. 先读当前 change 目录现状。旧目录里如果还有 `BRAINSTORM.md` / `PLAN_REVIEW.md` / `context-package.md`,把有效信息吸收进新的 `planning/design.md`,不要继续增殖。
170
- 4. 先看代码、文档、测试和最近提交,再谈拆任务。
171
- 5. 先写不做什么,再写做什么。
173
+ 3. 如果原始需求包含多个可独立交付的子系统,先拆成独立 `RM` `REQ/FIX` 候选;不要在一个 `cc-plan` 里继续追问实现细节。
174
+ 4. 先读当前 change 目录现状。旧目录里如果还有 `BRAINSTORM.md` / `PLAN_REVIEW.md` / `context-package.md`,把有效信息吸收进新的 `planning/design.md`,不要继续增殖。
175
+ 5. 先看代码、文档、测试和最近提交,再谈拆任务。
176
+ 6. 先写不做什么,再写做什么。
172
177
 
173
178
  ## Context Sweep
174
179
 
@@ -180,6 +185,9 @@ tool_budget:
180
185
  4. 当前 change 目录已有的 `planning/design.md`、`planning/tasks.md`、`planning/task-manifest.json`、`change-meta.json` 与历史 planning 文档
181
186
  5. `CLAUDE.md`、README、相关 docs / specs / ADR / 最近提交
182
187
  6. 当前代码、测试、发布、迁移、依赖的现实边界
188
+ 7. 测试框架真相源:优先读 `CLAUDE.md` / project docs 的测试约定,再用配置文件和目录结构补证。
189
+ 8. 如果有 UI scope,读取现有设计系统、组件、页面状态和交互模式。
190
+ 9. 如果是 API / CLI / SDK / developer-facing / operator-facing scope,读取 README、docs、package metadata、安装/运行/调试入口和当前 first-success path。
183
191
 
184
192
  先把这些材料压成 `Source Handoff`,再决定 discovery 还是 planning。
185
193
 
@@ -202,6 +210,9 @@ tool_budget:
202
210
  2. 澄清时一次只问一个关键问题,不做问题轰炸。
203
211
  3. 先写问题、目标、约束、非目标、成功标准,再写方案。
204
212
  4. 如果方向仍不稳,给 2-3 个方案,带 trade-off 和推荐,但这些内容都写进 `planning/design.md`。
213
+ - `full-design` 的方案必须至少包含 `minimal viable` 和 `ideal architecture` 两个角色。
214
+ - 两个角色权重相等;小方案不是默认答案,理想架构也不是默认过度设计。
215
+ - 只有一个方案成立时,必须写清其它方案为何被排除。
205
216
  5. 推荐方案没有得到用户明确批准前,不允许生成 `planning/tasks.md`。
206
217
  6. 批准后先判断这次用 `tiny-design` 还是 `full-design`。
207
218
  7. 把批准后的唯一方案冻结进 `planning/design.md`。
@@ -215,11 +226,19 @@ tool_budget:
215
226
 
216
227
  1. Existing leverage map:每个子问题先映射到现有代码、脚本、spec、模板或测试,避免重复造轮子。
217
228
  2. Scope challenge:超过 8 个文件、2 个新 service/class、或跨模块连锁时,必须解释为什么不是过度设计。
218
- 3. Architecture diagram:跨模块或状态流变更要写 ASCII 数据流 / 依赖图。
219
- 4. Code quality scan:指出 DRY、命名、错误处理、三层以上分支、隐藏耦合风险。
220
- 5. Test diagram:列出新增 code pathuser flow、错误路径、边界状态,并标注 first failing testunit / e2e / eval。
221
- 6. Performance and distribution:涉及批量、I/O、发布物、CLI、包、容器时,必须写清性能和分发边界。
222
- 7. NOT in scope:所有被考虑但 defer 的内容要写理由,不能消失在聊天里。
229
+ 3. Implementation surface map:先锁定每个会新增或修改的文件、职责、归属理由、耦合风险,再拆任务。
230
+ 4. Option role check:非 trivial 方案必须比较 `minimal viable`、`ideal architecture`,必要时加 `hybrid`,并写清为什么推荐方案服务当前目标。
231
+ 5. Implementation decision horizon:提前写出 foundationcore logicintegration、polish/tests 阶段实现者会撞到的决策,能现在冻结就不要留给 `cc-do` 临场猜。
232
+ 6. Architecture diagram:跨模块或状态流变更要写 ASCII 数据流 / 依赖图。
233
+ 7. Error & Rescue map:`full-design` 必须按 codepath 写清 failure、rescue、user sees、test evidence;不适用时写 N/A 理由。
234
+ 8. Code quality scan:指出 DRY、命名、错误处理、三层以上分支、隐藏耦合风险。
235
+ 9. Test diagram:列出新增 code path、user flow、错误路径、边界状态,并标注 first failing test、unit / e2e / eval。
236
+ 10. Test framework source:先记录测试框架来自 `CLAUDE.md` / docs / config / directory 的哪条证据;不能靠猜。
237
+ 11. UI state coverage:有 UI / interaction scope 时,写 loading / empty / error / success / partial 状态表和 design completeness score。
238
+ 12. DX / operator coverage:developer-facing / operator-facing scope 必须写 target persona、time to first value、magic moment、install / run / debug / upgrade 风险。
239
+ 13. Performance and distribution:涉及批量、I/O、发布物、CLI、包、容器时,必须写清性能和分发边界。
240
+ 14. NOT in scope:所有被考虑但 defer 的内容要写理由,不能消失在聊天里。
241
+ 15. Review calibration:只有会导致 `cc-do` 建错、卡住、越界、漏测的问题才是 blocking;措辞偏好和非阻塞建议不能伪装成 gate failure。
223
242
 
224
243
  如果任一项无法从当前证据完成,写 `assumption` 或 `blocked question`,不要伪装成已经审过。
225
244
 
@@ -227,15 +246,21 @@ tool_budget:
227
246
 
228
247
  `cc-plan` 生成具体计划时默认采用测试先行纪律。不能让计划是“先实现再补测”,然后把 TDD 压力留给 `cc-do` 临场修正。
229
248
 
230
- 1. 每个可观察行为变更默认拆成 `Red -> Green -> Refactor`:
249
+ 1. 先定位测试框架真相源:
250
+ - 优先读取 `CLAUDE.md` / project docs 中的 testing 约定。
251
+ - 如果没有,按配置文件和目录结构识别:`vitest` / `jest` / `pytest` / `go test` / `cargo test` / `rspec` / `playwright` / `cypress` 等。
252
+ - 如果仍然没有框架,写成 `test framework unknown`,并把验证计划降级为 exploratory spike 或 manual evidence,不准假装已有自动测试路径。
253
+ 2. 每个可观察行为变更默认拆成 `Red -> Green -> Refactor`:
231
254
  - Red:先写 `[TEST]` 任务,目标是用最小失败测试证明目标行为缺失。
232
255
  - Green:再写 `[IMPL]` 任务,只做让对应红灯转绿的最小生产实现。
233
256
  - Refactor:最后写 `[REFACTOR]` 或在实现任务中明确 refactor checkpoint,说明何时清理重复、命名、结构和坏味道。
234
- 2. `planning/tasks.md` 不能把测试和实现塞进同一个 task。一个 task 同时写“实现并测试”就是计划失败。
235
- 3. `planning/task-manifest.json` 必须让 `cc-do` 看出每个任务的 `tddPhase`、依赖和证据:`red` 任务产出 failing output,`green` 任务产出 passing output,`refactor` 任务产出重跑后的 green evidence。
236
- 4. 只有纯文档、纯配置、纯生成文件、throwaway prototype 可以例外。例外必须写进 `planning/design.md` `planning/tasks.md` `TDD exceptions`,包含原因、风险、替代验证命令和后续补证入口。
237
- 5. 并行只允许发生在已经满足上游 Red/Green 依赖之后。两个 `[P]` 任务如果共享同一个红灯或同一组 touched files,就不能并行。
238
- 6. 如果当前需求找不到第一条失败测试,先把它写成 blocked question exploratory spike,不准伪装成可执行实现任务。
257
+ 3. `planning/tasks.md` 不能把测试和实现塞进同一个 task。一个 task 同时写“实现并测试”就是计划失败。
258
+ 4. `planning/task-manifest.json` 必须让 `cc-do` 看出每个任务的 `tddPhase`、依赖和证据:`red` 任务产出 failing output,`green` 任务产出 passing output,`refactor` 任务产出重跑后的 green evidence。
259
+ 5. Test diagram 要同时覆盖 code paths 和 user flows。每条路径标注 `unit` / `integration` / `e2e` / `eval`,并给现有测试质量分级:`strong`、`happy-path-only`、`smoke-only`、`missing`。
260
+ 6. 回归测试是硬门槛。只要计划修改既有行为且现有测试没有覆盖,就必须把 regression test 写进 `planning/tasks.md`,不能 defer,不能问用户要不要跳过。
261
+ 7. 只有纯文档、纯配置、纯生成文件、throwaway prototype 可以例外。例外必须写进 `planning/design.md` `planning/tasks.md` 的 `TDD exceptions`,包含原因、风险、替代验证命令和后续补证入口。
262
+ 8. 并行只允许发生在已经满足上游 Red/Green 依赖之后。两个 `[P]` 任务如果共享同一个红灯或同一组 touched files,就不能并行。
263
+ 9. 如果当前需求找不到第一条失败测试,先把它写成 blocked question 或 exploratory spike,不准伪装成可执行实现任务。
239
264
 
240
265
  ## Design Modes
241
266
 
@@ -251,6 +276,8 @@ tool_budget:
251
276
  3. 不涉及 migration、复杂状态流、权限、安全、回滚编排
252
277
  4. 执行者看完一张冻结卡片就能准确落地
253
278
 
279
+ `tiny-design` 仍然必须有用户批准、implementation surface、第一条验证证据和升级到 `full-design` 的触发条件。它消除的是冗长文档,不是消除设计。
280
+
254
281
  出现以下任一情况,直接升级到 `full-design`:
255
282
 
256
283
  1. 需要跨模块协调或多阶段落地
@@ -268,11 +295,15 @@ tool_budget:
268
295
  4. Ambiguity scan:实现者看完不能还靠猜
269
296
  5. Feasibility scan:方案要接得上现有代码、依赖和时间边界
270
297
  6. Source alignment:仍然对齐上游 roadmap 的 success signal、constraints、non-goals
271
- 7. Engineering scan:完成 existing leverage、scope challenge、test diagram、failure modes、NOT in scope
272
- 8. Final gate:明确 auto-decided items、taste decisions、user challenges 和最终 recommendation
298
+ 7. Engineering scan:完成 existing leverage、scope challenge、implementation surface、test diagram、failure modes、NOT in scope
299
+ 8. Decision horizon scan:foundation / core / integration / polish/tests 的实现决策是否已经冻结或明确 blocked。
300
+ 9. Error & rescue scan:`full-design` 是否写清 failure -> rescue -> user sees -> test evidence。
301
+ 10. Test framework / regression scan:测试框架来源、覆盖质量、回归测试是否明确。
302
+ 11. Review calibration:只把会导致实现错误、执行卡住、范围越界、验证缺失的问题标成 blocking;非阻塞建议必须降级为 advisory
303
+ 12. Final gate:明确 auto-decided items、taste decisions、user challenges 和最终 recommendation
273
304
 
274
- 如果有 UI / interaction 明显范围,在 `planning/design.md` 里补一段 design review 结论。
275
- 如果有 API / CLI / developer-facing scope,在 `planning/design.md` 里补一段 DX review 结论。
305
+ 如果有 UI / interaction 明显范围,在 `planning/design.md` 里补 design completeness score 和状态覆盖表。
306
+ 如果有 API / CLI / developer-facing / operator-facing scope,在 `planning/design.md` 里补 target persona、time to first value、magic moment 和 DX / operator review 结论。
276
307
 
277
308
  ## Good Output
278
309
 
@@ -305,6 +336,7 @@ tool_budget:
305
336
  7. 具体计划默认测试先行;没有 Red/Green/Refactor 或 TDD exception,就不能进入 `cc-do`。
306
337
  8. 任务一旦超过 2-5 分钟粒度就继续拆,直到可以稳定交给执行者。
307
338
  9. 三层以上判断说明设计还没压平,应回到 `planning/design.md` 继续简化。
339
+ 10. `tiny-design` 不得被当成“免审批”;只要要写任务,就必须先有已批准的设计卡片。
308
340
 
309
341
  ## Exit Criteria
310
342
 
@@ -61,20 +61,29 @@
61
61
 
62
62
  ### Option A
63
63
 
64
+ - Role: `minimal viable` | `ideal architecture` | `hybrid`
64
65
  - Shape:
65
66
  - Reuses:
67
+ - Completeness:
66
68
  - Pros:
67
69
  - Cons:
68
70
  - Risks:
69
71
 
70
72
  ### Option B
71
73
 
74
+ - Role: `minimal viable` | `ideal architecture` | `hybrid`
72
75
  - Shape:
73
76
  - Reuses:
77
+ - Completeness:
74
78
  - Pros:
75
79
  - Cons:
76
80
  - Risks:
77
81
 
82
+ ### Eliminated Options
83
+
84
+ - Option:
85
+ - Why eliminated:
86
+
78
87
  ## Approved Direction
79
88
 
80
89
  - Approved option:
@@ -92,6 +101,15 @@
92
101
  - Error handling:
93
102
  - Rollout / migration:
94
103
 
104
+ ## Implementation Decision Horizon
105
+
106
+ | Phase | Decision `cc-do` would otherwise hit | Frozen answer | Evidence / owner |
107
+ |-------|--------------------------------------|---------------|------------------|
108
+ | Foundation | | | |
109
+ | Core logic | | | |
110
+ | Integration | | | |
111
+ | Polish / tests | | | |
112
+
95
113
  ## Invariant Impact
96
114
 
97
115
  - Affected invariants:
@@ -112,16 +130,62 @@
112
130
 
113
131
  > 如果文件计划超过 5-8 个文件,先问自己:这是不是已经逼近 `full-design` 之外的需求膨胀。
114
132
 
133
+ ## Implementation Surface Map
134
+
135
+ | Surface | Responsibility | Why here | Coupling risk | Split / merge decision |
136
+ |---------|----------------|----------|---------------|------------------------|
137
+ | | | | | |
138
+
139
+ > 先锁定文件职责,再拆任务。执行者不应该在 `cc-do` 阶段重新决定代码该放哪里。
140
+
115
141
  ## Validation Strategy
116
142
 
143
+ - Test framework source:
117
144
  - First failing tests:
118
145
  - Red/Green/Refactor task chain:
119
146
  - TDD exceptions:
147
+ - Regression tests required:
120
148
  - Unit:
121
149
  - Integration:
150
+ - E2E:
151
+ - Eval:
122
152
  - Manual:
123
153
  - Observability / evidence:
124
154
 
155
+ ## Test Coverage Map
156
+
157
+ | Code path / user flow | Existing coverage | Quality | Required test | Level | Regression? |
158
+ |-----------------------|-------------------|---------|---------------|-------|-------------|
159
+ | | | strong / happy-path-only / smoke-only / missing | | unit / integration / e2e / eval | Yes / No |
160
+
161
+ ## Error & Rescue Map
162
+
163
+ | Codepath | What can fail | Rescue action | User sees | Test evidence |
164
+ |----------|---------------|---------------|-----------|---------------|
165
+ | | | | | |
166
+
167
+ ## UI Design Gate
168
+
169
+ - Applies: Yes / No
170
+ - Design completeness score:
171
+ - What 10/10 means here:
172
+ - Existing design patterns to reuse:
173
+ - State coverage:
174
+
175
+ | Feature | Loading | Empty | Error | Success | Partial |
176
+ |---------|---------|-------|-------|---------|---------|
177
+ | | | | | | |
178
+
179
+ ## DX / Operator Gate
180
+
181
+ - Applies: Yes / No
182
+ - Target developer / operator:
183
+ - Current first-success path:
184
+ - Target time to first value:
185
+ - Magic moment:
186
+ - Install / run / debug / upgrade risks:
187
+ - Required docs / examples / entrypoints:
188
+
125
189
  ## Risks
126
190
 
127
191
  | Risk | Impact | Mitigation |
@@ -136,9 +200,14 @@
136
200
  - Ambiguity scan:
137
201
  - Feasibility scan:
138
202
  - Source alignment:
203
+ - Implementation surface scan:
204
+ - Decision horizon scan:
205
+ - Error & rescue scan:
206
+ - Test framework / regression scan:
139
207
  - UI / interaction review summary:
140
- - DX review summary:
208
+ - DX / operator review summary:
141
209
  - Test-first readiness:
210
+ - Review calibration:
142
211
  - Auto-decided items:
143
212
  - Taste decisions:
144
213
  - User challenges:
@@ -19,13 +19,23 @@
19
19
  - Capability specs:
20
20
  - Read first:
21
21
  - Commands to trust:
22
+ - Test framework source:
22
23
  - TDD plan: `Red -> Green -> Refactor`
23
24
  - TDD exceptions: none | list exception reason, risk, replacement evidence, follow-up
25
+ - Regression tests: required | not applicable, with reason
24
26
  - Do not re-decide:
25
27
  - Parallel boundaries:
26
28
 
27
29
  > 顶部 handoff 只保留执行者必须知道的现实,不重复讲背景故事。
28
30
 
31
+ ## Implementation Surface Map
32
+
33
+ | Surface | Responsibility | Tasks | Coupling risk |
34
+ |---------|----------------|-------|---------------|
35
+ | | | | |
36
+
37
+ > 这张表是执行边界,不是装饰。任务拆分必须沿着这些职责走,不能让 `cc-do` 临场重切文件归属。
38
+
29
39
  ## Phase 1: Foundation
30
40
 
31
41
  - [ ] T001 [TEST] Write the first failing test (dependsOn:none) `path/to/test`
@@ -35,6 +45,7 @@
35
45
  Read first: `design.md`, `tasks.md`
36
46
  Verification: `npm test -- path/to/test`
37
47
  Evidence: failing output
48
+ Coverage: unit / integration / e2e / eval; regression: yes / no
38
49
  Ready when: 没有上游依赖,且测试路径已经确定
39
50
 
40
51
  - [ ] T002 [IMPL] Make the first test pass (dependsOn:T001) `path/to/file`
@@ -55,6 +66,7 @@
55
66
  Read first: `design.md`, `tasks.md`
56
67
  Verification: `npm test -- path/to/other.test`
57
68
  Evidence: failing output
69
+ Coverage: unit / integration / e2e / eval; regression: yes / no
58
70
  Ready when: T002 完成,且该测试覆盖的是独立行为
59
71
 
60
72
  - [ ] T004 [P] [IMPL] Make the independent test pass (dependsOn:T003) `path/to/other-file`
@@ -97,3 +109,4 @@
97
109
  - 用哪条命令证明它完成
98
110
  - 要留下什么证据给 `cc-check`
99
111
  - 它处于 Red、Green、Refactor,还是明确的 TDD exception
112
+ - 测试框架依据来自哪里,回归测试是否被明确处理
@@ -20,7 +20,7 @@
20
20
  ]
21
21
  },
22
22
  "planningMeta": {
23
- "reqPlanSkillVersion": "3.5.2",
23
+ "reqPlanSkillVersion": "3.5.6",
24
24
  "designVersion": "design.v1",
25
25
  "approvedAt": "2026-04-15T12:00:00.000Z",
26
26
  "approvedBy": "user",
@@ -29,6 +29,8 @@
29
29
  "executionDiscipline": {
30
30
  "default": "red-green-refactor",
31
31
  "testFirstRequired": true,
32
+ "testFrameworkSource": "",
33
+ "regressionTestsRequired": [],
32
34
  "tddExceptions": []
33
35
  },
34
36
  "status": "planned",
@@ -43,16 +43,35 @@
43
43
  - Key decisions that `cc-do` must not re-decide:
44
44
  - Upgrade trigger to `full-design`:
45
45
 
46
+ > `tiny-design` 是短设计,不是免设计。没有明确批准状态、验证证据和升级触发条件,就不能继续拆任务。
47
+
48
+ ## Implementation Surface Map
49
+
50
+ | Surface | Responsibility | Why here | Coupling risk |
51
+ |---------|----------------|----------|---------------|
52
+ | | | | |
53
+
46
54
  ## Validation
47
55
 
56
+ - Test framework source:
48
57
  - First failing test:
49
58
  - Green implementation check:
50
59
  - Refactor checkpoint:
51
60
  - TDD exceptions:
61
+ - Regression test required:
52
62
  - Primary check:
53
63
  - Secondary checks:
54
64
  - Evidence to collect:
55
65
 
66
+ ## Conditional Design Checks
67
+
68
+ - UI / interaction scope: Yes / No
69
+ - UI state coverage if applicable:
70
+ - Developer / operator-facing scope: Yes / No
71
+ - Target developer / operator if applicable:
72
+ - Time to first value if applicable:
73
+ - Magic moment if applicable:
74
+
56
75
  ## Main Risk
57
76
 
58
77
  - Risk:
@@ -65,7 +84,10 @@
65
84
  - Scope scan:
66
85
  - Ambiguity scan:
67
86
  - Feasibility scan:
87
+ - Implementation surface scan:
88
+ - Test framework / regression scan:
68
89
  - Test-first readiness:
90
+ - Review calibration:
69
91
  - Final recommendation:
70
92
 
71
93
  ## Approval
@@ -1,5 +1,17 @@
1
1
  # Roadmap Skill Changelog
2
2
 
3
+ ## v4.3.4 - 2026-04-28
4
+
5
+ - add planning posture and evidence maturity routing so roadmap questions match idea, user, paying, infra, or recovery contexts
6
+ - require a framing check before route recommendation so vague users, hypothetical demand, and undefined status quo do not pass as evidence
7
+ - add developer/operator adoption handoff fields for target user, time to first value, magic moment, and install/run/debug/upgrade bottlenecks
8
+
9
+ ## v4.3.3 - 2026-04-28
10
+
11
+ - add a decomposition-first route for asks that bundle multiple independently shippable subsystems
12
+ - require roadmap entry and approval gates to split over-broad goals into stages and RM candidates before implementation detail discovery
13
+ - add subsystem decomposition and handoff notes to roadmap/backlog templates
14
+
3
15
  ## v4.3.2 - 2026-04-27
4
16
 
5
17
  - require roadmap outputs to resolve the runtime output policy before writing durable roadmap/backlog documents
@@ -16,6 +16,9 @@
16
16
  4. 通过 `roadmap` 只能产出方向,不能偷拆实现任务。
17
17
  5. 没有证据时写 assumption,不准冒充事实。
18
18
  6. 每次都必须明确推荐一条路线,不准只列选项不下判断。
19
+ 7. 多个独立子系统混在一个目标里时,先拆阶段和 `RM` 候选,不要继续追问实现细节。
20
+ 8. 先判断 planning posture 和 evidence maturity,再决定追问哪些问题;不要用同一套问题硬套 idea、已有用户、付费客户、infra 和 recovery 场景。
21
+ 9. developer-facing / operator-facing 路线必须写清 target user、time to first value、magic moment 和 adoption bottleneck。
19
22
 
20
23
  ## Local Kit
21
24
 
@@ -37,6 +40,9 @@
37
40
  3. 最近相关 docs / specs / plans
38
41
  4. 最近相关提交、当前工作树状态、正在推进的 requirement
39
42
  5. 现实 forcing functions:deadline、distribution、资源、依赖、当前卡点
43
+ 6. planning posture:startup / internal / hackathon / OSS / research / learning / side-project / infrastructure
44
+ 7. evidence maturity:idea / has users / paying users / internal sponsor / infra-only / recovery
45
+ 8. developer / operator adoption 线索:目标人、first success path、TTHW / time to first value、debug / upgrade 卡点
40
46
 
41
47
  先把这些材料压成 `Context Snapshot`,再追问用户。
42
48
 
@@ -57,11 +63,22 @@
57
63
  8. 当前最大的 adoption / trust / delivery 卡点是什么
58
64
  9. 成功与失败的判断信号是什么
59
65
 
66
+ 第一轮答案之后做 framing check:术语是否具体、用户是否可命名、pain 是否来自真实行为、status quo 是否明确、需求证据是否强过“感兴趣”。如果答案虚,先收紧问题,不要急着定路线。
67
+
68
+ ## Evidence-Maturity Routing
69
+
70
+ - `idea / pre-product`: 先追真实用户、现状替代方案、最窄 wedge、需求证据。
71
+ - `has users`: 先追现有路径、失败/绕路场景、使用保留信号、下一阶段 wedge。
72
+ - `paying users / internal sponsor`: 先追付费/赞助动机、扩张边界、信任信号、组织风险。
73
+ - `infra-only`: 先追调用方、瓶颈、复用边界、迁移/回滚约束。
74
+ - `recovery / trust gap`: 先追事故证据、恢复路径、最小可信修复、停止扩张的 kill signal。
75
+
60
76
  ## Route Shapes
61
77
 
62
78
  - `wedge-first`: 用一个极窄切口先打穿真实需求
63
79
  - `platform-first`: 先搭通后续阶段复用的关键底座
64
80
  - `rescue-first`: 先解决当前最大的 adoption / trust / delivery 卡点
81
+ - `decompose-first`: 先把多个可独立交付的子系统拆成阶段和 `RM`,再选择主线
65
82
 
66
83
  推荐时必须回答:为什么这条主线比其他两条更值得先打。
67
84
 
@@ -73,6 +90,7 @@
73
90
  2. 有没有明确说“不先做另外两条”的原因?
74
91
  3. Stage 1 的 win signal 能不能在 1-2 个周期内看到?
75
92
  4. 如果 Stage 1 输了,kill signal 是不是具体到可以止损?
93
+ 5. 当前问题路由是否匹配 evidence maturity,而不是为了完整感把所有问题都问一遍?
76
94
 
77
95
  ## Stage Contract
78
96
 
@@ -84,7 +102,8 @@
84
102
  4. `Exit signal`
85
103
  5. `Kill signal`
86
104
  6. `Non-goals`
87
- 7. 可以自然长成下一轮 `cc-plan` 的候选事项
105
+ 7. 子系统 / `RM` 边界,说明哪些合并、哪些拆开
106
+ 8. 可以自然长成下一轮 `cc-plan` 的候选事项
88
107
 
89
108
  ## Dependency Contract
90
109
 
@@ -98,6 +117,7 @@
98
117
  `devflow/ROADMAP.md`
99
118
  - version / skill version / context snapshot / evidence ledger
100
119
  - 1-3 个阶段
120
+ - 独立子系统拆分判断
101
121
  - 每阶段目标
102
122
  - 每阶段存在原因
103
123
  - 每阶段 dependencies
@@ -111,6 +131,7 @@
111
131
  `devflow/BACKLOG.md`
112
132
  - 只保留会真的进入下一轮 `cc-plan` 的事项
113
133
  - 每项注明来源阶段、优先级、证据、`Depends On`、`Parallel With`、当前未知点、下一决策、是否 ready
134
+ - developer-facing / operator-facing 条目要带 target user、time to first value、magic moment 和 adoption bottleneck,方便 `cc-plan` 继续做 DX 设计
114
135
  - `Backlog Meta`、`Queue`、`Dependency Handoff`、`Ready For Req-Plan`、`Parked` 可由 `devflow/roadmap-tracking.json` 回渲染,避免 roadmap truth 和 backlog handoff 分叉
115
136
 
116
137
  ## Review Loop
@@ -123,6 +144,8 @@
123
144
  4. `RM Dependency Graph` 是否只有硬依赖、没有环
124
145
  5. ready 项是否真能进入 `cc-plan`
125
146
  6. 本次版本相比上一版到底改了什么
147
+ 7. 问题路由是否匹配 planning posture / evidence maturity
148
+ 8. developer-facing / operator-facing item 是否能说明 first value 为什么会发生
126
149
 
127
150
  ## Versioning
128
151