cc-devflow 4.5.14 → 4.5.16
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/skills/cc-act/CHANGELOG.md +5 -0
- package/.claude/skills/cc-act/SKILL.md +2 -2
- package/.claude/skills/cc-act/assets/PR_BRIEF_TEMPLATE.md +3 -0
- package/.claude/skills/cc-act/scripts/render-pr-brief.sh +113 -33
- package/.claude/skills/cc-check/SKILL.md +0 -1
- package/.claude/skills/cc-dev/CHANGELOG.md +5 -0
- package/.claude/skills/cc-dev/PLAYBOOK.md +6 -3
- package/.claude/skills/cc-dev/SKILL.md +11 -8
- package/.claude/skills/cc-dev/scripts/ensure-work-branch.sh +117 -0
- package/.claude/skills/cc-dev/scripts/prepare-change-worktree.sh +135 -0
- package/.claude/skills/cc-dev/scripts/resolve-cc-devflow.sh +8 -26
- package/.claude/skills/cc-do/SKILL.md +1 -2
- package/.claude/skills/cc-investigate/CHANGELOG.md +15 -0
- package/.claude/skills/cc-investigate/SKILL.md +86 -9
- package/.claude/skills/cc-investigate/assets/TASKS_TEMPLATE.md +57 -1
- package/.claude/skills/cc-investigate/references/investigation-contract.md +1 -0
- package/.claude/skills/cc-plan/CHANGELOG.md +23 -0
- package/.claude/skills/cc-plan/PLAYBOOK.md +8 -5
- package/.claude/skills/cc-plan/SKILL.md +91 -20
- package/.claude/skills/cc-plan/assets/TASKS_TEMPLATE.md +59 -8
- package/.claude/skills/cc-plan/references/planning-contract.md +15 -9
- package/.claude/skills/cc-pr-review/CHANGELOG.md +9 -0
- package/.claude/skills/cc-pr-review/PLAYBOOK.md +3 -0
- package/.claude/skills/cc-pr-review/SKILL.md +30 -1
- package/.claude/skills/cc-review/CHANGELOG.md +10 -0
- package/.claude/skills/cc-review/SKILL.md +53 -9
- package/.claude/skills/cc-review/references/implementation-review-branch.md +1 -0
- package/.claude/skills/cc-review/references/plan-review-branch.md +1 -0
- package/.claude/skills/cc-review/references/review-methods.md +30 -0
- package/.claude/skills/cc-roadmap/CHANGELOG.md +6 -0
- package/.claude/skills/cc-roadmap/SKILL.md +1 -1
- package/.claude/skills/cc-roadmap/scripts/lib/roadmap-tracking/markdown.js +274 -69
- package/.claude/skills/cc-roadmap/scripts/lib/roadmap-tracking/schema.js +69 -15
- package/CHANGELOG.md +18 -0
- package/README.md +3 -4
- package/README.zh-CN.md +3 -4
- package/bin/cc-devflow-cli.js +8 -94
- package/docs/examples/example-bindings.json +8 -8
- package/docs/examples/full-design-blocked/BACKLOG.md +12 -1
- package/docs/examples/full-design-blocked/README.md +1 -1
- package/docs/examples/full-design-blocked/ROADMAP.md +2 -2
- package/docs/examples/full-design-blocked/changes/REQ-002-bulk-invite-import/task.md +39 -5
- package/docs/examples/full-design-blocked/roadmap.json +7 -2
- package/docs/examples/local-handoff/BACKLOG.md +12 -1
- package/docs/examples/local-handoff/README.md +1 -1
- package/docs/examples/local-handoff/ROADMAP.md +2 -2
- package/docs/examples/local-handoff/changes/REQ-003-audit-log-export/task.md +39 -5
- package/docs/examples/local-handoff/roadmap.json +7 -2
- package/docs/examples/pdca-loop/BACKLOG.md +12 -1
- package/docs/examples/pdca-loop/README.md +1 -1
- package/docs/examples/pdca-loop/ROADMAP.md +2 -2
- package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/task.md +39 -5
- package/docs/examples/pdca-loop/roadmap.json +7 -2
- package/lib/skill-runtime/CLAUDE.md +1 -1
- package/lib/skill-runtime/__tests__/cli-bootstrap.integration.test.js +2 -1
- package/lib/skill-runtime/__tests__/config.test.js +7 -2
- package/lib/skill-runtime/config.js +38 -6
- package/lib/skill-runtime/index.js +1 -9
- package/package.json +1 -1
- package/lib/skill-runtime/errors.js +0 -39
- package/lib/skill-runtime/query-registry.js +0 -101
- package/lib/skill-runtime/query.js +0 -126
- package/lib/skill-runtime/trace.js +0 -22
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
## Required Outputs
|
|
25
25
|
|
|
26
26
|
- PR review packet
|
|
27
|
+
- ASCII PR Review Chain for each non-trivial finding
|
|
28
|
+
- Output-language check: ASCII connectors only; labels and finding text follow the PR/task/handoff language
|
|
27
29
|
- Covered lanes
|
|
28
30
|
- Findings triage
|
|
29
31
|
- Checks status
|
|
@@ -40,6 +42,7 @@ Each accepted finding should include:
|
|
|
40
42
|
- Why it matters:
|
|
41
43
|
- Evidence:
|
|
42
44
|
- Confidence:
|
|
45
|
+
- ASCII Branch Chain:
|
|
43
46
|
- Fix path:
|
|
44
47
|
```
|
|
45
48
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cc-pr-review
|
|
3
|
-
version: 1.1.
|
|
3
|
+
version: 1.1.3
|
|
4
4
|
description: Use in a separate session to review one remote GitHub PR before landing. It reports findings from PR truth and current diff without writing process files.
|
|
5
5
|
triggers:
|
|
6
6
|
- review 这个 PR
|
|
@@ -29,6 +29,7 @@ entry_gate:
|
|
|
29
29
|
exit_criteria:
|
|
30
30
|
- Review result is approved-for-landing, changes-requested, needs-clarification, or blocked.
|
|
31
31
|
- Findings cite concrete PR diff, command output, checks, local task facts, or missing evidence.
|
|
32
|
+
- Non-trivial findings include an ASCII Branch Chain that traces PR source, changed node, upstream contract, downstream landing risk, and route; tree connector characters stay ASCII while node text follows the configured output language.
|
|
32
33
|
- Required fixes route back to cc-dev or cc-do; clean PRs route to cc-pr-land.
|
|
33
34
|
- No local process file is created.
|
|
34
35
|
reroutes:
|
|
@@ -57,3 +58,31 @@ Build the review from:
|
|
|
57
58
|
- `task.md` and `handoff/pr-brief.md` when available
|
|
58
59
|
|
|
59
60
|
Output findings in the response or GitHub review only. Do not write local process files.
|
|
61
|
+
|
|
62
|
+
For each non-trivial finding, include:
|
|
63
|
+
|
|
64
|
+
Language rule: keep `|--`, `` `-- ``, `|`, spaces, and punctuation ASCII; write labels, explanations, findings, and evidence summaries in the PR/task/handoff output language, falling back to the current conversation language when unavailable. Use the Label table as the shared source for chain titles, node labels, and placeholder text.
|
|
65
|
+
|
|
66
|
+
Label table:
|
|
67
|
+
|
|
68
|
+
| Semantic slot | en | zh-CN |
|
|
69
|
+
| --- | --- | --- |
|
|
70
|
+
| prReviewChain | PR Review Chain | PR 审查链 |
|
|
71
|
+
| findingMarker | FINDING | 问题 |
|
|
72
|
+
| prSource | PR source | PR 来源 |
|
|
73
|
+
| changedNode | Changed node | 变更节点 |
|
|
74
|
+
| upstreamContract | upstream contract | 上游合同 |
|
|
75
|
+
| firstAffectedSeam | first affected seam | 首个受影响边界 |
|
|
76
|
+
| downstreamLandingRisk | Downstream landing risk | 下游合并风险 |
|
|
77
|
+
| route | Route | 路线 |
|
|
78
|
+
|
|
79
|
+
```text
|
|
80
|
+
<prReviewChain>
|
|
81
|
+
<findingMarker>: <severity + short name>
|
|
82
|
+
|-- <prSource>: <PR number / commit / diff hunk / check>
|
|
83
|
+
|-- <changedNode>: <file / behavior / artifact>
|
|
84
|
+
| |-- <upstreamContract>: <task / spec / prompt / provider / API>
|
|
85
|
+
| `-- <firstAffectedSeam>: <runtime / user / operator / package>
|
|
86
|
+
|-- <downstreamLandingRisk>: <merge / release / main parity / sibling work>
|
|
87
|
+
`-- <route>: <cc-dev / cc-do / cc-review / cc-pr-land / stop>
|
|
88
|
+
```
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# CC-Review Changelog
|
|
2
2
|
|
|
3
|
+
## 2.2.3 - 2026-05-17
|
|
4
|
+
|
|
5
|
+
- require ASCII Branch Chain labels, findings, and evidence summaries to follow the configured output language while keeping connectors ASCII
|
|
6
|
+
- replace hard-coded English Review Chain examples with an `en` / `zh-CN` label table and semantic slots
|
|
7
|
+
|
|
8
|
+
## 2.2.2 - 2026-05-17
|
|
9
|
+
|
|
10
|
+
- require ASCII Branch Chains for non-trivial plan, investigation, PR, implementation, and code-smell findings
|
|
11
|
+
- route plan and investigation review chains into `task.md` while keeping implementation and PR chains in the response or GitHub review instead of local process files
|
|
12
|
+
|
|
3
13
|
## 2.2.1 - 2026-05-14
|
|
4
14
|
|
|
5
15
|
- restore deep review method flow without restoring review process files
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cc-review
|
|
3
|
-
version: 2.2.
|
|
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.
|
|
114
|
-
7.
|
|
115
|
-
8.
|
|
114
|
+
6. Chain:对 plan / investigation / broad implementation / PR / smell finding 画 ASCII Branch Chain,向上追来源,向下追影响面。
|
|
115
|
+
7. Findings:每个 finding 必须有 evidence、impact、recommendation、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.
|
|
185
|
-
3.
|
|
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.
|
|
193
|
-
3.
|
|
194
|
-
4.
|
|
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
|