cc-devflow 4.5.7 → 4.5.9

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 (105) hide show
  1. package/.claude/skills/cc-act/CHANGELOG.md +33 -0
  2. package/.claude/skills/cc-act/PLAYBOOK.md +18 -4
  3. package/.claude/skills/cc-act/SKILL.md +76 -7
  4. package/.claude/skills/cc-act/assets/PROJECT_POSTMORTEM_INDEX_TEMPLATE.md +30 -0
  5. package/.claude/skills/cc-act/assets/PROJECT_POSTMORTEM_PRINCIPLES_TEMPLATE.md +29 -0
  6. package/.claude/skills/cc-act/assets/PROJECT_POSTMORTEM_TEMPLATE.md +103 -0
  7. package/.claude/skills/cc-act/assets/PR_BRIEF_TEMPLATE.md +60 -4
  8. package/.claude/skills/cc-act/references/closure-contract.md +7 -0
  9. package/.claude/skills/cc-act/references/git-commit-guidelines.md +342 -37
  10. package/.claude/skills/cc-act/scripts/cc-act-common.sh +29 -1
  11. package/.claude/skills/cc-act/scripts/detect-ship-target.sh +27 -0
  12. package/.claude/skills/cc-act/scripts/ensure-ship-branch.sh +93 -0
  13. package/.claude/skills/cc-act/scripts/generate-status-report.sh +6 -0
  14. package/.claude/skills/cc-act/scripts/render-pr-brief.sh +170 -0
  15. package/.claude/skills/cc-act/scripts/sync-act-docs.sh +15 -1
  16. package/.claude/skills/cc-dev/CHANGELOG.md +5 -0
  17. package/.claude/skills/cc-dev/PLAYBOOK.md +63 -0
  18. package/.claude/skills/cc-dev/SKILL.md +168 -0
  19. package/.claude/skills/cc-do/CHANGELOG.md +17 -0
  20. package/.claude/skills/cc-do/SKILL.md +41 -13
  21. package/.claude/skills/cc-do/scripts/build-task-context.sh +9 -5
  22. package/.claude/skills/cc-do/scripts/mark-task-complete.sh +0 -6
  23. package/.claude/skills/cc-investigate/CHANGELOG.md +17 -0
  24. package/.claude/skills/cc-investigate/PLAYBOOK.md +15 -0
  25. package/.claude/skills/cc-investigate/SKILL.md +46 -1
  26. package/.claude/skills/cc-investigate/assets/ANALYSIS_TEMPLATE.md +47 -0
  27. package/.claude/skills/cc-investigate/assets/TASKS_TEMPLATE.md +21 -2
  28. package/.claude/skills/cc-investigate/assets/TASK_MANIFEST_TEMPLATE.json +28 -58
  29. package/.claude/skills/cc-investigate/references/investigation-contract.md +14 -0
  30. package/.claude/skills/cc-next/CHANGELOG.md +11 -0
  31. package/.claude/skills/cc-next/PLAYBOOK.md +74 -0
  32. package/.claude/skills/cc-next/SKILL.md +196 -0
  33. package/.claude/skills/cc-plan/CHANGELOG.md +25 -0
  34. package/.claude/skills/cc-plan/PLAYBOOK.md +25 -20
  35. package/.claude/skills/cc-plan/SKILL.md +116 -13
  36. package/.claude/skills/cc-plan/assets/DESIGN_TEMPLATE.md +67 -0
  37. package/.claude/skills/cc-plan/assets/TASKS_TEMPLATE.md +85 -0
  38. package/.claude/skills/cc-plan/assets/TASK_MANIFEST_TEMPLATE.json +57 -182
  39. package/.claude/skills/cc-plan/assets/TINY_DESIGN_TEMPLATE.md +46 -0
  40. package/.claude/skills/cc-plan/references/planning-contract.md +51 -26
  41. package/.claude/skills/cc-pr-land/CHANGELOG.md +5 -0
  42. package/.claude/skills/cc-pr-land/PLAYBOOK.md +45 -0
  43. package/.claude/skills/cc-pr-land/SKILL.md +157 -0
  44. package/.claude/skills/cc-pr-review/CHANGELOG.md +5 -0
  45. package/.claude/skills/cc-pr-review/PLAYBOOK.md +46 -0
  46. package/.claude/skills/cc-pr-review/SKILL.md +142 -0
  47. package/.claude/skills/cc-review/CHANGELOG.md +21 -0
  48. package/.claude/skills/cc-review/PLAYBOOK.md +64 -10
  49. package/.claude/skills/cc-review/SKILL.md +185 -18
  50. package/.claude/skills/cc-review/references/e2e-and-plugin-verification.md +4 -0
  51. package/.claude/skills/cc-review/references/implementation-review-branch.md +37 -0
  52. package/.claude/skills/cc-review/references/plan-review-branch.md +36 -1
  53. package/.claude/skills/cc-review/references/review-methods.md +98 -3
  54. package/.claude/skills/cc-review/scripts/collect-review-context.sh +80 -0
  55. package/.claude/skills/cc-roadmap/CHANGELOG.md +6 -0
  56. package/.claude/skills/cc-roadmap/PLAYBOOK.md +30 -0
  57. package/.claude/skills/cc-roadmap/SKILL.md +45 -8
  58. package/.claude/skills/cc-roadmap/assets/BACKLOG_TEMPLATE.md +8 -0
  59. package/.claude/skills/cc-roadmap/assets/ROADMAP_TEMPLATE.md +22 -0
  60. package/.claude/skills/cc-roadmap/assets/TRACKING_TEMPLATE.json +32 -1
  61. package/.claude/skills/cc-roadmap/references/roadmap-dialogue.md +14 -14
  62. package/.claude/skills/cc-simplify/CHANGELOG.md +6 -0
  63. package/.claude/skills/cc-simplify/SKILL.md +19 -8
  64. package/CHANGELOG.md +20 -1
  65. package/README.md +60 -9
  66. package/README.zh-CN.md +60 -9
  67. package/config/distributable-skills.json +8 -0
  68. package/docs/assets/cc-devflow-pr-harness-en.svg +153 -0
  69. package/docs/assets/cc-devflow-pr-harness-zh.svg +152 -0
  70. package/docs/assets/wechat-group-qr.jpg +0 -0
  71. package/docs/examples/example-bindings.json +11 -7
  72. package/docs/examples/full-design-blocked/BACKLOG.md +1 -1
  73. package/docs/examples/full-design-blocked/README.md +1 -1
  74. package/docs/examples/full-design-blocked/ROADMAP.md +1 -1
  75. package/docs/examples/full-design-blocked/changes/REQ-002-bulk-invite-import/planning/design.md +1 -1
  76. package/docs/examples/full-design-blocked/changes/REQ-002-bulk-invite-import/planning/task-manifest.json +102 -82
  77. package/docs/examples/full-design-blocked/changes/REQ-002-bulk-invite-import/planning/tasks.md +45 -1
  78. package/docs/examples/full-design-blocked/roadmap.json +1 -1
  79. package/docs/examples/local-handoff/BACKLOG.md +1 -1
  80. package/docs/examples/local-handoff/README.md +1 -1
  81. package/docs/examples/local-handoff/ROADMAP.md +1 -1
  82. package/docs/examples/local-handoff/changes/REQ-003-audit-log-export/planning/design.md +1 -1
  83. package/docs/examples/local-handoff/changes/REQ-003-audit-log-export/planning/task-manifest.json +70 -61
  84. package/docs/examples/local-handoff/changes/REQ-003-audit-log-export/planning/tasks.md +35 -1
  85. package/docs/examples/local-handoff/roadmap.json +1 -1
  86. package/docs/examples/pdca-loop/BACKLOG.md +1 -1
  87. package/docs/examples/pdca-loop/README.md +1 -1
  88. package/docs/examples/pdca-loop/ROADMAP.md +1 -1
  89. package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/handoff/pr-brief.md +64 -0
  90. package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/planning/design.md +1 -1
  91. package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/planning/task-manifest.json +71 -81
  92. package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/planning/tasks.md +35 -1
  93. package/docs/examples/pdca-loop/roadmap.json +1 -1
  94. package/docs/examples/scripts/check-example-bindings.sh +24 -2
  95. package/docs/get-shit-done-strategy-audit.md +4 -4
  96. package/docs/guides/artifact-contract.md +44 -0
  97. package/docs/guides/getting-started.md +1 -1
  98. package/docs/guides/getting-started.zh-CN.md +1 -1
  99. package/docs/guides/project-postmortem.md +78 -0
  100. package/lib/skill-runtime/__tests__/planner.tdd.test.js +2 -2
  101. package/lib/skill-runtime/__tests__/schemas.test.js +33 -2
  102. package/lib/skill-runtime/planner.js +1 -2
  103. package/lib/skill-runtime/query.js +1 -1
  104. package/lib/skill-runtime/schemas.js +5 -3
  105. package/package.json +6 -1
@@ -1,5 +1,11 @@
1
1
  # Roadmap Skill Changelog
2
2
 
3
+ ## v5.3.0 - 2026-05-11
4
+
5
+ - add the Roadmap Funnel Protocol with fixed F0-F9 rounds for direction mode, demand reality, status quo, specific human/sponsor, wedge/lake boundary, observation signal, future fit, premise challenge, alternatives, and route approval
6
+ - persist the funnel transcript in `devflow/roadmap.json` and render it into `devflow/ROADMAP.md` so route decisions survive beyond chat
7
+ - upgrade backlog handoff fields so ready RM items carry source funnel rounds, frozen decisions, do-not-re-decide constraints, and remaining blocking questions for downstream `cc-plan`
8
+
3
9
  ## v5.2.0 - 2026-05-09
4
10
 
5
11
  - add project-direction routing and brand-neutral founder guardrails
@@ -20,6 +20,8 @@
20
20
  8. 先判断 planning posture 和 evidence maturity,再决定追问哪些问题;不要用同一套问题硬套 idea、已有用户、付费客户、infra 和 recovery 场景。
21
21
  9. developer-facing / operator-facing 路线必须写清 target user、time to first value、magic moment 和 adoption bottleneck。
22
22
  10. 先对齐 `devflow/specs/`、roadmap/backlog 和历史 design decision,再命名 stage、capability、RM 和 backlog;术语或决策冲突必须成为显式路线风险。
23
+ 11. Roadmap Funnel Protocol 必须固定推进:方向、真实需求、现状、具体人、wedge/lake、观察信号、future fit、premise challenge、alternatives、route approval。
24
+ 12. 每轮要么由证据回答,要么问用户一个 `D<N>` 决策题,要么写明 skipped reason;不能让关键轮次停在聊天记忆里。
23
25
 
24
26
  ## Local Kit
25
27
 
@@ -48,6 +50,31 @@
48
50
 
49
51
  先把这些材料压成 `Context Snapshot`,再追问用户。
50
52
 
53
+ ## Roadmap Funnel Protocol
54
+
55
+ 固定轮次:
56
+
57
+ 1. `F0 Direction Mode`
58
+ 2. `F1 Demand / Operator Reality`
59
+ 3. `F2 Status Quo`
60
+ 4. `F3 Specific Human / Sponsor`
61
+ 5. `F4 Narrowest Wedge / Lake Boundary`
62
+ 6. `F5 Observation / Feedback Signal`
63
+ 7. `F6 Future Fit`
64
+ 8. `F7 Premise Challenge`
65
+ 9. `F8 Alternatives`
66
+ 10. `F9 Route Approval`
67
+
68
+ 执行规则:
69
+
70
+ 1. 一次只推进一轮;需要用户时只问一个 `D<N> - <decision title>`。
71
+ 2. 每个问题必须有推荐答案、证据来源、选项影响和 STOP。
72
+ 3. 用户回答后先更新 `roadmapFunnel.rounds[]`,再继续下一轮。
73
+ 4. 用户要求跳过时,最多再问 2 个最关键剩余问题,然后必须仍然跑 `F7` 和 `F8`。
74
+ 5. `F7` 把隐含前提写成可同意 / 反对的句子;反对时回到受影响轮次重算。
75
+ 6. `F8` 至少给最小路径和理想架构路径;非平凡项目给第三条 lateral / decomposition 路径。
76
+ 7. `F9` 才能冻结 route、stage、ready RM 和 `cc-plan` handoff。
77
+
51
78
  ## Force Reality First
52
79
 
53
80
  至少逼清这 5 件事:
@@ -119,10 +146,12 @@
119
146
  `devflow/roadmap.json`
120
147
  - single editable roadmap state
121
148
  - output policy, meta, context, evidence, route, stages, items, handoff, and architecture
149
+ - `context.roadmapFunnel.rounds[]` stores every fixed round, answer source, evidence, skipped reason, and decision impact
122
150
  - flat `architecture.nodes` / `architecture.edges` used to generate Mermaid
123
151
 
124
152
  `devflow/ROADMAP.md`
125
153
  - version / skill version / context snapshot / evidence ledger
154
+ - Roadmap Funnel Transcript with F0-F9 answers and skipped reasons
126
155
  - 1-3 个阶段
127
156
  - 独立子系统拆分判断
128
157
  - 每阶段目标
@@ -139,6 +168,7 @@
139
168
  - deprecated compatibility projection; edit `devflow/roadmap.json` instead
140
169
  - 只保留会真的进入下一轮 `cc-plan` 的事项
141
170
  - 每项注明来源阶段、优先级、证据、`Depends On`、`Parallel With`、当前未知点、下一决策、是否 ready
171
+ - ready 项必须带 `Source funnel rounds`、`Frozen decisions`、`Do not re-decide` 和 `Remaining blocking question`
142
172
  - developer-facing / operator-facing 条目要带 target user、time to first value、magic moment 和 adoption bottleneck,方便 `cc-plan` 继续做 DX 设计
143
173
  - `Backlog Meta`、`Queue`、`Dependency Handoff`、`Ready For Req-Plan`、`Parked` 由 `devflow/roadmap.json` 回渲染,避免 roadmap truth 和 backlog handoff 分叉
144
174
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cc-roadmap
3
- version: 5.2.0
3
+ version: 5.3.0
4
4
  description: "Use when defining, resetting, or narrowing project direction, stage order, or backlog priority before a concrete requirement enters the PDCA loop."
5
5
  triggers:
6
6
  - "帮我定路线图"
@@ -42,6 +42,7 @@ entry_gate:
42
42
  - "If the ask contains multiple independent subsystems, decompose them into stages and RM candidates before refining any implementation detail."
43
43
  - "Do not decompose implementation tasks while the roadmap is still being decided."
44
44
  - "Apply the AI Leverage Route Lens before route approval: name the reachable user/operator, current workaround, human-vs-agent effort, complete-lake boundary, ocean boundary, first success signal, and kill signal."
45
+ - "Run the Roadmap Funnel Protocol as fixed one-question rounds; every round must either be answered from repo evidence, asked to the user, or explicitly skipped with reason."
45
46
  - "If AI makes a complete same-blast-radius route cheap and verifiable, prefer boil-lake over a timid MVP slice."
46
47
  - "If the route cannot name a real user/operator and current workaround, mark it as needs-evidence instead of producing implementation-ready RM handoff."
47
48
  exit_criteria:
@@ -50,6 +51,7 @@ exit_criteria:
50
51
  - "The roadmap shows an explicit RM dependency graph so serial blockers and parallel-ready work are obvious."
51
52
  - "The user-approved recommendation is explicit and grounded in current evidence."
52
53
  - "Each Stage 1 or ready-for-cc-plan item records an AI Leverage Route Lens verdict: boil-lake, sharp-wedge, needs-evidence, or pivot."
54
+ - "The Roadmap Funnel Transcript is persisted in `devflow/roadmap.json`, rendered into `devflow/ROADMAP.md`, and each ready RM carries the source funnel rounds, frozen decisions, and remaining blocking question."
53
55
  reroutes:
54
56
  - when: "The user is already discussing one concrete requirement, bug, or execution task."
55
57
  target: "cc-plan"
@@ -240,6 +242,39 @@ Verdict 只允许四种:
240
242
  5. 每条路线都要用一个具体 scenario 压测:谁在什么约束下,今天如何绕路,Stage 1 完成后哪一步不再发生。
241
243
  6. 硬决策才沉淀:只有 hard to reverse、surprising without context、real trade-off 三者同时成立,才进入 capability spec delta、roadmap decision note 或本次 design decision log。
242
244
 
245
+ ## Roadmap Funnel Protocol
246
+
247
+ 路线图必须像 office-hours 一样固定推进多轮,但输出必须是 source-neutral 的 `cc-roadmap` 产物,不暴露外部来源。
248
+
249
+ 每轮只允许处理一个 route-changing unknown。能从仓库证据回答就写 `answered-by-evidence`;不能回答才问用户;用户催促跳过时最多保留 2 个最关键问题,然后进入 premise challenge 和 alternatives。每个问题都必须给推荐答案、证据、反对时会改变的路线,并在回答后更新 `Roadmap Funnel Transcript`。
250
+
251
+ 固定轮次:
252
+
253
+ 1. `F0 Direction Mode`:确认项目目标模式,说明为什么不是其它模式。
254
+ 2. `F1 Demand / Operator Reality`:确认真实用户或操作者,以及他们今天是否真的痛。
255
+ 3. `F2 Status Quo`:确认现状 workaround、成本、失败方式;没有 workaround 默认 `needs-evidence`。
256
+ 4. `F3 Specific Human / Sponsor`:把类别词压成可命名角色、具体约束、职业/组织后果。
257
+ 5. `F4 Narrowest Wedge / Lake Boundary`:比较最窄 wedge、完整 same-blast-radius lake、ocean boundary。
258
+ 6. `F5 Observation / Feedback Signal`:确认看过真实使用、失败日志、运营证据或可复现实验;没有观察就写 Stage 1 observation task。
259
+ 7. `F6 Future Fit`:确认 6-12 个月后为什么更需要这条路,而不是只靠今天的热词。
260
+ 8. `F7 Premise Challenge`:把本轮隐含前提写成 2-4 条,逐条确认或修正。
261
+ 9. `F8 Alternatives`:至少给 2 条路线,非平凡项目给 3 条;必须包含最小路径与理想架构路径。
262
+ 10. `F9 Route Approval`:冻结推荐路线、拒绝路线、第一成功信号、kill signal、下一批 ready RM。
263
+
264
+ STOP 规则:
265
+
266
+ - 每次需要用户判断时只问一个 `D<N> - <decision title>`。
267
+ - 选项只用 `A` / `B` / `C`,推荐项必须标 `(recommended)`。
268
+ - 问完必须停止等待,不能同一轮继续生成最终 roadmap。
269
+ - 用户回答后,先更新 transcript,再决定是否进入下一轮。
270
+
271
+ 产物规则:
272
+
273
+ - `devflow/roadmap.json.context.roadmapFunnel.rounds[]` 记录每轮 `id`、`question`、`answerSource`、`answer`、`evidence`、`decisionImpact`、`status`。
274
+ - `devflow/ROADMAP.md` 必须渲染 `## Roadmap Funnel Transcript`,让后续读者知道路线不是拍脑袋。
275
+ - `devflow/BACKLOG.md` 的 ready RM 必须记录 `Source funnel rounds`、`Frozen decisions`、`Do not re-decide`、`Remaining blocking question`。
276
+ - 没有闭合 `F7` 和 `F8` 时,不允许把任何 RM 标成 ready for `cc-plan`,除非用户给出已成形且有证据的计划;即便如此也要把跳过理由写入 transcript。
277
+
243
278
  ## Founder Advice Guardrail
244
279
 
245
280
  创业建议只能服务于 roadmap 质量,不是推广内容。遇到 `founder-business` 或 `internal-company`:
@@ -319,13 +354,15 @@ Verdict 只允许四种:
319
354
  1. 没有 `Context Snapshot`,不准给路线推荐。
320
355
  2. 没有 project direction mode、planning posture、evidence maturity 和 framing check,不准给路线推荐。
321
356
  3. 没有 native language / durable decision scan,不准给路线推荐;如果缺少 `devflow/specs/` 或历史决策材料,写成 `not present`,不要假装已对齐。
322
- 4. 没有 2-3 条路线对比,不准直接拍脑袋定主线。
323
- 5. 没有 exit signal / kill signal / non-goals,不算阶段冻结。
324
- 6. 没有明确成功信号和下一决策,不准把事项放进 `Ready For Req-Plan`。
325
- 7. developer-facing / operator-facing item 没有 target user、time to first value adoption bottleneck,不准标成 ready。
326
- 8. 没有 `RM dependency graph` 或 parallel-ready wave,不准宣称事项可以并发推进。
327
- 9. 没有独立子系统拆分判断,不准把大而混杂的方向伪装成单一主线。
328
- 10. 没有用户批准,不准把 roadmap item 下放到 `cc-plan`。
357
+ 4. 没有 `Roadmap Funnel Transcript`,不准给路线推荐。
358
+ 5. 没有 `F7 Premise Challenge` `F8 Alternatives`,不准把事项标成 ready。
359
+ 6. 没有 2-3 条路线对比,不准直接拍脑袋定主线。
360
+ 7. 没有 exit signal / kill signal / non-goals,不算阶段冻结。
361
+ 8. 没有明确成功信号和下一决策,不准把事项放进 `Ready For Req-Plan`。
362
+ 9. developer-facing / operator-facing item 没有 target user、time to first value 或 adoption bottleneck,不准标成 ready。
363
+ 10. 没有 `RM dependency graph` 或 parallel-ready wave,不准宣称事项可以并发推进。
364
+ 11. 没有独立子系统拆分判断,不准把大而混杂的方向伪装成单一主线。
365
+ 12. 没有用户批准,不准把 roadmap item 下放到 `cc-plan`。
329
366
 
330
367
  ## Review Loop
331
368
 
@@ -27,6 +27,10 @@
27
27
  ## Adoption Handoff
28
28
 
29
29
  - Project direction mode:
30
+ - Source funnel rounds:
31
+ - Frozen decisions:
32
+ - Do not re-decide:
33
+ - Remaining blocking question:
30
34
  - Direction-specific first question:
31
35
  - Founder / builder / infra guardrail:
32
36
  - Planning posture:
@@ -56,6 +60,10 @@
56
60
  - Expected spec delta:
57
61
  - Open risks:
58
62
  - First planning question:
63
+ - Source funnel rounds:
64
+ - Frozen decisions:
65
+ - Do not re-decide:
66
+ - Remaining blocking question:
59
67
  - Evidence maturity:
60
68
  - Target developer / operator:
61
69
  - Time to first value:
@@ -53,6 +53,28 @@
53
53
  | Feasibility | | High / Med / Low | | |
54
54
  | Distribution | | High / Med / Low | | |
55
55
 
56
+ ## Roadmap Funnel Transcript
57
+
58
+ | Round | Question | Answer source | Answer / decision | Evidence | Decision impact | Status |
59
+ |-------|----------|---------------|-------------------|----------|-----------------|--------|
60
+ | F0 Direction Mode | | repo-evidence / user-answer / skipped | | | | pending |
61
+ | F1 Demand / Operator Reality | | repo-evidence / user-answer / skipped | | | | pending |
62
+ | F2 Status Quo | | repo-evidence / user-answer / skipped | | | | pending |
63
+ | F3 Specific Human / Sponsor | | repo-evidence / user-answer / skipped | | | | pending |
64
+ | F4 Narrowest Wedge / Lake Boundary | | repo-evidence / user-answer / skipped | | | | pending |
65
+ | F5 Observation / Feedback Signal | | repo-evidence / user-answer / skipped | | | | pending |
66
+ | F6 Future Fit | | repo-evidence / user-answer / skipped | | | | pending |
67
+ | F7 Premise Challenge | | repo-evidence / user-answer / skipped | | | | pending |
68
+ | F8 Alternatives | | repo-evidence / user-answer / skipped | | | | pending |
69
+ | F9 Route Approval | | repo-evidence / user-answer / skipped | | | | pending |
70
+
71
+ - Premises confirmed:
72
+ - Premises rejected / revised:
73
+ - Alternatives reviewed:
74
+ - Approved route:
75
+ - Open concerns:
76
+ - Skipped rounds and reasons:
77
+
56
78
  ## AI Leverage Route Lens
57
79
 
58
80
  - Real user / operator:
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "meta": {
7
7
  "roadmapVersion": "roadmap.v1",
8
- "skillVersion": "5.2.0",
8
+ "skillVersion": "5.3.0",
9
9
  "status": "active",
10
10
  "lastUpdated": "2026-05-01",
11
11
  "currentFocusStage": "Stage 1"
@@ -32,6 +32,33 @@
32
32
  "verdict": "needs-evidence",
33
33
  "missingEvidence": []
34
34
  },
35
+ "roadmapFunnel": {
36
+ "status": "in-progress",
37
+ "currentRound": "F0",
38
+ "approvedRouteRound": "",
39
+ "rounds": [
40
+ {
41
+ "id": "F0",
42
+ "title": "Direction Mode",
43
+ "question": "What project-direction mode are we in, and why not the other modes?",
44
+ "answerSource": "repo-evidence | user-answer | skipped",
45
+ "answer": "",
46
+ "evidence": [],
47
+ "decisionImpact": "Selects the question set and default route shape",
48
+ "status": "pending",
49
+ "skippedReason": ""
50
+ }
51
+ ],
52
+ "premiseChallenge": [],
53
+ "alternativesReviewed": [],
54
+ "routeApproval": {
55
+ "approved": false,
56
+ "approvedRoute": "",
57
+ "approvedBy": "",
58
+ "approvedAt": "",
59
+ "openConcerns": []
60
+ }
61
+ },
35
62
  "canonicalTerms": [],
36
63
  "durableDecisionSources": []
37
64
  },
@@ -69,6 +96,10 @@
69
96
  "entryConstraints": "",
70
97
  "openRisks": "",
71
98
  "firstPlanningQuestion": "",
99
+ "sourceFunnelRounds": [],
100
+ "frozenDecisions": [],
101
+ "doNotRedecide": [],
102
+ "remainingBlockingQuestion": "",
72
103
  "requiredContextToLoad": "",
73
104
  "whyReadyNow": "",
74
105
  "parked": false,
@@ -3,28 +3,27 @@
3
3
  ## Order
4
4
 
5
5
  0. 先做 `Context Snapshot`:现有 roadmap / backlog、capability specs、历史 design/analysis、最近提交、forcing functions、项目语言 / durable decisions
6
- 1. 先判断 project direction mode:founder-business / internal-company / hackathon-demo / open-source-research / learning / side-project / infrastructure / recovery
7
- 2. 用户是谁
8
- 3. 今天靠什么笨办法活着
9
- 4. 最强需求证据是什么
10
- 5. 为什么现在必须解决
11
- 6. deadline / capacity / dependency / distribution 约束是什么
12
- 7. 当前最大的 adoption / trust / delivery 卡点是什么
13
- 8. 核心术语是否已有 canonical definition,是否和现有 capability spec / roadmap decision 冲突
14
- 9. 最窄突破口是什么
15
- 10. 6-12 个月后会长成什么
16
- 11. 给出 2-3 条路线图形状并明确推荐
17
- 12. 冻结 1-3 个阶段,写 exit signal / kill signal / non-goals
18
- 13. 画出 `RM dependency graph`,标出串行主链和 parallel-ready wave
19
- 14. 标出哪些事项真的 ready for `cc-plan`
6
+ 1. `F0 Direction Mode`:project direction mode,为什么不是其它模式
7
+ 2. `F1 Demand / Operator Reality`:用户是谁,最强需求或运营证据是什么
8
+ 3. `F2 Status Quo`:今天靠什么笨办法活着,成本和失败方式是什么
9
+ 4. `F3 Specific Human / Sponsor`:具体人、具体角色、具体组织后果
10
+ 5. `F4 Narrowest Wedge / Lake Boundary`:最窄突破口、完整 lake、ocean boundary
11
+ 6. `F5 Observation / Feedback Signal`:真实观察、运行证据、demo 使用或待补证据任务
12
+ 7. `F6 Future Fit`:6-12 个月后为什么更需要它
13
+ 8. `F7 Premise Challenge`:核心前提、canonical language、capability/spec 冲突
14
+ 9. `F8 Alternatives`:给出 2-3 条路线图形状并明确推荐
15
+ 10. `F9 Route Approval`:冻结 1-3 个阶段、dependency graph、parallel wave、ready RM
20
16
 
21
17
  ## Question Rules
22
18
 
23
19
  - 一次只推进一个关键未知点
24
20
  - 每个问题附带推荐答案、证据来源,以及用户反对时会改变哪条路线
21
+ - 问题编号使用 `D<N> - <decision title>`;选项只用 `A` / `B` / `C`,推荐项标 `(recommended)`
22
+ - 每轮回答必须落入 `Roadmap Funnel Transcript`
25
23
  - 能从 repo / capability spec / roadmap / design / git history 得到答案时先查证,不问用户
26
24
  - 没证据时明确写 assumption
27
25
  - 用户没批准前,不把事项偷下放成 requirement
26
+ - 用户催促跳过时,最多补问 2 个关键问题,但不能跳过 `F7 Premise Challenge` 和 `F8 Alternatives`
28
27
 
29
28
  ## Project Direction Modes
30
29
 
@@ -54,3 +53,4 @@
54
53
  - backlog 只收下一轮真会进入 `cc-plan` 的事项
55
54
  - ready 项必须带成功信号、下一决策、`Depends On`、`Parallel With`
56
55
  - ready 项必须带 canonical terms、capability spec context 或明确的 language / decision conflict
56
+ - ready 项必须带 Source funnel rounds、Frozen decisions、Do not re-decide、Remaining blocking question
@@ -1,5 +1,11 @@
1
1
  # CC-Simplify Skill Changelog
2
2
 
3
+ ## v1.4.1 - 2026-05-10
4
+
5
+ - make `cc-simplify` itself the explicit trigger for automatic read-only subagent review in ClaudeCode and Codex environments
6
+ - prefer ClaudeCode `Task` / subAgent support or Codex built-in `explorer` / `default` agents without requiring an extra user prompt
7
+ - require a truthful fallback report when the host does not expose any subagent tool, instead of pretending subagents ran
8
+
3
9
  ## v1.4.0 - 2026-04-28
4
10
 
5
11
  - add deep-module architecture review checks for shallow wrappers, hypothetical seams, and complexity that should move behind a smaller interface
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: cc-simplify
3
- version: 1.4.0
4
- description: "Use when changed code needs a Codex-native simplification pass for scope drift, reuse, code quality, efficiency, test quality, and confidence-gated smell fixes before cc-check or cc-act."
3
+ version: 1.4.1
4
+ description: "Use when changed code needs an automatic subagent-backed simplification pass for scope drift, reuse, code quality, efficiency, test quality, and confidence-gated smell fixes before cc-check or cc-act."
5
5
  ---
6
6
 
7
7
  # CC-Simplify
@@ -35,21 +35,32 @@ ONLY FIX CONFIRMED SMELLS. DO NOT BEAUTIFY BY GUESS.
35
35
  3. 如果变更跨多个互不相关模块,先按模块分组;不要让一个 cleanup pass 变成大扫除。
36
36
  4. 只审当前 diff 新增或本次改动扩大后的坏味道。历史债只在它阻挡当前交付或被本次 diff 放大时进入清理范围。
37
37
 
38
- ## Phase 2: Codex 智能体评审
38
+ ## Phase 2: 自动子智能体评审
39
39
 
40
- 如果当前环境支持 Codex 多智能体,并且用户已经明确触发 `cc-simplify` 或要求并行评审,可以构建只读评审智能体。
40
+ 触发 `cc-simplify` 本身就构成用户对子智能体 / subAgent 评审的明确授权。不要要求用户在 `[$cc-simplify]` 之外再补一句“请开启子智能体”。
41
+
42
+ 只要当前宿主支持子智能体,必须自动启动只读评审智能体;主线程只负责汇总、验证 finding、实际修复和最终验证。
41
43
 
42
44
  ### 调度原则
43
45
 
44
- - Codex 中优先使用 `spawn_agent(agent_type="explorer")` 创建只读评审智能体。
45
- - 如果当前环境没有 `explorer`,使用默认智能体也必须在 prompt 里写明:只读审查,不编辑文件。
46
+ - ClaudeCode 环境:使用可用的 `Task` / subAgent 机制自动创建只读评审 subAgent。
47
+ - Codex App / Codex 工具环境:优先使用内置 `explorer` 子智能体做只读评审;不要假设 ClaudeCode 的 `Task` / `subAgent` 语义存在。
48
+ - 在暴露 `spawn_agent` 工具的 Codex 环境里,使用 `spawn_agent(agent_type="explorer", fork_context=false, ...)`;如果没有 `explorer`,使用 `default` 也必须在 prompt 里写明:只读审查,不编辑文件。
49
+ - `cc-simplify` 的触发就是对子智能体的明确请求;不要再等待用户二次授权。
50
+ - 不依赖 repo-local `.codex/agents/*.toml` 自定义 agent 名称来完成核心流程。自定义 agent 可以作为增强,但主流程必须能依赖 Codex 内置 `explorer` / `default` 或宿主内置 subAgent 机制。
46
51
  - 只把只读评审交给智能体;主线程负责最终判断和实际编辑。
47
52
  - 每个智能体拿到同一份完整 diff、相关任务/设计/spec 路径、当前 repo 根目录。
48
53
  - 智能体不能改文件,只输出结构化 findings。
49
- - 如果没有多智能体能力,主线程按同样清单顺序执行。
50
- - 小 diff 不强制开智能体:少于约 50 行且只触碰单一文件时,主线程执行同一清单即可。
54
+ - 如果当前运行时没有子智能体工具,或工具调用被上层策略禁止,主线程按同样清单顺序执行,并在报告里写 `Agents used: no (subagent tool unavailable)`;不要伪造子智能体结果。
55
+ - 小 diff 也要尝试启动子智能体;如果资源或宿主限制不适合三路并行,至少启动一个合并维度的只读 reviewer。
51
56
  - 条件 specialist 只在对应 scope 出现时启用;不要为了“完整”启动无关评审。
52
57
 
58
+ 默认调度:
59
+
60
+ - 大 diff / 多文件 diff:启动 Agent A、Agent B、Agent C 三个只读评审智能体。
61
+ - 小 diff / 单文件 diff:至少启动一个 combined reviewer,覆盖 A/B/C 三组检查。
62
+ - 命中 security / api-contract / release / frontend-performance 时,再启动对应 specialist;如果 specialist 发现 `critical`,再启动 Red Team 只读复查。
63
+
53
64
  智能体 prompt 必须自包含:
54
65
 
55
66
  ```text
package/CHANGELOG.md CHANGED
@@ -9,11 +9,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [4.5.9] - 2026-05-11
13
+
14
+ ### Added
15
+
16
+ - Added project-level AI postmortem contracts under `devflow/postmortems/`, with `cc-act` writing progressive incident, index, and principle records that include Git evidence and verification facts.
17
+
18
+ ### Changed
19
+
20
+ - Updated `cc-plan`, `cc-investigate`, and `cc-do` to search project postmortems before freezing plans, finalizing root-cause hypotheses, or executing individual tasks.
21
+ - Updated `cc-act` so `post-merge-closeout` must run `cc-devflow archive-change <change-key>` and prove the archive path, instead of leaving archive as an optional next action.
22
+ - Updated `cc-next` so unarchived `devflow/changes/<REQ|FIX>-*` directories are next-work candidates, including done-but-unarchived closeout work.
23
+
24
+ ## [4.5.8] - 2026-05-11
25
+
26
+ ### Changed
27
+
28
+ - Updated `cc-review` with a risk-lane review swarm profile so broad implementation and PR-landing reviews separate intent/regression, security/privacy, performance/reliability, and contracts/coverage findings before main-thread triage.
29
+ - Added the PR Harness skill lane: `cc-next` selects roadmap-aware next work, `cc-dev` drives current-worktree PDCA/IDCA goals to a remote PR, `cc-pr-review` reviews remote PRs in a separate session, and `cc-pr-land` lands reviewed PRs with rebase-first main parity proof.
30
+
12
31
  ## [4.5.7] - 2026-05-10
13
32
 
14
33
  ### Changed
15
34
 
16
- - Added public `cc-review` as an optional deep review skill that branches between plan-stage and implementation-stage review, keeps heavyweight methods in progressive references, checks in-scope code smells, and records Browser/Computer Use plus log evidence when UI or runtime behavior is involved.
35
+ - Added public `cc-review` as an optional deep review skill that branches between plan-stage and implementation-stage review, builds a stateful review plan, dispatches read-only reviewer subAgents when available, records per-node review ledger entries, checks in-scope code smells, and records Browser/Computer Use plus log evidence when UI or runtime behavior is involved.
17
36
  - Updated `cc-roadmap` and `cc-plan` with AI Leverage Route/Decision Lens gates that require real user/operator, status quo workaround, human-vs-agent effort, complete-lake boundary, ocean boundary, and boil-lake/sharp-wedge/needs-evidence/pivot verdicts before work becomes implementation-ready.
18
37
  - Updated `cc-plan` with an opt-in External Best-Practice Validation gate that records generalized search approval, source trust, repo-fit verdicts, and skip reasons in durable planning artifacts.
19
38
  - Updated `cc-plan` Decision Question options to require `A/B/C` lettered choices while keeping `D1` / `D2` as question IDs.
package/README.md CHANGED
@@ -11,16 +11,11 @@
11
11
 
12
12
  CC-DevFlow is a small, explicit workflow system for agent coding. It gives an AI agent one roadmap entry point, then routes every change through either a feature loop or a bug-investigation loop before work can be called done.
13
13
 
14
- ```text
15
- cc-roadmap
16
-
17
- PDCA: cc-plan -> [cc-review] -> cc-do -> [cc-review] -> cc-check -> cc-act
18
- IDCA: cc-investigate -> [cc-review] -> cc-do -> [cc-review] -> cc-check -> cc-act
19
- ```
14
+ ![CC-DevFlow PR Harness visual workflow](./docs/assets/cc-devflow-pr-harness-en.svg)
20
15
 
21
16
  ## Why cc-devflow
22
17
 
23
- - **Small public surface**: six core workflow skills, one optional deep review skill, plus a CLI for installation and platform adaptation.
18
+ - **Small public surface**: core workflow skills, a PR Harness lane, one optional deep review skill, plus a CLI for installation and platform adaptation.
24
19
  - **Evidence before done**: implementation must pass through verification proof before shipping or handoff.
25
20
  - **Skill-first distribution**: the public contract lives in `.claude/skills/<skill>/SKILL.md` and `PLAYBOOK.md`, not in hidden runtime behavior.
26
21
  - **Multi-platform output**: install once, then adapt for Codex, Cursor, Qwen, Antigravity, and related agent environments.
@@ -56,17 +51,57 @@ Refresh every supported platform output:
56
51
  npx cc-devflow@latest adapt --cwd /path/to/your/project --all
57
52
  ```
58
53
 
59
- After installation, ask your agent to use the workflow skills directly. Start with `cc-roadmap` for product direction, use `cc-plan` for new work, use `cc-investigate` for bugs, optionally run `cc-review` on complex frozen plans or investigations, then continue through `cc-do`, optional implementation `cc-review`, `cc-check`, and `cc-act`.
54
+ After installation, ask your agent to use the workflow skills directly. Start with `cc-roadmap` for product direction. Use `cc-next` to select the next roadmap-aware target, `cc-dev` to drive the current worktree through PDCA or IDCA until a remote PR is opened, `cc-pr-review` to review that PR in a separate session, and `cc-pr-land` to land reviewed PRs into main. For manual core workflow work, use `cc-plan` for new work, use `cc-investigate` for bugs, optionally run `cc-review` on complex frozen plans or investigations, then continue through `cc-do`, optional implementation `cc-review`, `cc-check`, and `cc-act`.
55
+
56
+ ## Workflow Map
57
+
58
+ ```text
59
+ cc-roadmap
60
+
61
+ PR Harness: cc-next -> cc-dev -> cc-pr-review -> cc-pr-land
62
+
63
+ PDCA: cc-plan -> [cc-review] -> cc-do -> [cc-review] -> cc-check -> cc-act
64
+ IDCA: cc-investigate -> [cc-review] -> cc-do -> [cc-review] -> cc-check -> cc-act
65
+ ```
66
+
67
+ ```mermaid
68
+ flowchart TD
69
+ Roadmap["cc-roadmap\nProduct direction and staged truth"] --> Next["cc-next\nPick next ready Goal Packet"]
70
+ Next --> Dev["cc-dev\nDrive current worktree to PR"]
71
+
72
+ Dev --> Route{"Route"}
73
+ Route -->|Feature or change| Plan["cc-plan\nFreeze scope and tasks"]
74
+ Route -->|Bug or regression| Investigate["cc-investigate\nFreeze root cause and repair boundary"]
75
+
76
+ Plan --> PlanReview["cc-review\nOptional plan review"]
77
+ Investigate --> PlanReview
78
+ PlanReview --> Do["cc-do\nImplement with evidence"]
79
+ Plan --> Do
80
+ Investigate --> Do
81
+
82
+ Do --> ImplReview["cc-review\nOptional implementation review"]
83
+ ImplReview --> Check["cc-check\nFresh verification verdict"]
84
+ Do --> Check
85
+ Check --> Act["cc-act\nCreate or update remote PR"]
86
+ Act --> PRReview["cc-pr-review\nSeparate PR review session"]
87
+ PRReview --> PRLand["cc-pr-land\nRebase, land, prove main parity"]
88
+ PRReview -->|Fixes required| Dev
89
+ PRLand --> Main["main\nLocal and remote parity"]
90
+ ```
60
91
 
61
92
  ## Workflow Skills
62
93
 
63
94
  | Skill | Use it when | Main output |
64
95
  | --- | --- | --- |
65
96
  | `cc-roadmap` | You need product direction, staged scope, or backlog order | `devflow/roadmap.json`, `devflow/ROADMAP.md`, deprecated `devflow/BACKLOG.md` |
97
+ | `cc-next` | You need to pick the next roadmap-aware ready target from roadmap, unarchived local changes, and issue truth | one Goal Packet for `cc-dev` |
98
+ | `cc-dev` | A selected objective should be driven in the current worktree to a remote PR | PDCA/IDCA artifacts plus a PR or handoff |
66
99
  | `cc-plan` | A feature or change needs scope, design, and task freezing | `planning/design.md`, `planning/tasks.md`, `task-manifest.json` |
67
100
  | `cc-investigate` | A bug needs symptom, reproduction, root cause, and repair boundary | `planning/analysis.md`, `planning/tasks.md`, `task-manifest.json` |
68
101
  | `cc-do` | Planned or investigated work needs implementation | code, tests, checkpoints, scratch runtime |
69
102
  | `cc-review` | Complex plans, investigations, or diffs need optional deep multi-round review before implementation or verification | `cc-review-report.md`, optional `cc-review-findings.json` |
103
+ | `cc-pr-review` | A remote PR needs an independent review session before landing | PR review packet, findings, and landing verdict |
104
+ | `cc-pr-land` | Reviewed PRs need rebase-first landing into main with parity proof | integrated main plus local/remote parity evidence |
70
105
  | `cc-check` | Work needs fresh verification evidence | `report-card.json` |
71
106
  | `cc-act` | Verified work needs a PR, local handoff, release note, or closeout | one final handoff file |
72
107
 
@@ -83,7 +118,7 @@ Canonical language and durable decisions stay inside cc-devflow-native sources:
83
118
 
84
119
  `cc-plan` freezes more implementation decisions before `cc-do` starts. Non-trivial plans compare minimal viable and ideal architecture options, full designs include decision horizon plus error/rescue mapping, and test-first plans record test framework evidence, public test seams, spec-style test names, public verification paths, behavior assertions, mock boundaries, coverage quality, mandatory regression tests, interface depth, Green minimality guards, refactor candidates, and vertical tracer-bullet slices when existing behavior changes. Before handoff, `cc-plan` and `cc-investigate` also reconcile the source roadmap item so RM status, REQ/FIX binding, progress, and spec diagnosis do not drift from the frozen change artifacts.
85
120
 
86
- `cc-review` is optional and deeper than `cc-check`. It can run immediately after `cc-plan` / `cc-investigate` to review the frozen plan or root-cause contract, or after `cc-do` to review the implementation. It classifies the input as plan-stage or implementation-stage, then runs the matching review branch: plan reviews borrow strategy/design/engineering/DX methods through progressive references, while implementation reviews inspect diff scope, code smells, tests, UI/runtime behavior, Browser/Computer Use evidence, and logs when applicable. Findings route back to `cc-plan` or `cc-do`; clean implementation reviews continue to `cc-check`.
121
+ `cc-review` is optional and deeper than `cc-check`. It can run immediately after `cc-plan` / `cc-investigate` to review the frozen plan or root-cause contract, or after `cc-do` to review the implementation. It first reads prior review records and current git/artifact delta, writes a review plan, then checks review nodes one by one with ledger entries. When the host supports subagents, selected nodes can be dispatched to independent read-only reviewers so strategy, engineering, design, DX, smell, test, and runtime checks do not share one contaminated context. Broad implementation reviews can use separate risk lanes for intent/regression, security/privacy, performance/reliability, and contracts/coverage before the main thread triages raw findings. Plan reviews borrow strategy/design/engineering/DX methods through progressive references, while implementation reviews inspect diff scope, code smells, tests, UI/runtime behavior, Browser/Computer Use evidence, and logs when applicable. Findings route back to `cc-plan` or `cc-do`; clean implementation reviews continue to `cc-check`.
87
122
 
88
123
  ## Verification And Ship Gates
89
124
 
@@ -120,10 +155,14 @@ node bin/cc-devflow-cli.js adapt --cwd /tmp/example-project --platform codex
120
155
 
121
156
  ```bash
122
157
  npx skills add https://github.com/Dimon94/cc-devflow --skill cc-roadmap
158
+ npx skills add https://github.com/Dimon94/cc-devflow --skill cc-next
159
+ npx skills add https://github.com/Dimon94/cc-devflow --skill cc-dev
123
160
  npx skills add https://github.com/Dimon94/cc-devflow --skill cc-plan
124
161
  npx skills add https://github.com/Dimon94/cc-devflow --skill cc-investigate
125
162
  npx skills add https://github.com/Dimon94/cc-devflow --skill cc-do
126
163
  npx skills add https://github.com/Dimon94/cc-devflow --skill cc-review
164
+ npx skills add https://github.com/Dimon94/cc-devflow --skill cc-pr-review
165
+ npx skills add https://github.com/Dimon94/cc-devflow --skill cc-pr-land
127
166
  npx skills add https://github.com/Dimon94/cc-devflow --skill cc-check
128
167
  npx skills add https://github.com/Dimon94/cc-devflow --skill cc-act
129
168
  ```
@@ -186,10 +225,14 @@ Each shipped skill keeps its runtime contract local:
186
225
  The currently distributed skill folders are:
187
226
 
188
227
  - `.claude/skills/cc-roadmap/`
228
+ - `.claude/skills/cc-next/`
229
+ - `.claude/skills/cc-dev/`
189
230
  - `.claude/skills/cc-plan/`
190
231
  - `.claude/skills/cc-investigate/`
191
232
  - `.claude/skills/cc-do/`
192
233
  - `.claude/skills/cc-review/`
234
+ - `.claude/skills/cc-pr-review/`
235
+ - `.claude/skills/cc-pr-land/`
193
236
  - `.claude/skills/cc-check/`
194
237
  - `.claude/skills/cc-act/`
195
238
  - `.claude/skills/cc-spec-init/`
@@ -223,6 +266,14 @@ npm run verify:publish
223
266
 
224
267
  The main contributor guide is [`CONTRIBUTING.md`](./CONTRIBUTING.md). It explains the public surface rules, local CLI smoke tests, documentation rules, and PR expectations.
225
268
 
269
+ ## Discussion
270
+
271
+ Scan the QR code to join the cc-devflow WeChat group for feedback, usage notes, and feature requests.
272
+
273
+ <img src="./docs/assets/wechat-group-qr.jpg" alt="cc-devflow WeChat group QR code" width="320" />
274
+
275
+ If the QR code expires, please open an issue so the maintainers can refresh it.
276
+
226
277
  ## Community
227
278
 
228
279
  - Star the project if the workflow is useful: [GitHub stars](https://github.com/Dimon94/cc-devflow/stargazers)