cc-codeconductor 1.1.0 → 1.3.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 +34 -12
- package/dist/core/config/codeconductor-config.d.ts +2 -1
- package/dist/core/presets/package-paths.d.ts +1 -0
- package/dist/core/runner/runner-target.d.ts +32 -0
- package/dist/core/verification/verification-runner.d.ts +7 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2934 -761
- package/dist/library.js +103 -14
- package/dist/validation/schemas.d.ts +294 -61
- package/package.json +4 -1
- package/presets/agy/AGENTS.md +11 -10
- package/presets/agy/hooks.json +3 -3
- package/presets/agy/scripts/invoke-hook.cjs +119 -0
- package/presets/agy/skills/backlog/SKILL.md +40 -70
- 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 +49 -19
- 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 +18 -0
- package/presets/agy/workflows/cc-ask.md +10 -10
- package/presets/agy/workflows/cc-council.md +4 -0
- package/presets/agy/workflows/cc-db-migration.md +18 -0
- package/presets/agy/workflows/cc-explore.md +2 -2
- package/presets/agy/workflows/cc-feature.md +22 -0
- package/presets/agy/workflows/cc-fix.md +18 -0
- package/presets/agy/workflows/cc-handoff.md +1 -1
- package/presets/agy/workflows/cc-iterative.md +14 -0
- package/presets/agy/workflows/cc-openspec.md +14 -0
- package/presets/agy/workflows/cc-prototype.md +1 -1
- package/presets/agy/workflows/cc-refactor.md +5 -1
- package/presets/agy/workflows/cc-review.md +5 -1
- package/presets/agy/workflows/cc-scorecard.md +2 -0
- package/presets/agy/workflows/cc-security.md +4 -0
- package/presets/agy/workflows/cc-spec-mutation.md +195 -0
- package/presets/agy/workflows/cc-tdd-cycle.md +15 -1
- package/presets/agy/workflows/cc-test-plan.md +5 -1
- package/presets/claude/commands/cc/api-contract.md +19 -1
- package/presets/claude/commands/cc/ask.md +1 -1
- package/presets/claude/commands/cc/backlog.md +1 -1
- package/presets/claude/commands/cc/clarify.md +1 -1
- package/presets/claude/commands/cc/council.md +4 -0
- package/presets/claude/commands/cc/db-migration.md +19 -1
- package/presets/claude/commands/cc/explore.md +1 -1
- package/presets/claude/commands/cc/feature.md +23 -1
- package/presets/claude/commands/cc/fix.md +22 -1
- package/presets/claude/commands/cc/handoff.md +1 -1
- package/presets/claude/commands/cc/iterative.md +15 -1
- package/presets/claude/commands/cc/openspec.md +15 -1
- package/presets/claude/commands/cc/prototype.md +1 -1
- package/presets/claude/commands/cc/refactor.md +5 -1
- package/presets/claude/commands/cc/review.md +8 -1
- package/presets/claude/commands/cc/scorecard.md +3 -1
- package/presets/claude/commands/cc/security.md +5 -1
- package/presets/claude/commands/cc/spec-mutation.md +194 -0
- package/presets/claude/commands/cc/tdd-cycle.md +18 -1
- package/presets/claude/commands/cc/test-plan.md +5 -1
- package/presets/claude/commands/cc/triage.md +1 -1
- package/presets/claude/settings.json +13 -11
- package/presets/claude/skills/android/SKILL.md +0 -1
- package/presets/claude/skills/api-versioning/SKILL.md +0 -1
- package/presets/claude/skills/backlog/SKILL.md +40 -70
- package/presets/claude/skills/django-orm/SKILL.md +0 -1
- package/presets/claude/skills/django-testing/SKILL.md +0 -1
- package/presets/claude/skills/evaluation/SKILL.md +47 -24
- package/presets/claude/skills/jpa-postgres/SKILL.md +0 -1
- package/presets/claude/skills/openspec/SKILL.md +46 -38
- package/presets/claude/skills/pagespeed-perf/SKILL.md +1 -2
- package/presets/claude/skills/python/SKILL.md +0 -1
- package/presets/claude/skills/python-django-stack/SKILL.md +0 -1
- package/presets/claude/skills/python-fastapi-stack/SKILL.md +0 -1
- package/presets/claude/skills/security/SKILL.md +0 -1
- package/presets/claude/skills/spring-boot-feature/SKILL.md +0 -1
- package/presets/claude/skills/spring-boot-kotlin/SKILL.md +0 -1
- package/presets/claude/skills/sqlalchemy/SKILL.md +0 -1
- package/presets/claude/skills/testing-strategy/SKILL.md +0 -1
- 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 +19 -14
- package/presets/codex/commands/cc-ask.md +10 -10
- package/presets/codex/skills/android/SKILL.md +0 -1
- package/presets/codex/skills/api-versioning/SKILL.md +0 -1
- package/presets/codex/skills/backlog/SKILL.md +61 -0
- package/presets/codex/skills/cc-api-contract/SKILL.md +91 -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 +96 -0
- package/presets/codex/skills/cc-db-migration/SKILL.md +92 -0
- package/presets/codex/skills/cc-explore/SKILL.md +40 -0
- package/presets/codex/skills/cc-feature/SKILL.md +162 -0
- package/presets/codex/skills/cc-fix/SKILL.md +172 -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 +167 -0
- package/presets/codex/skills/cc-review/SKILL.md +156 -0
- package/presets/codex/skills/cc-scorecard/SKILL.md +82 -0
- package/presets/codex/skills/cc-security/SKILL.md +186 -0
- package/presets/codex/skills/cc-spec-mutation/SKILL.md +196 -0
- package/presets/codex/skills/cc-tdd-cycle/SKILL.md +266 -0
- package/presets/codex/skills/cc-test-plan/SKILL.md +157 -0
- package/presets/codex/skills/cc-triage/SKILL.md +38 -0
- package/presets/codex/skills/django-orm/SKILL.md +0 -1
- package/presets/codex/skills/django-testing/SKILL.md +0 -1
- package/presets/codex/skills/evaluation/SKILL.md +65 -0
- package/presets/codex/skills/jpa-postgres/SKILL.md +0 -1
- package/presets/codex/skills/openspec/SKILL.md +66 -0
- package/presets/codex/skills/pagespeed-perf/SKILL.md +1 -2
- package/presets/codex/skills/python/SKILL.md +0 -1
- package/presets/codex/skills/python-django-stack/SKILL.md +0 -1
- package/presets/codex/skills/python-fastapi-stack/SKILL.md +0 -1
- package/presets/codex/skills/spring-boot-feature/SKILL.md +0 -1
- package/presets/codex/skills/spring-boot-kotlin/SKILL.md +0 -1
- package/presets/codex/skills/sqlalchemy/SKILL.md +0 -1
- package/presets/codex/skills/testing-strategy/SKILL.md +0 -1
- 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/architect.md +1 -1
- package/presets/cursor/agents/complexity-auditor.md +1 -1
- package/presets/cursor/agents/contract-builder.md +1 -1
- package/presets/cursor/agents/docs.md +1 -1
- package/presets/cursor/agents/goal-planner.md +1 -1
- package/presets/cursor/agents/implementer.md +2 -2
- package/presets/cursor/agents/orchestrator.md +3 -3
- package/presets/cursor/agents/reviewer.md +4 -4
- package/presets/cursor/agents/security-reviewer.md +1 -1
- package/presets/cursor/agents/task-coach.md +1 -1
- package/presets/cursor/agents/tester.md +1 -1
- package/presets/cursor/commands/cc/api-contract.md +19 -1
- package/presets/cursor/commands/cc/ask.md +1 -1
- package/presets/cursor/commands/cc/backlog.md +1 -1
- package/presets/cursor/commands/cc/clarify.md +1 -1
- package/presets/cursor/commands/cc/council.md +4 -0
- package/presets/cursor/commands/cc/db-migration.md +19 -1
- package/presets/cursor/commands/cc/explore.md +1 -1
- package/presets/cursor/commands/cc/feature.md +23 -1
- package/presets/cursor/commands/cc/fix.md +22 -1
- package/presets/cursor/commands/cc/handoff.md +1 -1
- package/presets/cursor/commands/cc/iterative.md +15 -1
- package/presets/cursor/commands/cc/openspec.md +15 -1
- package/presets/cursor/commands/cc/prototype.md +1 -1
- package/presets/cursor/commands/cc/refactor.md +5 -1
- package/presets/cursor/commands/cc/review.md +5 -1
- package/presets/cursor/commands/cc/scorecard.md +3 -1
- package/presets/cursor/commands/cc/security.md +5 -1
- package/presets/cursor/commands/cc/spec-mutation.md +194 -0
- package/presets/cursor/commands/cc/tdd-cycle.md +15 -1
- package/presets/cursor/commands/cc/test-plan.md +5 -1
- package/presets/cursor/commands/cc/triage.md +1 -1
- package/presets/cursor/skills/android/SKILL.md +0 -1
- package/presets/cursor/skills/api-versioning/SKILL.md +0 -1
- package/presets/cursor/skills/astro/SKILL.md +0 -1
- package/presets/cursor/skills/auth-token-inspector/SKILL.md +0 -1
- package/presets/cursor/skills/backlog/SKILL.md +40 -70
- package/presets/cursor/skills/code-review/SKILL.md +0 -1
- package/presets/cursor/skills/django-orm/SKILL.md +0 -1
- package/presets/cursor/skills/django-testing/SKILL.md +0 -1
- package/presets/cursor/skills/django-uv/SKILL.md +0 -1
- package/presets/cursor/skills/drizzle-schema-architect/SKILL.md +0 -1
- package/presets/cursor/skills/evaluation/SKILL.md +61 -4
- package/presets/cursor/skills/fastapi-pydantic-strict/SKILL.md +0 -1
- package/presets/cursor/skills/jpa-nplusone-detector/SKILL.md +0 -1
- package/presets/cursor/skills/jpa-postgres/SKILL.md +0 -1
- package/presets/cursor/skills/livewire-alpine-bridge/SKILL.md +0 -1
- package/presets/cursor/skills/nextjs-typescript/SKILL.md +0 -1
- package/presets/cursor/skills/openspec/SKILL.md +46 -36
- package/presets/cursor/skills/pagespeed-perf/SKILL.md +1 -2
- package/presets/cursor/skills/python/SKILL.md +0 -1
- package/presets/cursor/skills/python-django-stack/SKILL.md +0 -1
- package/presets/cursor/skills/python-fastapi-stack/SKILL.md +0 -1
- package/presets/cursor/skills/security/SKILL.md +0 -1
- package/presets/cursor/skills/seo-analytics-injector/SKILL.md +0 -1
- package/presets/cursor/skills/spring-auth-auditor/SKILL.md +0 -1
- package/presets/cursor/skills/spring-boot-feature/SKILL.md +0 -1
- package/presets/cursor/skills/spring-boot-kotlin/SKILL.md +0 -1
- package/presets/cursor/skills/spring-boot-testing-strategy/SKILL.md +0 -1
- package/presets/cursor/skills/sqlalchemy/SKILL.md +0 -1
- package/presets/cursor/skills/tailwind-responsive-auditor/SKILL.md +0 -1
- package/presets/cursor/skills/tdd-mutation-tester/SKILL.md +0 -1
- package/presets/cursor/skills/testing-tdd/SKILL.md +35 -574
- package/presets/cursor/skills/using-cc-skills/SKILL.md +48 -0
- package/presets/gemini/GEMINI.md +38 -0
- package/presets/gemini/commands/cc/api-contract.toml +86 -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 +91 -0
- package/presets/gemini/commands/cc/db-migration.toml +87 -0
- package/presets/gemini/commands/cc/explore.toml +35 -0
- package/presets/gemini/commands/cc/feature.toml +157 -0
- package/presets/gemini/commands/cc/fix.toml +167 -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 +162 -0
- package/presets/gemini/commands/cc/review.toml +151 -0
- package/presets/gemini/commands/cc/scorecard.toml +77 -0
- package/presets/gemini/commands/cc/security.toml +181 -0
- package/presets/gemini/commands/cc/spec-mutation.toml +191 -0
- package/presets/gemini/commands/cc/tdd-cycle.toml +261 -0
- package/presets/gemini/commands/cc/test-plan.toml +152 -0
- package/presets/gemini/commands/cc/triage.toml +33 -0
- package/presets/gemini/settings.json +3 -0
- package/presets/opencode/README.md +24 -21
- package/presets/opencode/agents/architect.md +6 -0
- package/presets/opencode/agents/docs.md +1 -1
- package/presets/opencode/agents/implementer.md +7 -0
- package/presets/opencode/agents/reviewer.md +7 -1
- package/presets/opencode/agents/tester.md +6 -0
- package/presets/opencode/commands/cc-api-contract.md +18 -0
- package/presets/opencode/commands/cc-ask.md +10 -10
- package/presets/opencode/commands/cc-council.md +4 -0
- package/presets/opencode/commands/cc-db-migration.md +18 -0
- package/presets/opencode/commands/cc-explore.md +2 -2
- package/presets/opencode/commands/cc-feature.md +22 -0
- package/presets/opencode/commands/cc-fix.md +21 -0
- package/presets/opencode/commands/cc-handoff.md +1 -1
- package/presets/opencode/commands/cc-iterative.md +14 -0
- package/presets/opencode/commands/cc-openspec.md +14 -0
- package/presets/opencode/commands/cc-prototype.md +1 -1
- package/presets/opencode/commands/cc-refactor.md +5 -1
- package/presets/opencode/commands/cc-review.md +5 -1
- package/presets/opencode/commands/cc-scorecard.md +2 -0
- package/presets/opencode/commands/cc-security.md +4 -0
- package/presets/opencode/commands/cc-spec-mutation.md +194 -0
- package/presets/opencode/commands/cc-tdd-cycle.md +15 -1
- package/presets/opencode/commands/cc-test-plan.md +5 -1
- package/presets/opencode/opencode.jsonc +1 -1
- package/presets/opencode/prompts/v1.0.0/README.md +1 -1
- package/presets/opencode/prompts/v1.0.0/architect.md +6 -0
- package/presets/opencode/prompts/v1.0.0/docs.md +1 -1
- package/presets/opencode/prompts/v1.0.0/implementer.md +7 -0
- package/presets/opencode/prompts/v1.0.0/reviewer.md +7 -1
- package/presets/opencode/prompts/v1.0.0/tester.md +6 -0
- package/presets/opencode/skills/android/SKILL.md +0 -1
- package/presets/opencode/skills/api-versioning/SKILL.md +0 -1
- package/presets/opencode/skills/astro/SKILL.md +0 -1
- package/presets/opencode/skills/auth-token-inspector/SKILL.md +0 -1
- package/presets/opencode/skills/backlog/SKILL.md +40 -70
- package/presets/opencode/skills/code-review/SKILL.md +0 -1
- package/presets/opencode/skills/django-orm/SKILL.md +0 -1
- package/presets/opencode/skills/django-testing/SKILL.md +0 -1
- package/presets/opencode/skills/django-uv/SKILL.md +0 -1
- package/presets/opencode/skills/drizzle-schema-architect/SKILL.md +0 -1
- package/presets/opencode/skills/evaluation/SKILL.md +61 -2
- package/presets/opencode/skills/fastapi-pydantic-strict/SKILL.md +0 -1
- package/presets/opencode/skills/jpa-nplusone-detector/SKILL.md +0 -1
- package/presets/opencode/skills/jpa-postgres/SKILL.md +0 -1
- package/presets/opencode/skills/livewire-alpine-bridge/SKILL.md +0 -1
- package/presets/opencode/skills/nextjs-typescript/SKILL.md +0 -1
- package/presets/opencode/skills/openspec/SKILL.md +46 -34
- package/presets/opencode/skills/pagespeed-perf/SKILL.md +1 -2
- package/presets/opencode/skills/python/SKILL.md +0 -1
- package/presets/opencode/skills/python-django-stack/SKILL.md +0 -1
- package/presets/opencode/skills/python-fastapi-stack/SKILL.md +0 -1
- package/presets/opencode/skills/security/SKILL.md +0 -1
- package/presets/opencode/skills/seo-analytics-injector/SKILL.md +0 -1
- package/presets/opencode/skills/spring-auth-auditor/SKILL.md +0 -1
- package/presets/opencode/skills/spring-boot-feature/SKILL.md +0 -1
- package/presets/opencode/skills/spring-boot-kotlin/SKILL.md +0 -1
- package/presets/opencode/skills/spring-boot-testing-strategy/SKILL.md +0 -1
- package/presets/opencode/skills/sqlalchemy/SKILL.md +0 -1
- package/presets/opencode/skills/tailwind-responsive-auditor/SKILL.md +0 -1
- package/presets/opencode/skills/tdd-mutation-tester/SKILL.md +0 -1
- package/presets/opencode/skills/testing-tdd/SKILL.md +35 -574
- package/presets/opencode/skills/using-cc-skills/SKILL.md +48 -0
- package/presets/pi/AGENTS.md +43 -0
- package/presets/pi/settings.json +3 -0
- package/presets/seo-hotel/skills/astro-seo/SKILL.md +0 -1
- package/presets/seo-hotel/skills/geo-readiness/SKILL.md +0 -1
- package/presets/seo-hotel/skills/off-page/SKILL.md +0 -1
- package/presets/seo-hotel/skills/schema-validator/SKILL.md +0 -1
- package/presets/seo-hotel/skills/seo-audit/SKILL.md +0 -1
- package/presets/shared/invoke-hook.cjs +119 -0
- package/presets/shared/mutation_runner.py +273 -0
- package/src/presets/council/council.yml +12 -9
- package/src/presets/manifests/agy.yml +3 -1
- package/src/presets/manifests/claude.yml +3 -0
- package/src/presets/manifests/gemini.yml +15 -0
- package/src/presets/manifests/pi.yml +25 -0
- package/src/presets/models/agy.yml +2 -128
- package/src/presets/models/claude.yml +2 -144
- package/src/presets/models/codex.yml +2 -144
- package/src/presets/models/cursor.yml +2 -144
- package/src/presets/models/gemini.yml +2 -144
- package/src/presets/models/opencode.yml +3 -101
- package/src/presets/models/pi.yml +5 -0
- package/src/presets/models/roles.yml +193 -0
- package/src/presets/shared-skills.yml +64 -0
- package/src/presets/targets/agy.yml +11 -0
- package/src/presets/targets/claude.yml +12 -0
- package/src/presets/targets/codex.yml +14 -0
- package/src/presets/targets/cursor.yml +11 -0
- package/src/presets/targets/gemini.yml +15 -0
- package/src/presets/targets/opencode.yml +13 -0
- package/src/presets/targets/pi.yml +12 -0
- package/presets/agy/scripts/post-tool.sh +0 -25
- package/presets/agy/scripts/pre-tool.sh +0 -56
- package/presets/opencode/prompts/v0.1.0/DEPRECATED.md +0 -11
- package/presets/opencode/prompts/v0.1.0/architect.md +0 -213
- package/presets/opencode/prompts/v0.1.0/docs.md +0 -181
- package/presets/opencode/prompts/v0.1.0/implementer.md +0 -154
- package/presets/opencode/prompts/v0.1.0/orchestrator.md +0 -169
- package/presets/opencode/prompts/v0.1.0/repo-explorer.md +0 -102
- package/presets/opencode/prompts/v0.1.0/reviewer.md +0 -183
- package/presets/opencode/prompts/v0.1.0/task-coach.md +0 -142
- package/presets/opencode/prompts/v0.1.0/tester.md +0 -160
- package/presets/opencode/prompts/v0.2.0/DEPRECATED.md +0 -11
- package/presets/opencode/prompts/v0.2.0/architect.md +0 -219
- package/presets/opencode/prompts/v0.2.0/docs.md +0 -187
- package/presets/opencode/prompts/v0.2.0/implementer.md +0 -160
- package/presets/opencode/prompts/v0.2.0/orchestrator.md +0 -238
- package/presets/opencode/prompts/v0.2.0/repo-explorer.md +0 -108
- package/presets/opencode/prompts/v0.2.0/reviewer.md +0 -190
- package/presets/opencode/prompts/v0.2.0/task-coach.md +0 -153
- package/presets/opencode/prompts/v0.2.0/tester.md +0 -249
- package/presets/opencode/prompts/v0.3.0/DEPRECATED.md +0 -11
- package/presets/opencode/prompts/v0.3.0/architect.md +0 -221
- package/presets/opencode/prompts/v0.3.0/docs.md +0 -189
- package/presets/opencode/prompts/v0.3.0/implementer.md +0 -162
- package/presets/opencode/prompts/v0.3.0/orchestrator.md +0 -360
- package/presets/opencode/prompts/v0.3.0/repo-explorer.md +0 -110
- package/presets/opencode/prompts/v0.3.0/reviewer.md +0 -225
- package/presets/opencode/prompts/v0.3.0/task-coach.md +0 -155
- package/presets/opencode/prompts/v0.3.0/tester.md +0 -251
- package/presets/opencode/prompts/v0.4.0/DEPRECATED.md +0 -11
- package/presets/opencode/prompts/v0.4.0/architect.md +0 -221
- package/presets/opencode/prompts/v0.4.0/complexity-auditor.md +0 -89
- package/presets/opencode/prompts/v0.4.0/docs.md +0 -189
- package/presets/opencode/prompts/v0.4.0/implementer.md +0 -162
- package/presets/opencode/prompts/v0.4.0/orchestrator.md +0 -348
- package/presets/opencode/prompts/v0.4.0/repo-explorer.md +0 -110
- package/presets/opencode/prompts/v0.4.0/reviewer.md +0 -225
- package/presets/opencode/prompts/v0.4.0/task-coach.md +0 -155
- package/presets/opencode/prompts/v0.4.0/tester.md +0 -251
- package/presets/opencode/prompts/v0.5.0/architect.md +0 -222
- package/presets/opencode/prompts/v0.5.0/complexity-auditor.md +0 -91
- package/presets/opencode/prompts/v0.5.0/contract-builder.md +0 -84
- package/presets/opencode/prompts/v0.5.0/docs.md +0 -190
- package/presets/opencode/prompts/v0.5.0/goal-planner.md +0 -80
- package/presets/opencode/prompts/v0.5.0/implementer.md +0 -171
- package/presets/opencode/prompts/v0.5.0/orchestrator.md +0 -388
- package/presets/opencode/prompts/v0.5.0/repo-explorer.md +0 -111
- package/presets/opencode/prompts/v0.5.0/reviewer.md +0 -248
- package/presets/opencode/prompts/v0.5.0/security-reviewer.md +0 -123
- package/presets/opencode/prompts/v0.5.0/task-coach.md +0 -156
- package/presets/opencode/prompts/v0.5.0/tester.md +0 -252
- package/presets/opencode/prompts/v0.6.0/implementer.md +0 -35
- package/presets/opencode/prompts/v0.6.0/planner.md +0 -36
- package/presets/opencode/prompts/v0.6.0/reviewer.md +0 -40
|
@@ -17,30 +17,33 @@ providers)** models.
|
|
|
17
17
|
| `claude-sonnet-4-6` | Balanced, general purpose | Default for most agents |
|
|
18
18
|
| `claude-haiku-4-5-20251001` | Fast, lightweight | Task Coach, Docs, Repo Explorer |
|
|
19
19
|
|
|
20
|
-
### OpenCode Go
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
|
27
|
-
|
|
|
28
|
-
| `
|
|
20
|
+
### OpenCode Go models
|
|
21
|
+
|
|
22
|
+
Canonical slugs live in `src/presets/models/*.yml`. Production roles never use
|
|
23
|
+
`muse-spark-1.2-contributor` (trains on prompts). `ox-alpha-free` is an optional
|
|
24
|
+
fallback, not a default.
|
|
25
|
+
|
|
26
|
+
| Model | Best for |
|
|
27
|
+
| --- | --- |
|
|
28
|
+
| `deepseek-v4-pro` | Architect |
|
|
29
|
+
| `kimi-k3` | Security reviewer |
|
|
30
|
+
| `qwen3.8-max` | Reviewer, contract-builder |
|
|
31
|
+
| `glm-5.3` | Devil, complexity-auditor |
|
|
32
|
+
| `mimo-v2.5` | Implementer |
|
|
33
|
+
| `minimax-m3` | Tester |
|
|
34
|
+
| `qwen3.7-plus` | Orchestrator (TUI default) |
|
|
35
|
+
| `gpt-5.6-luna` | Task coach, planner |
|
|
36
|
+
| `deepseek-v4-flash` | Goal planner |
|
|
37
|
+
| `longcat-2.0` | Repo explorer |
|
|
38
|
+
| `hy3` | Docs |
|
|
29
39
|
|
|
30
40
|
---
|
|
31
41
|
|
|
32
42
|
## Agent Model Matrix
|
|
33
43
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
| **Architect** | `claude-opus-4-7` | `deepseek-v4-pro` | `mimo-v2.5-pro` |
|
|
38
|
-
| **Implementer** | `claude-sonnet-4-6` | `mimo-v2.5-pro` | `minimax-m2.7` |
|
|
39
|
-
| **Tester** | `claude-sonnet-4-6` | `minimax-m2.7` | `deepseek-v4-pro` |
|
|
40
|
-
| **Reviewer** | `claude-sonnet-4-6` | `qwen3.6-plus` | `minimax-m2.7` |
|
|
41
|
-
| **Task Coach** | `claude-haiku-4-5-20251001` | `qwen3.6-plus` | `kimi-k2.6` |
|
|
42
|
-
| **Docs** | `claude-haiku-4-5-20251001` | `qwen3.6-plus` | `kimi-k2.6` |
|
|
43
|
-
| **Repo Explorer** | `claude-haiku-4-5-20251001` | `qwen3.6-plus` | `kimi-k2.6` |
|
|
44
|
+
See `skills/cc-update-preset-models/references/role-map.md`. OpenCode column
|
|
45
|
+
examples: architect `deepseek-v4-pro`, implementer `mimo-v2.5`, tester
|
|
46
|
+
`minimax-m3`, reviewer `qwen3.8-max`.
|
|
44
47
|
|
|
45
48
|
---
|
|
46
49
|
|
|
@@ -93,7 +96,7 @@ The following paths are denied by default:
|
|
|
93
96
|
|
|
94
97
|
### Medium Tasks (Implementation, testing)
|
|
95
98
|
|
|
96
|
-
**Recommended:** `mimo-v2.5
|
|
99
|
+
**Recommended:** `mimo-v2.5` or `minimax-m3` (OpenCode Go) or
|
|
97
100
|
`claude-sonnet-4-6` (Claude)
|
|
98
101
|
|
|
99
102
|
- Implementer code writing
|
|
@@ -165,7 +168,7 @@ export KIMI_API_KEY="your-key"
|
|
|
165
168
|
| ------------------------------- | -------------------------------------------------- |
|
|
166
169
|
| Complex reasoning, architecture | OpenCode Go (`deepseek-v4-pro`) or Claude (`opus`) |
|
|
167
170
|
| Fast iteration, simple tasks | OpenCode Go (`qwen3.6-plus`) or Claude (`haiku`) |
|
|
168
|
-
| Code implementation | OpenCode Go (`mimo-v2.5
|
|
171
|
+
| Code implementation | OpenCode Go (`mimo-v2.5`) or Claude (`sonnet`) |
|
|
169
172
|
| Budget constraints | OpenCode Go (generally lower cost) |
|
|
170
173
|
| Availability issues | Switch to alternative from the matrix |
|
|
171
174
|
|
|
@@ -246,3 +246,9 @@ Rules under CCEP-1:
|
|
|
246
246
|
- Never approve your own plan — the human approves before implementation starts.
|
|
247
247
|
- If scope expands during design, flag it as a separate task, not an extension
|
|
248
248
|
of the current one.
|
|
249
|
+
|
|
250
|
+
## Composition
|
|
251
|
+
|
|
252
|
+
Invoke via `/cc-feature`, `/cc-openspec`, or the orchestrator. Do not invoke
|
|
253
|
+
other agents. If an OpenSpec change folder is active, invoke skill `openspec`
|
|
254
|
+
and run `openspec analyze --output json` before implementation is allowed.
|
|
@@ -77,7 +77,7 @@ CHANGELOG is mandatory for every implementation change. No exceptions.
|
|
|
77
77
|
- `docs/**/*.md` — any markdown documentation file
|
|
78
78
|
- `docs/adr/*.md` — Architecture Decision Records
|
|
79
79
|
- `CHANGELOG.md` — always update for any implementation change
|
|
80
|
-
- `.codeconductor/sessions/handoff.md` — `/cc
|
|
80
|
+
- `.codeconductor/sessions/handoff.md` — `/cc-handoff` only; gitignored; redact secrets
|
|
81
81
|
- `openapi.yaml`, `openapi.json`, or any OpenAPI spec file
|
|
82
82
|
- Any `*-api.yaml` or `*-api.json` file
|
|
83
83
|
|
|
@@ -215,3 +215,10 @@ tests. On **REJECT**, stop and escalate to the orchestrator.
|
|
|
215
215
|
- Never modify the Technical Plan — if the plan is wrong, escalate to
|
|
216
216
|
`architect` via the orchestrator.
|
|
217
217
|
- Never commit without human confirmation.
|
|
218
|
+
|
|
219
|
+
## Composition
|
|
220
|
+
|
|
221
|
+
Invoke via `/cc-feature`, `/cc-fix`, `/cc-tdd-cycle`, or the orchestrator.
|
|
222
|
+
Do not invoke other agents. Invoke skill `testing-tdd`.
|
|
223
|
+
Deliverable is incomplete without a passing suite and runner TDD evidence when
|
|
224
|
+
TDD is required. Scorecard: `bun run dev scorecard create --from-diff`.
|
|
@@ -260,7 +260,7 @@ When the orchestrator requests evaluation, produce scores for all 8 criteria in
|
|
|
260
260
|
2. Minimal diff (20%)
|
|
261
261
|
3. Tests present and passing (15%)
|
|
262
262
|
4. No regressions (15%)
|
|
263
|
-
5. Code conventions (
|
|
263
|
+
5. Code conventions (5%)
|
|
264
264
|
6. Documentation updated (5%)
|
|
265
265
|
7. Context discipline (5%)
|
|
266
266
|
8. Complexity diffusion / cc-gain (5%)
|
|
@@ -282,3 +282,9 @@ Invoke skill `evaluation` and run `scorecard record` with agent `reviewer`, mode
|
|
|
282
282
|
- Never issue vague findings ("this could be better") — every finding must name
|
|
283
283
|
the exact location and the specific required action.
|
|
284
284
|
- Never run `git push` or `git commit`.
|
|
285
|
+
|
|
286
|
+
## Composition
|
|
287
|
+
|
|
288
|
+
Invoke via `/cc-review` or the orchestrator. Do not invoke other agents.
|
|
289
|
+
Invoke skill `evaluation`. Deliverable is incomplete without
|
|
290
|
+
`scorecard create --from-diff` and a recorded PASS|REVISE|REJECT.
|
|
@@ -285,3 +285,9 @@ and confirmed failing; list the failing test paths in `artifacts` so the
|
|
|
285
285
|
- Never mock real behavior that could be tested with an in-memory alternative.
|
|
286
286
|
- Never declare coverage complete when any acceptance criterion lacks a test.
|
|
287
287
|
- Never run `git push` or `git commit`.
|
|
288
|
+
|
|
289
|
+
## Composition
|
|
290
|
+
|
|
291
|
+
Invoke via `/cc-tdd-cycle`, `/cc-feature`, or the orchestrator (test before
|
|
292
|
+
implement). Do not invoke other agents. Invoke skill `testing-tdd`.
|
|
293
|
+
Deliverable is incomplete without `captureTddSuiteEvidence` when TDD is required.
|
|
@@ -20,6 +20,20 @@ Command: `api-contract` (fixed for this workflow — do not infer from user text
|
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
23
|
+
## Step 0b — OpenSpec quality gates
|
|
24
|
+
|
|
25
|
+
If `openspec status` reports an active change folder:
|
|
26
|
+
|
|
27
|
+
1. Run: `npx cc-codeconductor openspec validate --output json`
|
|
28
|
+
2. Run: `npx cc-codeconductor openspec analyze --output json`
|
|
29
|
+
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
30
|
+
4. Next command spelling on this runner: `/cc-api-contract`
|
|
31
|
+
|
|
32
|
+
Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
|
|
23
37
|
## Step 1 — Task Card validation (task-coach)
|
|
24
38
|
|
|
25
39
|
Invoke `task-coach` with the request above.
|
|
@@ -80,3 +94,7 @@ or docs/OpenAPI drift.
|
|
|
80
94
|
|
|
81
95
|
Report the final Task Card, Technical Plan, implementation summary, test report,
|
|
82
96
|
review report, docs updated, compatibility impact, and residual risks.
|
|
97
|
+
|
|
98
|
+
## Next
|
|
99
|
+
|
|
100
|
+
Run `/cc-review` on the diff before merging.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: >-
|
|
3
|
-
|
|
3
|
+
Recommend one CodeConductor slash command from a natural-language
|
|
4
4
|
problem. Does not start that workflow.
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ description: >-
|
|
|
9
9
|
Problem: $ARGUMENTS
|
|
10
10
|
|
|
11
11
|
This is a **router**, not a delivery workflow. Recommend exactly one command.
|
|
12
|
-
Do **not** run the recommended `/cc
|
|
12
|
+
Do **not** run the recommended `/cc-` command unless the human confirms.
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
@@ -31,13 +31,13 @@ The catalog is only:
|
|
|
31
31
|
|
|
32
32
|
| Slash | When |
|
|
33
33
|
| ----- | ---- |
|
|
34
|
-
| `/cc
|
|
35
|
-
| `/cc
|
|
36
|
-
| `/cc
|
|
37
|
-
| `/cc
|
|
38
|
-
| `/cc
|
|
39
|
-
| `/cc
|
|
40
|
-
| `/cc
|
|
34
|
+
| `/cc-feature` | new behavior |
|
|
35
|
+
| `/cc-fix` | bug / regression |
|
|
36
|
+
| `/cc-refactor` | structure, no behavior change |
|
|
37
|
+
| `/cc-review` | inspect a diff/PR |
|
|
38
|
+
| `/cc-tdd-cycle` | red → green → refactor |
|
|
39
|
+
| `/cc-backlog` | create or append BACKLOG.md / objectives |
|
|
40
|
+
| `/cc-openspec` | BACKLOG / BC-xxx delivery |
|
|
41
41
|
|
|
42
42
|
If the CLI is unavailable, apply the same catalog and the same priority:
|
|
43
43
|
backlog (author) vs openspec (deliver) → tdd-cycle → review → refactor → fix → feature (default).
|
|
@@ -53,4 +53,4 @@ Print:
|
|
|
53
53
|
|
|
54
54
|
**STOP.** Wait for the human. Do not invoke the recommended workflow.
|
|
55
55
|
|
|
56
|
-
For a full preset inventory (skills, commands on disk), use `/cc
|
|
56
|
+
For a full preset inventory (skills, commands on disk), use `/cc-help` / `cc-help`.
|
|
@@ -85,3 +85,7 @@ If APPROVED (no CRITICAL findings):
|
|
|
85
85
|
## Completion
|
|
86
86
|
|
|
87
87
|
Deliver the complete Council Verdict. The feature is only complete when tests pass and the council explicitly approves the implementation according to the specification.
|
|
88
|
+
|
|
89
|
+
## Next
|
|
90
|
+
|
|
91
|
+
Approved: merge. Blocked: return the findings to `/cc-fix` or `/cc-feature`.
|
|
@@ -21,6 +21,20 @@ Command: `db-migration` (fixed for this workflow — do not infer from user text
|
|
|
21
21
|
|
|
22
22
|
---
|
|
23
23
|
|
|
24
|
+
## Step 0b — OpenSpec quality gates
|
|
25
|
+
|
|
26
|
+
If `openspec status` reports an active change folder:
|
|
27
|
+
|
|
28
|
+
1. Run: `npx cc-codeconductor openspec validate --output json`
|
|
29
|
+
2. Run: `npx cc-codeconductor openspec analyze --output json`
|
|
30
|
+
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
31
|
+
4. Next command spelling on this runner: `/cc-db-migration`
|
|
32
|
+
|
|
33
|
+
Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
|
|
24
38
|
## Step 1 — Task Card validation (task-coach)
|
|
25
39
|
|
|
26
40
|
Invoke `task-coach` with the request above.
|
|
@@ -80,3 +94,7 @@ undocumented deployment sequencing, or model/migration drift.
|
|
|
80
94
|
|
|
81
95
|
Report migration files changed, model files changed, tests run, lock risk, data
|
|
82
96
|
risk, operational sequencing, rollback/forward-fix notes, and residual risk.
|
|
97
|
+
|
|
98
|
+
## Next
|
|
99
|
+
|
|
100
|
+
Run `/cc-review` on the diff before merging.
|
|
@@ -26,10 +26,10 @@ If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"`. Invoke `
|
|
|
26
26
|
|
|
27
27
|
## Step 2 — Suggest next command (orchestrator)
|
|
28
28
|
|
|
29
|
-
Recommend exactly one next slash command (`/cc
|
|
29
|
+
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.
|
|
30
30
|
|
|
31
31
|
---
|
|
32
32
|
|
|
33
33
|
## Completion
|
|
34
34
|
|
|
35
|
-
Report the Repo Map and the recommended next `/cc
|
|
35
|
+
Report the Repo Map and the recommended next `/cc-` command.
|
|
@@ -21,6 +21,24 @@ Command: `feature` (fixed for this workflow — do not infer from user text)
|
|
|
21
21
|
|
|
22
22
|
---
|
|
23
23
|
|
|
24
|
+
## Step 0b — OpenSpec quality gates
|
|
25
|
+
|
|
26
|
+
If `openspec status` reports an active change folder:
|
|
27
|
+
|
|
28
|
+
1. Run: `npx cc-codeconductor openspec validate --output json`
|
|
29
|
+
2. Run: `npx cc-codeconductor openspec analyze --output json`
|
|
30
|
+
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
31
|
+
4. Next command spelling on this runner: `/cc-feature`
|
|
32
|
+
|
|
33
|
+
Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
|
|
34
|
+
|
|
35
|
+
Skills: `using-cc-skills`, `openspec`, `testing-tdd`, `evaluation`.
|
|
36
|
+
Do not skip `openspec analyze` when a change folder is active.
|
|
37
|
+
"I'll add tests later" is not allowed — tester before implementer.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
|
|
24
42
|
## Step 1 — Wayfinding (repo-explorer)
|
|
25
43
|
|
|
26
44
|
If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"` (and
|
|
@@ -134,3 +152,7 @@ Report the following to the human:
|
|
|
134
152
|
|
|
135
153
|
The feature is complete only when: all tests pass, no CRITICAL review findings
|
|
136
154
|
remain, and documentation reflects the implemented behavior.
|
|
155
|
+
|
|
156
|
+
## Next
|
|
157
|
+
|
|
158
|
+
Run `/cc-review` on the diff before merging.
|
|
@@ -31,6 +31,20 @@ Command: `fix` (fixed for this workflow — do not infer from user text)
|
|
|
31
31
|
|
|
32
32
|
---
|
|
33
33
|
|
|
34
|
+
## Step 0b — OpenSpec quality gates
|
|
35
|
+
|
|
36
|
+
If `openspec status` reports an active change folder:
|
|
37
|
+
|
|
38
|
+
1. Run: `npx cc-codeconductor openspec validate --output json`
|
|
39
|
+
2. Run: `npx cc-codeconductor openspec analyze --output json`
|
|
40
|
+
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
41
|
+
4. Next command spelling on this runner: `/cc-fix`
|
|
42
|
+
|
|
43
|
+
Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
|
|
34
48
|
## Step 1 — Wayfinding (repo-explorer)
|
|
35
49
|
|
|
36
50
|
If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"` (and
|
|
@@ -148,3 +162,10 @@ resolved.
|
|
|
148
162
|
Report: Task Card, Implementation Summary, regression test added, Review Report
|
|
149
163
|
(if applicable). The fix is complete only when: the regression test passes, the
|
|
150
164
|
full suite passes, and no CRITICAL review findings remain.
|
|
165
|
+
|
|
166
|
+
Skills: `testing-tdd`, `evaluation`. Record `scorecard create --from-diff`.
|
|
167
|
+
A small fix still needs a Task Card and a failing regression test first.
|
|
168
|
+
|
|
169
|
+
## Next
|
|
170
|
+
|
|
171
|
+
Run `/cc-review` on the diff before merging.
|
|
@@ -29,7 +29,7 @@ errors instead of pasting dumps. If unresolved credential material remains, stop
|
|
|
29
29
|
and wait for a human (CCEP `stopOnHighRisk`).
|
|
30
30
|
|
|
31
31
|
Include: goal, Task Card status (no secret fields), files touched, test
|
|
32
|
-
pass/fail (not log dumps), open questions, and the next `/cc
|
|
32
|
+
pass/fail (not log dumps), open questions, and the next `/cc-` command.
|
|
33
33
|
|
|
34
34
|
Do not edit source or tests.
|
|
35
35
|
|
|
@@ -21,6 +21,20 @@ Command: `iterative` (fixed for this workflow — do not infer from user text)
|
|
|
21
21
|
|
|
22
22
|
---
|
|
23
23
|
|
|
24
|
+
## Step 0b — OpenSpec quality gates
|
|
25
|
+
|
|
26
|
+
If `openspec status` reports an active change folder:
|
|
27
|
+
|
|
28
|
+
1. Run: `npx cc-codeconductor openspec validate --output json`
|
|
29
|
+
2. Run: `npx cc-codeconductor openspec analyze --output json`
|
|
30
|
+
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
31
|
+
4. Next command spelling on this runner: `/cc-iterative`
|
|
32
|
+
|
|
33
|
+
Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
|
|
24
38
|
## Step 1 — Wayfinding (repo-explorer)
|
|
25
39
|
|
|
26
40
|
If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"` (and
|
|
@@ -29,6 +29,20 @@ Command: `openspec` (fixed for this workflow — do not infer from user text)
|
|
|
29
29
|
|
|
30
30
|
---
|
|
31
31
|
|
|
32
|
+
## Step 0b — OpenSpec quality gates
|
|
33
|
+
|
|
34
|
+
If `openspec status` reports an active change folder:
|
|
35
|
+
|
|
36
|
+
1. Run: `npx cc-codeconductor openspec validate --output json`
|
|
37
|
+
2. Run: `npx cc-codeconductor openspec analyze --output json`
|
|
38
|
+
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
39
|
+
4. Next command spelling on this runner: `/cc-openspec`
|
|
40
|
+
|
|
41
|
+
Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
|
|
32
46
|
## Step 1 — Scan
|
|
33
47
|
|
|
34
48
|
Run `npx cc-codeconductor openspec scan`. Report new, modified, and closed items.
|
|
@@ -34,4 +34,4 @@ Invoke `implementer` in a Git worktree that is not a merge candidate. Label the
|
|
|
34
34
|
|
|
35
35
|
## Completion
|
|
36
36
|
|
|
37
|
-
Report bounds, worktree path, and what was learned. Recommend `/cc
|
|
37
|
+
Report bounds, worktree path, and what was learned. Recommend `/cc-feature` or `/cc-fix` if the spike should become real work.
|
|
@@ -28,7 +28,7 @@ behavioral consequences.
|
|
|
28
28
|
If coverage is insufficient:
|
|
29
29
|
|
|
30
30
|
1. **STOP**. Report the coverage gap to the human.
|
|
31
|
-
2. Suggest invoking `/cc
|
|
31
|
+
2. Suggest invoking `/cc-test-plan` first to establish coverage.
|
|
32
32
|
3. Do not proceed with the refactor until coverage is confirmed.
|
|
33
33
|
|
|
34
34
|
---
|
|
@@ -158,3 +158,7 @@ and after, Review Report (if applicable).
|
|
|
158
158
|
The refactor is complete only when: all pre-existing tests still pass, the
|
|
159
159
|
implementation matches the approved plan exactly, and no CRITICAL review
|
|
160
160
|
findings remain.
|
|
161
|
+
|
|
162
|
+
## Next
|
|
163
|
+
|
|
164
|
+
Run `/cc-review` on the diff before merging.
|
|
@@ -137,7 +137,7 @@ If any CRITICAL findings exist:
|
|
|
137
137
|
- The Review Report status is **BLOCKED**
|
|
138
138
|
- Report all CRITICAL findings to the human
|
|
139
139
|
- Do not proceed until each CRITICAL finding is resolved
|
|
140
|
-
- After resolution, invoke `/cc
|
|
140
|
+
- After resolution, invoke `/cc-review` again on the same target
|
|
141
141
|
|
|
142
142
|
If no CRITICAL findings exist:
|
|
143
143
|
|
|
@@ -151,3 +151,7 @@ If no CRITICAL findings exist:
|
|
|
151
151
|
|
|
152
152
|
Deliver the complete Review Report. Never summarize or omit findings. Every
|
|
153
153
|
finding must include a location and an actionable description.
|
|
154
|
+
|
|
155
|
+
## Next
|
|
156
|
+
|
|
157
|
+
Approved: merge. Blocked: return the findings to `/cc-fix` or `/cc-feature`.
|
|
@@ -19,6 +19,8 @@ Command: `scorecard` (fixed for this workflow — do not infer from user text)
|
|
|
19
19
|
|
|
20
20
|
---
|
|
21
21
|
|
|
22
|
+
If a change folder exists, run `npx cc-codeconductor openspec analyze --output json` first. `--from-diff` overlays FR/SC coverage onto `acceptance` and TDD evidence onto `tests`.
|
|
23
|
+
|
|
22
24
|
1. `scorecard create --task <id> --from-diff`
|
|
23
25
|
2. Complete criteria (reviewer or human)
|
|
24
26
|
3. `scorecard regression` (optional)
|
|
@@ -177,3 +177,7 @@ resolved.
|
|
|
177
177
|
Report: Task Card, Implementation Summary, regression test added, Review Report
|
|
178
178
|
(if applicable). The task is complete only when: the regression test passes, the
|
|
179
179
|
full suite passes, and no CRITICAL review findings remain.
|
|
180
|
+
|
|
181
|
+
## Next
|
|
182
|
+
|
|
183
|
+
Run `/cc-review` on the diff before merging.
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: >-
|
|
3
|
+
Spec-locked TDD with a mutation-testing gate — refine the intent
|
|
4
|
+
into an immutable Gherkin contract (SHA-256 frozen), implement under the
|
|
5
|
+
three laws of TDD, pass a judge audit, and merge only if every mutant dies.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Spec-Mutation — Hard Spec → TDD → Judge → Mutation Gate
|
|
9
|
+
|
|
10
|
+
Scope: $ARGUMENTS
|
|
11
|
+
|
|
12
|
+
Describe what behavior you want to implement. Include:
|
|
13
|
+
|
|
14
|
+
- The function, method, or feature to implement
|
|
15
|
+
- The expected behavior (inputs, outputs, invariants, edge cases)
|
|
16
|
+
- The allowed file scope (production files that may change)
|
|
17
|
+
- The test command for the affected suite (e.g. `pytest tests/test_billing.py`)
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Step 0 — CCEP Bootstrap
|
|
22
|
+
|
|
23
|
+
Command: `spec-mutation` (fixed for this workflow — do not infer from user text)
|
|
24
|
+
|
|
25
|
+
1. Run: `npx cc-codeconductor ccep parse --command spec-mutation "$ARGUMENTS" --output json`
|
|
26
|
+
2. Run: `npx cc-codeconductor ccep resolve --command spec-mutation "$ARGUMENTS" --output json`
|
|
27
|
+
3. Run: `npx cc-codeconductor ccep profile spec-mutation --output json`
|
|
28
|
+
4. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command spec-mutation --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
29
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
30
|
+
Canonical delivery order is test-before-implement whenever both phases apply.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Step 0b — OpenSpec quality gates
|
|
35
|
+
|
|
36
|
+
If `openspec status` reports an active change folder:
|
|
37
|
+
|
|
38
|
+
1. Run: `npx cc-codeconductor openspec validate --output json`
|
|
39
|
+
2. Run: `npx cc-codeconductor openspec analyze --output json`
|
|
40
|
+
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
41
|
+
4. Next command spelling on this runner: `/cc-spec-mutation`
|
|
42
|
+
|
|
43
|
+
Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Contract
|
|
48
|
+
|
|
49
|
+
The Gherkin specification is the **immutable contract** of the system. No code
|
|
50
|
+
merges unless it survives intentional source mutations. The loop is closed:
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
[Human + spec_partner] ──> [gherkin_author] ──> [Test Freeze: SHA-256]
|
|
54
|
+
│
|
|
55
|
+
┌──────────────────────────────────────────────────────┘
|
|
56
|
+
▼
|
|
57
|
+
[tdd_craftsman] <───────────────┐ (surviving mutant)
|
|
58
|
+
(Red-Green-Refactor) │
|
|
59
|
+
│ │
|
|
60
|
+
▼ │
|
|
61
|
+
[judge] ───────────> [mutation_testing] ───> [Safe Merge]
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Role mapping onto Conductor Agents (AGENTS.md):
|
|
65
|
+
|
|
66
|
+
| Workflow role | Conductor Agent | Deliverable |
|
|
67
|
+
| ------------------ | ----------------- | ------------------------------------------ |
|
|
68
|
+
| `craftsman_lead` | `orchestrator` | Routed Task Cards, per-stage scorecards |
|
|
69
|
+
| `spec_partner` | `task-coach` | Spec draft with invariants and boundaries |
|
|
70
|
+
| `gherkin_author` | `contract-builder`| Strict `.feature` file (Given/When/Then) |
|
|
71
|
+
| `tdd_craftsman` | `tester` → `implementer` | Failing test, then minimal production code |
|
|
72
|
+
| `judge` | `reviewer` | Binary verdict (PASS/REJECT) with scoring |
|
|
73
|
+
| `mutation_testing` | `tester` (runner) | Killed/survived mutant report |
|
|
74
|
+
|
|
75
|
+
## Stage 1 — Interactive refinement (`spec_partner` / task-coach)
|
|
76
|
+
|
|
77
|
+
Do not jump to implementation. Apply Socratic questioning to the initial intent:
|
|
78
|
+
|
|
79
|
+
- Preconditions, postconditions, and edge cases.
|
|
80
|
+
- Invariant matrix: what must always be true.
|
|
81
|
+
- Scope boundaries: explicit `Scope / Files` and `Scope / Out` for the Task Card.
|
|
82
|
+
|
|
83
|
+
Stop gate: human confirms the draft before formalization.
|
|
84
|
+
|
|
85
|
+
## Stage 2 — Hard Spec formalization (`gherkin_author` / contract-builder)
|
|
86
|
+
|
|
87
|
+
Formalize the agreed draft into `specs/<task>.feature` using strict Gherkin:
|
|
88
|
+
|
|
89
|
+
- No vague language ("must respond fast" is forbidden — use measurable Then steps).
|
|
90
|
+
- Every scenario declares preconditions (`Given`), actions (`When`), and
|
|
91
|
+
observable states (`Then`).
|
|
92
|
+
- Once the human approves the `.feature`, freeze it:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
shasum -a 256 specs/<task>.feature tests/ > .codeconductor/tasks/<task_id>.lock
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
From this point `specs/` and `tests/` are **read-only** for implementation
|
|
99
|
+
agents. Before every later gate, recompute the hash; any single-byte difference
|
|
100
|
+
aborts the pipeline with scorecard 0 (Specification Gaming).
|
|
101
|
+
|
|
102
|
+
## Stage 3 — TDD under the three laws (`tdd_craftsman`)
|
|
103
|
+
|
|
104
|
+
Delegates to the `/cc-tdd-cycle` state machine (`tddCycleStateMachine` in
|
|
105
|
+
`domain/loop`). Evidence must be captured with `captureTddSuiteEvidence` — do
|
|
106
|
+
not hand-edit JSON under `.codeconductor/evidence/`.
|
|
107
|
+
|
|
108
|
+
1. **Law 1 (RED):** no production code except to make a failing test pass. A
|
|
109
|
+
compile error from a missing interface counts as a failure.
|
|
110
|
+
2. **Law 2:** write exactly one failing assertion or scenario at a time.
|
|
111
|
+
3. **Law 3 (GREEN):** write only the minimal production code to pass. No
|
|
112
|
+
speculative code, no preventive heuristics, stdlib-first.
|
|
113
|
+
|
|
114
|
+
Hard rule: any write attempt against `specs/` or `tests/` during GREEN/REFACTOR
|
|
115
|
+
is a harness violation — stop execution and report.
|
|
116
|
+
|
|
117
|
+
## Stage 4 — Judge audit (`judge` / reviewer)
|
|
118
|
+
|
|
119
|
+
Deterministic gates before spending compute on mutation:
|
|
120
|
+
|
|
121
|
+
- Clean compile / diagnostics exit code 0.
|
|
122
|
+
- Traceability: every Gherkin step maps to an implemented test step.
|
|
123
|
+
- Scope Gaming audit: `git diff --name-only` must match the Task Card
|
|
124
|
+
`Scope / Files` exactly. Relaxed types, weakened assertions, or out-of-scope
|
|
125
|
+
edits → REJECT with findings.
|
|
126
|
+
|
|
127
|
+
Verdict is binary: PASS continues to the mutation gate; REJECT returns to the
|
|
128
|
+
`implement` phase with the findings attached.
|
|
129
|
+
|
|
130
|
+
## Stage 5 — Mutation gate (`mutation_testing`)
|
|
131
|
+
|
|
132
|
+
Run the deterministic AST mutator shipped with this preset:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
python3 presets/shared/mutation_runner.py \
|
|
136
|
+
--target <production_file.py> \
|
|
137
|
+
--test-command "<test command>" \
|
|
138
|
+
--spec-folder specs
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
The runner applies deterministic operator mutations (`>` → `<=`, `==` → `!=`,
|
|
142
|
+
`is` → `is not`, …) one at a time, re-runs the suite per mutant, and restores
|
|
143
|
+
the original source unconditionally (`finally` rollback).
|
|
144
|
+
|
|
145
|
+
- **Mutant killed (tests fail):** the suite detects the corruption. Continue.
|
|
146
|
+
- **Mutant survived (tests pass):** the tests are blind to this branch. The
|
|
147
|
+
runner writes `specs/handover.md` + appends to
|
|
148
|
+
`specs/implementation-summary.md` and exits with code **2**.
|
|
149
|
+
|
|
150
|
+
Non-Python stacks: substitute Stryker (JS/TS), PITest (JVM), or Mutmut
|
|
151
|
+
(Python full-suite) with the same contract — 100% kill rate or hands-off.
|
|
152
|
+
|
|
153
|
+
### Hands-off protocol (exit code 2)
|
|
154
|
+
|
|
155
|
+
1. Do NOT modify production code to "fix" a surviving mutant.
|
|
156
|
+
2. Route back to `tdd_craftsman` with `specs/handover.md` as input: write the
|
|
157
|
+
missing failing test (Law 1 & 2) that asserts the mutated branch.
|
|
158
|
+
3. Re-run stages 3–5.
|
|
159
|
+
|
|
160
|
+
### Circuit breaker (max 3 loops)
|
|
161
|
+
|
|
162
|
+
The orchestrator keeps a persistent counter per Task Card. If the
|
|
163
|
+
`tdd_craftsman ↔ mutation_testing` loop does not reach a 100% kill rate after
|
|
164
|
+
**3 iterations**:
|
|
165
|
+
|
|
166
|
+
- Cancel active subagents (stop token/context spend).
|
|
167
|
+
- `git checkout -- <scope>` rollback to the last clean state.
|
|
168
|
+
- Scorecard: `STATUS = BLOCKED`; escalate to a human operator. The branch stays
|
|
169
|
+
frozen until human arbitration.
|
|
170
|
+
|
|
171
|
+
## Guardrails (harness-enforced, not prompt-enforced)
|
|
172
|
+
|
|
173
|
+
- **Test Freezing:** SHA-256 of `specs/` + `tests/` stored in
|
|
174
|
+
`.codeconductor/tasks/<task_id>.lock`; hash mismatch aborts the pipeline.
|
|
175
|
+
- **Scope Guardian:** `fs_write`/`fs_patch` paths are validated against the Task
|
|
176
|
+
Card `Scope / Files`; path escapes (`../`) and critical files (`**/.env*`,
|
|
177
|
+
`**/credentials*`, infrastructure roots) are denied per `policy.yml`.
|
|
178
|
+
- **RBAC per role:** `gherkin_author` writes only `specs/`; `tdd_craftsman`
|
|
179
|
+
reads specs/tests and writes only scoped `src/`; `judge` and
|
|
180
|
+
`mutation_testing` are read-only except the runner's rolled-back patch.
|
|
181
|
+
- **Worktree isolation:** run the whole flow in a dedicated `git worktree`;
|
|
182
|
+
protected branches (`main`, `master`, `develop`) are never touched.
|
|
183
|
+
|
|
184
|
+
## Completion criteria
|
|
185
|
+
|
|
186
|
+
- [ ] `.feature` approved and frozen (SHA-256 lock file exists and matches).
|
|
187
|
+
- [ ] RED → GREEN → REFACTOR evidence captured per phase.
|
|
188
|
+
- [ ] Judge verdict PASS (compile clean, traceability complete, scope clean).
|
|
189
|
+
- [ ] Mutation runner exits 0 with `total_mutants_killed == total_points`.
|
|
190
|
+
- [ ] Scorecard records the kill rate and iteration count (≤ 3).
|
|
191
|
+
|
|
192
|
+
## Next
|
|
193
|
+
|
|
194
|
+
Run `/cc-review` on the diff before merging.
|