cc-devflow 4.5.12 → 4.5.14
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/SKILL.md +1 -1
- package/.claude/skills/cc-check/CHANGELOG.md +6 -0
- package/.claude/skills/cc-check/PLAYBOOK.md +18 -1
- package/.claude/skills/cc-check/SKILL.md +59 -2
- package/.claude/skills/cc-check/references/gate-contract.md +34 -0
- package/.claude/skills/cc-check/references/review-contract.md +11 -0
- package/.claude/skills/cc-do/CHANGELOG.md +6 -0
- package/.claude/skills/cc-do/PLAYBOOK.md +23 -6
- package/.claude/skills/cc-do/SKILL.md +19 -2
- package/.claude/skills/cc-do/references/execution-recovery.md +15 -3
- package/.claude/skills/cc-investigate/CHANGELOG.md +6 -0
- package/.claude/skills/cc-investigate/PLAYBOOK.md +24 -0
- package/.claude/skills/cc-investigate/SKILL.md +38 -2
- package/.claude/skills/cc-investigate/assets/TASKS_TEMPLATE.md +67 -0
- package/.claude/skills/cc-investigate/references/investigation-contract.md +32 -0
- package/.claude/skills/cc-plan/CHANGELOG.md +6 -0
- package/.claude/skills/cc-plan/PLAYBOOK.md +18 -1
- package/.claude/skills/cc-plan/SKILL.md +67 -7
- package/.claude/skills/cc-plan/assets/TASKS_TEMPLATE.md +48 -0
- package/.claude/skills/cc-plan/references/planning-contract.md +23 -4
- package/.claude/skills/cc-review/CHANGELOG.md +12 -0
- package/.claude/skills/cc-review/PLAYBOOK.md +10 -4
- package/.claude/skills/cc-review/SKILL.md +82 -14
- package/.claude/skills/cc-review/references/implementation-review-branch.md +107 -7
- package/.claude/skills/cc-review/references/plan-review-branch.md +109 -4
- package/.claude/skills/cc-review/references/review-methods.md +162 -9
- package/.claude/skills/cc-spec-init/PLAYBOOK.md +1 -1
- package/.claude/skills/cc-spec-init/SKILL.md +1 -1
- package/CHANGELOG.md +18 -0
- package/README.md +17 -18
- package/README.zh-CN.md +16 -17
- package/docs/examples/example-bindings.json +5 -5
- package/docs/examples/full-design-blocked/README.md +1 -1
- package/docs/examples/full-design-blocked/changes/REQ-002-bulk-invite-import/task.md +1 -1
- package/docs/examples/local-handoff/README.md +1 -1
- package/docs/examples/local-handoff/changes/REQ-003-audit-log-export/task.md +1 -1
- package/docs/examples/pdca-loop/README.md +1 -1
- package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/task.md +1 -1
- package/docs/guides/artifact-contract.md +1 -1
- package/docs/guides/getting-started.md +3 -3
- package/docs/guides/getting-started.zh-CN.md +3 -3
- package/docs/guides/minimize-artifacts.md +1 -7
- package/package.json +1 -1
|
@@ -1,13 +1,166 @@
|
|
|
1
1
|
# Review Methods
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Use this reference for every `cc-review` run. It defines the method library. Load branch-specific references for concrete workflow steps.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
- test-quality review
|
|
7
|
-
- security review
|
|
8
|
-
- performance review
|
|
9
|
-
- API contract review
|
|
10
|
-
- UI/browser review
|
|
11
|
-
- documentation/PR body review
|
|
5
|
+
## Method Selection
|
|
12
6
|
|
|
13
|
-
|
|
7
|
+
Pick every method needed by the current risk. This is a routing map, not a finding cap:
|
|
8
|
+
|
|
9
|
+
| Risk | Method |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| unclear goal | goal tree |
|
|
12
|
+
| repeated symptom | current reality tree |
|
|
13
|
+
| hidden tradeoff | conflict diagram |
|
|
14
|
+
| uncertain fix impact | future reality tree |
|
|
15
|
+
| implementation complexity | logic tree and smell scan |
|
|
16
|
+
| UI/runtime mismatch | E2E/plugin verification |
|
|
17
|
+
| code quality or simplification risk | cc-simplify reference plus smell scan |
|
|
18
|
+
| broad implementation diff | risk-lane review swarm profile |
|
|
19
|
+
|
|
20
|
+
Selected methods stay in scratch reasoning and final response/task updates. Do not write process files.
|
|
21
|
+
|
|
22
|
+
## Review Nodes
|
|
23
|
+
|
|
24
|
+
Before findings, mentally create ordered review nodes:
|
|
25
|
+
|
|
26
|
+
```text
|
|
27
|
+
R001 plan.strategy.outcome
|
|
28
|
+
target: task.md
|
|
29
|
+
method: goal tree
|
|
30
|
+
check: outcome and scope consistency
|
|
31
|
+
|
|
32
|
+
R101 implementation.contract.public-seam
|
|
33
|
+
target: changed code + tests
|
|
34
|
+
method: contract fidelity
|
|
35
|
+
check: public behavior matches task.md
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Node rules:
|
|
39
|
+
|
|
40
|
+
- one node reviews one coherent question, artifact, or changed surface
|
|
41
|
+
- every selected method creates at least one node
|
|
42
|
+
- every changed file or user-facing surface is assigned to a node or explicitly skipped
|
|
43
|
+
- every node ends as `checked`, `skipped`, or `blocked`
|
|
44
|
+
- no finding limit exists while nodes remain unchecked
|
|
45
|
+
- prior clean conclusions can be reused only when Git proves the target and dependencies did not change
|
|
46
|
+
|
|
47
|
+
## Risk-Lane Review Swarm Profile
|
|
48
|
+
|
|
49
|
+
Use this profile when a broad implementation diff, PR landing review, or mixed review benefits from independent context. The profile is a default decomposition, not a requirement to manufacture findings.
|
|
50
|
+
|
|
51
|
+
| Lane | Reviewer question |
|
|
52
|
+
| --- | --- |
|
|
53
|
+
| intent-regression | Does the diff match the intended behavior without extra behavior drift, broken edge cases, fallback loss, or caller/callee contract drift? |
|
|
54
|
+
| security-privacy | Did the diff weaken auth, validation, secret handling, sensitive data boundaries, defaults, or trust of external input? |
|
|
55
|
+
| performance-reliability | Did the diff add duplicate work, hot-path cost, missing cleanup, retry storms, ordering races, or brittle failure handling? |
|
|
56
|
+
| contracts-coverage | Did the diff miss API/schema/type/config/flag alignment, migration fallout, regression tests, logs, metrics, assertions, or error paths? |
|
|
57
|
+
|
|
58
|
+
Small diffs may use one combined reviewer that covers all lanes. Large or multi-surface diffs should assign separate reviewers for the highest-risk lanes when the host supports subagents.
|
|
59
|
+
|
|
60
|
+
## Aggregation
|
|
61
|
+
|
|
62
|
+
The main thread owns aggregation:
|
|
63
|
+
|
|
64
|
+
- merge duplicate findings under the clearest evidence
|
|
65
|
+
- reject style preferences, nits, and speculative concerns with no concrete impact
|
|
66
|
+
- downgrade low-confidence notes unless they point to critical impact
|
|
67
|
+
- convert intent-unclear claims into decision questions instead of findings
|
|
68
|
+
- order final findings by severity, confidence, and current-scope impact
|
|
69
|
+
|
|
70
|
+
Subagent output is evidence input, not verdict.
|
|
71
|
+
|
|
72
|
+
## Thinking Tools
|
|
73
|
+
|
|
74
|
+
### Goal Tree
|
|
75
|
+
|
|
76
|
+
Use when the plan has too many proposed actions and not enough outcome clarity.
|
|
77
|
+
|
|
78
|
+
```text
|
|
79
|
+
GOAL
|
|
80
|
+
├── necessary condition A
|
|
81
|
+
│ ├── measurable signal
|
|
82
|
+
│ └── blocked by
|
|
83
|
+
├── necessary condition B
|
|
84
|
+
└── NOT IN SCOPE
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Current Reality Tree
|
|
88
|
+
|
|
89
|
+
Use for bugs and recurring failures.
|
|
90
|
+
|
|
91
|
+
```text
|
|
92
|
+
SYMPTOM
|
|
93
|
+
├── direct cause
|
|
94
|
+
│ └── deeper cause
|
|
95
|
+
├── enabling condition
|
|
96
|
+
└── missing control
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Conflict Diagram
|
|
100
|
+
|
|
101
|
+
Use when two requirements appear incompatible.
|
|
102
|
+
|
|
103
|
+
```text
|
|
104
|
+
Objective
|
|
105
|
+
├── Need A -> Want X
|
|
106
|
+
└── Need B -> Want not-X
|
|
107
|
+
Assumption to break: ...
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Future Reality Tree
|
|
111
|
+
|
|
112
|
+
Use before recommending a non-trivial redesign.
|
|
113
|
+
|
|
114
|
+
```text
|
|
115
|
+
CHANGE
|
|
116
|
+
├── desired effect
|
|
117
|
+
├── possible negative branch
|
|
118
|
+
│ └── prevention
|
|
119
|
+
└── verification signal
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Logic Tree
|
|
123
|
+
|
|
124
|
+
Use for implementation reviews.
|
|
125
|
+
|
|
126
|
+
```text
|
|
127
|
+
Entry point
|
|
128
|
+
├── path A
|
|
129
|
+
│ ├── happy
|
|
130
|
+
│ ├── empty
|
|
131
|
+
│ └── error
|
|
132
|
+
└── path B
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## Code Smell Taxonomy
|
|
136
|
+
|
|
137
|
+
Only report smells inside the current requirement blast radius or smells made worse by the current work.
|
|
138
|
+
|
|
139
|
+
| Smell | Review question | Preferred fix shape |
|
|
140
|
+
| --- | --- | --- |
|
|
141
|
+
| rigidity | Does a small change force unrelated edits? | move decision to one owner |
|
|
142
|
+
| duplication | Is the same logic repeated with small variations? | reuse existing helper or make one narrow helper |
|
|
143
|
+
| cycle | Do modules know each other's internals? | invert dependency or extract boundary |
|
|
144
|
+
| fragility | Can one change break unrelated behavior? | isolate side effects and add focused tests |
|
|
145
|
+
| obscurity | Is intent hidden behind clever names or control flow? | rename, split, or make data shape explicit |
|
|
146
|
+
| data-clump | Do fields always travel together? | group them into one object/value |
|
|
147
|
+
| unnecessary-complexity | Is abstraction solving a hypothetical future? | delete seam or collapse to direct code |
|
|
148
|
+
|
|
149
|
+
## Severity
|
|
150
|
+
|
|
151
|
+
- `critical`: ships wrong behavior, data/security risk, silent failure, broken root cause, or impossible verification.
|
|
152
|
+
- `important`: likely maintenance, test, UX, DX, performance, or operability problem in current scope.
|
|
153
|
+
- `advisory`: good improvement but not required for this change.
|
|
154
|
+
|
|
155
|
+
## Confidence
|
|
156
|
+
|
|
157
|
+
- `9-10`: directly verified in code, artifact, command output, UI run, or log.
|
|
158
|
+
- `7-8`: strong evidence from nearby patterns and diff.
|
|
159
|
+
- `5-6`: plausible but needs confirmation; mark as verify-first.
|
|
160
|
+
- `<5`: do not put in main findings unless critical impact.
|
|
161
|
+
|
|
162
|
+
## Decision Questions
|
|
163
|
+
|
|
164
|
+
Ask only when a finding requires user judgment. Do not stop the whole review at the first decision unless that answer blocks the next review node.
|
|
165
|
+
|
|
166
|
+
Plan decisions are written to `task.md`. Implementation repair choices stay in the response.
|
|
@@ -14,6 +14,6 @@ Specs record current capability truth. Roadmap records future work. Git records
|
|
|
14
14
|
|
|
15
15
|
## Do Not
|
|
16
16
|
|
|
17
|
-
- Do not create change-scoped
|
|
17
|
+
- Do not create extra change-scoped files.
|
|
18
18
|
- Do not store workflow state in specs.
|
|
19
19
|
- Do not turn one requirement's implementation detail into capability truth.
|
|
@@ -28,7 +28,7 @@ Allowed outputs:
|
|
|
28
28
|
- `devflow/specs/INDEX.md`
|
|
29
29
|
- `devflow/specs/capabilities/<capability>.md`
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
Changes link to specs through `task.md`, roadmap text, PR text, and Git commits.
|
|
32
32
|
|
|
33
33
|
## Use This Skill When
|
|
34
34
|
|
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [4.5.14] - 2026-05-14
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- Removed legacy process JSON and report-card assumptions from the public workflow contracts.
|
|
17
|
+
- Restored the artifact-light `cc-plan` planning dialogue flow inside `task.md` contracts.
|
|
18
|
+
- Restored `cc-investigate` root-cause proof, hypothesis, reroute, and feedback-loop guidance without bringing back separate analysis artifacts.
|
|
19
|
+
- Restored `cc-do` TDD execution discipline and `cc-check` fresh-evidence verification flow while keeping durable truth limited to `task.md`, Git, PR briefs, and postmortems.
|
|
20
|
+
- Restored `cc-review` node-by-node review, risk lanes, finding aggregation, and decision-question flow while routing plan findings into `task.md` and implementation findings through user-selected repair options.
|
|
21
|
+
|
|
22
|
+
## [4.5.13] - 2026-05-13
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- Updated `cc-review` so plan and investigation reviews write findings directly into `task.md`.
|
|
27
|
+
- Updated implementation reviews to return repair options and wait for the user's selected fix before editing code.
|
|
28
|
+
- Removed all other local `cc-review` output surfaces.
|
|
29
|
+
|
|
12
30
|
## [4.5.12] - 2026-05-13
|
|
13
31
|
|
|
14
32
|
### Changed
|
package/README.md
CHANGED
|
@@ -95,15 +95,15 @@ flowchart TD
|
|
|
95
95
|
| --- | --- | --- |
|
|
96
96
|
| `cc-roadmap` | You need product direction, staged scope, or backlog order | `devflow/roadmap.json`, `devflow/ROADMAP.md`, deprecated `devflow/BACKLOG.md` |
|
|
97
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 |
|
|
99
|
-
| `cc-plan` | A feature or change needs scope, design, and task freezing | `
|
|
100
|
-
| `cc-investigate` | A bug needs symptom, reproduction, root cause, and repair boundary | `
|
|
101
|
-
| `cc-do` | Planned or investigated work needs implementation | code, tests, task
|
|
102
|
-
| `cc-review` | Complex plans, investigations, or diffs need optional deep
|
|
98
|
+
| `cc-dev` | A selected objective should be driven in the current worktree to a remote PR | `task.md`, Git commits, and a PR or handoff |
|
|
99
|
+
| `cc-plan` | A feature or change needs scope, design, and task freezing | `task.md#Contract Summary` |
|
|
100
|
+
| `cc-investigate` | A bug needs symptom, reproduction, root cause, and repair boundary | `task.md#Root Cause Contract` |
|
|
101
|
+
| `cc-do` | Planned or investigated work needs implementation | code, tests, `task.md` status, Git commit |
|
|
102
|
+
| `cc-review` | Complex plans, investigations, or diffs need optional deep review before implementation or verification | plan findings in `task.md`; implementation findings and repair options in the response |
|
|
103
103
|
| `cc-pr-review` | A remote PR needs an independent review session before landing | PR review packet, findings, and landing verdict |
|
|
104
104
|
| `cc-pr-land` | Reviewed PRs need rebase-first landing into main with parity proof | integrated main plus local/remote parity evidence |
|
|
105
|
-
| `cc-check` | Work needs fresh verification evidence |
|
|
106
|
-
| `cc-act` | Verified work needs a PR, local handoff,
|
|
105
|
+
| `cc-check` | Work needs fresh verification evidence | pass/fail/blocked response and Git commit |
|
|
106
|
+
| `cc-act` | Verified work needs a PR, local handoff, or closeout | optional `handoff/pr-brief.md`, Git/PR truth, or incident postmortem |
|
|
107
107
|
|
|
108
108
|
Maintenance skills are shipped with the pack:
|
|
109
109
|
|
|
@@ -114,19 +114,19 @@ Maintenance skills are shipped with the pack:
|
|
|
114
114
|
|
|
115
115
|
`cc-roadmap` now records planning posture, evidence maturity, canonical project language, and durable decision context before recommending a route. That keeps idea-stage, active-user, paying-customer, infrastructure, and recovery work from being forced through the same questions, and prevents roadmap items from inventing a second vocabulary. Developer-facing or operator-facing roadmap items also carry target user, time to first value, magic moment, adoption bottleneck, and domain handoff into `cc-plan`.
|
|
116
116
|
|
|
117
|
-
Canonical language and durable decisions stay inside cc-devflow-native sources: `devflow/specs/`, `devflow/roadmap.json`, `devflow/ROADMAP.md`, `
|
|
117
|
+
Canonical language and durable decisions stay inside cc-devflow-native sources: `devflow/specs/`, `devflow/roadmap.json`, `devflow/ROADMAP.md`, `task.md`, Git history, and PR truth. Legacy planning artifacts are readable fallback inputs only.
|
|
118
118
|
|
|
119
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.
|
|
120
120
|
|
|
121
|
-
Every post-planning stage can start from `cc-devflow query workflow-context --change <id> --change-key <key> --data-only --no-trace --compact`. Treat the result as a context index, not semantic compression: it routes the next stage
|
|
121
|
+
Every post-planning stage can start from `cc-devflow query workflow-context --change <id> --change-key <key> --data-only --no-trace --compact`. Treat the result as a context index, not semantic compression: it routes the next stage from `task.md`, Git history, and PR/handoff truth. Source artifacts still decide disputed facts. Use `npm run benchmark:skills` to keep public skill entrypoints thin; deeper planning rules should live behind conditional references instead of default context.
|
|
122
122
|
|
|
123
|
-
`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.
|
|
123
|
+
`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. Plan and investigation review findings are written directly into `task.md`. Implementation review findings are returned in the response with repair options; the user chooses the repair path before code is edited. PR reviews stay in the response or GitHub review. No local review report, ledger, findings JSON, or other review output file is written.
|
|
124
124
|
|
|
125
125
|
## Verification And Ship Gates
|
|
126
126
|
|
|
127
127
|
`cc-check` now treats QA as a feedback-loop problem, not only a green-test problem. Bugfix and behavior work records the loop used to prove reality, expected versus actual behavior, reproduction steps, test boundary quality, and architecture follow-ups when no clean public test seam exists.
|
|
128
128
|
|
|
129
|
-
`cc-act` carries that evidence into PR briefs, handoffs,
|
|
129
|
+
`cc-act` carries that evidence into PR briefs, handoffs, or incident postmortems when needed. It checks source roadmap progress during closeout, updates `devflow/roadmap.json`, and regenerates `devflow/ROADMAP.md` / `devflow/BACKLOG.md` when verified reality changes. Follow-ups must be durable behavior briefs with current behavior, desired behavior, key interfaces, acceptance criteria, and explicit out-of-scope notes before they are written back to roadmap or backlog.
|
|
130
130
|
|
|
131
131
|
## Installation Modes
|
|
132
132
|
|
|
@@ -244,19 +244,18 @@ The currently distributed skill folders are:
|
|
|
244
244
|
|
|
245
245
|
- `devflow/specs/` stores durable capability truth: `INDEX.md` plus `capabilities/*.md`.
|
|
246
246
|
- New change directories use `REQ-<number>-<description>` for requirements or `FIX-<number>-<description>` for bug fixes. `REQ` and `FIX` numbers advance independently, so the same number may exist in both prefixes. Parallel worktrees may also create repeated numbers; the full change key must use a specific description to distinguish the work.
|
|
247
|
-
- `devflow/changes/<change>/` stores durable change truth
|
|
248
|
-
- New changes default to one human-authored Markdown artifact: `
|
|
249
|
-
-
|
|
250
|
-
- Use `cc-devflow
|
|
247
|
+
- `devflow/changes/<change>/` stores durable change truth in `task.md`, optional `handoff/pr-brief.md`, and Git commits. Real recurring failures may also write incident postmortems under `devflow/postmortems/`.
|
|
248
|
+
- New changes default to one human-authored Markdown artifact: `task.md`. Feature plans put the frozen design in `## Contract Summary`; bug investigations put root-cause truth in `## Root Cause Contract`. Legacy planning and review artifacts are readable fallback inputs only.
|
|
249
|
+
- Workflow state is Git-owned: keep `task.md` current, commit each completed stage/environment, and do not create extra process files.
|
|
250
|
+
- Use `cc-devflow query workflow-context`, `npm run verify:examples`, and `npm run benchmark:skills` to keep workflow truth and skill entrypoints small and measurable.
|
|
251
251
|
- `devflow/workspaces/<change>/` stores ephemeral runtime scratch such as worker assignment, journals, prompts, and session logs.
|
|
252
252
|
- Regenerable files should not be persisted under `devflow/changes/`.
|
|
253
253
|
|
|
254
254
|
Artifact contract quick checks:
|
|
255
255
|
|
|
256
256
|
```bash
|
|
257
|
-
npx cc-devflow
|
|
258
|
-
npm run verify:
|
|
259
|
-
npm run benchmark:artifacts
|
|
257
|
+
npx cc-devflow query workflow-context --change REQ-001 --change-key REQ-001-copy-invite-link --data-only --no-trace --compact
|
|
258
|
+
npm run verify:examples
|
|
260
259
|
npm run benchmark:skills
|
|
261
260
|
```
|
|
262
261
|
|
package/README.zh-CN.md
CHANGED
|
@@ -95,15 +95,15 @@ flowchart TD
|
|
|
95
95
|
| --- | --- | --- |
|
|
96
96
|
| `cc-roadmap` | 需要产品方向、阶段范围或 backlog 顺序 | `devflow/roadmap.json`、`devflow/ROADMAP.md`、deprecated `devflow/BACKLOG.md` |
|
|
97
97
|
| `cc-next` | 需要从 roadmap、未归档本地 change 和 issue truth 里选下一个 ready 目标 | 交给 `cc-dev` 的 Goal Packet |
|
|
98
|
-
| `cc-dev` | 已选目标要在当前 worktree 内自动推进到远程 PR |
|
|
99
|
-
| `cc-plan` | 新功能或变更需要澄清范围、设计方案、冻结任务 | `
|
|
100
|
-
| `cc-investigate` | Bug 需要症状、复现、根因和修复边界 | `
|
|
101
|
-
| `cc-do` | 已计划或已调查的任务需要实现 |
|
|
102
|
-
| `cc-review` | 复杂方案、调查根因或 diff
|
|
98
|
+
| `cc-dev` | 已选目标要在当前 worktree 内自动推进到远程 PR | `task.md`、Git commit、PR 或 handoff |
|
|
99
|
+
| `cc-plan` | 新功能或变更需要澄清范围、设计方案、冻结任务 | `task.md#Contract Summary` |
|
|
100
|
+
| `cc-investigate` | Bug 需要症状、复现、根因和修复边界 | `task.md#Root Cause Contract` |
|
|
101
|
+
| `cc-do` | 已计划或已调查的任务需要实现 | 代码、测试、`task.md` 状态、Git commit |
|
|
102
|
+
| `cc-review` | 复杂方案、调查根因或 diff 需要在实现前或验证前做可选深度 Review | 计划 finding 写入 `task.md`;执行 finding 和修复选项回到对话 |
|
|
103
103
|
| `cc-pr-review` | 远程 PR 需要单独会话做合并前 Review | PR review packet、findings 和 landing verdict |
|
|
104
104
|
| `cc-pr-land` | 已 Review PR 需要 rebase-first 合并到 main 并证明 parity | 已集成 main 和本地 / 远程一致性证据 |
|
|
105
|
-
| `cc-check` | 工作需要新鲜验证证据 |
|
|
106
|
-
| `cc-act` | 已验证工作需要 PR、本地 handoff
|
|
105
|
+
| `cc-check` | 工作需要新鲜验证证据 | pass/fail/blocked 回复和 Git commit |
|
|
106
|
+
| `cc-act` | 已验证工作需要 PR、本地 handoff 或 closeout | 可选 `handoff/pr-brief.md`、Git/PR 真相或 incident postmortem |
|
|
107
107
|
|
|
108
108
|
整包还包含两个维护类 Skill:
|
|
109
109
|
|
|
@@ -114,13 +114,13 @@ flowchart TD
|
|
|
114
114
|
|
|
115
115
|
`cc-roadmap` 现在会先记录 planning posture、evidence maturity、项目 canonical language 和持久决策上下文,再推荐路线。idea、已有用户、付费客户、infra、recovery 场景不会被套进同一组问题,也不会让 roadmap item 发明第二套词汇。面向开发者或操作者的 roadmap item 还会把目标用户、time to first value、magic moment、adoption bottleneck 和 domain handoff 交给 `cc-plan`。
|
|
116
116
|
|
|
117
|
-
Canonical language 和 durable decisions 只收敛到 cc-devflow 原生真相源:`devflow/specs/`、`devflow/roadmap.json`、`devflow/ROADMAP.md`、`
|
|
117
|
+
Canonical language 和 durable decisions 只收敛到 cc-devflow 原生真相源:`devflow/specs/`、`devflow/roadmap.json`、`devflow/ROADMAP.md`、`task.md`、Git history 和 PR truth。历史 planning artifacts 只作为可读 fallback 输入。
|
|
118
118
|
|
|
119
119
|
`cc-plan` 会在 `cc-do` 开始前冻结更多实现决策。非 trivial 计划需要比较 minimal viable 和 ideal architecture,full-design 需要包含 implementation decision horizon 和 error/rescue map;测试计划要记录测试框架证据、public test seam、spec-style test name、public verification path、behavior assertion、mock boundary、覆盖质量、强制 regression test、interface depth、Green minimality guard、refactor candidates 和 vertical tracer-bullet slices。交接前,`cc-plan` 和 `cc-investigate` 还会校准 source roadmap item,让 RM 状态、REQ/FIX 绑定、progress 和 spec diagnosis 不再漂移。
|
|
120
120
|
|
|
121
|
-
planning 之后的每个阶段都可以先运行 `cc-devflow query workflow-context --change <id> --change-key <key> --data-only --no-trace --compact`。把结果当成 context index
|
|
121
|
+
planning 之后的每个阶段都可以先运行 `cc-devflow query workflow-context --change <id> --change-key <key> --data-only --no-trace --compact`。把结果当成 context index,而不是语义压缩:它从 `task.md`、Git history 和 PR/handoff truth 路由下一阶段;有争议的事实仍由源 artifact 裁决。用 `npm run benchmark:skills` 保持 public skill 入口足够薄;深层规划规则应该放在条件 reference 后面,而不是默认上下文里。
|
|
122
122
|
|
|
123
|
-
`cc-review` 是可选的深度 Review,不替代 `cc-check`。它可以接在 `cc-plan` / `cc-investigate` 后审冻结的计划或根因合同,也可以接在 `cc-do`
|
|
123
|
+
`cc-review` 是可选的深度 Review,不替代 `cc-check`。它可以接在 `cc-plan` / `cc-investigate` 后审冻结的计划或根因合同,也可以接在 `cc-do` 后审实现。计划 / 调查 Review 的 finding 直接写进 `task.md`。执行 Review 的 finding 在当前回复里组织成修复选项,用户选择后才改代码。PR Review 只留在对话或 GitHub review 中。不写本地 review report、ledger、findings JSON 或其它 Review 产物文件。
|
|
124
124
|
|
|
125
125
|
## 验证与交付门禁
|
|
126
126
|
|
|
@@ -244,19 +244,18 @@ npx cc-devflow config doctor --cwd /path/to/your/project
|
|
|
244
244
|
|
|
245
245
|
- `devflow/specs/` 保存 durable capability truth:`INDEX.md` 和 `capabilities/*.md`。
|
|
246
246
|
- 新 change 目录使用 `REQ-<number>-<description>` 表示需求,使用 `FIX-<number>-<description>` 表示 Bug 修复。`REQ` 和 `FIX` 各自递增自己的编号,跨前缀同号允许共存。并行工作树也可能产生重复编号,必须用完整 change key 的描述区分业务内容。
|
|
247
|
-
- `devflow/changes/<change>/`
|
|
248
|
-
- 新 change 默认只有一个人工编写的 Markdown artifact:`
|
|
249
|
-
-
|
|
250
|
-
- 用 `cc-devflow
|
|
247
|
+
- `devflow/changes/<change>/` 的 durable change truth 只保留 `task.md`、可选 `handoff/pr-brief.md` 和 Git commits。真实复发故障可以在 `devflow/postmortems/` 写 incident postmortem。
|
|
248
|
+
- 新 change 默认只有一个人工编写的 Markdown artifact:`task.md`。功能计划把冻结设计写进 `## Contract Summary`;Bug 调查把根因真相写进 `## Root Cause Contract`。历史 planning / review artifacts 只作为可读 fallback 输入。
|
|
249
|
+
- 流程状态归 Git:保持 `task.md` 当前,每个完成阶段 / 执行环境提交 commit,不创建额外过程文件。
|
|
250
|
+
- 用 `cc-devflow query workflow-context`、`npm run verify:examples` 和 `npm run benchmark:skills` 保持 workflow truth 与 skill 入口小而可测。
|
|
251
251
|
- `devflow/workspaces/<change>/` 保存 ephemeral runtime scratch,例如 worker assignment、journal、prompt 和 session log。
|
|
252
252
|
- 能从 durable truth 再生成的文件,不应该持久化到 `devflow/changes/`。
|
|
253
253
|
|
|
254
254
|
Artifact contract 快速检查:
|
|
255
255
|
|
|
256
256
|
```bash
|
|
257
|
-
npx cc-devflow
|
|
258
|
-
npm run verify:
|
|
259
|
-
npm run benchmark:artifacts
|
|
257
|
+
npx cc-devflow query workflow-context --change REQ-001 --change-key REQ-001-copy-invite-link --data-only --no-trace --compact
|
|
258
|
+
npm run verify:examples
|
|
260
259
|
npm run benchmark:skills
|
|
261
260
|
```
|
|
262
261
|
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
"cc-roadmap": "5.3.0",
|
|
5
5
|
"cc-next": "1.1.1",
|
|
6
6
|
"cc-dev": "1.1.2",
|
|
7
|
-
"cc-plan": "3.10.
|
|
8
|
-
"cc-investigate": "1.6.
|
|
9
|
-
"cc-do": "1.7.
|
|
10
|
-
"cc-review": "2.1
|
|
7
|
+
"cc-plan": "3.10.2",
|
|
8
|
+
"cc-investigate": "1.6.2",
|
|
9
|
+
"cc-do": "1.7.2",
|
|
10
|
+
"cc-review": "2.2.1",
|
|
11
11
|
"cc-pr-review": "1.1.1",
|
|
12
12
|
"cc-pr-land": "1.1.0",
|
|
13
|
-
"cc-check": "1.12.
|
|
13
|
+
"cc-check": "1.12.2",
|
|
14
14
|
"cc-act": "1.9.1",
|
|
15
15
|
"cc-spec-init": "1.2.0"
|
|
16
16
|
},
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
- Example version: `1.0.0`
|
|
6
6
|
- Last reviewed: `2026-04-17`
|
|
7
|
-
- Bound skills: `cc-roadmap@5.3.0`, `cc-plan@3.10.
|
|
7
|
+
- Bound skills: `cc-roadmap@5.3.0`, `cc-plan@3.10.2`, `cc-do@1.7.2`, `cc-check@1.12.2`
|
|
8
8
|
|
|
9
9
|
This example shows a requirement that **looked executable**, but `cc-check` correctly stopped it and sent it back to `cc-plan`.
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
- Example version: `1.0.0`
|
|
6
6
|
- Last reviewed: `2026-04-17`
|
|
7
|
-
- Bound skills: `cc-roadmap@5.3.0`, `cc-plan@3.10.
|
|
7
|
+
- Bound skills: `cc-roadmap@5.3.0`, `cc-plan@3.10.2`, `cc-do@1.7.2`, `cc-check@1.12.2`, `cc-act@1.9.1`
|
|
8
8
|
|
|
9
9
|
This example shows verified work that is **ready to move forward**, but `cc-act` still chooses `local-handoff`.
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
- Example version: `1.0.0`
|
|
6
6
|
- Last reviewed: `2026-04-17`
|
|
7
|
-
- Bound skills: `cc-roadmap@5.3.0`, `cc-plan@3.10.
|
|
7
|
+
- Bound skills: `cc-roadmap@5.3.0`, `cc-plan@3.10.2`, `cc-do@1.7.2`, `cc-check@1.12.2`, `cc-act@1.9.1`
|
|
8
8
|
|
|
9
9
|
This folder shows one minimal but complete `cc-roadmap -> cc-plan -> cc-do -> cc-check -> cc-act` loop.
|
|
10
10
|
|
|
@@ -15,4 +15,4 @@ Git records process history. Commit after each completed PDCA or IDCA environmen
|
|
|
15
15
|
|
|
16
16
|
## Retired Surface
|
|
17
17
|
|
|
18
|
-
Do not create process
|
|
18
|
+
Do not create process files beyond the durable files above.
|
|
@@ -89,7 +89,7 @@ Typical outputs:
|
|
|
89
89
|
- `cc-spec-init` writes `devflow/specs/INDEX.md` and capability specs
|
|
90
90
|
- `cc-plan` writes `task.md#Contract Summary`
|
|
91
91
|
- `cc-investigate` writes `task.md#Root Cause Contract`
|
|
92
|
-
- `cc-review`
|
|
92
|
+
- `cc-review` writes plan/investigation findings into `task.md`; implementation findings stay in the response until the user chooses a repair option
|
|
93
93
|
- `cc-check` reports verification facts in the response, PR brief, or Git commit
|
|
94
94
|
- `cc-act` writes exactly one final PR file, `handoff/pr-brief.md`, or incident postmortem files when a real incident needs a corpse report
|
|
95
95
|
|
|
@@ -98,8 +98,8 @@ Change truth lives in `devflow/changes/<change>/`.
|
|
|
98
98
|
|
|
99
99
|
- Keep `INDEX.md` plus capability markdown under `devflow/specs/`.
|
|
100
100
|
- Name new change directories as `REQ-<number>-<description>` for requirements or `FIX-<number>-<description>` for bug fixes. `REQ` and `FIX` advance as separate local sequences, so cross-prefix duplicates are valid. Parallel worktrees may still repeat numbers; the full change key, especially the description, distinguishes the work. Old lowercase directories are compatibility reads only.
|
|
101
|
-
- Keep `task.md`, optional `handoff/pr-brief.md`, and
|
|
102
|
-
- Workflow state is Git-owned: keep `task.md`, commit each completed stage, and do not create process
|
|
101
|
+
- Keep `task.md`, optional `handoff/pr-brief.md`, and Git commits as change truth. Real recurring failures may also write incident postmortems under `devflow/postmortems/`. Do not generate extra process files.
|
|
102
|
+
- Workflow state is Git-owned: keep `task.md`, commit each completed stage, and do not create extra process files.
|
|
103
103
|
- Legacy `planning/design.md`, `planning/analysis.md`, and `cc-review-*.md` are readable fallback inputs for older changes, not new default writes.
|
|
104
104
|
- Worker prompts, journals, assignments, and session logs belong under `devflow/workspaces/<change>/` as ephemeral scratch.
|
|
105
105
|
|
|
@@ -89,7 +89,7 @@ find .codex/skills -mindepth 2 -maxdepth 2 -name SKILL.md | sort
|
|
|
89
89
|
- `cc-spec-init` 产出 `devflow/specs/INDEX.md` 和 capability spec
|
|
90
90
|
- `cc-plan` 产出 `task.md#Contract Summary`
|
|
91
91
|
- `cc-investigate` 产出 `task.md#Root Cause Contract`
|
|
92
|
-
- `cc-review`
|
|
92
|
+
- `cc-review` 把计划 / 调查 finding 写入 `task.md`;执行 finding 留在回复里,等用户选择修复方案后再改代码
|
|
93
93
|
- `cc-check` 在当前回复、PR 文件或 Git commit 里记录验证事实
|
|
94
94
|
- `cc-act` 只产出最终 PR 文件 `handoff/pr-brief.md`;真实事故需要尸检时才产出 incident postmortem 文件
|
|
95
95
|
|
|
@@ -97,8 +97,8 @@ durable truth 分两层:
|
|
|
97
97
|
|
|
98
98
|
- `devflow/specs/`:capability 真相,保留 `INDEX.md` 与 `capabilities/*.md`
|
|
99
99
|
- 新 change 目录必须命名为 `REQ-<number>-<description>`(需求)或 `FIX-<number>-<description>`(修复);`REQ` 和 `FIX` 分别维护自己的递增编号,跨前缀同号不是冲突;并行工作树造成重复编号时,完整 change key 的描述负责区分业务内容,旧小写目录只作为历史兼容读取。
|
|
100
|
-
- `devflow/changes/<change>/`:变更真相,只保留 `task.md`、可选 `handoff/pr-brief.md
|
|
101
|
-
- 流程状态归 Git:保留 `task.md`,每个完成阶段提交 commit
|
|
100
|
+
- `devflow/changes/<change>/`:变更真相,只保留 `task.md`、可选 `handoff/pr-brief.md` 和 Git commit;真实复发事故可在 `devflow/postmortems/` 写尸检文件。不要生成额外过程文件。
|
|
101
|
+
- 流程状态归 Git:保留 `task.md`,每个完成阶段提交 commit,不创建额外过程文件。
|
|
102
102
|
- 历史 `planning/design.md`、`planning/analysis.md` 和 `cc-review-*.md` 是旧 change 的可读 fallback,不再是新默认写入。
|
|
103
103
|
- worker prompt、journal、assignment、session log 统一放到 `devflow/workspaces/<change>/`,作为 ephemeral scratch。
|
|
104
104
|
|
|
@@ -10,13 +10,7 @@ The workflow is intentionally Git-first.
|
|
|
10
10
|
|
|
11
11
|
## Do Not Keep
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
- review ledgers or finding files
|
|
15
|
-
- report cards
|
|
16
|
-
- status or resume files
|
|
17
|
-
- release notes
|
|
18
|
-
- principles files
|
|
19
|
-
- task context or checkpoint files
|
|
13
|
+
Do not generate process files beyond the durable files above.
|
|
20
14
|
|
|
21
15
|
## Commit Rule
|
|
22
16
|
|