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
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-clarify
|
|
3
|
+
description: Re-explain the last deliverable in Task Card vocabulary when it did not land.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# clarify
|
|
7
|
+
|
|
8
|
+
Invoke as `$cc-clarify`. The user request follows the skill mention.
|
|
9
|
+
|
|
10
|
+
# Clarify Workflow
|
|
11
|
+
|
|
12
|
+
Clarify request: $ARGUMENTS
|
|
13
|
+
|
|
14
|
+
## Step 0 — CCEP Bootstrap
|
|
15
|
+
|
|
16
|
+
Command: `clarify` (fixed for this workflow — do not infer from user text)
|
|
17
|
+
|
|
18
|
+
1. Run: `npx cc-codeconductor ccep parse --command clarify "$ARGUMENTS" --output json`
|
|
19
|
+
2. Run: `npx cc-codeconductor ccep resolve --command clarify "$ARGUMENTS" --output json`
|
|
20
|
+
3. Run: `npx cc-codeconductor ccep profile clarify --output json`
|
|
21
|
+
4. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command clarify --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
22
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Step 1 — Re-explain (task-coach)
|
|
27
|
+
|
|
28
|
+
Invoke `task-coach` / `orchestrator`. Restate the last Task Card, plan, or review in the project's vocabulary. Do not add new scope. If questions remain, one question per branch.
|
|
29
|
+
|
|
30
|
+
**STOP if ConfirmationGate reports questions.**
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Completion
|
|
35
|
+
|
|
36
|
+
A plain-language restatement plus any remaining questions. Then resume the previous workflow.
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-council
|
|
3
|
+
description: Council-driven workflow with CCEP-1 bootstrap
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# council
|
|
7
|
+
|
|
8
|
+
Invoke as `$cc-council`. The user request follows the skill mention.
|
|
9
|
+
|
|
10
|
+
# Council-Driven Workflow
|
|
11
|
+
|
|
12
|
+
Task request: $ARGUMENTS
|
|
13
|
+
|
|
14
|
+
## Step 0 — CCEP Bootstrap
|
|
15
|
+
|
|
16
|
+
Command: `council` (fixed for this workflow — do not infer from user text)
|
|
17
|
+
command: council
|
|
18
|
+
|
|
19
|
+
1. Run: `npx cc-codeconductor ccep parse --command council "$ARGUMENTS" --output json`
|
|
20
|
+
2. Run: `npx cc-codeconductor ccep resolve --command council "$ARGUMENTS" --output json`
|
|
21
|
+
3. Run: `npx cc-codeconductor ccep profile council --output json`
|
|
22
|
+
4. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command council --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
23
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Step 1 — Wayfinding (repo-explorer)
|
|
28
|
+
|
|
29
|
+
If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"` (and
|
|
30
|
+
`graphify path` / `graphify explain` when needed). Then invoke `repo-explorer`
|
|
31
|
+
to map impact radius before deliberation. Do not write code in this step.
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Step 2 — Deliberation & Specification (SDD)
|
|
36
|
+
|
|
37
|
+
Invoke the `council` skill to analyze the request before writing any code. The council must act as a steering committee involving `task-coach` (Product), `architect`, and `devil`.
|
|
38
|
+
|
|
39
|
+
The council must:
|
|
40
|
+
1. Clarify the prompt and define the absolute minimum scope (Simplicity Gate).
|
|
41
|
+
2. Explicitly document all assumptions and run the Grilling protocol on each one (Think Before Coding).
|
|
42
|
+
3. Draft a Task Card & Technical Plan (The Specification).
|
|
43
|
+
|
|
44
|
+
**STOP here.** Unresolved grilling questions populate `questionsForUser` in the
|
|
45
|
+
CCEP-1 `planner-output`; `ccep evaluate` (ConfirmationGate) halts until a human
|
|
46
|
+
answers. Show the agreed Task Card & Technical Plan and wait for confirmation
|
|
47
|
+
before continuing.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Step 3 — Test Definition (TDD)
|
|
52
|
+
|
|
53
|
+
Invoke `tester` with the approved Task Card & Technical Plan.
|
|
54
|
+
|
|
55
|
+
tester must:
|
|
56
|
+
1. Write failing tests based on the Acceptance Criteria defined in the Task Card.
|
|
57
|
+
2. Confirm the tests fail as expected (Red state).
|
|
58
|
+
|
|
59
|
+
**Goal-Driven Execution (Karpathy)**: Do not proceed until verifiable tests are written and fail for the correct reasons.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Step 4 — Surgical Implementation
|
|
64
|
+
|
|
65
|
+
Invoke `implementer` with the failing tests and the Technical Plan.
|
|
66
|
+
|
|
67
|
+
implementer must:
|
|
68
|
+
1. Write the minimal code required to pass the tests.
|
|
69
|
+
2. Touch ONLY the files specified in the Technical Plan (Surgical Changes).
|
|
70
|
+
3. NOT refactor adjacent code, change existing styles, or build speculative features.
|
|
71
|
+
4. Run the tests. Loop `implementer` -> `tester` until all tests pass (Green state).
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Step 5 — Multi-Perspective Council Review
|
|
76
|
+
|
|
77
|
+
Invoke the `council` skill on the generated diff to perform the final review phase.
|
|
78
|
+
|
|
79
|
+
The council will evaluate the diff against the 6 axes (Architecture, Security, Product, Delivery, DataOps, Devil).
|
|
80
|
+
|
|
81
|
+
If ANY agent votes CRITICAL (especially due to over-engineering, scope creep, or missing the verifiable goals):
|
|
82
|
+
- The Review Report status is **BLOCKED**.
|
|
83
|
+
- Return to Step 4 with the feedback.
|
|
84
|
+
|
|
85
|
+
If APPROVED (no CRITICAL findings):
|
|
86
|
+
- Deliver the final Council Verdict and the diff summary.
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## Completion
|
|
91
|
+
|
|
92
|
+
Deliver the complete Council Verdict. The feature is only complete when tests pass and the council explicitly approves the implementation according to the specification.
|
|
93
|
+
|
|
94
|
+
## Next
|
|
95
|
+
|
|
96
|
+
Approved: merge. Blocked: return the findings to `$cc-fix` or `$cc-feature`.
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-db-migration
|
|
3
|
+
description: Run the database migration workflow for schema/data changes, operational sequencing, tests, and review.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# db-migration
|
|
7
|
+
|
|
8
|
+
Invoke as `$cc-db-migration`. The user request follows the skill mention.
|
|
9
|
+
|
|
10
|
+
# Database Migration Workflow
|
|
11
|
+
|
|
12
|
+
Migration request: $ARGUMENTS
|
|
13
|
+
|
|
14
|
+
## Step 0 — CCEP Bootstrap
|
|
15
|
+
|
|
16
|
+
Command: `db-migration` (fixed for this workflow — do not infer from user text)
|
|
17
|
+
|
|
18
|
+
1. Run: `npx cc-codeconductor ccep parse --command db-migration "$ARGUMENTS" --output json`
|
|
19
|
+
2. Run: `npx cc-codeconductor ccep resolve --command db-migration "$ARGUMENTS" --output json`
|
|
20
|
+
3. Run: `npx cc-codeconductor ccep profile db-migration --output json`
|
|
21
|
+
4. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command db-migration --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
22
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
23
|
+
Canonical delivery order is test-before-implement whenever both phases apply.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Step 0b — OpenSpec quality gates
|
|
28
|
+
|
|
29
|
+
If `openspec status` reports an active change folder:
|
|
30
|
+
|
|
31
|
+
1. Run: `npx cc-codeconductor openspec validate --output json`
|
|
32
|
+
2. Run: `npx cc-codeconductor openspec analyze --output json`
|
|
33
|
+
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
34
|
+
4. Next command spelling on this runner: `$cc-db-migration`
|
|
35
|
+
|
|
36
|
+
Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
## Step 1 — Task Card validation (Task Coach role)
|
|
42
|
+
|
|
43
|
+
Adopt the `task-coach` role as defined in `AGENTS.md`.
|
|
44
|
+
|
|
45
|
+
The Task Card must classify the task as high risk and include affected schema,
|
|
46
|
+
model, and migration files; data backfill needs; deployment ordering;
|
|
47
|
+
rollback/forward-fix strategy; lock risk; data risk; and verification commands.
|
|
48
|
+
|
|
49
|
+
**STOP here. Show the completed Task Card and wait for human confirmation.**
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Step 2 — Migration Plan (Architect role)
|
|
54
|
+
|
|
55
|
+
Adopt the `architect` role as defined in `AGENTS.md`.
|
|
56
|
+
|
|
57
|
+
Define the schema/data plan, operational sequencing, compatibility strategy,
|
|
58
|
+
rollback/forward-fix notes, and test approach.
|
|
59
|
+
|
|
60
|
+
**STOP here. Show the Technical Plan and wait for explicit human approval.**
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Step 3 — Migration Tests (Tester role)
|
|
65
|
+
|
|
66
|
+
Adopt the `tester` role as defined in `AGENTS.md`.
|
|
67
|
+
|
|
68
|
+
Cover migration-sensitive behavior where the stack supports it, including
|
|
69
|
+
existing-data edge cases and rollback/forward-fix notes when automated rollback
|
|
70
|
+
tests are not practical.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Step 4 — Implementation (Implementer role)
|
|
75
|
+
|
|
76
|
+
Adopt the `implementer` role as defined in `AGENTS.md`.
|
|
77
|
+
|
|
78
|
+
Keep model and migration changes together, avoid unrelated refactors, and
|
|
79
|
+
preserve the deployment order specified by architect.
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Step 5 — Review (Reviewer role)
|
|
84
|
+
|
|
85
|
+
Adopt the `reviewer` role as defined in `AGENTS.md`.
|
|
86
|
+
|
|
87
|
+
Block on missing migration tests, missing data-risk notes, undocumented
|
|
88
|
+
deployment sequencing, or model/migration drift.
|
|
89
|
+
|
|
90
|
+
## Next
|
|
91
|
+
|
|
92
|
+
Run `$cc-review` on the diff before merging.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-explore
|
|
3
|
+
description: Map the repository and recommend the next CodeConductor slash command. Read-only.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# explore
|
|
7
|
+
|
|
8
|
+
Invoke as `$cc-explore`. The user request follows the skill mention.
|
|
9
|
+
|
|
10
|
+
# Explore Workflow
|
|
11
|
+
|
|
12
|
+
Explore request: $ARGUMENTS
|
|
13
|
+
|
|
14
|
+
## Step 0 — CCEP Bootstrap
|
|
15
|
+
|
|
16
|
+
Command: `explore` (fixed for this workflow — do not infer from user text)
|
|
17
|
+
|
|
18
|
+
1. Run: `npx cc-codeconductor ccep parse --command explore "$ARGUMENTS" --output json`
|
|
19
|
+
2. Run: `npx cc-codeconductor ccep resolve --command explore "$ARGUMENTS" --output json`
|
|
20
|
+
3. Run: `npx cc-codeconductor ccep profile explore --output json`
|
|
21
|
+
4. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command explore --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
22
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Step 1 — Map (repo-explorer)
|
|
27
|
+
|
|
28
|
+
If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"`. Invoke `repo-explorer`. Produce a Repo Map. Do not write code.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Step 2 — Suggest next command (orchestrator)
|
|
33
|
+
|
|
34
|
+
Recommend exactly one next slash command (`$cc-feature`, `$cc-fix`, `$cc-refactor`, `$cc-review`, `$cc-backlog`, `$cc-openspec`, `$cc-triage`, …) with a one-sentence rationale. Do not start that workflow.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Completion
|
|
39
|
+
|
|
40
|
+
Report the Repo Map and the recommended next `$cc-` command.
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-feature
|
|
3
|
+
description: Run the full feature workflow — task validation, technical design, implementation, testing, review, and documentation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# feature
|
|
7
|
+
|
|
8
|
+
Invoke as `$cc-feature`. The user request follows the skill mention.
|
|
9
|
+
|
|
10
|
+
# Feature Workflow
|
|
11
|
+
|
|
12
|
+
Feature request: $ARGUMENTS
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Step 0 — CCEP Bootstrap
|
|
17
|
+
|
|
18
|
+
Command: `feature` (fixed for this workflow — do not infer from user text)
|
|
19
|
+
|
|
20
|
+
1. Run: `npx cc-codeconductor ccep parse --command feature "$ARGUMENTS" --output json`
|
|
21
|
+
2. Run: `npx cc-codeconductor ccep resolve --command feature "$ARGUMENTS" --output json`
|
|
22
|
+
3. Run: `npx cc-codeconductor ccep profile feature --output json`
|
|
23
|
+
4. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command feature --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
24
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
25
|
+
Canonical delivery order is test-before-implement whenever both phases apply.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Step 0b — OpenSpec quality gates
|
|
30
|
+
|
|
31
|
+
If `openspec status` reports an active change folder:
|
|
32
|
+
|
|
33
|
+
1. Run: `npx cc-codeconductor openspec validate --output json`
|
|
34
|
+
2. Run: `npx cc-codeconductor openspec analyze --output json`
|
|
35
|
+
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
36
|
+
4. Next command spelling on this runner: `$cc-feature`
|
|
37
|
+
|
|
38
|
+
Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
|
|
39
|
+
|
|
40
|
+
Skills: `using-cc-skills`, `openspec`, `testing-tdd`, `evaluation`.
|
|
41
|
+
Do not skip `openspec analyze` when a change folder is active.
|
|
42
|
+
"I'll add tests later" is not allowed — tester before implementer.
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## Step 1 — Wayfinding (repo-explorer)
|
|
48
|
+
|
|
49
|
+
If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"` (and
|
|
50
|
+
`graphify path` / `graphify explain` when needed). Then invoke `repo-explorer`
|
|
51
|
+
to map modules, conventions, and impact radius. Do not write code in this step.
|
|
52
|
+
Record a Repo Map artifact before intake.
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Step 2 — Task Card validation (Task Coach role)
|
|
57
|
+
|
|
58
|
+
Adopt the `task-coach` role as defined in `AGENTS.md`.
|
|
59
|
+
|
|
60
|
+
Produce a complete Task Card. The Task Card is ready when it contains: title,
|
|
61
|
+
type, risk classification, scope, context, acceptance criteria, and constraints.
|
|
62
|
+
|
|
63
|
+
If any field is missing or ambiguous, ask one clarifying question at a time and
|
|
64
|
+
wait for the answer. Do not proceed with an incomplete Task Card.
|
|
65
|
+
|
|
66
|
+
**STOP here. Show the completed Task Card and wait for human confirmation before
|
|
67
|
+
continuing.**
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Step 3 — Technical Plan (Architect role)
|
|
72
|
+
|
|
73
|
+
Adopt the `architect` role as defined in `AGENTS.md`.
|
|
74
|
+
|
|
75
|
+
Produce a Technical Plan that covers:
|
|
76
|
+
|
|
77
|
+
- Chosen approach and rationale
|
|
78
|
+
- Affected files and modules
|
|
79
|
+
- Data model changes (if any)
|
|
80
|
+
- API contract changes (if any)
|
|
81
|
+
- Identified risks and mitigations
|
|
82
|
+
- Open questions that require a human decision
|
|
83
|
+
|
|
84
|
+
**STOP here. Show the Technical Plan and wait for explicit human approval. Do
|
|
85
|
+
not proceed to implementation until the plan is approved.**
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## Step 4 — Test coverage (Tester role)
|
|
90
|
+
|
|
91
|
+
Adopt the `tester` role as defined in `AGENTS.md`.
|
|
92
|
+
|
|
93
|
+
Use the Implementation Summary and the Task Card.
|
|
94
|
+
|
|
95
|
+
1. Write or extend failing tests for the new behavior before implementation (RED).
|
|
96
|
+
2. Ensure all acceptance criteria from the Task Card have at least one test.
|
|
97
|
+
3. Run the full test suite and confirm it passes.
|
|
98
|
+
4. Produce a Test Report: test files added or modified, cases covered.
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## Step 5 — Implementation (Implementer role)
|
|
103
|
+
|
|
104
|
+
Adopt the `implementer` role as defined in `AGENTS.md`.
|
|
105
|
+
|
|
106
|
+
Use the approved Technical Plan and the Task Card from the steps above.
|
|
107
|
+
Implementer creates a Git Worktree before touching any file; all edits happen inside it.
|
|
108
|
+
|
|
109
|
+
1. Read the Technical Plan before touching any file.
|
|
110
|
+
2. Apply the minimal diff — only what the plan specifies.
|
|
111
|
+
3. Run the project test suite and make the previously written failing tests pass.
|
|
112
|
+
4. Produce an Implementation Summary: what changed, which files, how to verify
|
|
113
|
+
locally.
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Step 6 — Code review (Reviewer role)
|
|
118
|
+
|
|
119
|
+
Adopt the `reviewer` role as defined in `AGENTS.md`.
|
|
120
|
+
|
|
121
|
+
Use the complete diff and the Task Card.
|
|
122
|
+
|
|
123
|
+
Produce a Review Report with findings categorized as CRITICAL, WARNING, or
|
|
124
|
+
SUGGESTION.
|
|
125
|
+
|
|
126
|
+
If any CRITICAL findings exist, **STOP and report them**. Do not proceed until
|
|
127
|
+
they are resolved and the diff is re-reviewed.
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Step 7 — Documentation (Docs role)
|
|
132
|
+
|
|
133
|
+
Adopt the `docs` role as defined in `AGENTS.md`.
|
|
134
|
+
|
|
135
|
+
Invoke this step only if any of the following changed:
|
|
136
|
+
|
|
137
|
+
- A public API endpoint was added or modified
|
|
138
|
+
- A public interface or module was introduced
|
|
139
|
+
- Behavior visible to end users changed
|
|
140
|
+
|
|
141
|
+
Update: README (if applicable), OpenAPI spec (if applicable), CHANGELOG
|
|
142
|
+
(always), ADR (if an architectural decision was made).
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## Completion
|
|
147
|
+
|
|
148
|
+
Report the following:
|
|
149
|
+
|
|
150
|
+
- Task Card (final)
|
|
151
|
+
- Technical Plan (approved)
|
|
152
|
+
- Implementation Summary
|
|
153
|
+
- Test Report
|
|
154
|
+
- Review Report (all findings resolved)
|
|
155
|
+
- List of documentation files updated (if any)
|
|
156
|
+
|
|
157
|
+
The feature is complete only when: all tests pass, no CRITICAL review findings
|
|
158
|
+
remain, and documentation reflects the implemented behavior.
|
|
159
|
+
|
|
160
|
+
## Next
|
|
161
|
+
|
|
162
|
+
Run `$cc-review` on the diff before merging.
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-fix
|
|
3
|
+
description: Run the bug fix workflow — risk-based routing through task validation, implementation, testing, and optional review.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# fix
|
|
7
|
+
|
|
8
|
+
Invoke as `$cc-fix`. The user request follows the skill mention.
|
|
9
|
+
|
|
10
|
+
# Bug Fix Workflow
|
|
11
|
+
|
|
12
|
+
Bug description: $ARGUMENTS
|
|
13
|
+
|
|
14
|
+
Provide the following information in $ARGUMENTS:
|
|
15
|
+
|
|
16
|
+
- What is the incorrect behavior (actual)
|
|
17
|
+
- What is the expected behavior
|
|
18
|
+
- Steps to reproduce
|
|
19
|
+
- Environment or version where the bug occurs (if known)
|
|
20
|
+
- Any relevant error messages or stack traces
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Step 0 — CCEP Bootstrap
|
|
25
|
+
|
|
26
|
+
Command: `fix` (fixed for this workflow — do not infer from user text)
|
|
27
|
+
|
|
28
|
+
1. Run: `npx cc-codeconductor ccep parse --command fix "$ARGUMENTS" --output json`
|
|
29
|
+
2. Run: `npx cc-codeconductor ccep resolve --command fix "$ARGUMENTS" --output json`
|
|
30
|
+
3. Run: `npx cc-codeconductor ccep profile fix --output json`
|
|
31
|
+
4. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command fix --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
32
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
33
|
+
Canonical delivery order is test-before-implement whenever both phases apply.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Step 0b — OpenSpec quality gates
|
|
38
|
+
|
|
39
|
+
If `openspec status` reports an active change folder:
|
|
40
|
+
|
|
41
|
+
1. Run: `npx cc-codeconductor openspec validate --output json`
|
|
42
|
+
2. Run: `npx cc-codeconductor openspec analyze --output json`
|
|
43
|
+
3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
|
|
44
|
+
4. Next command spelling on this runner: `$cc-fix`
|
|
45
|
+
|
|
46
|
+
Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
## Step 1 — Wayfinding (repo-explorer)
|
|
52
|
+
|
|
53
|
+
If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"` (and
|
|
54
|
+
`graphify path` / `graphify explain` when needed). Then invoke `repo-explorer`
|
|
55
|
+
to map modules, conventions, and impact radius. Do not write code in this step.
|
|
56
|
+
Record a Repo Map artifact before intake.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Step 2 — Task Card validation (Task Coach role)
|
|
61
|
+
|
|
62
|
+
Adopt the `task-coach` role as defined in `AGENTS.md`.
|
|
63
|
+
|
|
64
|
+
Produce a Task Card that includes:
|
|
65
|
+
|
|
66
|
+
- A clear statement of actual vs. expected behavior
|
|
67
|
+
- Reproduction steps (or a note that they are unknown)
|
|
68
|
+
- Risk classification: `low`, `medium`, or `high`
|
|
69
|
+
- Scope: which files or modules are likely affected
|
|
70
|
+
|
|
71
|
+
If reproduction steps are missing, ask for them before classifying risk. A bug
|
|
72
|
+
without a reproduction path cannot be classified reliably.
|
|
73
|
+
|
|
74
|
+
Capture evidence before tests: reproduction, logs or stack traces, and one
|
|
75
|
+
falsifiable hypothesis of the root cause. Do not patch without that evidence.
|
|
76
|
+
Redact secrets, tokens, and credential dumps from logs before they enter the
|
|
77
|
+
Task Card. Summarize stack traces; do not paste env files.
|
|
78
|
+
|
|
79
|
+
**STOP here. Show the Task Card and wait for human confirmation.**
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Step 3 — Route by risk
|
|
84
|
+
|
|
85
|
+
Read the risk field from the Task Card and follow the corresponding route.
|
|
86
|
+
|
|
87
|
+
### Low-risk route
|
|
88
|
+
|
|
89
|
+
Applies when: the bug is isolated to a single component, existing tests cover
|
|
90
|
+
the affected code, and no public API or shared state is involved.
|
|
91
|
+
|
|
92
|
+
Route: Task Coach → Tester → Implementer
|
|
93
|
+
|
|
94
|
+
Proceed directly to Step 3 (tests), then Step 4a.
|
|
95
|
+
|
|
96
|
+
### Medium or high-risk route
|
|
97
|
+
|
|
98
|
+
Applies when: the bug touches shared state, a public API, auth or payment paths,
|
|
99
|
+
database writes, or the root cause is not yet understood.
|
|
100
|
+
|
|
101
|
+
Route: Task Coach → Architect → Tester → Implementer → Reviewer
|
|
102
|
+
|
|
103
|
+
Invoke the `architect` subagent before implementation. Architect must:
|
|
104
|
+
|
|
105
|
+
- Identify the root cause (or document that it is unknown)
|
|
106
|
+
- Define the fix approach and affected files
|
|
107
|
+
- Flag any regression risk to adjacent components
|
|
108
|
+
- Produce a Technical Plan
|
|
109
|
+
|
|
110
|
+
**STOP here if high-risk. Show the Technical Plan and wait for human approval
|
|
111
|
+
before continuing.**
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Step 4 — Regression tests (Tester role)
|
|
116
|
+
|
|
117
|
+
Adopt the `tester` role as defined in `AGENTS.md`. Apply for all risk levels.
|
|
118
|
+
|
|
119
|
+
1. Write a regression test that reproduces the original bug and confirm it fails
|
|
120
|
+
before any fix (RED).
|
|
121
|
+
2. Verify that existing tests still pass.
|
|
122
|
+
3. Produce a Test Report: test added, case covered.
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Step 5a — Implementation, low-risk (Implementer role)
|
|
127
|
+
|
|
128
|
+
Adopt the `implementer` role as defined in `AGENTS.md`. Use the Task Card.
|
|
129
|
+
Implementer creates a Git Worktree before touching any file; all edits happen inside it.
|
|
130
|
+
|
|
131
|
+
1. Locate the defect using the reproduction steps.
|
|
132
|
+
2. Apply the minimal fix — no unrelated changes.
|
|
133
|
+
3. Run the suite and make the RED regression test pass.
|
|
134
|
+
4. Produce an Implementation Summary: root cause, fix applied, files changed.
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## Step 5b — Implementation, medium/high-risk (Implementer role)
|
|
139
|
+
|
|
140
|
+
Adopt the `implementer` role as defined in `AGENTS.md`. Use the approved
|
|
141
|
+
Technical Plan and the Task Card.
|
|
142
|
+
Implementer creates a Git Worktree before touching any file; all edits happen inside it.
|
|
143
|
+
|
|
144
|
+
Follow the plan exactly. Any deviation requires a new Technical Plan approval.
|
|
145
|
+
After implementation, run the full test suite.
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Step 6 — Review (Reviewer role) — medium/high-risk only
|
|
150
|
+
|
|
151
|
+
Adopt the `reviewer` role as defined in `AGENTS.md`. Use the diff and Task
|
|
152
|
+
Card.
|
|
153
|
+
|
|
154
|
+
Produce a Review Report with CRITICAL / WARNING / SUGGESTION findings. If any
|
|
155
|
+
CRITICAL findings exist, **STOP**. Do not close the fix until they are resolved.
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## Completion
|
|
160
|
+
|
|
161
|
+
Report: Task Card, Implementation Summary, regression test added, Review Report
|
|
162
|
+
(if applicable).
|
|
163
|
+
|
|
164
|
+
The fix is complete only when: the regression test passes, the full suite
|
|
165
|
+
passes, and no CRITICAL review findings remain.
|
|
166
|
+
|
|
167
|
+
Skills: `testing-tdd`, `evaluation`. Record `scorecard create --from-diff`.
|
|
168
|
+
A small fix still needs a Task Card and a failing regression test first.
|
|
169
|
+
|
|
170
|
+
## Next
|
|
171
|
+
|
|
172
|
+
Run `$cc-review` on the diff before merging.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-handoff
|
|
3
|
+
description: Compact the session into gitignored `.codeconductor/sessions/handoff.md` (redact secrets).
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# handoff
|
|
7
|
+
|
|
8
|
+
Invoke as `$cc-handoff`. The user request follows the skill mention.
|
|
9
|
+
|
|
10
|
+
# Handoff Workflow
|
|
11
|
+
|
|
12
|
+
Handoff request: $ARGUMENTS
|
|
13
|
+
|
|
14
|
+
## Step 0 — CCEP Bootstrap
|
|
15
|
+
|
|
16
|
+
Command: `handoff` (fixed for this workflow — do not infer from user text)
|
|
17
|
+
|
|
18
|
+
1. Run: `npx cc-codeconductor ccep parse --command handoff "$ARGUMENTS" --output json`
|
|
19
|
+
2. Run: `npx cc-codeconductor ccep resolve --command handoff "$ARGUMENTS" --output json`
|
|
20
|
+
3. Run: `npx cc-codeconductor ccep profile handoff --output json`
|
|
21
|
+
4. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command handoff --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
|
|
22
|
+
5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Step 1 — Compact (docs)
|
|
27
|
+
|
|
28
|
+
Invoke `docs`. Write **only** `.codeconductor/sessions/handoff.md` (gitignored).
|
|
29
|
+
Do not write `.codeconductor/handoff.md` or any tracked path.
|
|
30
|
+
|
|
31
|
+
Before writing, redact secrets, tokens, API keys, passwords, connection strings,
|
|
32
|
+
`.env` contents, and log/stack-trace lines that embed those values. Summarize
|
|
33
|
+
errors instead of pasting dumps. If unresolved credential material remains, stop
|
|
34
|
+
and wait for a human (CCEP `stopOnHighRisk`).
|
|
35
|
+
|
|
36
|
+
Include: goal, Task Card status (no secret fields), files touched, test
|
|
37
|
+
pass/fail (not log dumps), open questions, and the next `$cc-` command.
|
|
38
|
+
|
|
39
|
+
Do not edit source or tests.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Completion
|
|
44
|
+
|
|
45
|
+
Report the handoff path. Another session should be able to continue from that file alone.
|