cc-codeconductor 1.1.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.
Files changed (143) hide show
  1. package/README.md +4 -2
  2. package/dist/core/verification/verification-runner.d.ts +7 -0
  3. package/dist/index.d.ts +1 -1
  4. package/dist/index.js +1413 -309
  5. package/dist/library.js +29 -1
  6. package/dist/validation/schemas.d.ts +97 -26
  7. package/package.json +1 -1
  8. package/presets/agy/AGENTS.md +10 -9
  9. package/presets/agy/hooks.json +2 -2
  10. package/presets/agy/scripts/invoke-hook.cjs +115 -0
  11. package/presets/agy/skills/backlog/SKILL.md +40 -70
  12. package/presets/agy/skills/cc-spec-mutation/SKILL.md +165 -0
  13. package/presets/agy/skills/cc-tdd-cycle/SKILL.md +3 -0
  14. package/presets/agy/skills/evaluation/SKILL.md +61 -2
  15. package/presets/agy/skills/openspec/SKILL.md +49 -19
  16. package/presets/agy/skills/testing-tdd/SKILL.md +53 -0
  17. package/presets/agy/skills/using-cc-skills/SKILL.md +48 -0
  18. package/presets/agy/workflows/cc-api-contract.md +14 -0
  19. package/presets/agy/workflows/cc-db-migration.md +14 -0
  20. package/presets/agy/workflows/cc-feature.md +18 -0
  21. package/presets/agy/workflows/cc-fix.md +14 -0
  22. package/presets/agy/workflows/cc-iterative.md +14 -0
  23. package/presets/agy/workflows/cc-openspec.md +14 -0
  24. package/presets/agy/workflows/cc-scorecard.md +2 -0
  25. package/presets/agy/workflows/cc-spec-mutation.md +191 -0
  26. package/presets/agy/workflows/cc-tdd-cycle.md +14 -0
  27. package/presets/claude/commands/cc/api-contract.md +14 -0
  28. package/presets/claude/commands/cc/db-migration.md +14 -0
  29. package/presets/claude/commands/cc/feature.md +18 -0
  30. package/presets/claude/commands/cc/fix.md +17 -0
  31. package/presets/claude/commands/cc/iterative.md +14 -0
  32. package/presets/claude/commands/cc/openspec.md +14 -0
  33. package/presets/claude/commands/cc/review.md +3 -0
  34. package/presets/claude/commands/cc/scorecard.md +2 -0
  35. package/presets/claude/commands/cc/spec-mutation.md +190 -0
  36. package/presets/claude/commands/cc/tdd-cycle.md +17 -0
  37. package/presets/claude/settings.json +13 -11
  38. package/presets/claude/skills/backlog/SKILL.md +40 -70
  39. package/presets/claude/skills/evaluation/SKILL.md +47 -24
  40. package/presets/claude/skills/openspec/SKILL.md +46 -38
  41. package/presets/claude/skills/testing-tdd/SKILL.md +53 -0
  42. package/presets/claude/skills/using-cc-skills/SKILL.md +48 -0
  43. package/presets/codex/AGENTS.md +16 -12
  44. package/presets/codex/skills/backlog/SKILL.md +61 -0
  45. package/presets/codex/skills/cc-api-contract/SKILL.md +87 -0
  46. package/presets/codex/skills/cc-backlog/SKILL.md +108 -0
  47. package/presets/codex/skills/cc-clarify/SKILL.md +36 -0
  48. package/presets/codex/skills/cc-council/SKILL.md +92 -0
  49. package/presets/codex/skills/cc-db-migration/SKILL.md +88 -0
  50. package/presets/codex/skills/cc-explore/SKILL.md +40 -0
  51. package/presets/codex/skills/cc-feature/SKILL.md +154 -0
  52. package/presets/codex/skills/cc-fix/SKILL.md +165 -0
  53. package/presets/codex/skills/cc-handoff/SKILL.md +45 -0
  54. package/presets/codex/skills/cc-iterative/SKILL.md +150 -0
  55. package/presets/codex/skills/cc-openspec/SKILL.md +191 -0
  56. package/presets/codex/skills/cc-pagespeed/SKILL.md +124 -0
  57. package/presets/codex/skills/cc-prototype/SKILL.md +42 -0
  58. package/presets/codex/skills/cc-refactor/SKILL.md +163 -0
  59. package/presets/codex/skills/cc-review/SKILL.md +152 -0
  60. package/presets/codex/skills/cc-scorecard/SKILL.md +82 -0
  61. package/presets/codex/skills/cc-security/SKILL.md +182 -0
  62. package/presets/codex/skills/cc-spec-mutation/SKILL.md +192 -0
  63. package/presets/codex/skills/cc-tdd-cycle/SKILL.md +266 -0
  64. package/presets/codex/skills/cc-test-plan/SKILL.md +153 -0
  65. package/presets/codex/skills/cc-triage/SKILL.md +38 -0
  66. package/presets/codex/skills/evaluation/SKILL.md +65 -0
  67. package/presets/codex/skills/openspec/SKILL.md +66 -0
  68. package/presets/codex/skills/testing-tdd/SKILL.md +53 -0
  69. package/presets/codex/skills/using-cc-skills/SKILL.md +48 -0
  70. package/presets/cursor/commands/cc/api-contract.md +14 -0
  71. package/presets/cursor/commands/cc/db-migration.md +14 -0
  72. package/presets/cursor/commands/cc/feature.md +18 -0
  73. package/presets/cursor/commands/cc/fix.md +17 -0
  74. package/presets/cursor/commands/cc/iterative.md +14 -0
  75. package/presets/cursor/commands/cc/openspec.md +14 -0
  76. package/presets/cursor/commands/cc/scorecard.md +2 -0
  77. package/presets/cursor/commands/cc/spec-mutation.md +190 -0
  78. package/presets/cursor/commands/cc/tdd-cycle.md +14 -0
  79. package/presets/cursor/skills/backlog/SKILL.md +40 -70
  80. package/presets/cursor/skills/evaluation/SKILL.md +61 -4
  81. package/presets/cursor/skills/openspec/SKILL.md +46 -36
  82. package/presets/cursor/skills/testing-tdd/SKILL.md +35 -574
  83. package/presets/cursor/skills/using-cc-skills/SKILL.md +48 -0
  84. package/presets/gemini/commands/cc/api-contract.toml +82 -0
  85. package/presets/gemini/commands/cc/ask.toml +54 -0
  86. package/presets/gemini/commands/cc/backlog.toml +103 -0
  87. package/presets/gemini/commands/cc/clarify.toml +31 -0
  88. package/presets/gemini/commands/cc/council.toml +87 -0
  89. package/presets/gemini/commands/cc/db-migration.toml +83 -0
  90. package/presets/gemini/commands/cc/explore.toml +35 -0
  91. package/presets/gemini/commands/cc/feature.toml +153 -0
  92. package/presets/gemini/commands/cc/fix.toml +163 -0
  93. package/presets/gemini/commands/cc/handoff.toml +40 -0
  94. package/presets/gemini/commands/cc/iterative.toml +145 -0
  95. package/presets/gemini/commands/cc/openspec.toml +186 -0
  96. package/presets/gemini/commands/cc/pagespeed.toml +119 -0
  97. package/presets/gemini/commands/cc/prototype.toml +37 -0
  98. package/presets/gemini/commands/cc/refactor.toml +158 -0
  99. package/presets/gemini/commands/cc/review.toml +150 -0
  100. package/presets/gemini/commands/cc/scorecard.toml +77 -0
  101. package/presets/gemini/commands/cc/security.toml +177 -0
  102. package/presets/gemini/commands/cc/spec-mutation.toml +187 -0
  103. package/presets/gemini/commands/cc/tdd-cycle.toml +264 -0
  104. package/presets/gemini/commands/cc/test-plan.toml +148 -0
  105. package/presets/gemini/commands/cc/triage.toml +33 -0
  106. package/presets/opencode/README.md +24 -21
  107. package/presets/opencode/agents/architect.md +6 -0
  108. package/presets/opencode/agents/implementer.md +7 -0
  109. package/presets/opencode/agents/reviewer.md +6 -0
  110. package/presets/opencode/agents/tester.md +6 -0
  111. package/presets/opencode/commands/cc-api-contract.md +14 -0
  112. package/presets/opencode/commands/cc-db-migration.md +14 -0
  113. package/presets/opencode/commands/cc-feature.md +18 -0
  114. package/presets/opencode/commands/cc-fix.md +17 -0
  115. package/presets/opencode/commands/cc-iterative.md +14 -0
  116. package/presets/opencode/commands/cc-openspec.md +14 -0
  117. package/presets/opencode/commands/cc-scorecard.md +2 -0
  118. package/presets/opencode/commands/cc-spec-mutation.md +190 -0
  119. package/presets/opencode/commands/cc-tdd-cycle.md +14 -0
  120. package/presets/opencode/opencode.jsonc +1 -1
  121. package/presets/opencode/prompts/v1.0.0/architect.md +6 -0
  122. package/presets/opencode/prompts/v1.0.0/implementer.md +7 -0
  123. package/presets/opencode/prompts/v1.0.0/reviewer.md +6 -0
  124. package/presets/opencode/prompts/v1.0.0/tester.md +6 -0
  125. package/presets/opencode/skills/backlog/SKILL.md +40 -70
  126. package/presets/opencode/skills/evaluation/SKILL.md +61 -2
  127. package/presets/opencode/skills/openspec/SKILL.md +46 -34
  128. package/presets/opencode/skills/testing-tdd/SKILL.md +35 -574
  129. package/presets/opencode/skills/using-cc-skills/SKILL.md +48 -0
  130. package/presets/shared/__pycache__/mutation_runner.cpython-314.pyc +0 -0
  131. package/presets/shared/invoke-hook.cjs +115 -0
  132. package/presets/shared/mutation_runner.py +273 -0
  133. package/src/presets/manifests/agy.yml +2 -0
  134. package/src/presets/manifests/claude.yml +3 -0
  135. package/src/presets/manifests/gemini.yml +15 -0
  136. package/src/presets/models/agy.yml +24 -24
  137. package/src/presets/models/claude.yml +10 -10
  138. package/src/presets/models/codex.yml +10 -10
  139. package/src/presets/models/cursor.yml +10 -10
  140. package/src/presets/models/gemini.yml +10 -10
  141. package/src/presets/models/opencode.yml +10 -10
  142. package/presets/agy/scripts/post-tool.sh +0 -25
  143. package/presets/agy/scripts/pre-tool.sh +0 -56
@@ -0,0 +1,87 @@
1
+ ---
2
+ name: cc-api-contract
3
+ description: compatibility constraints, contract tests, documentation, and review.
4
+ ---
5
+
6
+ # api-contract
7
+
8
+ Invoke as `$cc-api-contract`. The user request follows the skill mention.
9
+
10
+ # API Contract Workflow
11
+
12
+ API contract request: $ARGUMENTS
13
+
14
+ ## Step 0 — CCEP Bootstrap
15
+
16
+ Command: `api-contract` (fixed for this workflow — do not infer from user text)
17
+
18
+ 1. Run: `npx cc-codeconductor ccep parse --command api-contract "$ARGUMENTS" --output json`
19
+ 2. Run: `npx cc-codeconductor ccep resolve --command api-contract "$ARGUMENTS" --output json`
20
+ 3. Run: `npx cc-codeconductor ccep profile api-contract --output json`
21
+ 4. 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.
22
+ 5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
23
+
24
+ ---
25
+
26
+ ## Step 0b — OpenSpec quality gates
27
+
28
+ If `openspec status` reports an active change folder:
29
+
30
+ 1. Run: `npx cc-codeconductor openspec validate --output json`
31
+ 2. Run: `npx cc-codeconductor openspec analyze --output json`
32
+ 3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
33
+ 4. Next command spelling on this runner: `/cc:api-contract`
34
+
35
+ Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
36
+
37
+ ---
38
+
39
+
40
+ ## Step 1 — Task Card validation (Task Coach role)
41
+
42
+ Invoke the `task-coach` subagent via the Task tool.
43
+
44
+ The Task Card must classify the task as high risk by default and include the
45
+ affected public interface, request/response examples, compatibility notes,
46
+ versioning impact, consumer impact, contract tests, and docs acceptance
47
+ criteria.
48
+
49
+ **STOP here. Show the completed Task Card and wait for human confirmation.**
50
+
51
+ ---
52
+
53
+ ## Step 2 — Technical Plan (Architect role)
54
+
55
+ Invoke the `architect` subagent via the Task tool.
56
+
57
+ Define the API contract, validation strategy, compatibility behavior, docs or
58
+ OpenAPI changes, and reviewer blocking conditions.
59
+
60
+ **STOP here. Show the Technical Plan and wait for explicit human approval.**
61
+
62
+ ---
63
+
64
+ ## Step 3 — Implementation (Implementer role)
65
+
66
+ Invoke the `implementer` subagent via the Task tool.
67
+
68
+ Apply the minimal diff, preserve compatible behavior unless explicitly approved
69
+ as breaking, and update only the planned files.
70
+
71
+ ---
72
+
73
+ ## Step 4 — Contract Tests (Tester role)
74
+
75
+ Invoke the `tester` subagent via the Task tool.
76
+
77
+ Add or update tests for request shape, response shape, status/error behavior,
78
+ and backward compatibility.
79
+
80
+ ---
81
+
82
+ ## Step 5 — Review (Reviewer role)
83
+
84
+ Invoke the `reviewer` subagent via the Task tool.
85
+
86
+ Block on missing contract tests, undocumented breaking changes, or docs/OpenAPI
87
+ drift.
@@ -0,0 +1,108 @@
1
+ ---
2
+ name: cc-backlog
3
+ description: validate with openspec, and plan OpenSpec change folders for /cc-openspec.
4
+ ---
5
+
6
+ # backlog
7
+
8
+ Invoke as `$cc-backlog`. The user request follows the skill mention.
9
+
10
+ # Backlog Authoring Workflow
11
+
12
+ Objectives: $ARGUMENTS
13
+
14
+ Create or append valid `BACKLOG.md` items and OpenSpec change docs. Do **not**
15
+ deliver implementation — that is `/cc-openspec`.
16
+
17
+ ---
18
+
19
+ ## Step 0 — CCEP Bootstrap
20
+
21
+ Command: `backlog` (fixed for this workflow — do not infer from user text)
22
+
23
+ 1. Run: `npx cc-codeconductor ccep parse --command backlog "$ARGUMENTS" --output json`
24
+ 2. Run: `npx cc-codeconductor ccep resolve --command backlog "$ARGUMENTS" --output json`
25
+ 3. Run: `npx cc-codeconductor ccep profile backlog --output json`
26
+ 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.
27
+ 5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
28
+
29
+ ---
30
+
31
+ ## Step 1 — Wayfinding (repo-explorer)
32
+
33
+ If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"` (and
34
+ `graphify path` / `graphify explain` when needed). Then invoke `repo-explorer`
35
+ to map modules, conventions, and impact radius. Do not write `BACKLOG.md` in
36
+ this step. Record a Repo Map so Scope names real files or modules.
37
+
38
+ ---
39
+
40
+ ## Step 2 — Relentless Grilling (task-coach)
41
+
42
+ Invoke `task-coach`. Produce complete backlog item fields: title, type, risk,
43
+ scope, description, out of scope, measurable acceptance criteria.
44
+
45
+ Every assumption must survive one grilling question. Reject vague acceptance
46
+ ("improve UX", "fix bugs").
47
+
48
+ If any field is missing or ambiguous, ask one clarifying question at a time.
49
+
50
+ **STOP here.** Unresolved grilling questions populate `questionsForUser` in the
51
+ CCEP-1 `planner-output`; `ccep evaluate --command backlog` halts until a human
52
+ answers. Do not write `BACKLOG.md` until that confirmation.
53
+
54
+ ---
55
+
56
+ ## Step 3 — Write or append BACKLOG.md (docs)
57
+
58
+ Apply skill `backlog`.
59
+
60
+ - If `BACKLOG.md` is absent, create it from the canonical template
61
+ (`presets/templates/BACKLOG.md`). Set Global `Product` from `package.json`
62
+ `name` when present.
63
+ - If it exists, append new `### BC-xxx` items under `## Items`. Do not rewrite
64
+ `## Global` or `## Archive`.
65
+ - Next ID = max `BC-NNN` across Items and Archive, plus one.
66
+ - New items: Status `READY`, Progress `0%`, measurable Acceptance checklist.
67
+
68
+ Do **not** `git add` `BACKLOG.md` or `openspec/`.
69
+
70
+ ---
71
+
72
+ ## Step 4 — Validate (mandatory gate)
73
+
74
+ Run:
75
+
76
+ ```bash
77
+ npx cc-codeconductor openspec validate
78
+ ```
79
+
80
+ If validation fails:
81
+
82
+ 1. List all errors and recommendations from the CLI output.
83
+ 2. Show the canonical BACKLOG.md structure (## Global, ## Items, ### BC-001 | Title, Priority, Status, Type, Depends on, Description, Scope, Acceptance).
84
+ 3. Fix the file and re-run validate. **STOP** planning until valid.
85
+
86
+ ---
87
+
88
+ ## Step 5 — Plan new items
89
+
90
+ For each **new** `BC-xxx` from this run:
91
+
92
+ ```bash
93
+ npx cc-codeconductor openspec plan <BC-id>
94
+ ```
95
+
96
+ Show TaskCards and `openspec/changes/<slug>/` (proposal, design, tasks, specs).
97
+
98
+ ---
99
+
100
+ ## Completion
101
+
102
+ Report: item IDs added, validate result, change folder paths.
103
+
104
+ Tell the user to run `/cc-openspec` (optionally `/cc-openspec BC-xxx`) to
105
+ deliver. Do not start delivery in this workflow.
106
+
107
+ Apply skill `backlog` for create/append rules. Apply skill `openspec` only for
108
+ format and state-machine reference.
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: cc-clarify
3
+ description: CodeConductor clarify workflow
4
+ ---
5
+
6
+ # clarify
7
+
8
+ Invoke as `$cc-clarify`. The user request follows the skill mention.
9
+
10
+ # Clarify Workflow
11
+
12
+ Clarify request: $ARGUMENTS
13
+
14
+ ## Step 0 — CCEP Bootstrap
15
+
16
+ Command: `clarify` (fixed for this workflow — do not infer from user text)
17
+
18
+ 1. Run: `npx cc-codeconductor ccep parse --command clarify "$ARGUMENTS" --output json`
19
+ 2. Run: `npx cc-codeconductor ccep resolve --command clarify "$ARGUMENTS" --output json`
20
+ 3. Run: `npx cc-codeconductor ccep profile clarify --output json`
21
+ 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.
22
+ 5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
23
+
24
+ ---
25
+
26
+ ## Step 1 — Re-explain (task-coach)
27
+
28
+ 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.
29
+
30
+ **STOP if ConfirmationGate reports questions.**
31
+
32
+ ---
33
+
34
+ ## Completion
35
+
36
+ A plain-language restatement plus any remaining questions. Then resume the previous workflow.
@@ -0,0 +1,92 @@
1
+ ---
2
+ name: cc-council
3
+ description: Council-driven workflow with CCEP-1 bootstrap
4
+ ---
5
+
6
+ # council
7
+
8
+ Invoke as `$cc-council`. The user request follows the skill mention.
9
+
10
+ # Council-Driven Workflow
11
+
12
+ Task request: $ARGUMENTS
13
+
14
+ ## Step 0 — CCEP Bootstrap
15
+
16
+ Command: `council` (fixed for this workflow — do not infer from user text)
17
+ command: council
18
+
19
+ 1. Run: `npx cc-codeconductor ccep parse --command council "$ARGUMENTS" --output json`
20
+ 2. Run: `npx cc-codeconductor ccep resolve --command council "$ARGUMENTS" --output json`
21
+ 3. Run: `npx cc-codeconductor ccep profile council --output json`
22
+ 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.
23
+ 5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
24
+
25
+ ---
26
+
27
+ ## Step 1 — Wayfinding (repo-explorer)
28
+
29
+ If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"` (and
30
+ `graphify path` / `graphify explain` when needed). Then invoke `repo-explorer`
31
+ to map impact radius before deliberation. Do not write code in this step.
32
+
33
+ ---
34
+
35
+ ## Step 2 — Deliberation & Specification (SDD)
36
+
37
+ 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`.
38
+
39
+ The council must:
40
+ 1. Clarify the prompt and define the absolute minimum scope (Simplicity Gate).
41
+ 2. Explicitly document all assumptions and run the Grilling protocol on each one (Think Before Coding).
42
+ 3. Draft a Task Card & Technical Plan (The Specification).
43
+
44
+ **STOP here.** Unresolved grilling questions populate `questionsForUser` in the
45
+ CCEP-1 `planner-output`; `ccep evaluate` (ConfirmationGate) halts until a human
46
+ answers. Show the agreed Task Card & Technical Plan and wait for confirmation
47
+ before continuing.
48
+
49
+ ---
50
+
51
+ ## Step 3 — Test Definition (TDD)
52
+
53
+ Invoke `tester` with the approved Task Card & Technical Plan.
54
+
55
+ tester must:
56
+ 1. Write failing tests based on the Acceptance Criteria defined in the Task Card.
57
+ 2. Confirm the tests fail as expected (Red state).
58
+
59
+ **Goal-Driven Execution (Karpathy)**: Do not proceed until verifiable tests are written and fail for the correct reasons.
60
+
61
+ ---
62
+
63
+ ## Step 4 — Surgical Implementation
64
+
65
+ Invoke `implementer` with the failing tests and the Technical Plan.
66
+
67
+ implementer must:
68
+ 1. Write the minimal code required to pass the tests.
69
+ 2. Touch ONLY the files specified in the Technical Plan (Surgical Changes).
70
+ 3. NOT refactor adjacent code, change existing styles, or build speculative features.
71
+ 4. Run the tests. Loop `implementer` -> `tester` until all tests pass (Green state).
72
+
73
+ ---
74
+
75
+ ## Step 5 — Multi-Perspective Council Review
76
+
77
+ Invoke the `council` skill on the generated diff to perform the final review phase.
78
+
79
+ The council will evaluate the diff against the 6 axes (Architecture, Security, Product, Delivery, DataOps, Devil).
80
+
81
+ If ANY agent votes CRITICAL (especially due to over-engineering, scope creep, or missing the verifiable goals):
82
+ - The Review Report status is **BLOCKED**.
83
+ - Return to Step 4 with the feedback.
84
+
85
+ If APPROVED (no CRITICAL findings):
86
+ - Deliver the final Council Verdict and the diff summary.
87
+
88
+ ---
89
+
90
+ ## Completion
91
+
92
+ Deliver the complete Council Verdict. The feature is only complete when tests pass and the council explicitly approves the implementation according to the specification.
@@ -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.