cc-codeconductor 1.0.0 → 1.2.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 +326 -87
- package/dist/core/compilation/compile-checker.d.ts +2 -0
- package/dist/core/loop/loop-engine.d.ts +3 -0
- package/dist/core/verification/verification-runner.d.ts +7 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3825 -597
- package/dist/library.js +195 -18
- package/dist/validation/schemas.d.ts +461 -44
- package/package.json +4 -1
- package/presets/agy/AGENTS.md +13 -9
- package/presets/agy/gates/pre-commit/GATE.md +5 -4
- package/presets/agy/hooks.json +2 -2
- package/presets/agy/scripts/invoke-hook.cjs +115 -0
- package/presets/agy/skills/backlog/SKILL.md +61 -0
- package/presets/agy/skills/cc-spec-mutation/SKILL.md +165 -0
- package/presets/agy/skills/cc-tdd-cycle/SKILL.md +3 -0
- package/presets/agy/skills/evaluation/SKILL.md +61 -2
- package/presets/agy/skills/openspec/SKILL.md +50 -16
- 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/skills/testing-tdd/SKILL.md +53 -0
- package/presets/agy/skills/using-cc-skills/SKILL.md +48 -0
- package/presets/agy/workflows/cc-api-contract.md +14 -0
- package/presets/agy/workflows/cc-ask.md +2 -1
- package/presets/agy/workflows/cc-backlog.md +69 -0
- package/presets/agy/workflows/cc-db-migration.md +14 -0
- package/presets/agy/workflows/cc-explore.md +1 -1
- package/presets/agy/workflows/cc-feature.md +18 -0
- package/presets/agy/workflows/cc-fix.md +14 -0
- package/presets/agy/workflows/cc-iterative.md +14 -0
- package/presets/agy/workflows/cc-openspec.md +17 -1
- package/presets/agy/workflows/cc-scorecard.md +2 -0
- package/presets/agy/workflows/cc-security.md +180 -0
- package/presets/agy/workflows/cc-spec-mutation.md +191 -0
- package/presets/agy/workflows/cc-tdd-cycle.md +14 -0
- package/presets/claude/CLAUDE.md +4 -0
- package/presets/claude/commands/cc/api-contract.md +14 -0
- package/presets/claude/commands/cc/ask.md +2 -1
- package/presets/claude/commands/cc/backlog.md +104 -0
- package/presets/claude/commands/cc/db-migration.md +14 -0
- package/presets/claude/commands/cc/explore.md +1 -1
- package/presets/claude/commands/cc/feature.md +18 -0
- package/presets/claude/commands/cc/fix.md +17 -0
- package/presets/claude/commands/cc/iterative.md +14 -0
- package/presets/claude/commands/cc/openspec.md +30 -1
- package/presets/claude/commands/cc/review.md +3 -0
- package/presets/claude/commands/cc/scorecard.md +2 -0
- package/presets/claude/commands/cc/security.md +179 -0
- package/presets/claude/commands/cc/spec-mutation.md +190 -0
- package/presets/claude/commands/cc/tdd-cycle.md +17 -0
- package/presets/claude/gates/pre-commit/GATE.md +5 -4
- package/presets/claude/settings.json +13 -11
- package/presets/claude/skills/backlog/SKILL.md +61 -0
- package/presets/claude/skills/evaluation/SKILL.md +47 -24
- package/presets/claude/skills/openspec/SKILL.md +46 -34
- 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/claude/skills/testing-tdd/SKILL.md +53 -0
- package/presets/claude/skills/using-cc-skills/SKILL.md +48 -0
- package/presets/codex/AGENTS.md +16 -12
- package/presets/codex/commands/cc-ask.md +2 -1
- package/presets/codex/gates/pre-commit/GATE.md +5 -4
- package/presets/codex/skills/backlog/SKILL.md +61 -0
- package/presets/codex/skills/cc-api-contract/SKILL.md +87 -0
- package/presets/codex/skills/cc-backlog/SKILL.md +108 -0
- package/presets/codex/skills/cc-clarify/SKILL.md +36 -0
- package/presets/codex/skills/cc-council/SKILL.md +92 -0
- package/presets/codex/skills/cc-db-migration/SKILL.md +88 -0
- package/presets/codex/skills/cc-explore/SKILL.md +40 -0
- package/presets/codex/skills/cc-feature/SKILL.md +154 -0
- package/presets/codex/skills/cc-fix/SKILL.md +165 -0
- package/presets/codex/skills/cc-handoff/SKILL.md +45 -0
- package/presets/codex/skills/cc-iterative/SKILL.md +150 -0
- package/presets/codex/skills/cc-openspec/SKILL.md +191 -0
- package/presets/codex/skills/cc-pagespeed/SKILL.md +124 -0
- package/presets/codex/skills/cc-prototype/SKILL.md +42 -0
- package/presets/codex/skills/cc-refactor/SKILL.md +163 -0
- package/presets/codex/skills/cc-review/SKILL.md +152 -0
- package/presets/codex/skills/cc-scorecard/SKILL.md +82 -0
- package/presets/codex/skills/cc-security/SKILL.md +182 -0
- package/presets/codex/skills/cc-spec-mutation/SKILL.md +192 -0
- package/presets/codex/skills/cc-tdd-cycle/SKILL.md +266 -0
- package/presets/codex/skills/cc-test-plan/SKILL.md +153 -0
- package/presets/codex/skills/cc-triage/SKILL.md +38 -0
- package/presets/codex/skills/evaluation/SKILL.md +65 -0
- package/presets/codex/skills/openspec/SKILL.md +66 -0
- package/presets/codex/skills/testing-tdd/SKILL.md +53 -0
- package/presets/codex/skills/using-cc-skills/SKILL.md +48 -0
- package/presets/cursor/AGENTS.md +2 -2
- package/presets/cursor/commands/cc/api-contract.md +14 -0
- package/presets/cursor/commands/cc/ask.md +2 -1
- package/presets/cursor/commands/cc/backlog.md +105 -0
- package/presets/cursor/commands/cc/db-migration.md +14 -0
- package/presets/cursor/commands/cc/explore.md +1 -1
- package/presets/cursor/commands/cc/feature.md +18 -0
- package/presets/cursor/commands/cc/fix.md +17 -0
- package/presets/cursor/commands/cc/iterative.md +14 -0
- package/presets/cursor/commands/cc/openspec.md +30 -1
- package/presets/cursor/commands/cc/scorecard.md +2 -0
- package/presets/cursor/commands/cc/security.md +179 -0
- package/presets/cursor/commands/cc/spec-mutation.md +190 -0
- package/presets/cursor/commands/cc/tdd-cycle.md +14 -0
- package/presets/cursor/gates/pre-commit/GATE.md +5 -4
- package/presets/cursor/skills/backlog/SKILL.md +61 -0
- package/presets/cursor/skills/evaluation/SKILL.md +61 -4
- package/presets/cursor/skills/openspec/SKILL.md +47 -33
- 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/cursor/skills/testing-tdd/SKILL.md +35 -574
- package/presets/cursor/skills/using-cc-skills/SKILL.md +48 -0
- package/presets/gemini/commands/cc/api-contract.toml +82 -0
- package/presets/gemini/commands/cc/ask.toml +54 -0
- package/presets/gemini/commands/cc/backlog.toml +103 -0
- package/presets/gemini/commands/cc/clarify.toml +31 -0
- package/presets/gemini/commands/cc/council.toml +87 -0
- package/presets/gemini/commands/cc/db-migration.toml +83 -0
- package/presets/gemini/commands/cc/explore.toml +35 -0
- package/presets/gemini/commands/cc/feature.toml +153 -0
- package/presets/gemini/commands/cc/fix.toml +163 -0
- package/presets/gemini/commands/cc/handoff.toml +40 -0
- package/presets/gemini/commands/cc/iterative.toml +145 -0
- package/presets/gemini/commands/cc/openspec.toml +186 -0
- package/presets/gemini/commands/cc/pagespeed.toml +119 -0
- package/presets/gemini/commands/cc/prototype.toml +37 -0
- package/presets/gemini/commands/cc/refactor.toml +158 -0
- package/presets/gemini/commands/cc/review.toml +150 -0
- package/presets/gemini/commands/cc/scorecard.toml +77 -0
- package/presets/gemini/commands/cc/security.toml +177 -0
- package/presets/gemini/commands/cc/spec-mutation.toml +187 -0
- package/presets/gemini/commands/cc/tdd-cycle.toml +264 -0
- package/presets/gemini/commands/cc/test-plan.toml +148 -0
- package/presets/gemini/commands/cc/triage.toml +33 -0
- package/presets/opencode/README.md +24 -21
- package/presets/opencode/agents/architect.md +6 -0
- package/presets/opencode/agents/implementer.md +7 -0
- package/presets/opencode/agents/reviewer.md +6 -0
- package/presets/opencode/agents/tester.md +6 -0
- package/presets/opencode/commands/cc-api-contract.md +14 -0
- package/presets/opencode/commands/cc-ask.md +2 -1
- package/presets/opencode/commands/cc-backlog.md +68 -0
- package/presets/opencode/commands/cc-db-migration.md +14 -0
- package/presets/opencode/commands/cc-explore.md +1 -1
- package/presets/opencode/commands/cc-feature.md +18 -0
- package/presets/opencode/commands/cc-fix.md +17 -0
- package/presets/opencode/commands/cc-iterative.md +14 -0
- package/presets/opencode/commands/cc-openspec.md +17 -1
- package/presets/opencode/commands/cc-scorecard.md +2 -0
- package/presets/opencode/commands/cc-security.md +179 -0
- package/presets/opencode/commands/cc-spec-mutation.md +190 -0
- package/presets/opencode/commands/cc-tdd-cycle.md +14 -0
- package/presets/opencode/gates/pre-commit/GATE.md +5 -4
- package/presets/opencode/opencode.jsonc +1 -1
- package/presets/opencode/prompts/v1.0.0/architect.md +6 -0
- package/presets/opencode/prompts/v1.0.0/implementer.md +7 -0
- package/presets/opencode/prompts/v1.0.0/reviewer.md +6 -0
- package/presets/opencode/prompts/v1.0.0/tester.md +6 -0
- package/presets/opencode/skills/backlog/SKILL.md +61 -0
- package/presets/opencode/skills/evaluation/SKILL.md +61 -2
- package/presets/opencode/skills/openspec/SKILL.md +47 -31
- 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/opencode/skills/testing-tdd/SKILL.md +35 -574
- package/presets/opencode/skills/using-cc-skills/SKILL.md +48 -0
- package/presets/shared/__pycache__/mutation_runner.cpython-314.pyc +0 -0
- package/presets/shared/invoke-hook.cjs +115 -0
- package/presets/shared/mutation_runner.py +273 -0
- package/src/presets/council/council.yml +12 -0
- package/src/presets/manifests/agy.yml +2 -0
- package/src/presets/manifests/claude.yml +3 -0
- package/src/presets/manifests/gemini.yml +15 -0
- package/src/presets/models/agy.yml +24 -24
- package/src/presets/models/claude.yml +10 -10
- package/src/presets/models/codex.yml +10 -10
- package/src/presets/models/cursor.yml +10 -10
- package/src/presets/models/gemini.yml +10 -10
- package/src/presets/models/opencode.yml +10 -10
- package/presets/agy/scripts/post-tool.sh +0 -25
- package/presets/agy/scripts/pre-tool.sh +0 -56
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-db-migration
|
|
3
|
+
description: operational sequencing, tests, and review.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# db-migration
|
|
7
|
+
|
|
8
|
+
Invoke as `$cc-db-migration`. The user request follows the skill mention.
|
|
9
|
+
|
|
10
|
+
# Database Migration Workflow
|
|
11
|
+
|
|
12
|
+
Migration request: $ARGUMENTS
|
|
13
|
+
|
|
14
|
+
## Step 0 — CCEP Bootstrap
|
|
15
|
+
|
|
16
|
+
Command: `db-migration` (fixed for this workflow — do not infer from user text)
|
|
17
|
+
|
|
18
|
+
1. Run: `npx cc-codeconductor ccep parse --command db-migration "$ARGUMENTS" --output json`
|
|
19
|
+
2. Run: `npx cc-codeconductor ccep resolve --command db-migration "$ARGUMENTS" --output json`
|
|
20
|
+
3. Run: `npx cc-codeconductor ccep profile db-migration --output json`
|
|
21
|
+
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.
|
|
22
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
23
|
+
Canonical delivery order is test-before-implement whenever both phases apply.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Step 0b — OpenSpec quality gates
|
|
28
|
+
|
|
29
|
+
If `openspec status` reports an active change folder:
|
|
30
|
+
|
|
31
|
+
1. Run: `npx cc-codeconductor openspec validate --output json`
|
|
32
|
+
2. Run: `npx cc-codeconductor openspec analyze --output json`
|
|
33
|
+
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
34
|
+
4. Next command spelling on this runner: `/cc:db-migration`
|
|
35
|
+
|
|
36
|
+
Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
## Step 1 — Task Card validation (Task Coach role)
|
|
42
|
+
|
|
43
|
+
Invoke the `task-coach` subagent via the Task tool.
|
|
44
|
+
|
|
45
|
+
The Task Card must classify the task as high risk and include affected schema,
|
|
46
|
+
model, and migration files; data backfill needs; deployment ordering;
|
|
47
|
+
rollback/forward-fix strategy; lock risk; data risk; and verification commands.
|
|
48
|
+
|
|
49
|
+
**STOP here. Show the completed Task Card and wait for human confirmation.**
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Step 2 — Migration Plan (Architect role)
|
|
54
|
+
|
|
55
|
+
Invoke the `architect` subagent via the Task tool.
|
|
56
|
+
|
|
57
|
+
Define the schema/data plan, operational sequencing, compatibility strategy,
|
|
58
|
+
rollback/forward-fix notes, and test approach.
|
|
59
|
+
|
|
60
|
+
**STOP here. Show the Technical Plan and wait for explicit human approval.**
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Step 3 — Migration Tests (Tester role)
|
|
65
|
+
|
|
66
|
+
Invoke the `tester` subagent via the Task tool.
|
|
67
|
+
|
|
68
|
+
Cover migration-sensitive behavior where the stack supports it, including
|
|
69
|
+
existing-data edge cases and rollback/forward-fix notes when automated rollback
|
|
70
|
+
tests are not practical.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Step 4 — Implementation (Implementer role)
|
|
75
|
+
|
|
76
|
+
Invoke the `implementer` subagent via the Task tool.
|
|
77
|
+
|
|
78
|
+
Keep model and migration changes together, avoid unrelated refactors, and
|
|
79
|
+
preserve the deployment order specified by architect.
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Step 5 — Review (Reviewer role)
|
|
84
|
+
|
|
85
|
+
Invoke the `reviewer` subagent via the Task tool.
|
|
86
|
+
|
|
87
|
+
Block on missing migration tests, missing data-risk notes, undocumented
|
|
88
|
+
deployment sequencing, or model/migration drift.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-explore
|
|
3
|
+
description: CodeConductor explore workflow
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# explore
|
|
7
|
+
|
|
8
|
+
Invoke as `$cc-explore`. The user request follows the skill mention.
|
|
9
|
+
|
|
10
|
+
# Explore Workflow
|
|
11
|
+
|
|
12
|
+
Explore request: $ARGUMENTS
|
|
13
|
+
|
|
14
|
+
## Step 0 — CCEP Bootstrap
|
|
15
|
+
|
|
16
|
+
Command: `explore` (fixed for this workflow — do not infer from user text)
|
|
17
|
+
|
|
18
|
+
1. Run: `npx cc-codeconductor ccep parse --command explore "$ARGUMENTS" --output json`
|
|
19
|
+
2. Run: `npx cc-codeconductor ccep resolve --command explore "$ARGUMENTS" --output json`
|
|
20
|
+
3. Run: `npx cc-codeconductor ccep profile explore --output json`
|
|
21
|
+
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.
|
|
22
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Step 1 — Map (repo-explorer)
|
|
27
|
+
|
|
28
|
+
If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"`. Invoke `repo-explorer`. Produce a Repo Map. Do not write code.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Step 2 — Suggest next command (orchestrator)
|
|
33
|
+
|
|
34
|
+
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.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Completion
|
|
39
|
+
|
|
40
|
+
Report the Repo Map and the recommended next `/cc:` command.
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-feature
|
|
3
|
+
description: implementation, testing, review, and documentation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# feature
|
|
7
|
+
|
|
8
|
+
Invoke as `$cc-feature`. The user request follows the skill mention.
|
|
9
|
+
|
|
10
|
+
# Feature Workflow
|
|
11
|
+
|
|
12
|
+
Feature request: $ARGUMENTS
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Step 0 — CCEP Bootstrap
|
|
17
|
+
|
|
18
|
+
Command: `feature` (fixed for this workflow — do not infer from user text)
|
|
19
|
+
|
|
20
|
+
1. Run: `npx cc-codeconductor ccep parse --command feature "$ARGUMENTS" --output json`
|
|
21
|
+
2. Run: `npx cc-codeconductor ccep resolve --command feature "$ARGUMENTS" --output json`
|
|
22
|
+
3. Run: `npx cc-codeconductor ccep profile feature --output json`
|
|
23
|
+
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.
|
|
24
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
25
|
+
Canonical delivery order is test-before-implement whenever both phases apply.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Step 0b — OpenSpec quality gates
|
|
30
|
+
|
|
31
|
+
If `openspec status` reports an active change folder:
|
|
32
|
+
|
|
33
|
+
1. Run: `npx cc-codeconductor openspec validate --output json`
|
|
34
|
+
2. Run: `npx cc-codeconductor openspec analyze --output json`
|
|
35
|
+
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
36
|
+
4. Next command spelling on this runner: `/cc:feature`
|
|
37
|
+
|
|
38
|
+
Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## Step 1 — Wayfinding (repo-explorer)
|
|
44
|
+
|
|
45
|
+
If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"` (and
|
|
46
|
+
`graphify path` / `graphify explain` when needed). Then invoke `repo-explorer`
|
|
47
|
+
to map modules, conventions, and impact radius. Do not write code in this step.
|
|
48
|
+
Record a Repo Map artifact before intake.
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Step 2 — Task Card validation (Task Coach role)
|
|
53
|
+
|
|
54
|
+
Invoke the `task-coach` subagent via the Task tool.
|
|
55
|
+
|
|
56
|
+
Produce a complete Task Card. The Task Card is ready when it contains: title,
|
|
57
|
+
type, risk classification, scope, context, acceptance criteria, and constraints.
|
|
58
|
+
|
|
59
|
+
If any field is missing or ambiguous, ask one clarifying question at a time and
|
|
60
|
+
wait for the answer. Do not proceed with an incomplete Task Card.
|
|
61
|
+
|
|
62
|
+
**STOP here. Show the completed Task Card and wait for human confirmation before
|
|
63
|
+
continuing.**
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Step 3 — Technical Plan (Architect role)
|
|
68
|
+
|
|
69
|
+
Invoke the `architect` subagent via the Task tool.
|
|
70
|
+
|
|
71
|
+
Produce a Technical Plan that covers:
|
|
72
|
+
|
|
73
|
+
- Chosen approach and rationale
|
|
74
|
+
- Affected files and modules
|
|
75
|
+
- Data model changes (if any)
|
|
76
|
+
- API contract changes (if any)
|
|
77
|
+
- Identified risks and mitigations
|
|
78
|
+
- Open questions that require a human decision
|
|
79
|
+
|
|
80
|
+
**STOP here. Show the Technical Plan and wait for explicit human approval. Do
|
|
81
|
+
not proceed to implementation until the plan is approved.**
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## Step 4 — Test coverage (Tester role)
|
|
86
|
+
|
|
87
|
+
Invoke the `tester` subagent via the Task tool.
|
|
88
|
+
|
|
89
|
+
Use the Implementation Summary and the Task Card.
|
|
90
|
+
|
|
91
|
+
1. Write or extend failing tests for the new behavior before implementation (RED).
|
|
92
|
+
2. Ensure all acceptance criteria from the Task Card have at least one test.
|
|
93
|
+
3. Run the full test suite and confirm it passes.
|
|
94
|
+
4. Produce a Test Report: test files added or modified, cases covered.
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Step 5 — Implementation (Implementer role)
|
|
99
|
+
|
|
100
|
+
Invoke the `implementer` subagent via the Task tool.
|
|
101
|
+
|
|
102
|
+
Use the approved Technical Plan and the Task Card from the steps above.
|
|
103
|
+
Implementer creates a Git Worktree before touching any file; all edits happen inside it.
|
|
104
|
+
|
|
105
|
+
1. Read the Technical Plan before touching any file.
|
|
106
|
+
2. Apply the minimal diff — only what the plan specifies.
|
|
107
|
+
3. Run the project test suite and make the previously written failing tests pass.
|
|
108
|
+
4. Produce an Implementation Summary: what changed, which files, how to verify
|
|
109
|
+
locally.
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## Step 6 — Code review (Reviewer role)
|
|
114
|
+
|
|
115
|
+
Invoke the `reviewer` subagent via the Task tool.
|
|
116
|
+
|
|
117
|
+
Use the complete diff and the Task Card.
|
|
118
|
+
|
|
119
|
+
Produce a Review Report with findings categorized as CRITICAL, WARNING, or
|
|
120
|
+
SUGGESTION.
|
|
121
|
+
|
|
122
|
+
If any CRITICAL findings exist, **STOP and report them**. Do not proceed until
|
|
123
|
+
they are resolved and the diff is re-reviewed.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## Step 7 — Documentation (Docs role)
|
|
128
|
+
|
|
129
|
+
Invoke the `docs` subagent via the Task tool.
|
|
130
|
+
|
|
131
|
+
Invoke this step only if any of the following changed:
|
|
132
|
+
|
|
133
|
+
- A public API endpoint was added or modified
|
|
134
|
+
- A public interface or module was introduced
|
|
135
|
+
- Behavior visible to end users changed
|
|
136
|
+
|
|
137
|
+
Update: README (if applicable), OpenAPI spec (if applicable), CHANGELOG
|
|
138
|
+
(always), ADR (if an architectural decision was made).
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Completion
|
|
143
|
+
|
|
144
|
+
Report the following:
|
|
145
|
+
|
|
146
|
+
- Task Card (final)
|
|
147
|
+
- Technical Plan (approved)
|
|
148
|
+
- Implementation Summary
|
|
149
|
+
- Test Report
|
|
150
|
+
- Review Report (all findings resolved)
|
|
151
|
+
- List of documentation files updated (if any)
|
|
152
|
+
|
|
153
|
+
The feature is complete only when: all tests pass, no CRITICAL review findings
|
|
154
|
+
remain, and documentation reflects the implemented behavior.
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-fix
|
|
3
|
+
description: validation, implementation, testing, and optional review.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# fix
|
|
7
|
+
|
|
8
|
+
Invoke as `$cc-fix`. The user request follows the skill mention.
|
|
9
|
+
|
|
10
|
+
# Bug Fix Workflow
|
|
11
|
+
|
|
12
|
+
Bug description: $ARGUMENTS
|
|
13
|
+
|
|
14
|
+
Provide the following information in $ARGUMENTS:
|
|
15
|
+
|
|
16
|
+
- What is the incorrect behavior (actual)
|
|
17
|
+
- What is the expected behavior
|
|
18
|
+
- Steps to reproduce
|
|
19
|
+
- Environment or version where the bug occurs (if known)
|
|
20
|
+
- Any relevant error messages or stack traces
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Step 0 — CCEP Bootstrap
|
|
25
|
+
|
|
26
|
+
Command: `fix` (fixed for this workflow — do not infer from user text)
|
|
27
|
+
|
|
28
|
+
1. Run: `npx cc-codeconductor ccep parse --command fix "$ARGUMENTS" --output json`
|
|
29
|
+
2. Run: `npx cc-codeconductor ccep resolve --command fix "$ARGUMENTS" --output json`
|
|
30
|
+
3. Run: `npx cc-codeconductor ccep profile fix --output json`
|
|
31
|
+
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.
|
|
32
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
33
|
+
Canonical delivery order is test-before-implement whenever both phases apply.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Step 0b — OpenSpec quality gates
|
|
38
|
+
|
|
39
|
+
If `openspec status` reports an active change folder:
|
|
40
|
+
|
|
41
|
+
1. Run: `npx cc-codeconductor openspec validate --output json`
|
|
42
|
+
2. Run: `npx cc-codeconductor openspec analyze --output json`
|
|
43
|
+
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
44
|
+
4. Next command spelling on this runner: `/cc:fix`
|
|
45
|
+
|
|
46
|
+
Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
## Step 1 — Wayfinding (repo-explorer)
|
|
52
|
+
|
|
53
|
+
If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"` (and
|
|
54
|
+
`graphify path` / `graphify explain` when needed). Then invoke `repo-explorer`
|
|
55
|
+
to map modules, conventions, and impact radius. Do not write code in this step.
|
|
56
|
+
Record a Repo Map artifact before intake.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Step 2 — Task Card validation (Task Coach role)
|
|
61
|
+
|
|
62
|
+
Invoke the `task-coach` subagent via the Task tool.
|
|
63
|
+
|
|
64
|
+
Produce a Task Card that includes:
|
|
65
|
+
|
|
66
|
+
- A clear statement of actual vs. expected behavior
|
|
67
|
+
- Reproduction steps (or a note that they are unknown)
|
|
68
|
+
- Risk classification: `low`, `medium`, or `high`
|
|
69
|
+
- Scope: which files or modules are likely affected
|
|
70
|
+
|
|
71
|
+
If reproduction steps are missing, ask for them before classifying risk. A bug
|
|
72
|
+
without a reproduction path cannot be classified reliably.
|
|
73
|
+
|
|
74
|
+
Capture evidence before tests: reproduction, logs or stack traces, and one
|
|
75
|
+
falsifiable hypothesis of the root cause. Do not patch without that evidence.
|
|
76
|
+
Redact secrets, tokens, and credential dumps from logs before they enter the
|
|
77
|
+
Task Card. Summarize stack traces; do not paste env files.
|
|
78
|
+
|
|
79
|
+
**STOP here. Show the Task Card and wait for human confirmation.**
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Step 3 — Route by risk
|
|
84
|
+
|
|
85
|
+
Read the risk field from the Task Card and follow the corresponding route.
|
|
86
|
+
|
|
87
|
+
### Low-risk route
|
|
88
|
+
|
|
89
|
+
Applies when: the bug is isolated to a single component, existing tests cover
|
|
90
|
+
the affected code, and no public API or shared state is involved.
|
|
91
|
+
|
|
92
|
+
Route: Task Coach → Tester → Implementer
|
|
93
|
+
|
|
94
|
+
Proceed directly to Step 3 (tests), then Step 4a.
|
|
95
|
+
|
|
96
|
+
### Medium or high-risk route
|
|
97
|
+
|
|
98
|
+
Applies when: the bug touches shared state, a public API, auth or payment paths,
|
|
99
|
+
database writes, or the root cause is not yet understood.
|
|
100
|
+
|
|
101
|
+
Route: Task Coach → Architect → Tester → Implementer → Reviewer
|
|
102
|
+
|
|
103
|
+
Invoke the `architect` subagent before implementation. Architect must:
|
|
104
|
+
|
|
105
|
+
- Identify the root cause (or document that it is unknown)
|
|
106
|
+
- Define the fix approach and affected files
|
|
107
|
+
- Flag any regression risk to adjacent components
|
|
108
|
+
- Produce a Technical Plan
|
|
109
|
+
|
|
110
|
+
**STOP here if high-risk. Show the Technical Plan and wait for human approval
|
|
111
|
+
before continuing.**
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Step 4 — Regression tests (Tester role)
|
|
116
|
+
|
|
117
|
+
Invoke the `tester` subagent via the Task tool. Apply for all risk levels.
|
|
118
|
+
|
|
119
|
+
1. Write a regression test that reproduces the original bug and confirm it fails
|
|
120
|
+
before any fix (RED).
|
|
121
|
+
2. Verify that existing tests still pass.
|
|
122
|
+
3. Produce a Test Report: test added, case covered.
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Step 5a — Implementation, low-risk (Implementer role)
|
|
127
|
+
|
|
128
|
+
Invoke the `implementer` subagent via the Task tool. Use the Task Card.
|
|
129
|
+
Implementer creates a Git Worktree before touching any file; all edits happen inside it.
|
|
130
|
+
|
|
131
|
+
1. Locate the defect using the reproduction steps.
|
|
132
|
+
2. Apply the minimal fix — no unrelated changes.
|
|
133
|
+
3. Run the suite and make the RED regression test pass.
|
|
134
|
+
4. Produce an Implementation Summary: root cause, fix applied, files changed.
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## Step 5b — Implementation, medium/high-risk (Implementer role)
|
|
139
|
+
|
|
140
|
+
Invoke the `implementer` subagent via the Task tool. Use the approved
|
|
141
|
+
Technical Plan and the Task Card.
|
|
142
|
+
Implementer creates a Git Worktree before touching any file; all edits happen inside it.
|
|
143
|
+
|
|
144
|
+
Follow the plan exactly. Any deviation requires a new Technical Plan approval.
|
|
145
|
+
After implementation, run the full test suite.
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Step 6 — Review (Reviewer role) — medium/high-risk only
|
|
150
|
+
|
|
151
|
+
Invoke the `reviewer` subagent via the Task tool. Use the diff and Task
|
|
152
|
+
Card.
|
|
153
|
+
|
|
154
|
+
Produce a Review Report with CRITICAL / WARNING / SUGGESTION findings. If any
|
|
155
|
+
CRITICAL findings exist, **STOP**. Do not close the fix until they are resolved.
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## Completion
|
|
160
|
+
|
|
161
|
+
Report: Task Card, Implementation Summary, regression test added, Review Report
|
|
162
|
+
(if applicable).
|
|
163
|
+
|
|
164
|
+
The fix is complete only when: the regression test passes, the full suite
|
|
165
|
+
passes, and no CRITICAL review findings remain.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-handoff
|
|
3
|
+
description: CodeConductor handoff workflow
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# handoff
|
|
7
|
+
|
|
8
|
+
Invoke as `$cc-handoff`. The user request follows the skill mention.
|
|
9
|
+
|
|
10
|
+
# Handoff Workflow
|
|
11
|
+
|
|
12
|
+
Handoff request: $ARGUMENTS
|
|
13
|
+
|
|
14
|
+
## Step 0 — CCEP Bootstrap
|
|
15
|
+
|
|
16
|
+
Command: `handoff` (fixed for this workflow — do not infer from user text)
|
|
17
|
+
|
|
18
|
+
1. Run: `npx cc-codeconductor ccep parse --command handoff "$ARGUMENTS" --output json`
|
|
19
|
+
2. Run: `npx cc-codeconductor ccep resolve --command handoff "$ARGUMENTS" --output json`
|
|
20
|
+
3. Run: `npx cc-codeconductor ccep profile handoff --output json`
|
|
21
|
+
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.
|
|
22
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Step 1 — Compact (docs)
|
|
27
|
+
|
|
28
|
+
Invoke `docs`. Write **only** `.codeconductor/sessions/handoff.md` (gitignored).
|
|
29
|
+
Do not write `.codeconductor/handoff.md` or any tracked path.
|
|
30
|
+
|
|
31
|
+
Before writing, redact secrets, tokens, API keys, passwords, connection strings,
|
|
32
|
+
`.env` contents, and log/stack-trace lines that embed those values. Summarize
|
|
33
|
+
errors instead of pasting dumps. If unresolved credential material remains, stop
|
|
34
|
+
and wait for a human (CCEP `stopOnHighRisk`).
|
|
35
|
+
|
|
36
|
+
Include: goal, Task Card status (no secret fields), files touched, test
|
|
37
|
+
pass/fail (not log dumps), open questions, and the next `/cc:` command.
|
|
38
|
+
|
|
39
|
+
Do not edit source or tests.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Completion
|
|
44
|
+
|
|
45
|
+
Report the handoff path. Another session should be able to continue from that file alone.
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-iterative
|
|
3
|
+
description: Relentless Grilling, contract and spec design, TDD, council review, and docs.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# iterative
|
|
7
|
+
|
|
8
|
+
Invoke as `$cc-iterative`. The user request follows the skill mention.
|
|
9
|
+
|
|
10
|
+
# Advanced Iterative Workflow
|
|
11
|
+
|
|
12
|
+
Iterative request: $ARGUMENTS
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Step 0 — CCEP Bootstrap
|
|
17
|
+
|
|
18
|
+
Command: `iterative` (fixed for this workflow — do not infer from user text)
|
|
19
|
+
|
|
20
|
+
1. Run: `npx cc-codeconductor ccep parse --command iterative "$ARGUMENTS" --output json`
|
|
21
|
+
2. Run: `npx cc-codeconductor ccep resolve --command iterative "$ARGUMENTS" --output json`
|
|
22
|
+
3. Run: `npx cc-codeconductor ccep profile iterative --output json`
|
|
23
|
+
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.
|
|
24
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
25
|
+
Canonical delivery order is test-before-implement whenever both phases apply.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Step 0b — OpenSpec quality gates
|
|
30
|
+
|
|
31
|
+
If `openspec status` reports an active change folder:
|
|
32
|
+
|
|
33
|
+
1. Run: `npx cc-codeconductor openspec validate --output json`
|
|
34
|
+
2. Run: `npx cc-codeconductor openspec analyze --output json`
|
|
35
|
+
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
36
|
+
4. Next command spelling on this runner: `/cc:iterative`
|
|
37
|
+
|
|
38
|
+
Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## Step 1 — Wayfinding (repo-explorer)
|
|
44
|
+
|
|
45
|
+
If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"` (and
|
|
46
|
+
`graphify path` / `graphify explain` when two modules or one concept need a
|
|
47
|
+
scoped subgraph). Then invoke the `repo-explorer` subagent via the Task tool
|
|
48
|
+
with that graph output.
|
|
49
|
+
|
|
50
|
+
repo-explorer maps directory trees, conventions, god nodes, and affected
|
|
51
|
+
modules. Do not write code in this step. Write a short phase handoff (scope,
|
|
52
|
+
files, open questions) before the next phase — do not chain agents on unspoken
|
|
53
|
+
context.
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Step 2 — Relentless Grilling & Task Card (task-coach)
|
|
58
|
+
|
|
59
|
+
Invoke the `task-coach` subagent via the Task tool.
|
|
60
|
+
|
|
61
|
+
Produce a complete Task Card. The Task Card is ready when it contains: title,
|
|
62
|
+
type, risk classification, scope, context, acceptance criteria, and
|
|
63
|
+
constraints, and every assumption behind it has survived one grilling
|
|
64
|
+
question (Grilling protocol).
|
|
65
|
+
|
|
66
|
+
If any field is missing or ambiguous, ask one clarifying question at a time and
|
|
67
|
+
wait for the answer. Do not proceed with an incomplete Task Card.
|
|
68
|
+
|
|
69
|
+
**STOP here.** Unresolved grilling questions or missing fields populate
|
|
70
|
+
`questionsForUser` in the CCEP-1 `planner-output`; the `ConfirmationGate`
|
|
71
|
+
(`ccep evaluate`) reads that field and halts the workflow until a human
|
|
72
|
+
answers. Show the completed Task Card and wait for that confirmation before
|
|
73
|
+
continuing.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Step 3 — Contract & Technical Plan (contract-builder & architect)
|
|
78
|
+
|
|
79
|
+
Invoke `contract-builder` then `architect` via the Task tool.
|
|
80
|
+
|
|
81
|
+
1. Define API contracts, JSON Schemas, or TypeScript interfaces.
|
|
82
|
+
2. Formulate the Technical Plan (chosen approach, affected files, trade-offs).
|
|
83
|
+
3. Apply YAGNI, Simplicity First, and Stdlib-First.
|
|
84
|
+
|
|
85
|
+
**STOP here. Show the Technical Plan and wait for explicit human approval. Do
|
|
86
|
+
not proceed to tests until the plan is approved.**
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## Step 4 — Test coverage (Tester role)
|
|
91
|
+
|
|
92
|
+
Invoke the `tester` subagent via the Task tool.
|
|
93
|
+
|
|
94
|
+
1. Write or extend failing tests for the new behavior before implementation (RED).
|
|
95
|
+
2. Ensure all acceptance criteria from the Task Card have at least one test.
|
|
96
|
+
3. Produce a Test Report: test files added or modified, cases covered.
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Step 5 — Implementation (Implementer role)
|
|
101
|
+
|
|
102
|
+
Invoke the `implementer` subagent via the Task tool.
|
|
103
|
+
|
|
104
|
+
Use the approved Technical Plan, contracts, and the failing tests.
|
|
105
|
+
Implementer creates a Git Worktree before touching any file; all edits happen
|
|
106
|
+
inside it.
|
|
107
|
+
|
|
108
|
+
1. Read the Technical Plan before touching any file.
|
|
109
|
+
2. Apply the minimal diff — only what the plan specifies.
|
|
110
|
+
3. Run the project test suite and make the previously written failing tests pass.
|
|
111
|
+
4. If tests fail, run up to 3 repair cycles (`implementer` → `tester`).
|
|
112
|
+
5. Produce an Implementation Summary: what changed, which files, how to verify
|
|
113
|
+
locally.
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Step 6 — Multi-Perspective Council Review
|
|
118
|
+
|
|
119
|
+
Invoke the `council` skill on the generated diff (`council-review` phase).
|
|
120
|
+
|
|
121
|
+
The council evaluates Architecture, Security, Product, Delivery, DataOps, and
|
|
122
|
+
Devil. `security-reviewer` may set `securityVeto: true`; that REJECTED verdict
|
|
123
|
+
overrides majority consensus.
|
|
124
|
+
|
|
125
|
+
If ANY agent votes CRITICAL:
|
|
126
|
+
- The Review Report status is **BLOCKED**.
|
|
127
|
+
- Return to Step 5 with the feedback.
|
|
128
|
+
|
|
129
|
+
If APPROVED (no CRITICAL findings), continue.
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Step 7 — Documentation (Docs role)
|
|
134
|
+
|
|
135
|
+
Invoke the `docs` subagent via the Task tool when a public API, public module,
|
|
136
|
+
or user-visible behavior changed.
|
|
137
|
+
|
|
138
|
+
Update: README (if applicable), OpenAPI spec (if applicable), CHANGELOG
|
|
139
|
+
(always when implementation changed), ADR (if an architectural decision was
|
|
140
|
+
made).
|
|
141
|
+
|
|
142
|
+
If `graphify-out/` is in use, run `graphify update .` (AST-only).
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## Completion
|
|
147
|
+
|
|
148
|
+
The iterative workflow is complete only when: all tests pass, the council
|
|
149
|
+
approves the spec and the diff, no CRITICAL findings remain, and documentation
|
|
150
|
+
and the knowledge graph reflect the implemented behavior.
|