cc-codeconductor 1.5.0 → 1.6.0
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/README.md +24 -11
- package/dist/core/runner/runner-target.d.ts +4 -4
- package/dist/domain/product/entities.d.ts +1 -1
- package/dist/index.js +1714 -795
- package/dist/library.js +62 -7
- package/dist/validation/schemas.d.ts +210 -43
- package/docs/generated/cli.md +8 -0
- package/package.json +1 -1
- package/presets/agy/skills/openspec/SKILL.md +39 -11
- package/presets/agy/workflows/cc-api-contract.md +4 -5
- package/presets/agy/workflows/cc-backlog.md +4 -5
- package/presets/agy/workflows/cc-clarify.md +4 -5
- package/presets/agy/workflows/cc-council.md +6 -7
- package/presets/agy/workflows/cc-db-migration.md +4 -5
- package/presets/agy/workflows/cc-explore.md +4 -5
- package/presets/agy/workflows/cc-feature.md +4 -5
- package/presets/agy/workflows/cc-fix.md +4 -5
- package/presets/agy/workflows/cc-handoff.md +8 -5
- package/presets/agy/workflows/cc-iterative.md +4 -5
- package/presets/agy/workflows/cc-odd.md +4 -3
- package/presets/agy/workflows/cc-openspec.md +5 -6
- package/presets/agy/workflows/cc-pagespeed.md +4 -5
- package/presets/agy/workflows/cc-prototype.md +4 -5
- package/presets/agy/workflows/cc-refactor.md +4 -5
- package/presets/agy/workflows/cc-review.md +4 -5
- package/presets/agy/workflows/cc-scorecard.md +4 -5
- package/presets/agy/workflows/cc-security.md +4 -5
- package/presets/agy/workflows/cc-spec-mutation.md +4 -5
- package/presets/agy/workflows/cc-tdd-cycle.md +4 -5
- package/presets/agy/workflows/cc-test-plan.md +4 -5
- package/presets/agy/workflows/cc-triage.md +4 -5
- package/presets/claude/CLAUDE.md +6 -5
- package/presets/claude/commands/cc/api-contract.md +4 -5
- package/presets/claude/commands/cc/backlog.md +4 -5
- package/presets/claude/commands/cc/clarify.md +4 -5
- package/presets/claude/commands/cc/council.md +6 -7
- package/presets/claude/commands/cc/db-migration.md +4 -5
- package/presets/claude/commands/cc/explore.md +4 -5
- package/presets/claude/commands/cc/feature.md +4 -5
- package/presets/claude/commands/cc/fix.md +4 -5
- package/presets/claude/commands/cc/handoff.md +8 -5
- package/presets/claude/commands/cc/iterative.md +4 -5
- package/presets/claude/commands/cc/odd.md +4 -3
- package/presets/claude/commands/cc/openspec.md +43 -8
- package/presets/claude/commands/cc/pagespeed.md +4 -5
- package/presets/claude/commands/cc/prototype.md +4 -5
- package/presets/claude/commands/cc/refactor.md +4 -5
- package/presets/claude/commands/cc/review.md +4 -5
- package/presets/claude/commands/cc/scorecard.md +4 -5
- package/presets/claude/commands/cc/security.md +4 -5
- package/presets/claude/commands/cc/spec-mutation.md +4 -5
- package/presets/claude/commands/cc/tdd-cycle.md +4 -5
- package/presets/claude/commands/cc/test-plan.md +4 -5
- package/presets/claude/commands/cc/triage.md +4 -5
- package/presets/claude/settings.json +32 -78
- package/presets/claude/skills/openspec/SKILL.md +39 -11
- package/presets/codex/config.toml +2 -0
- package/presets/codex/skills/cc-api-contract/SKILL.md +4 -5
- package/presets/codex/skills/cc-backlog/SKILL.md +4 -5
- package/presets/codex/skills/cc-clarify/SKILL.md +4 -5
- package/presets/codex/skills/cc-council/SKILL.md +12 -7
- package/presets/codex/skills/cc-db-migration/SKILL.md +4 -5
- package/presets/codex/skills/cc-explore/SKILL.md +4 -5
- package/presets/codex/skills/cc-feature/SKILL.md +4 -5
- package/presets/codex/skills/cc-fix/SKILL.md +4 -5
- package/presets/codex/skills/cc-handoff/SKILL.md +8 -5
- package/presets/codex/skills/cc-iterative/SKILL.md +4 -5
- package/presets/codex/skills/cc-odd/SKILL.md +4 -3
- package/presets/codex/skills/cc-openspec/SKILL.md +31 -7
- package/presets/codex/skills/cc-pagespeed/SKILL.md +4 -5
- package/presets/codex/skills/cc-prototype/SKILL.md +4 -5
- package/presets/codex/skills/cc-refactor/SKILL.md +4 -5
- package/presets/codex/skills/cc-review/SKILL.md +4 -5
- package/presets/codex/skills/cc-scorecard/SKILL.md +4 -5
- package/presets/codex/skills/cc-security/SKILL.md +4 -5
- package/presets/codex/skills/cc-spec-mutation/SKILL.md +4 -5
- package/presets/codex/skills/cc-tdd-cycle/SKILL.md +4 -5
- package/presets/codex/skills/cc-test-plan/SKILL.md +4 -5
- package/presets/codex/skills/cc-triage/SKILL.md +4 -5
- package/presets/codex/skills/openspec/SKILL.md +39 -11
- package/presets/cursor/commands/cc/api-contract.md +4 -5
- package/presets/cursor/commands/cc/backlog.md +4 -5
- package/presets/cursor/commands/cc/clarify.md +4 -5
- package/presets/cursor/commands/cc/council.md +6 -7
- package/presets/cursor/commands/cc/db-migration.md +4 -5
- package/presets/cursor/commands/cc/explore.md +4 -5
- package/presets/cursor/commands/cc/feature.md +4 -5
- package/presets/cursor/commands/cc/fix.md +4 -5
- package/presets/cursor/commands/cc/handoff.md +8 -5
- package/presets/cursor/commands/cc/iterative.md +4 -5
- package/presets/cursor/commands/cc/odd.md +4 -3
- package/presets/cursor/commands/cc/openspec.md +25 -7
- package/presets/cursor/commands/cc/pagespeed.md +4 -5
- package/presets/cursor/commands/cc/prototype.md +4 -5
- package/presets/cursor/commands/cc/refactor.md +4 -5
- package/presets/cursor/commands/cc/review.md +4 -5
- package/presets/cursor/commands/cc/scorecard.md +4 -5
- package/presets/cursor/commands/cc/security.md +4 -5
- package/presets/cursor/commands/cc/spec-mutation.md +4 -5
- package/presets/cursor/commands/cc/tdd-cycle.md +4 -5
- package/presets/cursor/commands/cc/test-plan.md +4 -5
- package/presets/cursor/commands/cc/triage.md +4 -5
- package/presets/cursor/skills/openspec/SKILL.md +39 -11
- package/presets/gemini/commands/cc/api-contract.toml +4 -5
- package/presets/gemini/commands/cc/backlog.toml +4 -5
- package/presets/gemini/commands/cc/clarify.toml +4 -5
- package/presets/gemini/commands/cc/council.toml +6 -7
- package/presets/gemini/commands/cc/db-migration.toml +4 -5
- package/presets/gemini/commands/cc/explore.toml +4 -5
- package/presets/gemini/commands/cc/feature.toml +4 -5
- package/presets/gemini/commands/cc/fix.toml +4 -5
- package/presets/gemini/commands/cc/handoff.toml +8 -5
- package/presets/gemini/commands/cc/iterative.toml +4 -5
- package/presets/gemini/commands/cc/odd.toml +4 -3
- package/presets/gemini/commands/cc/openspec.toml +25 -7
- package/presets/gemini/commands/cc/pagespeed.toml +4 -5
- package/presets/gemini/commands/cc/prototype.toml +4 -5
- package/presets/gemini/commands/cc/refactor.toml +4 -5
- package/presets/gemini/commands/cc/review.toml +4 -5
- package/presets/gemini/commands/cc/scorecard.toml +4 -5
- package/presets/gemini/commands/cc/security.toml +4 -5
- package/presets/gemini/commands/cc/spec-mutation.toml +4 -5
- package/presets/gemini/commands/cc/tdd-cycle.toml +4 -5
- package/presets/gemini/commands/cc/test-plan.toml +4 -5
- package/presets/gemini/commands/cc/triage.toml +4 -5
- package/presets/muse/AGENTS.md +46 -0
- package/presets/muse/hooks.json +30 -0
- package/presets/opencode/commands/cc-api-contract.md +4 -5
- package/presets/opencode/commands/cc-backlog.md +4 -5
- package/presets/opencode/commands/cc-clarify.md +4 -5
- package/presets/opencode/commands/cc-council.md +6 -7
- package/presets/opencode/commands/cc-db-migration.md +4 -5
- package/presets/opencode/commands/cc-explore.md +4 -5
- package/presets/opencode/commands/cc-feature.md +4 -5
- package/presets/opencode/commands/cc-fix.md +4 -5
- package/presets/opencode/commands/cc-handoff.md +8 -5
- package/presets/opencode/commands/cc-iterative.md +4 -5
- package/presets/opencode/commands/cc-odd.md +4 -3
- package/presets/opencode/commands/cc-openspec.md +10 -9
- package/presets/opencode/commands/cc-pagespeed.md +4 -5
- package/presets/opencode/commands/cc-prototype.md +4 -5
- package/presets/opencode/commands/cc-refactor.md +4 -5
- package/presets/opencode/commands/cc-review.md +4 -5
- package/presets/opencode/commands/cc-scorecard.md +4 -5
- package/presets/opencode/commands/cc-security.md +4 -5
- package/presets/opencode/commands/cc-spec-mutation.md +4 -5
- package/presets/opencode/commands/cc-tdd-cycle.md +4 -5
- package/presets/opencode/commands/cc-test-plan.md +4 -5
- package/presets/opencode/commands/cc-triage.md +4 -5
- package/presets/opencode/skills/openspec/SKILL.md +39 -11
- package/src/presets/manifests/codex.yml +3 -0
- package/src/presets/manifests/muse.yml +18 -0
- package/src/presets/models/muse.yml +4 -0
- package/src/presets/models/roles.yml +40 -28
- package/src/presets/targets/muse.yml +12 -0
|
@@ -43,11 +43,10 @@ unavailable visual or emulator checks remain pending rather than claimed complet
|
|
|
43
43
|
|
|
44
44
|
Command: `review` (fixed for this workflow — do not infer from user text)
|
|
45
45
|
|
|
46
|
-
1. Run: `npx cc-codeconductor ccep
|
|
47
|
-
2.
|
|
48
|
-
3.
|
|
49
|
-
4.
|
|
50
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
46
|
+
1. Run: `npx cc-codeconductor ccep profile review --output json` to get the phases and their roles.
|
|
47
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command review --phase <phase-id> "$ARGUMENTS" --view prompt --output json`
|
|
48
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command review --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
49
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `$ARGUMENTS` to planners.
|
|
51
50
|
|
|
52
51
|
---
|
|
53
52
|
|
|
@@ -14,11 +14,10 @@ Scope: $ARGUMENTS
|
|
|
14
14
|
|
|
15
15
|
Command: `scorecard` (fixed for this workflow — do not infer from user text)
|
|
16
16
|
|
|
17
|
-
1. Run: `npx cc-codeconductor ccep
|
|
18
|
-
2.
|
|
19
|
-
3.
|
|
20
|
-
4.
|
|
21
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
17
|
+
1. Run: `npx cc-codeconductor ccep profile scorecard --output json` to get the phases and their roles.
|
|
18
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command scorecard --phase <phase-id> "$ARGUMENTS" --view prompt --output json`
|
|
19
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command scorecard --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
20
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `$ARGUMENTS` to planners.
|
|
22
21
|
|
|
23
22
|
---
|
|
24
23
|
|
|
@@ -47,11 +47,10 @@ payloads, malware, or attack procedures.
|
|
|
47
47
|
|
|
48
48
|
Command: `security` (fixed for this workflow — do not infer from user text)
|
|
49
49
|
|
|
50
|
-
1. Run: `npx cc-codeconductor ccep
|
|
51
|
-
2.
|
|
52
|
-
3.
|
|
53
|
-
4.
|
|
54
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
50
|
+
1. Run: `npx cc-codeconductor ccep profile security --output json` to get the phases and their roles.
|
|
51
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command security --phase <phase-id> "$ARGUMENTS" --view prompt --output json`
|
|
52
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command security --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
53
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `$ARGUMENTS` to planners.
|
|
55
54
|
Canonical delivery order is test-before-implement whenever both phases apply.
|
|
56
55
|
|
|
57
56
|
---
|
|
@@ -22,11 +22,10 @@ Describe what behavior you want to implement. Include:
|
|
|
22
22
|
|
|
23
23
|
Command: `spec-mutation` (fixed for this workflow — do not infer from user text)
|
|
24
24
|
|
|
25
|
-
1. Run: `npx cc-codeconductor ccep
|
|
26
|
-
2.
|
|
27
|
-
3.
|
|
28
|
-
4.
|
|
29
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
25
|
+
1. Run: `npx cc-codeconductor ccep profile spec-mutation --output json` to get the phases and their roles.
|
|
26
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command spec-mutation --phase <phase-id> "$ARGUMENTS" --view prompt --output json`
|
|
27
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command spec-mutation --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
28
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `$ARGUMENTS` to planners.
|
|
30
29
|
Canonical delivery order is test-before-implement whenever both phases apply.
|
|
31
30
|
|
|
32
31
|
---
|
|
@@ -22,11 +22,10 @@ Describe what behavior you want to implement. Include:
|
|
|
22
22
|
|
|
23
23
|
Command: `tdd-cycle` (fixed for this workflow — do not infer from user text)
|
|
24
24
|
|
|
25
|
-
1. Run: `npx cc-codeconductor ccep
|
|
26
|
-
2.
|
|
27
|
-
3.
|
|
28
|
-
4.
|
|
29
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
25
|
+
1. Run: `npx cc-codeconductor ccep profile tdd-cycle --output json` to get the phases and their roles.
|
|
26
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command tdd-cycle --phase <phase-id> "$ARGUMENTS" --view prompt --output json`
|
|
27
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command tdd-cycle --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
28
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `$ARGUMENTS` to planners.
|
|
30
29
|
Canonical delivery order is test-before-implement whenever both phases apply.
|
|
31
30
|
|
|
32
31
|
---
|
|
@@ -24,11 +24,10 @@ proceeding.
|
|
|
24
24
|
|
|
25
25
|
Command: `test-plan` (fixed for this workflow — do not infer from user text)
|
|
26
26
|
|
|
27
|
-
1. Run: `npx cc-codeconductor ccep
|
|
28
|
-
2.
|
|
29
|
-
3.
|
|
30
|
-
4.
|
|
31
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
27
|
+
1. Run: `npx cc-codeconductor ccep profile test-plan --output json` to get the phases and their roles.
|
|
28
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command test-plan --phase <phase-id> "$ARGUMENTS" --view prompt --output json`
|
|
29
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command test-plan --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
30
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `$ARGUMENTS` to planners.
|
|
32
31
|
|
|
33
32
|
---
|
|
34
33
|
|
|
@@ -11,11 +11,10 @@ Triage request: $ARGUMENTS
|
|
|
11
11
|
|
|
12
12
|
Command: `triage` (fixed for this workflow — do not infer from user text)
|
|
13
13
|
|
|
14
|
-
1. Run: `npx cc-codeconductor ccep
|
|
15
|
-
2.
|
|
16
|
-
3.
|
|
17
|
-
4.
|
|
18
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
14
|
+
1. Run: `npx cc-codeconductor ccep profile triage --output json` to get the phases and their roles.
|
|
15
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command triage --phase <phase-id> "$ARGUMENTS" --view prompt --output json`
|
|
16
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command triage --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
17
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `$ARGUMENTS` to planners.
|
|
19
18
|
|
|
20
19
|
---
|
|
21
20
|
|
|
@@ -16,7 +16,7 @@ gates, not a reference doc. Specs describe WHAT; `design.md` describes HOW.
|
|
|
16
16
|
|
|
17
17
|
## When to Use
|
|
18
18
|
|
|
19
|
-
- `/cc-openspec` or `openspec
|
|
19
|
+
- `/cc-openspec` or `openspec plan` / `next` / `done` / `sync` / `verify` / `archive`
|
|
20
20
|
- An item is `READY` or later and must move through the state machine
|
|
21
21
|
|
|
22
22
|
**NOT** for creating `BACKLOG.md` (use skill `backlog`) or for stack-specific
|
|
@@ -26,22 +26,43 @@ coding rules.
|
|
|
26
26
|
|
|
27
27
|
Local CLI is `bun run dev`. Published package is `npx cc-codeconductor`.
|
|
28
28
|
|
|
29
|
-
1. `openspec validate` — must pass before delivery.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
1. `openspec validate` — must pass before delivery. If you reached this
|
|
30
|
+
workflow on your own (the user did not ask for OpenSpec) and there is no
|
|
31
|
+
`BACKLOG.md` / `openspec/` root, answer normally instead — never scaffold
|
|
32
|
+
one as a side effect.
|
|
33
|
+
2. `openspec plan BC-xxx` if the item is not yet `PLANNED`. Planning only: it
|
|
34
|
+
writes TaskCards plus proposal/design/tasks/specs under
|
|
35
|
+
`openspec/changes/<slug>/` and stops. Never implement in this step.
|
|
36
|
+
3. Review the plan before `start`: read proposal → delta specs → tasks, in that
|
|
37
|
+
order, and confirm intent, scope, testable FR/SC, and edge-case scenarios.
|
|
38
|
+
Fix the Markdown directly or ask for revisions — code comes later.
|
|
39
|
+
4. `openspec analyze --output json` — CRITICAL findings exit 1. Do not implement.
|
|
40
|
+
5. Phases: discover (`repo-explorer`) → design (`architect`) → test (`tester`) →
|
|
33
41
|
implement (`implementer`) → review (`reviewer`). If Global `TDD required: yes`,
|
|
34
|
-
test runs before implement.
|
|
35
|
-
|
|
36
|
-
evidence JSON is rejected.
|
|
37
|
-
|
|
38
|
-
7.
|
|
39
|
-
|
|
42
|
+
test runs before implement. Discover is read-only: it never writes code.
|
|
43
|
+
6. `openspec done` on test/implement requires `captureTddSuiteEvidence`. Handmade
|
|
44
|
+
evidence JSON is rejected. The implementer ticks `tasks.md` boxes
|
|
45
|
+
(`- [ ]` → `- [x]`) as each FR lands; only `x`/`X` counts as done.
|
|
46
|
+
7. When implementation reveals a design problem, pause and reconcile the planning
|
|
47
|
+
artifacts first — in any direction (a later artifact may force revising an
|
|
48
|
+
earlier one). Planning artifacts only in that step, never code; confirm each
|
|
49
|
+
edit. If the item's intent changed rather than its details, open a fresh item
|
|
50
|
+
with `/cc-backlog` (`/cc:backlog`) instead of warping this one.
|
|
51
|
+
8. `openspec verify --output json` — advisory pre-archive checklist
|
|
52
|
+
(`archiveReady` plus Completeness/Correctness/Coherence issues). Optional:
|
|
53
|
+
`openspec sync` merges delta specs into `openspec/specs/` without closing.
|
|
54
|
+
9. `scorecard create --task BC-xxx --from-diff` then record a verdict.
|
|
55
|
+
10. `openspec archive` only after human review when `Review required: yes` and
|
|
56
|
+
the scorecard is PASS. Archive re-checks planning artifacts and analyze
|
|
57
|
+
CRITICALs, and warns on unchecked `tasks.md` boxes.
|
|
40
58
|
|
|
41
59
|
Status machine: `TODO` → `READY` → `PLANNED` → `IN_PROGRESS` → `REVIEW` → `DONE`
|
|
42
60
|
→ Archive. `BLOCKED` returns to `READY`. Reviewer rejection: `REVIEW` →
|
|
43
61
|
`IN_PROGRESS`.
|
|
44
62
|
|
|
63
|
+
`openspec status --output json` also reports artifact presence, `tasks.md`
|
|
64
|
+
checkbox progress, and `nextSteps` for the next CLI call.
|
|
65
|
+
|
|
45
66
|
## Web interface scope
|
|
46
67
|
|
|
47
68
|
When the task concerns web layout, component states, feedback, motion, or a
|
|
@@ -70,17 +91,24 @@ delivery read-only and record unavailable visual or emulator evidence as pending
|
|
|
70
91
|
| I'll add tests after green | Global TDD required means tester before implementer. |
|
|
71
92
|
| I'll write the evidence JSON myself | Handmade TDD JSON is rejected. Use the verification runner. |
|
|
72
93
|
| The item is small; skip analyze | `openspec analyze` CRITICAL still stops implement. |
|
|
94
|
+
| The plan is generated; skip reading it | Read proposal → specs → tasks before `start`. Generated is not reviewed. |
|
|
95
|
+
| I'll fix the spec after shipping | Reconcile planning artifacts before continuing to implement. |
|
|
73
96
|
|
|
74
97
|
## Red Flags
|
|
75
98
|
|
|
76
99
|
- Implementing while analyze reports CRITICAL
|
|
100
|
+
- Starting cards before reading the generated plan
|
|
77
101
|
- Archive without a PASS scorecard when review is required
|
|
102
|
+
- Archive while `openspec verify` reports CRITICAL
|
|
78
103
|
- Acceptance like "improve UX" with no measurable check
|
|
79
104
|
|
|
80
105
|
## Verification
|
|
81
106
|
|
|
82
107
|
- [ ] `openspec validate` exit 0
|
|
108
|
+
- [ ] Plan reviewed (proposal → specs → tasks) before `start`
|
|
83
109
|
- [ ] `openspec analyze --output json` has no CRITICAL
|
|
84
110
|
- [ ] TDD evidence from the runner when TDD is required
|
|
111
|
+
- [ ] `tasks.md` boxes ticked as FRs land
|
|
112
|
+
- [ ] `openspec verify --output json` checked before archive
|
|
85
113
|
- [ ] `scorecard create --from-diff` recorded
|
|
86
114
|
- [ ] Suite check (optional): `bun run dev scorecard suite-run --suite workflow-gates`
|
|
@@ -9,11 +9,10 @@ API contract request: {{args}}
|
|
|
9
9
|
|
|
10
10
|
Command: `api-contract` (fixed for this workflow — do not infer from user text)
|
|
11
11
|
|
|
12
|
-
1. Run: `npx cc-codeconductor ccep
|
|
13
|
-
2.
|
|
14
|
-
3.
|
|
15
|
-
4.
|
|
16
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `{{args}}` to planners.
|
|
12
|
+
1. Run: `npx cc-codeconductor ccep profile api-contract --output json` to get the phases and their roles.
|
|
13
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command api-contract --phase <phase-id> "{{args}}" --view prompt --output json`
|
|
14
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command api-contract --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
15
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `{{args}}` to planners.
|
|
17
16
|
|
|
18
17
|
---
|
|
19
18
|
|
|
@@ -14,11 +14,10 @@ deliver implementation — that is `/cc-openspec`.
|
|
|
14
14
|
|
|
15
15
|
Command: `backlog` (fixed for this workflow — do not infer from user text)
|
|
16
16
|
|
|
17
|
-
1. Run: `npx cc-codeconductor ccep
|
|
18
|
-
2.
|
|
19
|
-
3.
|
|
20
|
-
4.
|
|
21
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `{{args}}` to planners.
|
|
17
|
+
1. Run: `npx cc-codeconductor ccep profile backlog --output json` to get the phases and their roles.
|
|
18
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command backlog --phase <phase-id> "{{args}}" --view prompt --output json`
|
|
19
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command backlog --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
20
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `{{args}}` to planners.
|
|
22
21
|
|
|
23
22
|
---
|
|
24
23
|
|
|
@@ -9,11 +9,10 @@ Clarify request: {{args}}
|
|
|
9
9
|
|
|
10
10
|
Command: `clarify` (fixed for this workflow — do not infer from user text)
|
|
11
11
|
|
|
12
|
-
1. Run: `npx cc-codeconductor ccep
|
|
13
|
-
2.
|
|
14
|
-
3.
|
|
15
|
-
4.
|
|
16
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `{{args}}` to planners.
|
|
12
|
+
1. Run: `npx cc-codeconductor ccep profile clarify --output json` to get the phases and their roles.
|
|
13
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command clarify --phase <phase-id> "{{args}}" --view prompt --output json`
|
|
14
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command clarify --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
15
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `{{args}}` to planners.
|
|
17
16
|
|
|
18
17
|
---
|
|
19
18
|
|
|
@@ -10,11 +10,10 @@ Task request: {{args}}
|
|
|
10
10
|
Command: `council` (fixed for this workflow — do not infer from user text)
|
|
11
11
|
command: council
|
|
12
12
|
|
|
13
|
-
1. Run: `npx cc-codeconductor ccep
|
|
14
|
-
2.
|
|
15
|
-
3.
|
|
16
|
-
4.
|
|
17
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `{{args}}` to planners.
|
|
13
|
+
1. Run: `npx cc-codeconductor ccep profile council --output json` to get the phases and their roles.
|
|
14
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command council --phase <phase-id> "{{args}}" --view prompt --output json`
|
|
15
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command council --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
16
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `{{args}}` to planners.
|
|
18
17
|
|
|
19
18
|
---
|
|
20
19
|
|
|
@@ -62,7 +61,7 @@ implementer must:
|
|
|
62
61
|
1. Write the minimal code required to pass the tests.
|
|
63
62
|
2. Touch ONLY the files specified in the Technical Plan (Surgical Changes).
|
|
64
63
|
3. NOT refactor adjacent code, change existing styles, or build speculative features.
|
|
65
|
-
4. Run the tests. Loop `implementer` -> `tester` until all tests pass (Green state).
|
|
64
|
+
4. Run the tests. Loop `implementer` -> `tester` until all tests pass (Green state), at most 3 iterations -- then stop and report the failing tests instead of looping.
|
|
66
65
|
|
|
67
66
|
---
|
|
68
67
|
|
|
@@ -74,7 +73,7 @@ The council will evaluate the diff against the 6 axes (Architecture, Security, P
|
|
|
74
73
|
|
|
75
74
|
If ANY agent votes CRITICAL (especially due to over-engineering, scope creep, or missing the verifiable goals):
|
|
76
75
|
- The Review Report status is **BLOCKED**.
|
|
77
|
-
- Return to Step 4 with the feedback.
|
|
76
|
+
- Return to Step 4 with the feedback (at most 3 review rounds in total -- then deliver the BLOCKED verdict with the unresolved findings instead of looping).
|
|
78
77
|
|
|
79
78
|
If APPROVED (no CRITICAL findings):
|
|
80
79
|
- Deliver the final Council Verdict and the diff summary.
|
|
@@ -9,11 +9,10 @@ Migration request: {{args}}
|
|
|
9
9
|
|
|
10
10
|
Command: `db-migration` (fixed for this workflow — do not infer from user text)
|
|
11
11
|
|
|
12
|
-
1. Run: `npx cc-codeconductor ccep
|
|
13
|
-
2.
|
|
14
|
-
3.
|
|
15
|
-
4.
|
|
16
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `{{args}}` to planners.
|
|
12
|
+
1. Run: `npx cc-codeconductor ccep profile db-migration --output json` to get the phases and their roles.
|
|
13
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command db-migration --phase <phase-id> "{{args}}" --view prompt --output json`
|
|
14
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command db-migration --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
15
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `{{args}}` to planners.
|
|
17
16
|
Canonical delivery order is test-before-implement whenever both phases apply.
|
|
18
17
|
|
|
19
18
|
---
|
|
@@ -9,11 +9,10 @@ Explore request: {{args}}
|
|
|
9
9
|
|
|
10
10
|
Command: `explore` (fixed for this workflow — do not infer from user text)
|
|
11
11
|
|
|
12
|
-
1. Run: `npx cc-codeconductor ccep
|
|
13
|
-
2.
|
|
14
|
-
3.
|
|
15
|
-
4.
|
|
16
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `{{args}}` to planners.
|
|
12
|
+
1. Run: `npx cc-codeconductor ccep profile explore --output json` to get the phases and their roles.
|
|
13
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command explore --phase <phase-id> "{{args}}" --view prompt --output json`
|
|
14
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command explore --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
15
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `{{args}}` to planners.
|
|
17
16
|
|
|
18
17
|
---
|
|
19
18
|
|
|
@@ -33,11 +33,10 @@ unavailable visual or emulator checks remain pending rather than claimed complet
|
|
|
33
33
|
|
|
34
34
|
Command: `feature` (fixed for this workflow — do not infer from user text)
|
|
35
35
|
|
|
36
|
-
1. Run: `npx cc-codeconductor ccep
|
|
37
|
-
2.
|
|
38
|
-
3.
|
|
39
|
-
4.
|
|
40
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `{{args}}` to planners.
|
|
36
|
+
1. Run: `npx cc-codeconductor ccep profile feature --output json` to get the phases and their roles.
|
|
37
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command feature --phase <phase-id> "{{args}}" --view prompt --output json`
|
|
38
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command feature --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
39
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `{{args}}` to planners.
|
|
41
40
|
Canonical delivery order is test-before-implement whenever both phases apply.
|
|
42
41
|
|
|
43
42
|
---
|
|
@@ -41,11 +41,10 @@ unavailable visual or emulator checks remain pending rather than claimed complet
|
|
|
41
41
|
|
|
42
42
|
Command: `fix` (fixed for this workflow — do not infer from user text)
|
|
43
43
|
|
|
44
|
-
1. Run: `npx cc-codeconductor ccep
|
|
45
|
-
2.
|
|
46
|
-
3.
|
|
47
|
-
4.
|
|
48
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `{{args}}` to planners.
|
|
44
|
+
1. Run: `npx cc-codeconductor ccep profile fix --output json` to get the phases and their roles.
|
|
45
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command fix --phase <phase-id> "{{args}}" --view prompt --output json`
|
|
46
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command fix --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
47
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `{{args}}` to planners.
|
|
49
48
|
Canonical delivery order is test-before-implement whenever both phases apply.
|
|
50
49
|
|
|
51
50
|
---
|
|
@@ -9,11 +9,10 @@ Handoff request: {{args}}
|
|
|
9
9
|
|
|
10
10
|
Command: `handoff` (fixed for this workflow — do not infer from user text)
|
|
11
11
|
|
|
12
|
-
1. Run: `npx cc-codeconductor ccep
|
|
13
|
-
2.
|
|
14
|
-
3.
|
|
15
|
-
4.
|
|
16
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `{{args}}` to planners.
|
|
12
|
+
1. Run: `npx cc-codeconductor ccep profile handoff --output json` to get the phases and their roles.
|
|
13
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command handoff --phase <phase-id> "{{args}}" --view prompt --output json`
|
|
14
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command handoff --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
15
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `{{args}}` to planners.
|
|
17
16
|
|
|
18
17
|
---
|
|
19
18
|
|
|
@@ -32,6 +31,10 @@ pass/fail (not log dumps), open questions, the next `/cc:` command, plus links
|
|
|
32
31
|
to the Delivery Ledger and verification evidence when they exist. Do not repeat
|
|
33
32
|
the original request or transcript.
|
|
34
33
|
|
|
34
|
+
If a Delivery Ledger exists, run `npx cc-codeconductor odd handoff --id <ledger-id> --output json`
|
|
35
|
+
and use its `handoff` envelope as the source for these fields. Secret redaction
|
|
36
|
+
still applies.
|
|
37
|
+
|
|
35
38
|
Do not edit source or tests.
|
|
36
39
|
|
|
37
40
|
---
|
|
@@ -11,11 +11,10 @@ Iterative request: {{args}}
|
|
|
11
11
|
|
|
12
12
|
Command: `iterative` (fixed for this workflow — do not infer from user text)
|
|
13
13
|
|
|
14
|
-
1. Run: `npx cc-codeconductor ccep
|
|
15
|
-
2.
|
|
16
|
-
3.
|
|
17
|
-
4.
|
|
18
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `{{args}}` to planners.
|
|
14
|
+
1. Run: `npx cc-codeconductor ccep profile iterative --output json` to get the phases and their roles.
|
|
15
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command iterative --phase <phase-id> "{{args}}" --view prompt --output json`
|
|
16
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command iterative --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
17
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `{{args}}` to planners.
|
|
19
18
|
Canonical delivery order is test-before-implement whenever both phases apply.
|
|
20
19
|
|
|
21
20
|
---
|
|
@@ -6,11 +6,12 @@ prompt = """
|
|
|
6
6
|
## Step 0 — CCEP Bootstrap
|
|
7
7
|
|
|
8
8
|
```bash
|
|
9
|
-
bun run dev ccep
|
|
10
|
-
bun run dev ccep
|
|
11
|
-
bun run dev ccep profile --command odd
|
|
9
|
+
bun run dev ccep profile odd --output json
|
|
10
|
+
bun run dev ccep compile --command odd --phase <phase-id> "{{args}}" --view prompt --output json
|
|
12
11
|
```
|
|
13
12
|
|
|
13
|
+
Pass each subagent only the compiled `prompt` for its phase.
|
|
14
|
+
|
|
14
15
|
Create a ledger only after authorization and tracked coordination. Read-only and small work do not create state.
|
|
15
16
|
|
|
16
17
|
When ODD has verification evidence, include its RDD receipt in the ledger
|
|
@@ -37,11 +37,10 @@ unavailable visual or emulator checks remain pending rather than claimed complet
|
|
|
37
37
|
|
|
38
38
|
Command: `openspec` (fixed for this workflow — do not infer from user text)
|
|
39
39
|
|
|
40
|
-
1. Run: `npx cc-codeconductor ccep
|
|
41
|
-
2.
|
|
42
|
-
3.
|
|
43
|
-
4.
|
|
44
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `{{args}}` to planners.
|
|
40
|
+
1. Run: `npx cc-codeconductor ccep profile openspec --output json` to get the phases and their roles.
|
|
41
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command openspec --phase <phase-id> "{{args}}" --view prompt --output json`
|
|
42
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command openspec --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
43
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `{{args}}` to planners.
|
|
45
44
|
Canonical delivery order is test-before-implement whenever both phases apply.
|
|
46
45
|
|
|
47
46
|
---
|
|
@@ -117,6 +116,13 @@ Show:
|
|
|
117
116
|
|
|
118
117
|
Update BACKLOG item status to `PLANNED` (CLI does this automatically).
|
|
119
118
|
|
|
119
|
+
`plan` is planning-only: it writes TaskCards plus proposal/design/tasks/specs
|
|
120
|
+
and stops. Before Step 5, review the plan in this order — proposal → delta
|
|
121
|
+
specs → tasks — and confirm: intent is right, no scope creep, every FR is
|
|
122
|
+
testable with a scenario that exercises it, edge/error cases are covered, and
|
|
123
|
+
each task traces to an FR/SC. Fix the Markdown directly or ask for revisions.
|
|
124
|
+
Do not `start` any card until the plan reads correctly.
|
|
125
|
+
|
|
120
126
|
---
|
|
121
127
|
|
|
122
128
|
## Drive card status (CLI)
|
|
@@ -127,10 +133,12 @@ Do not edit `.codeconductor/openspec-state.json` by hand.
|
|
|
127
133
|
npx cc-codeconductor openspec start <cardId>
|
|
128
134
|
npx cc-codeconductor openspec done <cardId>
|
|
129
135
|
npx cc-codeconductor openspec block <cardId> --reason "waiting on design"
|
|
136
|
+
npx cc-codeconductor openspec sync <itemId>
|
|
137
|
+
npx cc-codeconductor openspec verify <itemId>
|
|
130
138
|
npx cc-codeconductor openspec archive <itemId>
|
|
131
139
|
```
|
|
132
140
|
|
|
133
|
-
`start` moves the card `pending → doing` and the item `PLANNED → IN_PROGRESS`. `done` marks the card complete, updates Progress, and moves the item to `REVIEW` when every card is done and review is required. `archive` requires all cards done (and review evidence when Global review is required) and moves `openspec/changes/<slug>` to `archive/`.
|
|
141
|
+
`start` moves the card `pending → doing` and the item `PLANNED → IN_PROGRESS`. `done` marks the card complete, updates Progress, and moves the item to `REVIEW` when every card is done and review is required. `sync` merges delta specs into `openspec/specs/` without closing the item (optional before archive). `verify` is the advisory pre-archive checklist: exit 0 with `archiveReady` plus Completeness/Correctness/Coherence issues. `archive` requires all cards done (and review evidence when Global review is required), re-checks planning artifacts and analyze CRITICALs, warns on unchecked `tasks.md` boxes, then moves `openspec/changes/<slug>` to `archive/`.
|
|
134
142
|
|
|
135
143
|
For test and implementation cards, `done` also requires a current RDD-backed
|
|
136
144
|
RED or GREEN receipt respectively. Do not reuse evidence after candidate files
|
|
@@ -152,7 +160,7 @@ For each pending TaskCard, run:
|
|
|
152
160
|
npx cc-codeconductor openspec next
|
|
153
161
|
```
|
|
154
162
|
|
|
155
|
-
Invoke the agent named on the card with **isolated** context (`/clear`
|
|
163
|
+
Invoke the agent named on the card as a subagent with **isolated** context (subagents already start fresh; do not `/clear` the main session between phases):
|
|
156
164
|
|
|
157
165
|
| Phase | Agent | Role |
|
|
158
166
|
|-------|-------|------|
|
|
@@ -171,6 +179,14 @@ After each phase:
|
|
|
171
179
|
|
|
172
180
|
Implementer: create a Git worktree before editing (`git worktree add ../<branch>-session <branch>`).
|
|
173
181
|
|
|
182
|
+
Discover is read-only: `repo-explorer` never writes code. The implementer ticks
|
|
183
|
+
`tasks.md` boxes (`- [ ]` → `- [x]`) as each FR lands — only `x`/`X` counts as
|
|
184
|
+
done. If implementation reveals a design problem, pause and reconcile the
|
|
185
|
+
planning artifacts first (any direction: a later artifact may force revising an
|
|
186
|
+
earlier one). Planning artifacts only in that step — never code — and confirm
|
|
187
|
+
each edit. If the item's intent changed rather than its details, open a fresh
|
|
188
|
+
item with `/cc:backlog` instead of warping this one.
|
|
189
|
+
|
|
174
190
|
---
|
|
175
191
|
|
|
176
192
|
## Step 6 — Review gate
|
|
@@ -196,6 +212,8 @@ If **approved**: proceed to Step 6.
|
|
|
196
212
|
|
|
197
213
|
## Step 7 — Scorecard and update backlog
|
|
198
214
|
|
|
215
|
+
First run the advisory pre-archive check (`npx cc-codeconductor openspec verify <BC-id> --output json`): confirm `archiveReady` and clear any Completeness/Correctness/Coherence issues. Optionally run `openspec sync <BC-id>` to merge delta specs into `openspec/specs/` without closing the item. Then:
|
|
216
|
+
|
|
199
217
|
1. `npx cc-codeconductor scorecard create --task <BC-id> --from-diff`
|
|
200
218
|
2. Complete criteria; `scorecard record` with verdict and optional cost/tokens
|
|
201
219
|
3. Set item `Progress: 100%`, `Status: DONE` if PASS
|
|
@@ -11,11 +11,10 @@ Produces a prioritized report in the current working directory.
|
|
|
11
11
|
|
|
12
12
|
Command: `pagespeed` (fixed for this workflow — do not infer from user text)
|
|
13
13
|
|
|
14
|
-
1. Run: `npx cc-codeconductor ccep
|
|
15
|
-
2.
|
|
16
|
-
3.
|
|
17
|
-
4.
|
|
18
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `{{args}}` to planners.
|
|
14
|
+
1. Run: `npx cc-codeconductor ccep profile pagespeed --output json` to get the phases and their roles.
|
|
15
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command pagespeed --phase <phase-id> "{{args}}" --view prompt --output json`
|
|
16
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command pagespeed --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
17
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `{{args}}` to planners.
|
|
19
18
|
|
|
20
19
|
---
|
|
21
20
|
|
|
@@ -9,11 +9,10 @@ Prototype request: {{args}}
|
|
|
9
9
|
|
|
10
10
|
Command: `prototype` (fixed for this workflow — do not infer from user text)
|
|
11
11
|
|
|
12
|
-
1. Run: `npx cc-codeconductor ccep
|
|
13
|
-
2.
|
|
14
|
-
3.
|
|
15
|
-
4.
|
|
16
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `{{args}}` to planners.
|
|
12
|
+
1. Run: `npx cc-codeconductor ccep profile prototype --output json` to get the phases and their roles.
|
|
13
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command prototype --phase <phase-id> "{{args}}" --view prompt --output json`
|
|
14
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command prototype --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
15
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `{{args}}` to planners.
|
|
17
16
|
|
|
18
17
|
---
|
|
19
18
|
|
|
@@ -34,11 +34,10 @@ If coverage is insufficient:
|
|
|
34
34
|
|
|
35
35
|
Command: `refactor` (fixed for this workflow — do not infer from user text)
|
|
36
36
|
|
|
37
|
-
1. Run: `npx cc-codeconductor ccep
|
|
38
|
-
2.
|
|
39
|
-
3.
|
|
40
|
-
4.
|
|
41
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `{{args}}` to planners.
|
|
37
|
+
1. Run: `npx cc-codeconductor ccep profile refactor --output json` to get the phases and their roles.
|
|
38
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command refactor --phase <phase-id> "{{args}}" --view prompt --output json`
|
|
39
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command refactor --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
40
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `{{args}}` to planners.
|
|
42
41
|
|
|
43
42
|
---
|
|
44
43
|
|
|
@@ -40,11 +40,10 @@ unavailable visual or emulator checks remain pending rather than claimed complet
|
|
|
40
40
|
|
|
41
41
|
Command: `review` (fixed for this workflow — do not infer from user text)
|
|
42
42
|
|
|
43
|
-
1. Run: `npx cc-codeconductor ccep
|
|
44
|
-
2.
|
|
45
|
-
3.
|
|
46
|
-
4.
|
|
47
|
-
5. Delegate to subagents using compiled CCEP prompts — never forward raw `{{args}}` to planners.
|
|
43
|
+
1. Run: `npx cc-codeconductor ccep profile review --output json` to get the phases and their roles.
|
|
44
|
+
2. For each delegated phase, run: `npx cc-codeconductor ccep compile --command review --phase <phase-id> "{{args}}" --view prompt --output json`
|
|
45
|
+
3. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command review --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
46
|
+
4. Pass each subagent only the compiled `prompt` for its phase — never forward raw `{{args}}` to planners.
|
|
48
47
|
|
|
49
48
|
---
|
|
50
49
|
|