cc-codeconductor 0.5.0 → 1.1.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 +387 -150
- package/dist/cli/errors.d.ts +65 -0
- package/dist/core/compilation/compile-checker.d.ts +53 -0
- package/dist/core/config/codeconductor-config.d.ts +42 -0
- package/dist/core/config/config-loader.d.ts +11 -0
- package/dist/core/filesystem/credential-guard.d.ts +18 -0
- package/dist/core/goal/goal-planner.d.ts +8 -0
- package/dist/core/goal/goal-state.d.ts +15 -0
- package/dist/core/loop/git-stats.d.ts +13 -0
- package/dist/core/loop/loop-engine.d.ts +82 -0
- package/dist/core/memory/episodic-store.d.ts +6 -0
- package/dist/core/memory/operational-state.d.ts +6 -0
- package/dist/core/orchestrator/runtime-orchestrator.d.ts +25 -0
- package/dist/core/planner/product-planner.d.ts +18 -0
- package/dist/core/presets/package-paths.d.ts +4 -0
- package/dist/core/product-graph/graph-store.d.ts +11 -0
- package/dist/core/product-graph/paths.d.ts +18 -0
- package/dist/core/verification/verification-runner.d.ts +57 -0
- package/dist/domain/loop/loop-state.d.ts +74 -0
- package/dist/domain/product/entities.d.ts +11 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +24165 -15800
- package/dist/library.js +2744 -0
- package/dist/utils/result.d.ts +36 -0
- package/dist/validation/schemas.d.ts +4006 -0
- package/package.json +18 -2
- package/policy.yml +12 -11
- package/presets/agy/AGENTS.md +14 -5
- package/presets/agy/gates/pre-commit/GATE.md +137 -0
- package/presets/agy/skills/backlog/SKILL.md +91 -0
- package/presets/agy/skills/cc-fix/SKILL.md +2 -2
- package/presets/agy/skills/cc-tdd-cycle/SKILL.md +11 -0
- package/presets/agy/skills/openspec/SKILL.md +5 -1
- package/presets/agy/skills/security-ai-llm/SKILL.md +43 -0
- package/presets/agy/skills/security-blue-team/SKILL.md +43 -0
- package/presets/agy/skills/security-cloud/SKILL.md +43 -0
- package/presets/agy/skills/security-crypto/SKILL.md +43 -0
- package/presets/agy/skills/security-exploit-dev/SKILL.md +45 -0
- package/presets/agy/skills/security-grc/SKILL.md +43 -0
- package/presets/agy/skills/security-incident-response/SKILL.md +45 -0
- package/presets/agy/skills/security-log-analysis/SKILL.md +43 -0
- package/presets/agy/skills/security-malware-analysis/SKILL.md +44 -0
- package/presets/agy/skills/security-mobile/SKILL.md +43 -0
- package/presets/agy/skills/security-network/SKILL.md +43 -0
- package/presets/agy/skills/security-ot-ics/SKILL.md +43 -0
- package/presets/agy/skills/security-recon/SKILL.md +45 -0
- package/presets/agy/skills/security-red-team/SKILL.md +44 -0
- package/presets/agy/skills/security-reverse-engineering/SKILL.md +44 -0
- package/presets/agy/skills/security-soc-automation/SKILL.md +43 -0
- package/presets/agy/skills/security-threat-hunting/SKILL.md +43 -0
- package/presets/agy/skills/security-vuln-assessment/SKILL.md +45 -0
- package/presets/agy/skills/security-web/SKILL.md +44 -0
- package/presets/agy/workflows/cc-api-contract.md +12 -0
- package/presets/agy/workflows/cc-ask.md +56 -0
- package/presets/agy/workflows/cc-backlog.md +69 -0
- package/presets/agy/workflows/cc-clarify.md +33 -0
- package/presets/agy/workflows/cc-council.md +31 -7
- package/presets/agy/workflows/cc-db-migration.md +22 -9
- package/presets/agy/workflows/cc-explore.md +37 -0
- package/presets/agy/workflows/cc-feature.md +41 -19
- package/presets/agy/workflows/cc-fix.md +50 -23
- package/presets/agy/workflows/cc-handoff.md +42 -0
- package/presets/agy/workflows/cc-iterative.md +128 -0
- package/presets/agy/workflows/cc-openspec.md +16 -1
- package/presets/agy/workflows/cc-pagespeed.md +12 -0
- package/presets/agy/workflows/cc-prototype.md +39 -0
- package/presets/agy/workflows/cc-refactor.md +12 -0
- package/presets/agy/workflows/cc-review.md +12 -0
- package/presets/agy/workflows/cc-scorecard.md +12 -0
- package/presets/agy/workflows/cc-security.md +180 -0
- package/presets/agy/workflows/cc-tdd-cycle.md +24 -0
- package/presets/agy/workflows/cc-test-plan.md +12 -0
- package/presets/agy/workflows/cc-triage.md +35 -0
- package/presets/claude/CLAUDE.md +68 -0
- package/presets/claude/commands/cc/api-contract.md +12 -0
- package/presets/claude/commands/cc/ask.md +56 -0
- package/presets/claude/commands/cc/backlog.md +104 -0
- package/presets/claude/commands/cc/clarify.md +32 -0
- package/presets/claude/commands/cc/council.md +87 -0
- package/presets/claude/commands/cc/db-migration.md +22 -9
- package/presets/claude/commands/cc/explore.md +36 -0
- package/presets/claude/commands/cc/feature.md +49 -22
- package/presets/claude/commands/cc/fix.md +74 -20
- package/presets/claude/commands/cc/handoff.md +44 -0
- package/presets/claude/commands/cc/iterative.md +132 -0
- package/presets/claude/commands/cc/openspec.md +41 -1
- package/presets/claude/commands/cc/pagespeed.md +12 -0
- package/presets/claude/commands/cc/prototype.md +38 -0
- package/presets/claude/commands/cc/refactor.md +152 -1
- package/presets/claude/commands/cc/review.md +78 -16
- package/presets/claude/commands/cc/scorecard.md +12 -0
- package/presets/claude/commands/cc/security.md +179 -0
- package/presets/claude/commands/cc/tdd-cycle.md +53 -3
- package/presets/claude/commands/cc/test-plan.md +12 -0
- package/presets/claude/commands/cc/triage.md +34 -0
- package/presets/claude/gates/pre-commit/GATE.md +137 -0
- package/presets/claude/settings.json +8 -46
- package/presets/claude/skills/backlog/SKILL.md +91 -0
- package/presets/claude/skills/openspec/SKILL.md +5 -1
- package/presets/claude/skills/security/SKILL.md +382 -0
- package/presets/claude/skills/security-ai-llm/SKILL.md +43 -0
- package/presets/claude/skills/security-blue-team/SKILL.md +43 -0
- package/presets/claude/skills/security-cloud/SKILL.md +43 -0
- package/presets/claude/skills/security-crypto/SKILL.md +43 -0
- package/presets/claude/skills/security-exploit-dev/SKILL.md +45 -0
- package/presets/claude/skills/security-grc/SKILL.md +43 -0
- package/presets/claude/skills/security-incident-response/SKILL.md +45 -0
- package/presets/claude/skills/security-log-analysis/SKILL.md +43 -0
- package/presets/claude/skills/security-malware-analysis/SKILL.md +44 -0
- package/presets/claude/skills/security-mobile/SKILL.md +43 -0
- package/presets/claude/skills/security-network/SKILL.md +43 -0
- package/presets/claude/skills/security-ot-ics/SKILL.md +43 -0
- package/presets/claude/skills/security-recon/SKILL.md +45 -0
- package/presets/claude/skills/security-red-team/SKILL.md +44 -0
- package/presets/claude/skills/security-reverse-engineering/SKILL.md +44 -0
- package/presets/claude/skills/security-soc-automation/SKILL.md +43 -0
- package/presets/claude/skills/security-threat-hunting/SKILL.md +43 -0
- package/presets/claude/skills/security-vuln-assessment/SKILL.md +45 -0
- package/presets/claude/skills/security-web/SKILL.md +44 -0
- package/presets/codex/AGENTS.md +6 -6
- package/presets/codex/commands/cc-ask.md +56 -0
- package/presets/codex/gates/pre-commit/GATE.md +137 -0
- package/presets/cursor/AGENTS.md +8 -8
- package/presets/cursor/agents/business-agent.md +44 -0
- package/presets/cursor/agents/continuous-architect.md +37 -0
- package/presets/cursor/agents/docs.md +1 -0
- package/presets/cursor/agents/goal-planner.md +1 -1
- package/presets/cursor/agents/impact-analyst.md +43 -0
- package/presets/cursor/agents/orchestrator.md +6 -6
- package/presets/cursor/commands/cc/api-contract.md +12 -0
- package/presets/cursor/commands/cc/ask.md +56 -0
- package/presets/cursor/commands/cc/backlog.md +105 -0
- package/presets/cursor/commands/cc/clarify.md +32 -0
- package/presets/cursor/commands/cc/council.md +87 -0
- package/presets/cursor/commands/cc/db-migration.md +22 -9
- package/presets/cursor/commands/cc/explore.md +36 -0
- package/presets/cursor/commands/cc/feature.md +41 -19
- package/presets/cursor/commands/cc/fix.md +47 -20
- package/presets/cursor/commands/cc/handoff.md +41 -0
- package/presets/cursor/commands/cc/iterative.md +133 -0
- package/presets/cursor/commands/cc/openspec.md +38 -8
- package/presets/cursor/commands/cc/pagespeed.md +12 -0
- package/presets/cursor/commands/cc/prototype.md +38 -0
- package/presets/cursor/commands/cc/refactor.md +12 -0
- package/presets/cursor/commands/cc/review.md +12 -0
- package/presets/cursor/commands/cc/scorecard.md +12 -0
- package/presets/cursor/commands/cc/security.md +179 -0
- package/presets/cursor/commands/cc/tdd-cycle.md +24 -0
- package/presets/cursor/commands/cc/test-plan.md +12 -0
- package/presets/cursor/commands/cc/triage.md +34 -0
- package/presets/cursor/gates/pre-commit/GATE.md +137 -0
- package/presets/cursor/rules/orchestration.mdc +1 -1
- package/presets/cursor/skills/backlog/SKILL.md +91 -0
- package/presets/cursor/skills/openspec/SKILL.md +5 -1
- package/presets/cursor/skills/security-ai-llm/SKILL.md +43 -0
- package/presets/cursor/skills/security-blue-team/SKILL.md +43 -0
- package/presets/cursor/skills/security-cloud/SKILL.md +43 -0
- package/presets/cursor/skills/security-crypto/SKILL.md +43 -0
- package/presets/cursor/skills/security-exploit-dev/SKILL.md +45 -0
- package/presets/cursor/skills/security-grc/SKILL.md +43 -0
- package/presets/cursor/skills/security-incident-response/SKILL.md +45 -0
- package/presets/cursor/skills/security-log-analysis/SKILL.md +43 -0
- package/presets/cursor/skills/security-malware-analysis/SKILL.md +44 -0
- package/presets/cursor/skills/security-mobile/SKILL.md +43 -0
- package/presets/cursor/skills/security-network/SKILL.md +43 -0
- package/presets/cursor/skills/security-ot-ics/SKILL.md +43 -0
- package/presets/cursor/skills/security-recon/SKILL.md +45 -0
- package/presets/cursor/skills/security-red-team/SKILL.md +44 -0
- package/presets/cursor/skills/security-reverse-engineering/SKILL.md +44 -0
- package/presets/cursor/skills/security-soc-automation/SKILL.md +43 -0
- package/presets/cursor/skills/security-threat-hunting/SKILL.md +43 -0
- package/presets/cursor/skills/security-vuln-assessment/SKILL.md +45 -0
- package/presets/cursor/skills/security-web/SKILL.md +44 -0
- package/presets/opencode/agents/architect.md +22 -1
- package/presets/opencode/agents/complexity-auditor.md +16 -1
- package/presets/opencode/agents/contract-builder.md +17 -1
- package/presets/opencode/agents/devil.md +158 -0
- package/presets/opencode/agents/docs.md +19 -1
- package/presets/opencode/agents/goal-planner.md +32 -2
- package/presets/opencode/agents/implementer.md +32 -2
- package/presets/opencode/agents/orchestrator.md +79 -12
- package/presets/opencode/agents/planner.md +61 -0
- package/presets/opencode/agents/repo-explorer.md +16 -0
- package/presets/opencode/agents/reviewer.md +33 -3
- package/presets/opencode/agents/security-reviewer.md +31 -1
- package/presets/opencode/agents/task-coach.md +69 -1
- package/presets/opencode/agents/tester.md +18 -1
- package/presets/opencode/commands/cc-api-contract.md +12 -0
- package/presets/opencode/commands/cc-ask.md +56 -0
- package/presets/opencode/commands/cc-backlog.md +68 -0
- package/presets/opencode/commands/cc-clarify.md +31 -0
- package/presets/opencode/commands/cc-council.md +87 -0
- package/presets/opencode/commands/cc-db-migration.md +22 -9
- package/presets/opencode/commands/cc-explore.md +35 -0
- package/presets/opencode/commands/cc-feature.md +41 -19
- package/presets/opencode/commands/cc-fix.md +50 -23
- package/presets/opencode/commands/cc-handoff.md +40 -0
- package/presets/opencode/commands/cc-iterative.md +127 -0
- package/presets/opencode/commands/cc-openspec.md +16 -1
- package/presets/opencode/commands/cc-pagespeed.md +12 -0
- package/presets/opencode/commands/cc-prototype.md +37 -0
- package/presets/opencode/commands/cc-refactor.md +12 -0
- package/presets/opencode/commands/cc-review.md +12 -0
- package/presets/opencode/commands/cc-scorecard.md +12 -0
- package/presets/opencode/commands/cc-security.md +179 -0
- package/presets/opencode/commands/cc-tdd-cycle.md +24 -0
- package/presets/opencode/commands/cc-test-plan.md +12 -0
- package/presets/opencode/commands/cc-triage.md +33 -0
- package/presets/opencode/gates/pre-commit/GATE.md +137 -0
- package/presets/opencode/prompts/v0.1.0/DEPRECATED.md +11 -0
- package/presets/opencode/prompts/v0.2.0/DEPRECATED.md +11 -0
- package/presets/opencode/prompts/v0.3.0/DEPRECATED.md +11 -0
- package/presets/opencode/prompts/v0.4.0/DEPRECATED.md +11 -0
- package/presets/opencode/prompts/v0.5.0/goal-planner.md +1 -1
- package/presets/opencode/prompts/v0.5.0/orchestrator.md +6 -6
- package/presets/opencode/prompts/v0.6.0/implementer.md +35 -0
- package/presets/opencode/prompts/v0.6.0/planner.md +36 -0
- package/presets/opencode/prompts/v0.6.0/reviewer.md +40 -0
- package/presets/opencode/prompts/v1.0.0/README.md +47 -0
- package/presets/opencode/prompts/v1.0.0/architect.md +259 -0
- package/presets/opencode/prompts/v1.0.0/complexity-auditor.md +116 -0
- package/presets/opencode/prompts/v1.0.0/contract-builder.md +120 -0
- package/presets/opencode/prompts/v1.0.0/devil.md +169 -0
- package/presets/opencode/prompts/v1.0.0/docs.md +229 -0
- package/presets/opencode/prompts/v1.0.0/goal-planner.md +123 -0
- package/presets/opencode/prompts/v1.0.0/implementer.md +228 -0
- package/presets/opencode/prompts/v1.0.0/orchestrator.md +474 -0
- package/presets/opencode/prompts/v1.0.0/planner.md +72 -0
- package/presets/opencode/prompts/v1.0.0/repo-explorer.md +147 -0
- package/presets/opencode/prompts/v1.0.0/reviewer.md +295 -0
- package/presets/opencode/prompts/v1.0.0/security-reviewer.md +170 -0
- package/presets/opencode/prompts/v1.0.0/task-coach.md +235 -0
- package/presets/opencode/prompts/v1.0.0/tester.md +298 -0
- package/presets/opencode/skills/backlog/SKILL.md +91 -0
- package/presets/opencode/skills/openspec/SKILL.md +5 -1
- package/presets/opencode/skills/security-ai-llm/SKILL.md +43 -0
- package/presets/opencode/skills/security-blue-team/SKILL.md +43 -0
- package/presets/opencode/skills/security-cloud/SKILL.md +43 -0
- package/presets/opencode/skills/security-crypto/SKILL.md +43 -0
- package/presets/opencode/skills/security-exploit-dev/SKILL.md +45 -0
- package/presets/opencode/skills/security-grc/SKILL.md +43 -0
- package/presets/opencode/skills/security-incident-response/SKILL.md +45 -0
- package/presets/opencode/skills/security-log-analysis/SKILL.md +43 -0
- package/presets/opencode/skills/security-malware-analysis/SKILL.md +44 -0
- package/presets/opencode/skills/security-mobile/SKILL.md +43 -0
- package/presets/opencode/skills/security-network/SKILL.md +43 -0
- package/presets/opencode/skills/security-ot-ics/SKILL.md +43 -0
- package/presets/opencode/skills/security-recon/SKILL.md +45 -0
- package/presets/opencode/skills/security-red-team/SKILL.md +44 -0
- package/presets/opencode/skills/security-reverse-engineering/SKILL.md +44 -0
- package/presets/opencode/skills/security-soc-automation/SKILL.md +43 -0
- package/presets/opencode/skills/security-threat-hunting/SKILL.md +43 -0
- package/presets/opencode/skills/security-vuln-assessment/SKILL.md +45 -0
- package/presets/opencode/skills/security-web/SKILL.md +44 -0
- package/presets/seo-hotel/settings.json +0 -17
- package/src/presets/council/council.yml +12 -0
- package/src/presets/manifests/agy.yml +2 -2
- package/src/presets/manifests/claude.yml +2 -2
- package/src/presets/manifests/codex.yml +2 -2
- package/src/presets/manifests/cursor.yml +2 -2
- package/src/presets/manifests/gemini.yml +2 -2
- package/src/presets/manifests/opencode.yml +2 -2
- package/src/presets/models/agy.yml +93 -66
- package/src/presets/models/claude.yml +79 -53
- package/src/presets/models/codex.yml +79 -54
- package/src/presets/models/cursor.yml +72 -58
- package/src/presets/models/gemini.yml +79 -53
- package/src/presets/models/opencode.yml +72 -46
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-backlog
|
|
3
|
+
description:
|
|
4
|
+
Author BACKLOG.md — wayfinding, grilling, create or append items, validate
|
|
5
|
+
with openspec, and plan OpenSpec change folders for /cc-openspec.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Backlog Authoring Workflow
|
|
9
|
+
|
|
10
|
+
Objectives: $ARGUMENTS
|
|
11
|
+
|
|
12
|
+
Create or append valid `BACKLOG.md` items and OpenSpec change docs. Do **not**
|
|
13
|
+
deliver implementation — that is `/cc-openspec`.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Step 0 — CCEP Bootstrap
|
|
18
|
+
|
|
19
|
+
Command: `backlog` (fixed for this workflow — do not infer from user text)
|
|
20
|
+
|
|
21
|
+
1. Run: `npx cc-codeconductor ccep parse --command backlog "$ARGUMENTS" --output json`
|
|
22
|
+
2. Run: `npx cc-codeconductor ccep resolve --command backlog "$ARGUMENTS" --output json`
|
|
23
|
+
3. Run: `npx cc-codeconductor ccep profile backlog --output json`
|
|
24
|
+
4. 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.
|
|
25
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Step 1 — Wayfinding (repo-explorer)
|
|
30
|
+
|
|
31
|
+
If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"`. Invoke
|
|
32
|
+
`repo-explorer`. Do not write `BACKLOG.md`. Scope must name real files.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Step 2 — Relentless Grilling (task-coach)
|
|
37
|
+
|
|
38
|
+
Invoke `task-coach`. Measurable acceptance only. One grilling question at a time.
|
|
39
|
+
|
|
40
|
+
**STOP here.** Unresolved grilling questions populate `questionsForUser`;
|
|
41
|
+
`ccep evaluate --command backlog` halts until a human answers.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Step 3 — Write or append BACKLOG.md
|
|
46
|
+
|
|
47
|
+
Apply skill `backlog`. Create from template if missing; otherwise append under
|
|
48
|
+
`## Items`. Next `BC-NNN` = max existing + 1. Status `READY`. Do not rewrite
|
|
49
|
+
`## Global` or `## Archive`. Do not `git add` `BACKLOG.md` or `openspec/`.
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Step 4 — Validate (mandatory gate)
|
|
54
|
+
|
|
55
|
+
Run `npx cc-codeconductor openspec validate`. If invalid, show errors and
|
|
56
|
+
canonical structure, fix, re-validate. **STOP** planning until valid.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Step 5 — Plan new items
|
|
61
|
+
|
|
62
|
+
For each new `BC-id`: `npx cc-codeconductor openspec plan <BC-id>`.
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Completion
|
|
67
|
+
|
|
68
|
+
Report IDs, validate result, change folders. Tell the user to run `/cc-openspec`.
|
|
69
|
+
Apply skill `backlog`.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-clarify
|
|
3
|
+
description:
|
|
4
|
+
Re-explain the last deliverable in Task Card vocabulary when it did not land.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Clarify Workflow
|
|
8
|
+
|
|
9
|
+
Clarify request: $ARGUMENTS
|
|
10
|
+
|
|
11
|
+
## Step 0 — CCEP Bootstrap
|
|
12
|
+
|
|
13
|
+
Command: `clarify` (fixed for this workflow — do not infer from user text)
|
|
14
|
+
|
|
15
|
+
1. Run: `npx cc-codeconductor ccep parse --command clarify "$ARGUMENTS" --output json`
|
|
16
|
+
2. Run: `npx cc-codeconductor ccep resolve --command clarify "$ARGUMENTS" --output json`
|
|
17
|
+
3. Run: `npx cc-codeconductor ccep profile clarify --output json`
|
|
18
|
+
4. 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.
|
|
19
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Step 1 — Re-explain (task-coach)
|
|
24
|
+
|
|
25
|
+
Invoke `task-coach` / `orchestrator`. Restate the last Task Card, plan, or review in the project's vocabulary. Do not add new scope. If questions remain, one question per branch.
|
|
26
|
+
|
|
27
|
+
**STOP if ConfirmationGate reports questions.**
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Completion
|
|
32
|
+
|
|
33
|
+
A plain-language restatement plus any remaining questions. Then resume the previous workflow.
|
|
@@ -7,20 +7,44 @@ description: Run the full Council-Driven Development workflow — SDD spec creat
|
|
|
7
7
|
|
|
8
8
|
Task request: $ARGUMENTS
|
|
9
9
|
|
|
10
|
-
## Step
|
|
10
|
+
## Step 0 — CCEP Bootstrap
|
|
11
|
+
|
|
12
|
+
Command: `council` (fixed for this workflow — do not infer from user text)
|
|
13
|
+
command: council
|
|
14
|
+
|
|
15
|
+
1. Run: `npx cc-codeconductor ccep parse --command council "$ARGUMENTS" --output json`
|
|
16
|
+
2. Run: `npx cc-codeconductor ccep resolve --command council "$ARGUMENTS" --output json`
|
|
17
|
+
3. Run: `npx cc-codeconductor ccep profile council --output json`
|
|
18
|
+
4. 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.
|
|
19
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Step 1 — Wayfinding (repo-explorer)
|
|
24
|
+
|
|
25
|
+
If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"` (and
|
|
26
|
+
`graphify path` / `graphify explain` when needed). Then invoke `repo-explorer`
|
|
27
|
+
to map impact radius before deliberation. Do not write code in this step.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Step 2 — Deliberation & Specification (SDD)
|
|
11
32
|
|
|
12
33
|
Invoke the `council` skill to analyze the request before writing any code. The council must act as a steering committee involving `task-coach` (Product), `architect`, and `devil`.
|
|
13
34
|
|
|
14
35
|
The council must:
|
|
15
36
|
1. Clarify the prompt and define the absolute minimum scope (Simplicity Gate).
|
|
16
|
-
2. Explicitly document all assumptions and
|
|
37
|
+
2. Explicitly document all assumptions and run the Grilling protocol on each one (Think Before Coding).
|
|
17
38
|
3. Draft a Task Card & Technical Plan (The Specification).
|
|
18
39
|
|
|
19
|
-
**STOP here
|
|
40
|
+
**STOP here.** Unresolved grilling questions populate `questionsForUser` in the
|
|
41
|
+
CCEP-1 `planner-output`; `ccep evaluate` (ConfirmationGate) halts until a human
|
|
42
|
+
answers. Show the agreed Task Card & Technical Plan and wait for confirmation
|
|
43
|
+
before continuing.
|
|
20
44
|
|
|
21
45
|
---
|
|
22
46
|
|
|
23
|
-
## Step
|
|
47
|
+
## Step 3 — Test Definition (TDD)
|
|
24
48
|
|
|
25
49
|
Invoke `tester` with the approved Task Card & Technical Plan.
|
|
26
50
|
|
|
@@ -32,7 +56,7 @@ tester must:
|
|
|
32
56
|
|
|
33
57
|
---
|
|
34
58
|
|
|
35
|
-
## Step
|
|
59
|
+
## Step 4 — Surgical Implementation
|
|
36
60
|
|
|
37
61
|
Invoke `implementer` with the failing tests and the Technical Plan.
|
|
38
62
|
|
|
@@ -44,7 +68,7 @@ implementer must:
|
|
|
44
68
|
|
|
45
69
|
---
|
|
46
70
|
|
|
47
|
-
## Step
|
|
71
|
+
## Step 5 — Multi-Perspective Council Review
|
|
48
72
|
|
|
49
73
|
Invoke the `council` skill on the generated diff to perform the final review phase.
|
|
50
74
|
|
|
@@ -52,7 +76,7 @@ The council will evaluate the diff against the 6 axes (Architecture, Security, P
|
|
|
52
76
|
|
|
53
77
|
If ANY agent votes CRITICAL (especially due to over-engineering, scope creep, or missing the verifiable goals):
|
|
54
78
|
- The Review Report status is **BLOCKED**.
|
|
55
|
-
- Return to Step
|
|
79
|
+
- Return to Step 4 with the feedback.
|
|
56
80
|
|
|
57
81
|
If APPROVED (no CRITICAL findings):
|
|
58
82
|
- Deliver the final Council Verdict and the diff summary.
|
|
@@ -9,6 +9,19 @@ description:
|
|
|
9
9
|
|
|
10
10
|
Migration request: $ARGUMENTS
|
|
11
11
|
|
|
12
|
+
## Step 0 — CCEP Bootstrap
|
|
13
|
+
|
|
14
|
+
Command: `db-migration` (fixed for this workflow — do not infer from user text)
|
|
15
|
+
|
|
16
|
+
1. Run: `npx cc-codeconductor ccep parse --command db-migration "$ARGUMENTS" --output json`
|
|
17
|
+
2. Run: `npx cc-codeconductor ccep resolve --command db-migration "$ARGUMENTS" --output json`
|
|
18
|
+
3. Run: `npx cc-codeconductor ccep profile db-migration --output json`
|
|
19
|
+
4. 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.
|
|
20
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
21
|
+
Canonical delivery order is test-before-implement whenever both phases apply.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
12
25
|
## Step 1 — Task Card validation (task-coach)
|
|
13
26
|
|
|
14
27
|
Invoke `task-coach` with the request above.
|
|
@@ -36,22 +49,22 @@ compatibility strategy, rollback/forward-fix notes, and test approach.
|
|
|
36
49
|
|
|
37
50
|
---
|
|
38
51
|
|
|
39
|
-
## Step 3 —
|
|
52
|
+
## Step 3 — Migration tests (tester)
|
|
40
53
|
|
|
41
|
-
Invoke `
|
|
54
|
+
Invoke `tester`.
|
|
42
55
|
|
|
43
|
-
|
|
44
|
-
|
|
56
|
+
tester must cover migration-sensitive behavior where the stack supports it,
|
|
57
|
+
including happy path, existing-data edge cases, and rollback/forward-fix notes
|
|
58
|
+
when automated rollback tests are not practical.
|
|
45
59
|
|
|
46
60
|
---
|
|
47
61
|
|
|
48
|
-
## Step 4 —
|
|
62
|
+
## Step 4 — Implementation (implementer)
|
|
49
63
|
|
|
50
|
-
Invoke `
|
|
64
|
+
Invoke `implementer` with the approved plan.
|
|
51
65
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
when automated rollback tests are not practical.
|
|
66
|
+
implementer must keep model and migration changes together, avoid unrelated
|
|
67
|
+
refactors, and preserve the deployment order specified by architect.
|
|
55
68
|
|
|
56
69
|
---
|
|
57
70
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-explore
|
|
3
|
+
description:
|
|
4
|
+
Map the repository and recommend the next CodeConductor slash command. Read-only.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Explore Workflow
|
|
8
|
+
|
|
9
|
+
Explore request: $ARGUMENTS
|
|
10
|
+
|
|
11
|
+
## Step 0 — CCEP Bootstrap
|
|
12
|
+
|
|
13
|
+
Command: `explore` (fixed for this workflow — do not infer from user text)
|
|
14
|
+
|
|
15
|
+
1. Run: `npx cc-codeconductor ccep parse --command explore "$ARGUMENTS" --output json`
|
|
16
|
+
2. Run: `npx cc-codeconductor ccep resolve --command explore "$ARGUMENTS" --output json`
|
|
17
|
+
3. Run: `npx cc-codeconductor ccep profile explore --output json`
|
|
18
|
+
4. 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.
|
|
19
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Step 1 — Map (repo-explorer)
|
|
24
|
+
|
|
25
|
+
If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"`. Invoke `repo-explorer`. Produce a Repo Map. Do not write code.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Step 2 — Suggest next command (orchestrator)
|
|
30
|
+
|
|
31
|
+
Recommend exactly one next slash command (`/cc:feature`, `/cc:fix`, `/cc:refactor`, `/cc:review`, `/cc:backlog`, `/cc:openspec`, `/cc:triage`, …) with a one-sentence rationale. Do not start that workflow.
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Completion
|
|
36
|
+
|
|
37
|
+
Report the Repo Map and the recommended next `/cc:` command.
|
|
@@ -9,7 +9,29 @@ description:
|
|
|
9
9
|
|
|
10
10
|
Feature request: $ARGUMENTS
|
|
11
11
|
|
|
12
|
-
## Step
|
|
12
|
+
## Step 0 — CCEP Bootstrap
|
|
13
|
+
|
|
14
|
+
Command: `feature` (fixed for this workflow — do not infer from user text)
|
|
15
|
+
|
|
16
|
+
1. Run: `npx cc-codeconductor ccep parse --command feature "$ARGUMENTS" --output json`
|
|
17
|
+
2. Run: `npx cc-codeconductor ccep resolve --command feature "$ARGUMENTS" --output json`
|
|
18
|
+
3. Run: `npx cc-codeconductor ccep profile feature --output json`
|
|
19
|
+
4. 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.
|
|
20
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
21
|
+
Canonical delivery order is test-before-implement whenever both phases apply.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Step 1 — Wayfinding (repo-explorer)
|
|
26
|
+
|
|
27
|
+
If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"` (and
|
|
28
|
+
`graphify path` / `graphify explain` when needed). Then invoke `repo-explorer`
|
|
29
|
+
to map modules, conventions, and impact radius. Do not write code in this step.
|
|
30
|
+
Record a Repo Map artifact before intake.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Step 2 — Task Card validation (task-coach)
|
|
13
35
|
|
|
14
36
|
Invoke `task-coach` with the feature description above.
|
|
15
37
|
|
|
@@ -26,7 +48,7 @@ continuing.**
|
|
|
26
48
|
|
|
27
49
|
---
|
|
28
50
|
|
|
29
|
-
## Step
|
|
51
|
+
## Step 3 — Technical Plan (architect)
|
|
30
52
|
|
|
31
53
|
Invoke `architect` with the validated Task Card from Step 1.
|
|
32
54
|
|
|
@@ -44,7 +66,20 @@ not invoke implementer until the plan is approved.**
|
|
|
44
66
|
|
|
45
67
|
---
|
|
46
68
|
|
|
47
|
-
## Step
|
|
69
|
+
## Step 4 — Test coverage (tester)
|
|
70
|
+
|
|
71
|
+
Invoke `tester` with the Implementation Summary and the Task Card.
|
|
72
|
+
|
|
73
|
+
tester must:
|
|
74
|
+
|
|
75
|
+
1. Write or extend failing tests for the new behavior before implementation (RED)
|
|
76
|
+
2. Ensure all acceptance criteria from the Task Card have at least one test
|
|
77
|
+
3. Run the full test suite and confirm it passes
|
|
78
|
+
4. Produce a Coverage Summary: test files added or modified, cases covered
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Step 5 — Implementation (implementer)
|
|
48
83
|
|
|
49
84
|
Invoke `implementer` with the approved Technical Plan and the Task Card.
|
|
50
85
|
Implementer creates a Git Worktree before touching any file; all edits happen inside it.
|
|
@@ -53,26 +88,13 @@ implementer must:
|
|
|
53
88
|
|
|
54
89
|
1. Read the Technical Plan before touching any file
|
|
55
90
|
2. Apply the minimal diff — only what the plan specifies
|
|
56
|
-
3. Run the project test suite
|
|
91
|
+
3. Run the project test suite and make the previously written failing tests pass
|
|
57
92
|
4. Produce an Implementation Summary: what changed, which files, how to verify
|
|
58
93
|
locally
|
|
59
94
|
|
|
60
95
|
---
|
|
61
96
|
|
|
62
|
-
## Step
|
|
63
|
-
|
|
64
|
-
Invoke `tester` with the Implementation Summary and the Task Card.
|
|
65
|
-
|
|
66
|
-
tester must:
|
|
67
|
-
|
|
68
|
-
1. Write or extend tests to cover the new behavior
|
|
69
|
-
2. Ensure all acceptance criteria from the Task Card have at least one test
|
|
70
|
-
3. Run the full test suite and confirm it passes
|
|
71
|
-
4. Produce a Coverage Summary: test files added or modified, cases covered
|
|
72
|
-
|
|
73
|
-
---
|
|
74
|
-
|
|
75
|
-
## Step 5 — Code review (reviewer)
|
|
97
|
+
## Step 6 — Code review (reviewer)
|
|
76
98
|
|
|
77
99
|
Invoke `reviewer` with the complete diff and the Task Card.
|
|
78
100
|
|
|
@@ -87,7 +109,7 @@ they are resolved and re-reviewed.
|
|
|
87
109
|
|
|
88
110
|
---
|
|
89
111
|
|
|
90
|
-
## Step
|
|
112
|
+
## Step 7 — Documentation (docs)
|
|
91
113
|
|
|
92
114
|
Invoke `docs` only if any of the following changed:
|
|
93
115
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: cc-fix
|
|
3
3
|
description:
|
|
4
4
|
Run the bug fix workflow — risk-based routing through task validation,
|
|
5
|
-
|
|
5
|
+
testing, implementation, and optional review.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Bug Fix Workflow
|
|
@@ -19,7 +19,29 @@ Provide the following information in $ARGUMENTS:
|
|
|
19
19
|
|
|
20
20
|
---
|
|
21
21
|
|
|
22
|
-
## Step
|
|
22
|
+
## Step 0 — CCEP Bootstrap
|
|
23
|
+
|
|
24
|
+
Command: `fix` (fixed for this workflow — do not infer from user text)
|
|
25
|
+
|
|
26
|
+
1. Run: `npx cc-codeconductor ccep parse --command fix "$ARGUMENTS" --output json`
|
|
27
|
+
2. Run: `npx cc-codeconductor ccep resolve --command fix "$ARGUMENTS" --output json`
|
|
28
|
+
3. Run: `npx cc-codeconductor ccep profile fix --output json`
|
|
29
|
+
4. 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.
|
|
30
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
31
|
+
Canonical delivery order is test-before-implement whenever both phases apply.
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Step 1 — Wayfinding (repo-explorer)
|
|
36
|
+
|
|
37
|
+
If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"` (and
|
|
38
|
+
`graphify path` / `graphify explain` when needed). Then invoke `repo-explorer`
|
|
39
|
+
to map modules, conventions, and impact radius. Do not write code in this step.
|
|
40
|
+
Record a Repo Map artifact before intake.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Step 2 — Task Card validation (task-coach)
|
|
23
45
|
|
|
24
46
|
Invoke `task-coach` with the bug description above.
|
|
25
47
|
|
|
@@ -34,11 +56,16 @@ If reproduction steps are missing, task-coach must ask for them before
|
|
|
34
56
|
classifying risk. A bug without a reproduction path cannot be classified
|
|
35
57
|
reliably.
|
|
36
58
|
|
|
59
|
+
Capture evidence before tests: reproduction, logs or stack traces, and one
|
|
60
|
+
falsifiable hypothesis of the root cause. Do not patch without that evidence.
|
|
61
|
+
Redact secrets, tokens, and credential dumps from logs before they enter the
|
|
62
|
+
Task Card. Summarize stack traces; do not paste env files.
|
|
63
|
+
|
|
37
64
|
**STOP here. Show the Task Card and wait for human confirmation.**
|
|
38
65
|
|
|
39
66
|
---
|
|
40
67
|
|
|
41
|
-
## Step
|
|
68
|
+
## Step 3 — Route by risk
|
|
42
69
|
|
|
43
70
|
Read the risk field from the Task Card and follow the corresponding route.
|
|
44
71
|
|
|
@@ -47,16 +74,16 @@ Read the risk field from the Task Card and follow the corresponding route.
|
|
|
47
74
|
Applies when: the bug is isolated to a single component, existing tests cover
|
|
48
75
|
the affected code, and no public API or shared state is involved.
|
|
49
76
|
|
|
50
|
-
Route: `task-coach` → `
|
|
77
|
+
Route: `task-coach` → `tester` → `implementer`
|
|
51
78
|
|
|
52
|
-
Proceed directly to Step
|
|
79
|
+
Proceed directly to Step 3 (tests), then Step 4a.
|
|
53
80
|
|
|
54
81
|
### Medium or high-risk route
|
|
55
82
|
|
|
56
83
|
Applies when: the bug touches shared state, a public API, auth or payment paths,
|
|
57
84
|
database writes, or the root cause is not yet understood.
|
|
58
85
|
|
|
59
|
-
Route: `task-coach` → `architect` → `
|
|
86
|
+
Route: `task-coach` → `architect` → `tester` → `implementer` → `reviewer`
|
|
60
87
|
|
|
61
88
|
Invoke `architect` before implementation. architect must:
|
|
62
89
|
|
|
@@ -70,7 +97,20 @@ before continuing.**
|
|
|
70
97
|
|
|
71
98
|
---
|
|
72
99
|
|
|
73
|
-
## Step
|
|
100
|
+
## Step 4 — Regression tests (tester)
|
|
101
|
+
|
|
102
|
+
Invoke `tester` for all risk levels.
|
|
103
|
+
|
|
104
|
+
tester must:
|
|
105
|
+
|
|
106
|
+
1. Write a regression test that reproduces the original bug and confirm it fails
|
|
107
|
+
before any fix (RED)
|
|
108
|
+
2. Verify that existing tests still pass
|
|
109
|
+
3. Produce a Coverage Summary: test added, case covered
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## Step 5a — Implementation, low-risk (implementer)
|
|
74
114
|
|
|
75
115
|
Invoke `implementer` with the Task Card.
|
|
76
116
|
Implementer creates a Git Worktree before touching any file; all edits happen inside it.
|
|
@@ -79,12 +119,12 @@ implementer must:
|
|
|
79
119
|
|
|
80
120
|
1. Locate the defect using the reproduction steps
|
|
81
121
|
2. Apply the minimal fix — no unrelated changes
|
|
82
|
-
3. Run the test
|
|
122
|
+
3. Run the suite and make the RED regression test pass
|
|
83
123
|
4. Produce an Implementation Summary: root cause, fix applied, files changed
|
|
84
124
|
|
|
85
125
|
---
|
|
86
126
|
|
|
87
|
-
## Step
|
|
127
|
+
## Step 5b — Implementation, medium/high-risk (implementer)
|
|
88
128
|
|
|
89
129
|
Invoke `implementer` with the approved Technical Plan and the Task Card.
|
|
90
130
|
Implementer creates a Git Worktree before touching any file; all edits happen inside it.
|
|
@@ -94,20 +134,7 @@ Plan approval. After implementation, run the full test suite.
|
|
|
94
134
|
|
|
95
135
|
---
|
|
96
136
|
|
|
97
|
-
## Step
|
|
98
|
-
|
|
99
|
-
Invoke `tester` for all risk levels.
|
|
100
|
-
|
|
101
|
-
tester must:
|
|
102
|
-
|
|
103
|
-
1. Write a regression test that reproduces the original bug (fails before the
|
|
104
|
-
fix, passes after)
|
|
105
|
-
2. Verify that existing tests still pass
|
|
106
|
-
3. Produce a Coverage Summary: test added, case covered
|
|
107
|
-
|
|
108
|
-
---
|
|
109
|
-
|
|
110
|
-
## Step 5 — Review (reviewer) — medium/high-risk only
|
|
137
|
+
## Step 6 — Review (reviewer) — medium/high-risk only
|
|
111
138
|
|
|
112
139
|
Invoke `reviewer` with the diff and Task Card.
|
|
113
140
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-handoff
|
|
3
|
+
description:
|
|
4
|
+
Compact the session into gitignored `.codeconductor/sessions/handoff.md` (redact secrets).
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Handoff Workflow
|
|
8
|
+
|
|
9
|
+
Handoff request: $ARGUMENTS
|
|
10
|
+
|
|
11
|
+
## Step 0 — CCEP Bootstrap
|
|
12
|
+
|
|
13
|
+
Command: `handoff` (fixed for this workflow — do not infer from user text)
|
|
14
|
+
|
|
15
|
+
1. Run: `npx cc-codeconductor ccep parse --command handoff "$ARGUMENTS" --output json`
|
|
16
|
+
2. Run: `npx cc-codeconductor ccep resolve --command handoff "$ARGUMENTS" --output json`
|
|
17
|
+
3. Run: `npx cc-codeconductor ccep profile handoff --output json`
|
|
18
|
+
4. 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.
|
|
19
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Step 1 — Compact (docs)
|
|
24
|
+
|
|
25
|
+
Invoke `docs`. Write **only** `.codeconductor/sessions/handoff.md` (gitignored).
|
|
26
|
+
Do not write `.codeconductor/handoff.md` or any tracked path.
|
|
27
|
+
|
|
28
|
+
Before writing, redact secrets, tokens, API keys, passwords, connection strings,
|
|
29
|
+
`.env` contents, and log/stack-trace lines that embed those values. Summarize
|
|
30
|
+
errors instead of pasting dumps. If unresolved credential material remains, stop
|
|
31
|
+
and wait for a human (CCEP `stopOnHighRisk`).
|
|
32
|
+
|
|
33
|
+
Include: goal, Task Card status (no secret fields), files touched, test
|
|
34
|
+
pass/fail (not log dumps), open questions, and the next `/cc:` command.
|
|
35
|
+
|
|
36
|
+
Do not edit source or tests.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Completion
|
|
41
|
+
|
|
42
|
+
Report the handoff path. Another session should be able to continue from that file alone.
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-iterative
|
|
3
|
+
description:
|
|
4
|
+
Run the advanced iterative workflow — Wayfinding AST discovery, Relentless
|
|
5
|
+
Grilling, contract and spec design, TDD, council review, and docs.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Advanced Iterative Workflow
|
|
9
|
+
|
|
10
|
+
Iterative request: $ARGUMENTS
|
|
11
|
+
|
|
12
|
+
## Step 0 — CCEP Bootstrap
|
|
13
|
+
|
|
14
|
+
Command: `iterative` (fixed for this workflow — do not infer from user text)
|
|
15
|
+
|
|
16
|
+
1. Run: `npx cc-codeconductor ccep parse --command iterative "$ARGUMENTS" --output json`
|
|
17
|
+
2. Run: `npx cc-codeconductor ccep resolve --command iterative "$ARGUMENTS" --output json`
|
|
18
|
+
3. Run: `npx cc-codeconductor ccep profile iterative --output json`
|
|
19
|
+
4. 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.
|
|
20
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
21
|
+
Canonical delivery order is test-before-implement whenever both phases apply.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Step 1 — Wayfinding (repo-explorer)
|
|
26
|
+
|
|
27
|
+
If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"` (and
|
|
28
|
+
`graphify path` / `graphify explain` when two modules or one concept need a
|
|
29
|
+
scoped subgraph). Then invoke `repo-explorer` with that graph output.
|
|
30
|
+
|
|
31
|
+
repo-explorer maps directory trees, conventions, god nodes, and affected
|
|
32
|
+
modules. Do not write code in this step. Write a short phase handoff (scope,
|
|
33
|
+
files, open questions) before the next phase — do not chain agents on unspoken
|
|
34
|
+
context.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Step 2 — Relentless Grilling & Task Card (task-coach)
|
|
39
|
+
|
|
40
|
+
Invoke `task-coach` using the Grilling protocol to stress-test all assumptions.
|
|
41
|
+
|
|
42
|
+
The Task Card is ready when it contains: title, type, risk classification,
|
|
43
|
+
scope, context, acceptance criteria, and constraints, and every assumption
|
|
44
|
+
behind it has survived one grilling question.
|
|
45
|
+
|
|
46
|
+
If any field is missing or ambiguous, ask one clarifying question at a time and
|
|
47
|
+
wait for the answer. Do not proceed with an incomplete Task Card.
|
|
48
|
+
|
|
49
|
+
**STOP here.** Unresolved grilling questions or missing fields populate
|
|
50
|
+
`questionsForUser` in the CCEP-1 `planner-output`; the `ConfirmationGate`
|
|
51
|
+
(`ccep evaluate`) reads that field and halts the workflow until a human
|
|
52
|
+
answers. Show the completed Task Card and wait for that confirmation before
|
|
53
|
+
continuing.
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Step 3 — Contract & Technical Plan (contract-builder & architect)
|
|
58
|
+
|
|
59
|
+
Invoke `contract-builder` then `architect` with the validated Task Card.
|
|
60
|
+
|
|
61
|
+
1. Define API contracts, JSON Schemas, or TypeScript interfaces.
|
|
62
|
+
2. Formulate the Technical Plan (chosen approach, affected files, trade-offs).
|
|
63
|
+
3. Apply YAGNI, Simplicity First, and Stdlib-First.
|
|
64
|
+
|
|
65
|
+
**STOP here. Show the Technical Plan and wait for explicit human approval. Do
|
|
66
|
+
not invoke implementer until the plan is approved.**
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Step 4 — Test coverage (tester)
|
|
71
|
+
|
|
72
|
+
Invoke `tester` with the Task Card and Technical Plan.
|
|
73
|
+
|
|
74
|
+
1. Write or extend failing tests for the new behavior before implementation (RED).
|
|
75
|
+
2. Ensure all acceptance criteria from the Task Card have at least one test.
|
|
76
|
+
3. Produce a Test Report: test files added or modified, cases covered.
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Step 5 — Implementation (implementer)
|
|
81
|
+
|
|
82
|
+
Invoke `implementer` with the approved Technical Plan, contracts, and failing
|
|
83
|
+
tests. Implementer creates a Git Worktree before touching any file; all edits
|
|
84
|
+
happen inside it.
|
|
85
|
+
|
|
86
|
+
1. Read the Technical Plan before touching any file.
|
|
87
|
+
2. Apply the minimal diff — only what the plan specifies.
|
|
88
|
+
3. Run the project test suite and make the previously written failing tests pass.
|
|
89
|
+
4. If tests fail, run up to 3 repair cycles (`implementer` → `tester`).
|
|
90
|
+
5. Produce an Implementation Summary: what changed, which files, how to verify
|
|
91
|
+
locally.
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Step 6 — Multi-Perspective Council Review
|
|
96
|
+
|
|
97
|
+
Invoke the `council` skill on the generated diff (`council-review` phase).
|
|
98
|
+
|
|
99
|
+
The council evaluates Architecture, Security, Product, Delivery, DataOps, and
|
|
100
|
+
Devil. `security-reviewer` may set `securityVeto: true`; that REJECTED verdict
|
|
101
|
+
overrides majority consensus.
|
|
102
|
+
|
|
103
|
+
If ANY agent votes CRITICAL:
|
|
104
|
+
- The Review Report status is **BLOCKED**.
|
|
105
|
+
- Return to Step 5 with the feedback.
|
|
106
|
+
|
|
107
|
+
If APPROVED (no CRITICAL findings), continue.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Step 7 — Documentation (docs)
|
|
112
|
+
|
|
113
|
+
Invoke `docs` when a public API, public module, or user-visible behavior
|
|
114
|
+
changed.
|
|
115
|
+
|
|
116
|
+
Update: README (if applicable), OpenAPI spec (if applicable), CHANGELOG
|
|
117
|
+
(always when implementation changed), ADR (if an architectural decision was
|
|
118
|
+
made).
|
|
119
|
+
|
|
120
|
+
If `graphify-out/` is in use, run `graphify update .` (AST-only).
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## Completion
|
|
125
|
+
|
|
126
|
+
The iterative workflow is complete only when: all tests pass, the council
|
|
127
|
+
approves the spec and the diff, no CRITICAL findings remain, and documentation
|
|
128
|
+
and the knowledge graph reflect the implemented behavior.
|