cc-devflow 4.5.15 → 4.5.17

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 (56) hide show
  1. package/.claude/skills/cc-act/CHANGELOG.md +11 -0
  2. package/.claude/skills/cc-act/PLAYBOOK.md +2 -2
  3. package/.claude/skills/cc-act/SKILL.md +12 -2
  4. package/.claude/skills/cc-act/assets/PR_BRIEF_TEMPLATE.md +9 -0
  5. package/.claude/skills/cc-act/references/closure-contract.md +3 -2
  6. package/.claude/skills/cc-act/scripts/evaluate-postmortem-trigger.sh +93 -0
  7. package/.claude/skills/cc-act/scripts/render-pr-brief.sh +138 -32
  8. package/.claude/skills/cc-dev/CHANGELOG.md +5 -0
  9. package/.claude/skills/cc-dev/PLAYBOOK.md +6 -3
  10. package/.claude/skills/cc-dev/SKILL.md +10 -7
  11. package/.claude/skills/cc-dev/scripts/ensure-work-branch.sh +117 -0
  12. package/.claude/skills/cc-dev/scripts/prepare-change-worktree.sh +135 -0
  13. package/.claude/skills/cc-investigate/CHANGELOG.md +15 -0
  14. package/.claude/skills/cc-investigate/SKILL.md +85 -8
  15. package/.claude/skills/cc-investigate/assets/TASKS_TEMPLATE.md +56 -0
  16. package/.claude/skills/cc-investigate/references/investigation-contract.md +1 -0
  17. package/.claude/skills/cc-plan/CHANGELOG.md +15 -0
  18. package/.claude/skills/cc-plan/SKILL.md +70 -6
  19. package/.claude/skills/cc-plan/assets/TASKS_TEMPLATE.md +41 -0
  20. package/.claude/skills/cc-plan/references/planning-contract.md +1 -0
  21. package/.claude/skills/cc-pr-review/CHANGELOG.md +9 -0
  22. package/.claude/skills/cc-pr-review/PLAYBOOK.md +3 -0
  23. package/.claude/skills/cc-pr-review/SKILL.md +30 -1
  24. package/.claude/skills/cc-review/CHANGELOG.md +10 -0
  25. package/.claude/skills/cc-review/SKILL.md +53 -9
  26. package/.claude/skills/cc-review/references/implementation-review-branch.md +1 -0
  27. package/.claude/skills/cc-review/references/plan-review-branch.md +1 -0
  28. package/.claude/skills/cc-review/references/review-methods.md +30 -0
  29. package/.claude/skills/cc-roadmap/CHANGELOG.md +6 -0
  30. package/.claude/skills/cc-roadmap/SKILL.md +1 -1
  31. package/.claude/skills/cc-roadmap/scripts/lib/roadmap-tracking/markdown.js +274 -69
  32. package/.claude/skills/cc-roadmap/scripts/lib/roadmap-tracking/schema.js +69 -15
  33. package/CHANGELOG.md +21 -3
  34. package/README.md +1 -1
  35. package/README.zh-CN.md +1 -1
  36. package/docs/examples/example-bindings.json +8 -8
  37. package/docs/examples/full-design-blocked/BACKLOG.md +12 -1
  38. package/docs/examples/full-design-blocked/README.md +1 -1
  39. package/docs/examples/full-design-blocked/ROADMAP.md +2 -2
  40. package/docs/examples/full-design-blocked/changes/REQ-002-bulk-invite-import/task.md +23 -1
  41. package/docs/examples/full-design-blocked/roadmap.json +7 -2
  42. package/docs/examples/local-handoff/BACKLOG.md +12 -1
  43. package/docs/examples/local-handoff/README.md +1 -1
  44. package/docs/examples/local-handoff/ROADMAP.md +2 -2
  45. package/docs/examples/local-handoff/changes/REQ-003-audit-log-export/task.md +23 -1
  46. package/docs/examples/local-handoff/roadmap.json +7 -2
  47. package/docs/examples/pdca-loop/BACKLOG.md +12 -1
  48. package/docs/examples/pdca-loop/README.md +1 -1
  49. package/docs/examples/pdca-loop/ROADMAP.md +2 -2
  50. package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/task.md +23 -1
  51. package/docs/examples/pdca-loop/roadmap.json +7 -2
  52. package/docs/guides/project-postmortem.md +8 -0
  53. package/lib/skill-runtime/__tests__/cli-bootstrap.integration.test.js +2 -1
  54. package/lib/skill-runtime/__tests__/config.test.js +7 -2
  55. package/lib/skill-runtime/config.js +38 -6
  56. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cc-review
3
- version: 2.2.1
3
+ version: 2.2.3
4
4
  description: Use when a plan, bug fix, PR, or implementation diff needs review findings. Plan reviews write findings into task.md; implementation reviews ask the user to choose a repair option before fixing.
5
5
  triggers:
6
6
  - 深度 review 这个方案
@@ -41,6 +41,7 @@ entry_gate:
41
41
  exit_criteria:
42
42
  - Findings are listed first, ordered by severity and backed by concrete file/line, command, diff, UI, log, or missing-evidence proof.
43
43
  - Every finding has impact, recommendation, and route: cc-plan, cc-do, cc-check, cc-act, or stop.
44
+ - Findings include an ASCII Branch Chain when they involve plan scope, root cause, implementation behavior, PR diff risk, or code smell propagation; tree connector characters stay ASCII while node text follows the configured output language.
44
45
  - Plan or investigation review findings are written into the relevant `task.md` section before exit.
45
46
  - Implementation review findings are returned with concrete repair options and a blocking user choice; no repair happens until the user selects an option.
46
47
  - In-scope code smells are either findings, explicit defers, or clean with reason.
@@ -110,9 +111,10 @@ Review 的价值在于问题质量,不在于过程记录数量。没有证据
110
111
  3. Delta:用 Git、PR diff、`task.md` 和当前命令输出确定相对上次或 base 的真实变化。
111
112
  4. Facets:按风险选择 strategy / engineering / design / DX / TOC / contract / smell / test / runtime / docs。
112
113
  5. Nodes:把每个 selected facet 或 changed surface 当成一个 review node,在 scratch reasoning 中逐个检查;每个 node 只能 checked、skipped、blocked。
113
- 6. Findings:每个 finding 必须有 evidence、impact、recommendation、route;没有证据的怀疑只能是 residual risk blocked evidence。
114
- 7. Aggregate:合并重复 finding,降级弱证据,拒收 out-of-scopestalespeculative finding
115
- 8. Exit:计划问题写 `task.md`;实现问题回对话给修复选项;只差验证进 `cc-check`。
114
+ 6. Chain:对 plan / investigation / broad implementation / PR / smell finding 画 ASCII Branch Chain,向上追来源,向下追影响面。
115
+ 7. Findings:每个 finding 必须有 evidenceimpactrecommendation、route;没有证据的怀疑只能是 residual risk 或 blocked evidence
116
+ 8. Aggregate:合并重复 finding,降级弱证据,拒收 out-of-scope、stale、speculative finding。
117
+ 9. Exit:计划问题写 `task.md`;实现问题回对话给修复选项;只差验证进 `cc-check`。
116
118
 
117
119
  渐进加载只控制读多少上下文,不允许把该审的节点省掉。
118
120
 
@@ -144,9 +146,49 @@ Review 的价值在于问题质量,不在于过程记录数量。没有证据
144
146
  - impact: 它会导致什么错误、回归、维护成本或用户问题
145
147
  - recommendation: 最小修复动作
146
148
  - route: `cc-plan` / `cc-do` / `cc-check` / `cc-act` / `stop`
149
+ - ASCII Branch Chain: 用 ASCII 分叉树展示 source -> faulty node -> downstream impact -> fix route;若涉及提示词或 provider contract,必须追到精确 prompt/provider 位置
147
150
 
148
151
  代码坏味道包括 rigidity、duplication、cycle、fragility、obscurity、data-clump、unnecessary complexity。范围内发现就报;不在范围内只作为 defer 或不提。
149
152
 
153
+ ## ASCII Branch Chain Shape
154
+
155
+ Review 输出中的链路树必须使用 ASCII 连接符,不用 Unicode tree glyphs。
156
+
157
+ Language rule:
158
+
159
+ - Tree structure tokens must stay ASCII: `|--`, `` `-- ``, `|`, spaces, and plain punctuation.
160
+ - Node labels, explanations, finding summaries, and route descriptions must follow the configured output language.
161
+ - Language source order: `task.md` `Output language`, PR/task/handoff language fields, then current conversation language.
162
+ - If no language source is available, record the assumption before the tree.
163
+ - Do not hard-code English labels such as `Review Chain` when the configured output language is not English.
164
+ - Use the Label table as the shared source for chain titles, node labels, and placeholder text.
165
+
166
+ Label table:
167
+
168
+ | Semantic slot | en | zh-CN |
169
+ | --- | --- | --- |
170
+ | reviewChain | Review Chain | 审查链 |
171
+ | findingMarker | FINDING | 问题 |
172
+ | source | Source | 来源 |
173
+ | faultNode | Fault node | 错误节点 |
174
+ | whyWrong | why wrong | 错误原因 |
175
+ | firstAffectedSeam | first affected seam | 首个受影响边界 |
176
+ | downstreamImpact | Downstream impact | 下游影响 |
177
+ | fixRoute | Fix route | 修复路线 |
178
+
179
+ ```text
180
+ <reviewChain>
181
+ <findingMarker>: <severity + short name>
182
+ |-- <source>: <task / diff / PR / log / prompt / provider contract>
183
+ |-- <faultNode>: <file / section / behavior>
184
+ | |-- <whyWrong>: <violated contract or smell>
185
+ | `-- <firstAffectedSeam>: <public seam / caller / artifact>
186
+ |-- <downstreamImpact>: <user / operator / release / maintenance>
187
+ `-- <fixRoute>: <cc-plan / cc-investigate / cc-do / cc-check / cc-act / stop>
188
+ ```
189
+
190
+ Plan / investigation review 的树写进 `task.md` 对应 finding 或 review gate。Implementation / PR review 的树写在当前回复或 GitHub review;不要为了树图创建本地 review 过程文件。
191
+
150
192
  ## Subagents
151
193
 
152
194
  可以使用只读 reviewer subagent,但输出只在主线程汇总,不写文件。主线程必须验证、去重、降级或拒收 subagent finding。
@@ -181,16 +223,18 @@ Plan / investigation review 的 decision question 写进 `task.md`。Implementat
181
223
  先写 `task.md`,再简短回复:
182
224
 
183
225
  1. Findings written: `task.md` path and sections changed.
184
- 2. Required task changes: task IDs or contract sections updated.
185
- 3. Route: `cc-plan` / `cc-investigate` / `cc-do` / `stop`.
226
+ 2. ASCII Branch Chains written: task sections updated with source -> fault -> impact -> route trees.
227
+ 3. Required task changes: task IDs or contract sections updated.
228
+ 4. Route: `cc-plan` / `cc-investigate` / `cc-do` / `stop`.
186
229
 
187
230
  ### Implementation Review
188
231
 
189
232
  只在对话里组织结果并询问用户:
190
233
 
191
234
  1. Findings: severity, file/line, evidence, impact, fix.
192
- 2. Repair options: smallest safe fix, broader cleanup, defer with risk.
193
- 3. Recommendation: one option and why.
194
- 4. User choice needed: ask which option to apply.
235
+ 2. ASCII Branch Chain: one tree per non-trivial finding or smell propagation.
236
+ 3. Repair options: smallest safe fix, broader cleanup, defer with risk.
237
+ 4. Recommendation: one option and why.
238
+ 5. User choice needed: ask which option to apply.
195
239
 
196
240
  没有问题时直接说 `No findings`,并说明还没验证的风险。
@@ -106,6 +106,7 @@ Findings stay in the response. Ask which repair option to apply before editing c
106
106
  Return:
107
107
 
108
108
  - findings ordered by severity
109
+ - ASCII Branch Chain per non-trivial finding or code smell propagation
109
110
  - smallest safe repair option
110
111
  - broader cleanup option when the smell is real
111
112
  - defer option with explicit risk
@@ -106,6 +106,7 @@ Each planning smell becomes a finding in `task.md` and routes to `cc-plan`.
106
106
  Write plan review findings directly into `task.md`:
107
107
 
108
108
  - scope or architecture finding
109
+ - ASCII Branch Chain for each non-trivial scope, root-cause, or architecture finding
109
110
  - evidence and impact
110
111
  - required task or contract change
111
112
  - decision options when user judgment is needed
@@ -19,6 +19,36 @@ Pick every method needed by the current risk. This is a routing map, not a findi
19
19
 
20
20
  Selected methods stay in scratch reasoning and final response/task updates. Do not write process files.
21
21
 
22
+ ## ASCII Branch Chains
23
+
24
+ For any plan, investigation, PR, broad implementation, or code-smell finding, include a compact ASCII tree in the durable task update or review output. Keep `|--`, `` `-- ``, `|`, spaces, and punctuation ASCII; write labels, explanations, findings, and evidence summaries in the configured output language. Resolve language from `task.md` `Output language`, PR/task/handoff language fields, then the current conversation language.
25
+
26
+ Label table:
27
+
28
+ | Semantic slot | en | zh-CN |
29
+ | --- | --- | --- |
30
+ | reviewChain | Review Chain | 审查链 |
31
+ | findingMarker | FINDING | 问题 |
32
+ | source | Source | 来源 |
33
+ | faultNode | Fault node | 错误节点 |
34
+ | whyWrong | why wrong | 错误原因 |
35
+ | firstAffectedSeam | first affected seam | 首个受影响边界 |
36
+ | downstreamImpact | Downstream impact | 下游影响 |
37
+ | fixRoute | Fix route | 修复路线 |
38
+
39
+ ```text
40
+ <reviewChain>
41
+ <findingMarker>: <severity + short name>
42
+ |-- <source>: <task / diff / PR / log / prompt / provider contract>
43
+ |-- <faultNode>: <file / section / behavior>
44
+ | |-- <whyWrong>: <violated contract or smell>
45
+ | `-- <firstAffectedSeam>: <public seam / caller / artifact>
46
+ |-- <downstreamImpact>: <user / operator / release / maintenance>
47
+ `-- <fixRoute>: <cc-plan / cc-investigate / cc-do / cc-check / cc-act / stop>
48
+ ```
49
+
50
+ Trace upstream to the first supported source and downstream to the affected public seam. If prompt text, agent instructions, model/provider parameters, or generated artifacts are part of the chain, name the exact prompt/provider contract or write `unknown -> Evidence Request`.
51
+
22
52
  ## Review Nodes
23
53
 
24
54
  Before findings, mentally create ordered review nodes:
@@ -1,5 +1,11 @@
1
1
  # Roadmap Skill Changelog
2
2
 
3
+ ## v5.3.1 - 2026-05-17
4
+
5
+ - make generated `ROADMAP.md` and deprecated `BACKLOG.md` projections render headings, labels, empty placeholders, and readiness booleans in Chinese when `outputPolicy.documentLanguage` is `zh-CN`
6
+ - render `Output language` metadata in generated roadmap and backlog projections and keep v3 backlog metadata aligned with roadmap state metadata
7
+ - preserve parsing for both English and Chinese projection labels so rerenders do not lose roadmap state after localization
8
+
3
9
  ## v5.3.0 - 2026-05-11
4
10
 
5
11
  - 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
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cc-roadmap
3
- version: 5.3.0
3
+ version: 5.3.1
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
  - "帮我定路线图"