cc-codeconductor 1.2.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 +30 -10
- 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/index.js +1615 -546
- package/dist/library.js +75 -14
- package/dist/validation/schemas.d.ts +197 -35
- package/package.json +4 -1
- package/presets/agy/AGENTS.md +1 -1
- package/presets/agy/hooks.json +3 -3
- package/presets/agy/scripts/invoke-hook.cjs +21 -17
- package/presets/agy/workflows/cc-api-contract.md +4 -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 +4 -0
- package/presets/agy/workflows/cc-explore.md +2 -2
- package/presets/agy/workflows/cc-feature.md +4 -0
- package/presets/agy/workflows/cc-fix.md +4 -0
- package/presets/agy/workflows/cc-handoff.md +1 -1
- 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-security.md +4 -0
- package/presets/agy/workflows/cc-spec-mutation.md +4 -0
- package/presets/agy/workflows/cc-tdd-cycle.md +1 -1
- package/presets/agy/workflows/cc-test-plan.md +5 -1
- package/presets/claude/commands/cc/api-contract.md +5 -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 +5 -1
- package/presets/claude/commands/cc/explore.md +1 -1
- package/presets/claude/commands/cc/feature.md +5 -1
- package/presets/claude/commands/cc/fix.md +5 -1
- package/presets/claude/commands/cc/handoff.md +1 -1
- package/presets/claude/commands/cc/iterative.md +1 -1
- package/presets/claude/commands/cc/openspec.md +1 -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 +5 -1
- package/presets/claude/commands/cc/scorecard.md +1 -1
- package/presets/claude/commands/cc/security.md +5 -1
- package/presets/claude/commands/cc/spec-mutation.md +5 -1
- package/presets/claude/commands/cc/tdd-cycle.md +1 -1
- package/presets/claude/commands/cc/test-plan.md +5 -1
- package/presets/claude/commands/cc/triage.md +1 -1
- package/presets/claude/skills/android/SKILL.md +0 -1
- package/presets/claude/skills/api-versioning/SKILL.md +0 -1
- package/presets/claude/skills/django-orm/SKILL.md +0 -1
- package/presets/claude/skills/django-testing/SKILL.md +0 -1
- package/presets/claude/skills/jpa-postgres/SKILL.md +0 -1
- 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/codex/AGENTS.md +3 -2
- 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/cc-api-contract/SKILL.md +11 -7
- package/presets/codex/skills/cc-backlog/SKILL.md +1 -1
- package/presets/codex/skills/cc-clarify/SKILL.md +1 -1
- package/presets/codex/skills/cc-council/SKILL.md +4 -0
- package/presets/codex/skills/cc-db-migration/SKILL.md +11 -7
- package/presets/codex/skills/cc-explore/SKILL.md +3 -3
- package/presets/codex/skills/cc-feature/SKILL.md +16 -8
- package/presets/codex/skills/cc-fix/SKILL.md +14 -7
- package/presets/codex/skills/cc-handoff/SKILL.md +2 -2
- package/presets/codex/skills/cc-iterative/SKILL.md +8 -8
- package/presets/codex/skills/cc-openspec/SKILL.md +2 -2
- package/presets/codex/skills/cc-prototype/SKILL.md +2 -2
- package/presets/codex/skills/cc-refactor/SKILL.md +8 -4
- package/presets/codex/skills/cc-review/SKILL.md +6 -2
- package/presets/codex/skills/cc-scorecard/SKILL.md +1 -1
- package/presets/codex/skills/cc-security/SKILL.md +5 -1
- package/presets/codex/skills/cc-spec-mutation/SKILL.md +7 -3
- package/presets/codex/skills/cc-tdd-cycle/SKILL.md +6 -6
- package/presets/codex/skills/cc-test-plan/SKILL.md +6 -2
- package/presets/codex/skills/cc-triage/SKILL.md +1 -1
- package/presets/codex/skills/django-orm/SKILL.md +0 -1
- package/presets/codex/skills/django-testing/SKILL.md +0 -1
- package/presets/codex/skills/jpa-postgres/SKILL.md +0 -1
- 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/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 +5 -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 +5 -1
- package/presets/cursor/commands/cc/explore.md +1 -1
- package/presets/cursor/commands/cc/feature.md +5 -1
- package/presets/cursor/commands/cc/fix.md +5 -1
- package/presets/cursor/commands/cc/handoff.md +1 -1
- package/presets/cursor/commands/cc/iterative.md +1 -1
- package/presets/cursor/commands/cc/openspec.md +1 -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 +1 -1
- package/presets/cursor/commands/cc/security.md +5 -1
- package/presets/cursor/commands/cc/spec-mutation.md +5 -1
- package/presets/cursor/commands/cc/tdd-cycle.md +1 -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/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/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/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/gemini/GEMINI.md +38 -0
- package/presets/gemini/commands/cc/api-contract.toml +10 -6
- package/presets/gemini/commands/cc/ask.toml +1 -1
- package/presets/gemini/commands/cc/backlog.toml +1 -1
- package/presets/gemini/commands/cc/clarify.toml +1 -1
- package/presets/gemini/commands/cc/council.toml +4 -0
- package/presets/gemini/commands/cc/db-migration.toml +10 -6
- package/presets/gemini/commands/cc/explore.toml +1 -1
- package/presets/gemini/commands/cc/feature.toml +11 -7
- package/presets/gemini/commands/cc/fix.toml +13 -9
- package/presets/gemini/commands/cc/handoff.toml +1 -1
- package/presets/gemini/commands/cc/iterative.toml +7 -7
- package/presets/gemini/commands/cc/openspec.toml +1 -1
- package/presets/gemini/commands/cc/prototype.toml +1 -1
- package/presets/gemini/commands/cc/refactor.toml +8 -4
- package/presets/gemini/commands/cc/review.toml +5 -4
- package/presets/gemini/commands/cc/scorecard.toml +1 -1
- package/presets/gemini/commands/cc/security.toml +5 -1
- package/presets/gemini/commands/cc/spec-mutation.toml +5 -1
- package/presets/gemini/commands/cc/tdd-cycle.toml +5 -8
- package/presets/gemini/commands/cc/test-plan.toml +6 -2
- package/presets/gemini/commands/cc/triage.toml +1 -1
- package/presets/gemini/settings.json +3 -0
- package/presets/opencode/agents/docs.md +1 -1
- package/presets/opencode/agents/reviewer.md +1 -1
- package/presets/opencode/commands/cc-api-contract.md +4 -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 +4 -0
- package/presets/opencode/commands/cc-explore.md +2 -2
- package/presets/opencode/commands/cc-feature.md +4 -0
- package/presets/opencode/commands/cc-fix.md +4 -0
- package/presets/opencode/commands/cc-handoff.md +1 -1
- 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-security.md +4 -0
- package/presets/opencode/commands/cc-spec-mutation.md +4 -0
- package/presets/opencode/commands/cc-tdd-cycle.md +1 -1
- package/presets/opencode/commands/cc-test-plan.md +5 -1
- package/presets/opencode/prompts/v1.0.0/README.md +1 -1
- package/presets/opencode/prompts/v1.0.0/docs.md +1 -1
- package/presets/opencode/prompts/v1.0.0/reviewer.md +1 -1
- 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/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/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/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/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 +21 -17
- package/src/presets/council/council.yml +12 -9
- package/src/presets/manifests/agy.yml +1 -1
- package/src/presets/manifests/gemini.yml +11 -11
- 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/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
- package/presets/shared/__pycache__/mutation_runner.cpython-314.pyc +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
description = "into an immutable Gherkin contract (SHA-256 frozen), implement under the three laws of TDD, pass a judge audit, and merge only if every mutant dies."
|
|
1
|
+
description = "Spec-locked TDD with a mutation-testing gate — refine the intent into an immutable Gherkin contract (SHA-256 frozen), implement under the three laws of TDD, pass a judge audit, and merge only if every mutant dies."
|
|
2
2
|
|
|
3
3
|
prompt = """
|
|
4
4
|
# Spec-Mutation — Hard Spec → TDD → Judge → Mutation Gate
|
|
@@ -184,4 +184,8 @@ The orchestrator keeps a persistent counter per Task Card. If the
|
|
|
184
184
|
- [ ] Judge verdict PASS (compile clean, traceability complete, scope clean).
|
|
185
185
|
- [ ] Mutation runner exits 0 with `total_mutants_killed == total_points`.
|
|
186
186
|
- [ ] Scorecard records the kill rate and iteration count (≤ 3).
|
|
187
|
+
|
|
188
|
+
## Next
|
|
189
|
+
|
|
190
|
+
Run `/cc:review` on the diff before merging.
|
|
187
191
|
"""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
description = "test first, implement the minimum code to pass it, then refactor with the suite green."
|
|
1
|
+
description = "Run a structured Red-Green-Refactor TDD cycle — write a failing test first, implement the minimum code to pass it, then refactor with the suite green."
|
|
2
2
|
|
|
3
3
|
prompt = """
|
|
4
4
|
# TDD Cycle — Red → Green → Refactor
|
|
@@ -68,7 +68,7 @@ Do not advance phases until that evidence exists.
|
|
|
68
68
|
|
|
69
69
|
## Phase 1 — RED (Tester role)
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
Adopt the `tester` role as defined in `.gemini/agents/tester.md`.
|
|
72
72
|
|
|
73
73
|
### 1a — Scope clarification
|
|
74
74
|
|
|
@@ -124,7 +124,7 @@ confirmation.**
|
|
|
124
124
|
|
|
125
125
|
## Phase 2 — GREEN (Implementer role)
|
|
126
126
|
|
|
127
|
-
|
|
127
|
+
Adopt the `implementer` role as defined in `.gemini/agents/implementer.md`.
|
|
128
128
|
|
|
129
129
|
### 2a — Read the failing test before writing any code
|
|
130
130
|
|
|
@@ -171,7 +171,7 @@ confirmation.**
|
|
|
171
171
|
|
|
172
172
|
## Phase 3 — REFACTOR (Implementer role, then Reviewer role)
|
|
173
173
|
|
|
174
|
-
|
|
174
|
+
Adopt the `implementer` role as defined in `.gemini/agents/implementer.md`.
|
|
175
175
|
|
|
176
176
|
### 3a — Assess what needs cleaning
|
|
177
177
|
|
|
@@ -202,7 +202,7 @@ change and investigate.
|
|
|
202
202
|
|
|
203
203
|
### 3d — Review (Reviewer role)
|
|
204
204
|
|
|
205
|
-
|
|
205
|
+
Adopt the `reviewer` role as defined in `.gemini/agents/reviewer.md`.
|
|
206
206
|
|
|
207
207
|
Review only the refactored code against these axes:
|
|
208
208
|
|
|
@@ -258,7 +258,4 @@ The TDD cycle is complete when:
|
|
|
258
258
|
|
|
259
259
|
If the behavior requires additional test cases, start a new `/tdd-cycle` with
|
|
260
260
|
the next scenario. One cycle = one behavior.
|
|
261
|
-
|
|
262
|
-
Skill: `testing-tdd`. Evidence from the verification runner only — handmade TDD
|
|
263
|
-
JSON is rejected. Optional gate: `bun run dev scorecard suite-run --suite workflow-gates`.
|
|
264
261
|
"""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
description = "unit, integration, contract, and edge cases without writing implementation code."
|
|
1
|
+
description = "Generate a structured test plan for a feature or module — covers unit, integration, contract, and edge cases without writing implementation code."
|
|
2
2
|
|
|
3
3
|
prompt = """
|
|
4
4
|
# Test Plan Workflow
|
|
@@ -46,7 +46,7 @@ question and wait for the answer.
|
|
|
46
46
|
|
|
47
47
|
## Step 2 — Test plan generation (Tester role, planning mode)
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
Adopt the `tester` role as defined in `.gemini/agents/tester.md`.
|
|
50
50
|
|
|
51
51
|
Produce a test plan document — not test code. The plan will be used as input
|
|
52
52
|
when tests are actually written.
|
|
@@ -145,4 +145,8 @@ Deliver the complete Test Plan document. Save it as
|
|
|
145
145
|
|
|
146
146
|
This command produces a plan, not test files. No production code and no test
|
|
147
147
|
code is written during this command.
|
|
148
|
+
|
|
149
|
+
## Next
|
|
150
|
+
|
|
151
|
+
Implement against this plan with `/cc:tdd-cycle` or `/cc:feature`.
|
|
148
152
|
"""
|
|
@@ -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
|
|
|
@@ -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%)
|
|
@@ -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`.
|
|
@@ -94,3 +94,7 @@ undocumented deployment sequencing, or model/migration drift.
|
|
|
94
94
|
|
|
95
95
|
Report migration files changed, model files changed, tests run, lock risk, data
|
|
96
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.
|
|
@@ -165,3 +165,7 @@ full suite passes, and no CRITICAL review findings remain.
|
|
|
165
165
|
|
|
166
166
|
Skills: `testing-tdd`, `evaluation`. Record `scorecard create --from-diff`.
|
|
167
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
|
|
|
@@ -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`.
|
|
@@ -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.
|
|
@@ -188,3 +188,7 @@ The orchestrator keeps a persistent counter per Task Card. If the
|
|
|
188
188
|
- [ ] Judge verdict PASS (compile clean, traceability complete, scope clean).
|
|
189
189
|
- [ ] Mutation runner exits 0 with `total_mutants_killed == total_points`.
|
|
190
190
|
- [ ] Scorecard records the kill rate and iteration count (≤ 3).
|
|
191
|
+
|
|
192
|
+
## Next
|
|
193
|
+
|
|
194
|
+
Run `/cc-review` on the diff before merging.
|
|
@@ -259,5 +259,5 @@ The TDD cycle is complete when:
|
|
|
259
259
|
**Cycle status**: complete | blocked (reason)
|
|
260
260
|
```
|
|
261
261
|
|
|
262
|
-
If the behavior requires additional test cases, start a new `/cc
|
|
262
|
+
If the behavior requires additional test cases, start a new `/cc-tdd-cycle` with
|
|
263
263
|
the next scenario. One cycle = one behavior.
|
|
@@ -142,7 +142,7 @@ tester produces the plan in this format:
|
|
|
142
142
|
Show the Test Plan to the human before any tests are written.
|
|
143
143
|
|
|
144
144
|
The Test Plan is an artifact for review and approval. Writing test code is a
|
|
145
|
-
separate action — invoke `/cc
|
|
145
|
+
separate action — invoke `/cc-feature` or add a test task to the board to
|
|
146
146
|
implement from this plan.
|
|
147
147
|
|
|
148
148
|
---
|
|
@@ -154,3 +154,7 @@ Deliver the complete Test Plan document. Save it as
|
|
|
154
154
|
|
|
155
155
|
This command produces a plan, not test files. No production code and no test
|
|
156
156
|
code is written during this command.
|
|
157
|
+
|
|
158
|
+
## Next
|
|
159
|
+
|
|
160
|
+
Implement against this plan with `/cc-tdd-cycle` or `/cc-feature`.
|
|
@@ -35,7 +35,7 @@ the CodeConductor Execution Protocol (CCEP-1) and the current workflow profiles.
|
|
|
35
35
|
- **Orchestrator** — added the `council` workflow, the `devil` routing row, a
|
|
36
36
|
workflow-commands table, and a CCEP-1 confirmation-gate section.
|
|
37
37
|
- Intake/design/test/review contracts stop on unresolved branches, wayfinding
|
|
38
|
-
names the next `/cc
|
|
38
|
+
names the next `/cc-` command, TDD forbids green-by-weakening, and `docs` may
|
|
39
39
|
write session handoffs only to `.codeconductor/sessions/handoff.md` (gitignored,
|
|
40
40
|
secrets redacted).
|
|
41
41
|
- Version markers and scorecard `contract_version` bumped to `v1.0.0`.
|
|
@@ -88,7 +88,7 @@ CHANGELOG is mandatory for every implementation change. No exceptions.
|
|
|
88
88
|
- `docs/**/*.md` — any markdown documentation file
|
|
89
89
|
- `docs/adr/*.md` — Architecture Decision Records
|
|
90
90
|
- `CHANGELOG.md` — always update for any implementation change
|
|
91
|
-
- `.codeconductor/sessions/handoff.md` — `/cc
|
|
91
|
+
- `.codeconductor/sessions/handoff.md` — `/cc-handoff` only; gitignored; redact secrets
|
|
92
92
|
- `openapi.yaml`, `openapi.json`, or any OpenAPI spec file
|
|
93
93
|
- Any `*-api.yaml` or `*-api.json` file
|
|
94
94
|
|
|
@@ -271,7 +271,7 @@ When the orchestrator requests evaluation, produce scores for all 8 criteria in
|
|
|
271
271
|
2. Minimal diff (20%)
|
|
272
272
|
3. Tests present and passing (15%)
|
|
273
273
|
4. No regressions (15%)
|
|
274
|
-
5. Code conventions (
|
|
274
|
+
5. Code conventions (5%)
|
|
275
275
|
6. Documentation updated (5%)
|
|
276
276
|
7. Context discipline (5%)
|
|
277
277
|
8. Complexity diffusion / cc-gain (5%)
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: android
|
|
3
|
-
version: 1.0.0
|
|
4
3
|
name: Android + Kotlin (Jetpack Compose & Media3)
|
|
5
4
|
description: >
|
|
6
5
|
Provides expert knowledge for building modern native Android apps using Kotlin, Jetpack Compose, Material Design 3, MVI architecture, Hilt dependency injection, and Media3/ExoPlayer.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: pagespeed-perf
|
|
3
|
-
version: 1.0.0
|
|
4
3
|
name: PageSpeed Performance Audit
|
|
5
4
|
description: >
|
|
6
5
|
Web Performance Engineering — analyzes Core Web Vitals using the PageSpeed
|
|
@@ -32,7 +31,7 @@ inputs:
|
|
|
32
31
|
- name: url
|
|
33
32
|
type: string
|
|
34
33
|
required: true
|
|
35
|
-
description: Full URL to audit (must include scheme: https://...)
|
|
34
|
+
description: "Full URL to audit (must include scheme: https://...)"
|
|
36
35
|
- name: strategy
|
|
37
36
|
type: string
|
|
38
37
|
required: false
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: spring-boot-testing-strategy
|
|
3
|
-
version: 1.0.0
|
|
4
3
|
name: Spring Boot Testing Strategy
|
|
5
4
|
description: >
|
|
6
5
|
Provides expert knowledge of the testing pyramid, test design principles, MockK patterns, and integration testing conventions for Spring Boot + Kotlin projects.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<!-- CODECONDUCTOR:BEGIN managed -->
|
|
2
|
+
|
|
3
|
+
# CodeConductor — Pi Preset
|
|
4
|
+
|
|
5
|
+
This file configures CodeConductor for **Pi** (pi.dev — `earendil-works/pi`,
|
|
6
|
+
the coding-agent CLI, not Inflection's Pi). It lives at the project root
|
|
7
|
+
(`AGENTS.md`) so Pi's context-file loader picks it up automatically.
|
|
8
|
+
|
|
9
|
+
## Behavioral Discipline
|
|
10
|
+
|
|
11
|
+
1. **Think Before Coding** — state assumptions; ask if uncertain; present
|
|
12
|
+
alternatives instead of picking silently.
|
|
13
|
+
2. **Simplicity First** — minimum code that solves the problem; no
|
|
14
|
+
speculative abstractions.
|
|
15
|
+
3. **Surgical Changes** — touch only what the task requires; match existing
|
|
16
|
+
style; remove only what your own change made unused.
|
|
17
|
+
4. **Goal-Driven Execution** — turn the task into a verifiable goal with a
|
|
18
|
+
success check; loop until it passes.
|
|
19
|
+
|
|
20
|
+
## Commands
|
|
21
|
+
|
|
22
|
+
CodeConductor ships its slash commands as Pi prompt templates under
|
|
23
|
+
`.pi/prompts/`, invoked as `/cc-<name>` (e.g. `/cc-feature`, `/cc-review`).
|
|
24
|
+
Run `/cc-ask "<problem>"` when unsure which one applies — it recommends
|
|
25
|
+
exactly one and stops; it does not start the workflow.
|
|
26
|
+
|
|
27
|
+
Skills live under `.agents/skills/` (shared with the agy preset — Pi
|
|
28
|
+
discovers skills there natively, per its own docs). Read
|
|
29
|
+
`.agents/skills/using-cc-skills/SKILL.md` first — it maps intent to the
|
|
30
|
+
right slash command.
|
|
31
|
+
|
|
32
|
+
Pi has no Task tool or subagents: every command runs in your own session.
|
|
33
|
+
Where a step says "adopt the `X` role", read the matching file under
|
|
34
|
+
`.agents/agents/` (short) or `.agents/prompts/v1.0.0/` (full contract) and
|
|
35
|
+
act as that role for the rest of the step.
|
|
36
|
+
|
|
37
|
+
## What never changes
|
|
38
|
+
|
|
39
|
+
- Do not invoke the Implementer without an accepted Technical Plan.
|
|
40
|
+
- Do not skip the Reviewer step for medium- or high-risk changes.
|
|
41
|
+
- Do not store secrets in any file loaded by Pi.
|
|
42
|
+
|
|
43
|
+
<!-- CODECONDUCTOR:END managed -->
|