cc-codeconductor 0.4.3 → 0.5.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 (141) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +2642 -226
  3. package/package.json +1 -1
  4. package/presets/agy/skills/evaluation/SKILL.md +6 -0
  5. package/presets/agy/skills/openspec/SKILL.md +32 -0
  6. package/presets/agy/workflows/cc-openspec.md +62 -0
  7. package/presets/agy/workflows/cc-scorecard.md +17 -0
  8. package/presets/claude/commands/cc/openspec.md +144 -0
  9. package/presets/claude/commands/cc/review.md +13 -2
  10. package/presets/claude/commands/cc/scorecard.md +65 -0
  11. package/presets/claude/skills/evaluation/SKILL.md +42 -0
  12. package/presets/claude/skills/openspec/SKILL.md +54 -0
  13. package/presets/codex/AGENTS.md +57 -0
  14. package/presets/cursor/.cursorignore +15 -0
  15. package/presets/cursor/AGENTS.md +504 -0
  16. package/presets/cursor/agents/architect.md +211 -0
  17. package/presets/cursor/agents/complexity-auditor.md +76 -0
  18. package/presets/cursor/agents/contract-builder.md +75 -0
  19. package/presets/cursor/agents/docs.md +180 -0
  20. package/presets/cursor/agents/goal-planner.md +71 -0
  21. package/presets/cursor/agents/implementer.md +161 -0
  22. package/presets/cursor/agents/orchestrator.md +377 -0
  23. package/presets/cursor/agents/repo-explorer.md +100 -0
  24. package/presets/cursor/agents/reviewer.md +237 -0
  25. package/presets/cursor/agents/security-reviewer.md +113 -0
  26. package/presets/cursor/agents/task-coach.md +145 -0
  27. package/presets/cursor/agents/tester.md +241 -0
  28. package/presets/cursor/commands/cc/api-contract.md +58 -0
  29. package/presets/cursor/commands/cc/db-migration.md +58 -0
  30. package/presets/cursor/commands/cc/feature.md +115 -0
  31. package/presets/cursor/commands/cc/fix.md +121 -0
  32. package/presets/cursor/commands/cc/openspec.md +144 -0
  33. package/presets/cursor/commands/cc/pagespeed.md +103 -0
  34. package/presets/cursor/commands/cc/refactor.md +148 -0
  35. package/presets/cursor/commands/cc/review.md +137 -0
  36. package/presets/cursor/commands/cc/scorecard.md +65 -0
  37. package/presets/cursor/commands/cc/tdd-cycle.md +226 -0
  38. package/presets/cursor/commands/cc/test-plan.md +138 -0
  39. package/presets/cursor/rules/behavioral-discipline.mdc +14 -0
  40. package/presets/cursor/rules/context-budget.mdc +12 -0
  41. package/presets/cursor/rules/orchestration.mdc +12 -0
  42. package/presets/cursor/rules/yagni-stdlib.mdc +11 -0
  43. package/presets/cursor/skills/android/SKILL.md +122 -0
  44. package/presets/cursor/skills/api-versioning/SKILL.md +394 -0
  45. package/presets/cursor/skills/astro/SKILL.md +322 -0
  46. package/presets/cursor/skills/auth-token-inspector/SKILL.md +33 -0
  47. package/presets/cursor/skills/code-review/SKILL.md +208 -0
  48. package/presets/cursor/skills/conductor-setup/SKILL.md +127 -0
  49. package/presets/cursor/skills/django-orm/SKILL.md +463 -0
  50. package/presets/cursor/skills/django-testing/SKILL.md +417 -0
  51. package/presets/cursor/skills/django-uv/SKILL.md +409 -0
  52. package/presets/cursor/skills/drizzle-schema-architect/SKILL.md +54 -0
  53. package/presets/cursor/skills/evaluation/SKILL.md +8 -0
  54. package/presets/cursor/skills/fastapi-pydantic-strict/SKILL.md +46 -0
  55. package/presets/cursor/skills/find-skills/SKILL.md +144 -0
  56. package/presets/cursor/skills/jpa-nplusone-detector/SKILL.md +49 -0
  57. package/presets/cursor/skills/jpa-postgres/SKILL.md +626 -0
  58. package/presets/cursor/skills/laravel-specialist/SKILL.md +267 -0
  59. package/presets/cursor/skills/laravel-specialist/references/eloquent.md +351 -0
  60. package/presets/cursor/skills/laravel-specialist/references/livewire.md +512 -0
  61. package/presets/cursor/skills/laravel-specialist/references/queues.md +423 -0
  62. package/presets/cursor/skills/laravel-specialist/references/routing.md +362 -0
  63. package/presets/cursor/skills/laravel-specialist/references/testing.md +522 -0
  64. package/presets/cursor/skills/livewire-alpine-bridge/SKILL.md +39 -0
  65. package/presets/cursor/skills/multi-agent-orchestration/README.md +144 -0
  66. package/presets/cursor/skills/multi-agent-orchestration/SKILL.md +579 -0
  67. package/presets/cursor/skills/multi-agent-orchestration/examples/framework_implementations.py +362 -0
  68. package/presets/cursor/skills/multi-agent-orchestration/examples/orchestration_patterns.py +411 -0
  69. package/presets/cursor/skills/multi-agent-orchestration/scripts/agent_communication.py +334 -0
  70. package/presets/cursor/skills/multi-agent-orchestration/scripts/benchmarking.py +341 -0
  71. package/presets/cursor/skills/multi-agent-orchestration/scripts/workflow_management.py +334 -0
  72. package/presets/cursor/skills/nextjs-typescript/SKILL.md +394 -0
  73. package/presets/cursor/skills/openspec/SKILL.md +52 -0
  74. package/presets/cursor/skills/pagespeed-insights/SKILL.md +445 -0
  75. package/presets/cursor/skills/pagespeed-insights/reference.md +50 -0
  76. package/presets/cursor/skills/pagespeed-perf/SKILL.md +281 -0
  77. package/presets/cursor/skills/php-pro/SKILL.md +210 -0
  78. package/presets/cursor/skills/php-pro/references/async-patterns.md +412 -0
  79. package/presets/cursor/skills/php-pro/references/laravel-patterns.md +377 -0
  80. package/presets/cursor/skills/php-pro/references/modern-php-features.md +323 -0
  81. package/presets/cursor/skills/php-pro/references/symfony-patterns.md +466 -0
  82. package/presets/cursor/skills/php-pro/references/testing-quality.md +466 -0
  83. package/presets/cursor/skills/python/SKILL.md +613 -0
  84. package/presets/cursor/skills/python-django-stack/SKILL.md +500 -0
  85. package/presets/cursor/skills/python-fastapi-stack/SKILL.md +464 -0
  86. package/presets/cursor/skills/security/SKILL.md +384 -0
  87. package/presets/cursor/skills/seo-analytics-injector/SKILL.md +44 -0
  88. package/presets/cursor/skills/spring-auth-auditor/SKILL.md +33 -0
  89. package/presets/cursor/skills/spring-boot-feature/SKILL.md +566 -0
  90. package/presets/cursor/skills/spring-boot-kotlin/SKILL.md +408 -0
  91. package/presets/cursor/skills/spring-boot-testing-strategy/SKILL.md +479 -0
  92. package/presets/cursor/skills/sqlalchemy/SKILL.md +473 -0
  93. package/presets/cursor/skills/tailwind-responsive-auditor/SKILL.md +32 -0
  94. package/presets/cursor/skills/tdd-mutation-tester/SKILL.md +28 -0
  95. package/presets/cursor/skills/testing-tdd/SKILL.md +592 -0
  96. package/presets/cursor/skills/workflow-orchestration-patterns/SKILL.md +98 -0
  97. package/presets/cursor/skills/workflow-orchestration-patterns/references/details.md +223 -0
  98. package/presets/opencode/agents/architect.md +1 -2
  99. package/presets/opencode/agents/complexity-auditor.md +1 -0
  100. package/presets/opencode/agents/contract-builder.md +93 -0
  101. package/presets/opencode/agents/docs.md +1 -2
  102. package/presets/opencode/agents/goal-planner.md +82 -0
  103. package/presets/opencode/agents/implementer.md +9 -2
  104. package/presets/opencode/agents/orchestrator.md +50 -12
  105. package/presets/opencode/agents/repo-explorer.md +0 -1
  106. package/presets/opencode/agents/reviewer.md +23 -2
  107. package/presets/opencode/agents/security-reviewer.md +129 -0
  108. package/presets/opencode/agents/task-coach.md +1 -2
  109. package/presets/opencode/agents/tester.md +1 -2
  110. package/presets/opencode/commands/cc-openspec.md +61 -0
  111. package/presets/opencode/commands/cc-scorecard.md +16 -0
  112. package/presets/opencode/prompts/v0.5.0/architect.md +222 -0
  113. package/presets/opencode/prompts/v0.5.0/complexity-auditor.md +91 -0
  114. package/presets/opencode/prompts/v0.5.0/contract-builder.md +84 -0
  115. package/presets/opencode/prompts/v0.5.0/docs.md +190 -0
  116. package/presets/opencode/prompts/v0.5.0/goal-planner.md +80 -0
  117. package/presets/opencode/prompts/v0.5.0/implementer.md +171 -0
  118. package/presets/opencode/prompts/v0.5.0/orchestrator.md +388 -0
  119. package/presets/opencode/prompts/v0.5.0/repo-explorer.md +111 -0
  120. package/presets/opencode/prompts/v0.5.0/reviewer.md +248 -0
  121. package/presets/opencode/prompts/v0.5.0/security-reviewer.md +123 -0
  122. package/presets/opencode/prompts/v0.5.0/task-coach.md +156 -0
  123. package/presets/opencode/prompts/v0.5.0/tester.md +252 -0
  124. package/presets/opencode/skills/evaluation/SKILL.md +6 -0
  125. package/presets/opencode/skills/openspec/SKILL.md +50 -0
  126. package/presets/templates/BACKLOG.md +33 -0
  127. package/presets/templates/execution-profile.yml +6 -0
  128. package/presets/templates/model-comparison.md +11 -0
  129. package/presets/templates/regression-checklist.yml +10 -0
  130. package/src/presets/manifests/agy.yml +2 -2
  131. package/src/presets/manifests/claude.yml +2 -2
  132. package/src/presets/manifests/codex.yml +2 -2
  133. package/src/presets/manifests/cursor.yml +19 -3
  134. package/src/presets/manifests/gemini.yml +2 -2
  135. package/src/presets/manifests/opencode.yml +2 -2
  136. package/src/presets/models/agy.yml +21 -0
  137. package/src/presets/models/claude.yml +18 -0
  138. package/src/presets/models/codex.yml +18 -0
  139. package/src/presets/models/cursor.yml +39 -9
  140. package/src/presets/models/gemini.yml +18 -0
  141. package/src/presets/models/opencode.yml +18 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-codeconductor",
3
- "version": "0.4.3",
3
+ "version": "0.5.0",
4
4
  "description": "A multi-agent orchestration framework for AI-assisted software engineering workflows.",
5
5
  "keywords": [
6
6
  "ai",
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: evaluation
3
+ description: Scorecard and outcome tracking for CodeConductor workflows.
4
+ ---
5
+
6
+ Record outcomes via `scorecard record`. Use `scorecard models` before OpenSpec phases.
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: openspec
3
+ description:
4
+ OpenSpec backlog format, state machine, and delivery workflow for CodeConductor.
5
+ Use when running /cc-openspec or editing BACKLOG.md.
6
+ ---
7
+
8
+ # OpenSpec / BACKLOG Skill
9
+
10
+ ## BACKLOG.md contract
11
+
12
+ `BACKLOG.md` at repo root is the operational queue. Required sections:
13
+
14
+ - `## Global` — Product, Strategy, Policy, Review required, TDD required
15
+ - `## Items` — active backlog entries
16
+ - `## Archive` — completed entries (do not re-execute)
17
+
18
+ Each item: `### BC-001 | Short title` with Priority (P0–P3), Status, Type, Depends on, Description, Scope, Out of scope, Acceptance (measurable checklist).
19
+
20
+ ## Status machine
21
+
22
+ `TODO` → `READY` → `PLANNED` → `IN_PROGRESS` → `REVIEW` → `DONE` → Archive
23
+
24
+ ## CLI
25
+
26
+ `openspec validate | scan | plan | status | next`
27
+
28
+ ## Agent phases
29
+
30
+ discover → repo-explorer, design → architect, test → tester, implement → implementer, review → reviewer.
31
+
32
+ TDD required: test before implement.
@@ -0,0 +1,62 @@
1
+ ---
2
+ name: cc-openspec
3
+ description:
4
+ Run OpenSpec backlog delivery — validate BACKLOG.md, plan TaskCards, orchestrate
5
+ agents by phase, review gate, and update backlog state.
6
+ ---
7
+
8
+ # OpenSpec Backlog Workflow
9
+
10
+ Scope: $ARGUMENTS
11
+
12
+ ---
13
+
14
+ ## Step 0 — Validate (mandatory gate)
15
+
16
+ Run `npx cc-codeconductor openspec validate`. If invalid, show errors and recommendations, then **STOP**.
17
+
18
+ ---
19
+
20
+ ## Step 1 — Scan
21
+
22
+ Run `npx cc-codeconductor openspec scan`. Report new, modified, and closed items.
23
+
24
+ ---
25
+
26
+ ## Step 2 — Select item
27
+
28
+ Use `$ARGUMENTS` BC-id or `npx cc-codeconductor openspec status` for next READY item. **STOP** if none.
29
+
30
+ ---
31
+
32
+ ## Step 3 — Plan
33
+
34
+ Run `npx cc-codeconductor openspec plan <BC-id>`. Show TaskCards and `openspec/changes/` path.
35
+
36
+ ---
37
+
38
+ ## Step 4 — Execute loop
39
+
40
+ For each pending card: `npx cc-codeconductor openspec next`, then invoke the listed agent:
41
+
42
+ - discover → `repo-explorer`
43
+ - design → `architect`
44
+ - test → `tester`
45
+ - implement → `implementer`
46
+ - review → `reviewer`
47
+
48
+ Use isolated context. Implementer uses a git worktree.
49
+
50
+ ---
51
+
52
+ ## Step 5 — Review gate
53
+
54
+ Reviewer approves or rejects against acceptance criteria. Reject → `IN_PROGRESS`, **STOP**.
55
+
56
+ ---
57
+
58
+ ## Step 6 — Update
59
+
60
+ Mark DONE, move to Archive in BACKLOG.md, run `openspec scan`.
61
+
62
+ Apply skill `openspec` for format and state rules.
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: cc-scorecard
3
+ description:
4
+ Evaluate deliverable quality — scorecard, outcome tracking, regression checklist.
5
+ ---
6
+
7
+ # Scorecard Evaluation Workflow
8
+
9
+ Scope: $ARGUMENTS
10
+
11
+ 1. `npx cc-codeconductor scorecard create --task <id> --from-diff`
12
+ 2. Complete criteria per docs/agent-scorecard.md
13
+ 3. `scorecard regression` if needed
14
+ 4. `scorecard record` with verdict and optional cost/tokens
15
+ 5. `scorecard aggregate`
16
+
17
+ Apply skill `evaluation`.
@@ -0,0 +1,144 @@
1
+ ---
2
+ description: >-
3
+ [cc: alias] Run OpenSpec backlog delivery — validate BACKLOG.md, plan TaskCards,
4
+ orchestrate agents by phase, review gate, and update backlog state.
5
+ ---
6
+
7
+ # OpenSpec Backlog Workflow
8
+
9
+ Scope: $ARGUMENTS
10
+
11
+ Orchestrate FIFO delivery from `BACKLOG.md`. CodeConductor owns planning; agents execute one TaskCard per phase with the installed preset model for each role.
12
+
13
+ ---
14
+
15
+ ## Step 0 — Validate (mandatory gate)
16
+
17
+ Run:
18
+
19
+ ```bash
20
+ npx cc-codeconductor openspec validate
21
+ ```
22
+
23
+ If validation fails:
24
+
25
+ 1. List all errors and recommendations from the CLI output.
26
+ 2. Show the canonical BACKLOG.md structure (## Global, ## Items, ### BC-001 | Title, Priority, Status, Type, Depends on, Description, Scope, Acceptance).
27
+ 3. **STOP.** Do not scan, plan, or execute until the user fixes BACKLOG.md.
28
+
29
+ ---
30
+
31
+ ## Step 1 — Scan
32
+
33
+ Run:
34
+
35
+ ```bash
36
+ npx cc-codeconductor openspec scan
37
+ ```
38
+
39
+ Report: new items, modified items, closed/archived items, and whether the file changed.
40
+
41
+ ---
42
+
43
+ ## Step 2 — Select item
44
+
45
+ If `$ARGUMENTS` contains a `BC-xxx` ID, use that item. Otherwise run:
46
+
47
+ ```bash
48
+ npx cc-codeconductor openspec status
49
+ ```
50
+
51
+ Pick the next `READY` item with satisfied dependencies (FIFO by priority). Skip items in `DONE` or `Archive`.
52
+
53
+ **STOP if no eligible item.** Report backlog status and wait for the user.
54
+
55
+ ---
56
+
57
+ ## Step 3 — Plan
58
+
59
+ Run:
60
+
61
+ ```bash
62
+ npx cc-codeconductor openspec plan <BC-id>
63
+ ```
64
+
65
+ Show:
66
+
67
+ - Generated TaskCards (discover → design → test → implement → review when TDD required)
68
+ - Path to `openspec/changes/<slug>/` (proposal, design, tasks, specs)
69
+
70
+ Update BACKLOG item status to `PLANNED` (CLI does this automatically).
71
+
72
+ ---
73
+
74
+ ## Step 4 — Model matrix and execute loop
75
+
76
+ Before executing phases, show resolved models:
77
+
78
+ ```bash
79
+ npx cc-codeconductor scorecard models
80
+ ```
81
+
82
+ For each pending TaskCard, run:
83
+
84
+ ```bash
85
+ npx cc-codeconductor openspec next
86
+ ```
87
+
88
+ Invoke the agent named on the card with **isolated** context (`/clear` between phases unless continuation is required):
89
+
90
+ | Phase | Agent | Role |
91
+ |-------|-------|------|
92
+ | discover | repo-explorer | Map repo and impact |
93
+ | design | architect | Technical plan |
94
+ | test | tester | TDD tests (before implement if TDD required) |
95
+ | implement | implementer | Minimal diff in worktree |
96
+ | review | reviewer | Acceptance + scope gate |
97
+
98
+ Use the model configured in the installed preset for each agent role.
99
+
100
+ After each phase:
101
+
102
+ - Mark progress in deliverable summary.
103
+ - Set TaskCard status to `done` in `.codeconductor/openspec-state.json` when phase completes.
104
+
105
+ Implementer: create a Git worktree before editing (`git worktree add ../<branch>-session <branch>`).
106
+
107
+ ---
108
+
109
+ ## Step 5 — Review gate
110
+
111
+ Run regression when BACKLOG Global `Review required: yes`:
112
+
113
+ ```bash
114
+ npx cc-codeconductor scorecard regression
115
+ ```
116
+
117
+ The `reviewer` agent must verify:
118
+
119
+ - All acceptance criteria from BACKLOG.md
120
+ - Tests pass
121
+ - Scope matches the backlog item
122
+ - No architectural violations
123
+
124
+ If **rejected**: set item status `IN_PROGRESS`, record findings in state, **STOP** and report to user.
125
+
126
+ If **approved**: proceed to Step 6.
127
+
128
+ ---
129
+
130
+ ## Step 6 — Scorecard and update backlog
131
+
132
+ 1. `npx cc-codeconductor scorecard create --task <BC-id> --from-diff`
133
+ 2. Complete criteria; `scorecard record` with verdict and optional cost/tokens
134
+ 3. Set item `Progress: 100%`, `Status: DONE` if PASS
135
+ 4. Move item to `## Archive` in BACKLOG.md if DONE
136
+ 5. Run `npx cc-codeconductor openspec scan`
137
+
138
+ Report completion: Task Cards executed, scorecard verdict, change folder path, files changed.
139
+
140
+ ---
141
+
142
+ ## Skill
143
+
144
+ Apply `.claude/skills/openspec/SKILL.md` for backlog format rules and state transitions.
@@ -122,5 +122,16 @@ If no CRITICAL findings exist:
122
122
 
123
123
  ## Completion
124
124
 
125
- Deliver the complete Review Report. Never summarize or omit findings. Every
126
- finding must include a location and an actionable description.
125
+ Deliver the complete Review Report. Never summarize or omit findings.
126
+
127
+ ---
128
+
129
+ ## Step 5 — Scorecard and outcome
130
+
131
+ ```bash
132
+ npx cc-codeconductor scorecard create --from-diff --agent reviewer
133
+ npx cc-codeconductor scorecard record --verdict PASS|REVISE|REJECT --score <weighted>
134
+ npx cc-codeconductor scorecard regression
135
+ ```
136
+
137
+ Map merge recommendation to scorecard verdict. Record outcome for trend tracking.
@@ -0,0 +1,65 @@
1
+ ---
2
+ description: >-
3
+ [cc: alias] Evaluate deliverable quality — scorecard, outcome tracking, regression
4
+ checklist, and aggregate stats.
5
+ ---
6
+
7
+ # Scorecard Evaluation Workflow
8
+
9
+ Scope: $ARGUMENTS
10
+
11
+ ---
12
+
13
+ ## Step 1 — Identify task
14
+
15
+ Use `$ARGUMENTS` as task id (e.g. `BC-001`) or read active item from `npx cc-codeconductor openspec status`.
16
+
17
+ ---
18
+
19
+ ## Step 2 — Create scorecard with auto-signals
20
+
21
+ ```bash
22
+ npx cc-codeconductor scorecard create --task <id> --agent reviewer --from-diff
23
+ ```
24
+
25
+ Review auto-suggested criteria (minimal diff, cc-gain). Complete remaining scores 0–3 per [`docs/agent-scorecard.md`](docs/agent-scorecard.md).
26
+
27
+ ---
28
+
29
+ ## Step 3 — Regression (optional)
30
+
31
+ ```bash
32
+ npx cc-codeconductor scorecard regression
33
+ ```
34
+
35
+ If required checks fail, **STOP** and report failures.
36
+
37
+ ---
38
+
39
+ ## Step 4 — Record outcome
40
+
41
+ ```bash
42
+ npx cc-codeconductor scorecard record --task <id> --agent reviewer --model <model> --verdict PASS --score 2.5
43
+ ```
44
+
45
+ Include `--cost` and `--tokens` when available from session metrics.
46
+
47
+ ---
48
+
49
+ ## Step 5 — Aggregate
50
+
51
+ ```bash
52
+ npx cc-codeconductor scorecard aggregate
53
+ ```
54
+
55
+ Report pass rate and average weighted score.
56
+
57
+ ---
58
+
59
+ ## Routing on verdict
60
+
61
+ - **PASS** — accept deliverable; update backlog if applicable
62
+ - **REVISE** — return to implementer/tester with findings
63
+ - **REJECT** — route to task-coach for re-scoping
64
+
65
+ Apply skill `evaluation`.
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: evaluation
3
+ description:
4
+ Agent scorecard criteria, outcome tracking, model profiles, and evaluation CLI.
5
+ Use when running /cc:scorecard or measuring deliverable quality.
6
+ ---
7
+
8
+ # Evaluation Skill
9
+
10
+ ## Scorecard criteria (8 weighted)
11
+
12
+ See `docs/agent-scorecard.md`. Pass threshold: weighted score >= 2.0, no criterion at 0.
13
+
14
+ ## CLI
15
+
16
+ ```bash
17
+ npx cc-codeconductor scorecard create --task BC-001 --from-diff
18
+ npx cc-codeconductor scorecard record --task BC-001 --verdict PASS --score 2.5
19
+ npx cc-codeconductor scorecard list
20
+ npx cc-codeconductor scorecard aggregate
21
+ npx cc-codeconductor scorecard models
22
+ npx cc-codeconductor scorecard regression
23
+ npx cc-codeconductor scorecard matrix
24
+ npx cc-codeconductor scorecard compare-models
25
+ npx cc-codeconductor scorecard prompt-diff 0.4.0 0.5.0 --agent architect
26
+ ```
27
+
28
+ ## Outcome tracking
29
+
30
+ Append-only: `.codeconductor/evaluation/outcomes.jsonl`
31
+
32
+ Record after each phase (openspec) and after review gate with agent, model, verdict, optional cost/tokens.
33
+
34
+ ## Execution profiles
35
+
36
+ `.codeconductor/evaluation/execution-profile.yml` — `balanced`, `quality`, `economical`.
37
+
38
+ Use `scorecard models` before OpenSpec execute loop to show phase → agent → model.
39
+
40
+ ## Verdicts
41
+
42
+ PASS / REVISE / REJECT — see scorecard calculator rules in docs.
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: openspec
3
+ description:
4
+ OpenSpec backlog format, state machine, and delivery workflow for CodeConductor.
5
+ Use when running /cc:openspec or editing BACKLOG.md.
6
+ ---
7
+
8
+ # OpenSpec / BACKLOG Skill
9
+
10
+ ## BACKLOG.md contract
11
+
12
+ `BACKLOG.md` at repo root is the operational queue. Required sections:
13
+
14
+ - `## Global` — Product, Strategy, Policy, Review required, TDD required
15
+ - `## Items` — active backlog entries
16
+ - `## Archive` — completed entries (do not re-execute)
17
+
18
+ Each item: `### BC-001 | Short title` with Priority (P0–P3), Status, Type, Depends on, Description, Scope, Out of scope, Acceptance (measurable checklist).
19
+
20
+ ## Status machine
21
+
22
+ `TODO` → `READY` → `PLANNED` → `IN_PROGRESS` → `REVIEW` → `DONE` → Archive
23
+
24
+ `BLOCKED` can return to `READY` when resolved. Reviewer rejection: `REVIEW` → `IN_PROGRESS`.
25
+
26
+ ## CLI commands
27
+
28
+ ```bash
29
+ npx cc-codeconductor openspec validate # gate — must pass before delivery
30
+ npx cc-codeconductor openspec scan
31
+ npx cc-codeconductor openspec plan BC-001
32
+ npx cc-codeconductor openspec status
33
+ npx cc-codeconductor openspec next
34
+ ```
35
+
36
+ ## OpenSpec folders
37
+
38
+ Each item generates `openspec/changes/<slug>/` with `proposal.md`, `design.md`, `tasks.md`, `specs/` — compatible with Fission-AI OpenSpec layout (no external CLI required).
39
+
40
+ ## Agent phases
41
+
42
+ | Phase | Agent |
43
+ |-------|-------|
44
+ | discover | repo-explorer |
45
+ | design | architect |
46
+ | test | tester |
47
+ | implement | implementer |
48
+ | review | reviewer |
49
+
50
+ When Global `TDD required: yes`, test runs before implement.
51
+
52
+ ## Reject vague backlog
53
+
54
+ Do not process items with acceptance like "improve UX" or "fix bugs". Require verifiable criteria.
@@ -114,6 +114,7 @@ When multiple signals apply, take the highest risk level. Do not average.
114
114
  | Codebase exploration | any | `repo-explorer` |
115
115
  | Code review | any | `reviewer` |
116
116
  | Security review | high | `security-reviewer` → `reviewer` |
117
+ | DDD→SDD→TDD pipeline | any | `contract-builder` → `architect` → `implementer` → `tester` |
117
118
 
118
119
  ---
119
120
 
@@ -790,6 +791,62 @@ module, or identifying the impact radius of a change.
790
791
 
791
792
  ---
792
793
 
794
+ ### contract-builder
795
+
796
+ **Role:** Defines API contracts, data shapes, and behavior specs before
797
+ implementation. Produces OpenAPI specs, JSON Schema, or TypeScript interfaces
798
+ that the implementer and tester use as the source of truth.
799
+
800
+ **Use when:** New feature needs spec-before-implementation, API contract needs
801
+ definition, or the DDD→SDD→TDD pipeline is triggered.
802
+
803
+ **Permissions:**
804
+
805
+ - read: `allow`
806
+ - edit: `ask` (docs, ADRs, OpenAPI only)
807
+ - bash: `deny`
808
+ - network: `deny`
809
+
810
+ **Does not:** Write implementation code. Modify production source files.
811
+
812
+ **Model:** `{{MODEL_CODEX}}`
813
+
814
+ **Deliverables:**
815
+
816
+ - OpenAPI 3.x spec (`openapi.yaml` or `*-api.yaml`)
817
+ - JSON Schema for request/response bodies
818
+ - TypeScript interfaces for shared types
819
+ - Contract test matrix (endpoint × status × shape)
820
+
821
+ **Contract specification format:**
822
+
823
+ ```markdown
824
+ ## API Contract
825
+
826
+ **Task**: [objective from Task Card]
827
+
828
+ ### Endpoints / Interfaces
829
+
830
+ | Method | Path | Request | Response | Errors |
831
+ | ------ | ---- | ------- | -------- | ------ |
832
+ | POST | /api/v1/... | [schema ref] | [schema ref] | 400, 401, 422 |
833
+
834
+ ### Data shapes
835
+
836
+ - `[TypeName]`: [field list with types and constraints]
837
+
838
+ ### Compatibility
839
+
840
+ - Breaking changes: [yes/no — list if yes]
841
+ - Versioning strategy: [URL prefix | header | none]
842
+
843
+ ### Contract tests required
844
+
845
+ - [ ] [test description — request shape, response shape, error cases]
846
+ ```
847
+
848
+ ---
849
+
793
850
  ### goal-planner
794
851
 
795
852
  **Role:** Transforms an objective string into a YAML task graph with
@@ -0,0 +1,15 @@
1
+ node_modules/
2
+ dist/
3
+ build/
4
+ .gradle/
5
+ *.lock
6
+ .env*
7
+ coverage/
8
+ graphify-out/
9
+ .next/
10
+ .turbo/
11
+ __pycache__/
12
+ *.pyc
13
+ .venv/
14
+ target/
15
+ vendor/