@lvlup-sw/exarchos 2.4.3 → 2.6.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/.claude-plugin/plugin.json +7 -2
- package/AGENTS.md +2 -2
- package/README.md +91 -57
- package/agents/.gitkeep +0 -0
- package/agents/fixer.md +62 -0
- package/agents/implementer.md +68 -0
- package/agents/reviewer.md +50 -0
- package/commands/dogfood.md +31 -0
- package/commands/ideate.md +1 -1
- package/commands/oneshot.md +178 -0
- package/commands/plan.md +1 -1
- package/commands/prune.md +90 -0
- package/commands/review.md +58 -0
- package/dist/exarchos.js +582 -142
- package/hooks/hooks.json +8 -0
- package/package.json +18 -6
- package/scripts/sync-versions.sh +31 -22
- package/skills/{brainstorming → claude/brainstorming}/SKILL.md +16 -0
- package/skills/{brainstorming → claude/brainstorming}/references/design-template.md +9 -0
- package/skills/{cleanup → claude/cleanup}/SKILL.md +6 -0
- package/skills/{debug → claude/debug}/SKILL.md +41 -0
- package/skills/{debug → claude/debug}/references/hotfix-track.md +12 -49
- package/skills/{debug → claude/debug}/references/investigation-checklist.md +3 -3
- package/skills/{debug → claude/debug}/references/thorough-track.md +12 -42
- package/skills/{delegation → claude/delegation}/SKILL.md +128 -40
- package/skills/{delegation → claude/delegation}/references/agent-teams-saga.md +4 -1
- package/skills/claude/delegation/references/fix-mode.md +118 -0
- package/skills/{delegation → claude/delegation}/references/implementer-prompt.md +29 -1
- package/skills/{delegation → claude/delegation}/references/parallel-strategy.md +1 -1
- package/skills/{delegation → claude/delegation}/references/state-management.md +33 -0
- package/skills/{delegation → claude/delegation}/references/troubleshooting.md +2 -2
- package/skills/{delegation → claude/delegation}/references/workflow-steps.md +6 -10
- package/skills/{delegation → claude/delegation}/references/worktree-enforcement.md +13 -7
- package/skills/claude/dogfood/SKILL.md +235 -0
- package/skills/claude/dogfood/references/report-template.md +109 -0
- package/skills/claude/dogfood/references/root-cause-patterns.md +227 -0
- package/skills/{git-worktrees → claude/git-worktrees}/SKILL.md +6 -9
- package/skills/{implementation-planning → claude/implementation-planning}/SKILL.md +32 -27
- package/skills/claude/implementation-planning/references/task-template.md +63 -0
- package/skills/{implementation-planning → claude/implementation-planning}/references/testing-strategy-guide.md +22 -1
- package/skills/{implementation-planning → claude/implementation-planning}/references/worked-example.md +2 -2
- package/skills/claude/oneshot-workflow/SKILL.md +468 -0
- package/skills/claude/oneshot-workflow/references/choice-state.md +65 -0
- package/skills/claude/prune-workflows/SKILL.md +290 -0
- package/skills/claude/prune-workflows/references/safeguards.md +74 -0
- package/skills/{quality-review → claude/quality-review}/SKILL.md +105 -10
- package/skills/{quality-review → claude/quality-review}/references/auto-transition.md +1 -1
- package/skills/claude/quality-review/references/axiom-integration.md +135 -0
- package/skills/{refactor → claude/refactor}/SKILL.md +32 -39
- package/skills/{refactor → claude/refactor}/references/doc-update-checklist.md +2 -3
- package/skills/{refactor → claude/refactor}/references/explore-checklist.md +4 -6
- package/skills/{refactor → claude/refactor}/references/overhaul-track.md +20 -50
- package/skills/{refactor → claude/refactor/references}/phases/polish-implement.md +2 -2
- package/skills/{refactor → claude/refactor/references}/phases/polish-validate.md +1 -1
- package/skills/{refactor → claude/refactor}/references/polish-track.md +18 -46
- package/skills/{shepherd → claude/shepherd}/SKILL.md +42 -10
- package/skills/{shepherd → claude/shepherd}/references/fix-strategies.md +1 -2
- package/skills/claude/shepherd/references/shepherd-event-schemas.md +56 -0
- package/skills/{spec-review → claude/spec-review}/SKILL.md +48 -10
- package/skills/{spec-review → claude/spec-review}/references/worked-example.md +1 -1
- package/skills/{synthesis → claude/synthesis}/SKILL.md +72 -10
- package/skills/{synthesis → claude/synthesis}/references/github-native-stacking.md +3 -4
- package/skills/{synthesis → claude/synthesis}/references/synthesis-steps.md +11 -13
- package/skills/{workflow-state → claude/workflow-state}/SKILL.md +50 -6
- package/skills/{workflow-state → claude/workflow-state}/references/mcp-tool-reference.md +5 -5
- package/skills/{workflow-state → claude/workflow-state}/references/phase-transitions.md +28 -3
- package/skills/codex/brainstorming/SKILL.md +182 -0
- package/skills/codex/brainstorming/references/design-template.md +107 -0
- package/skills/codex/brainstorming/references/worked-example.md +58 -0
- package/skills/codex/cleanup/SKILL.md +169 -0
- package/skills/codex/cleanup/references/merge-verification.md +40 -0
- package/skills/codex/debug/SKILL.md +247 -0
- package/skills/codex/debug/references/hotfix-track.md +105 -0
- package/skills/codex/debug/references/investigation-checklist.md +217 -0
- package/skills/codex/debug/references/rca-template.md +150 -0
- package/skills/codex/debug/references/state-schema.md +294 -0
- package/skills/codex/debug/references/thorough-track.md +171 -0
- package/skills/codex/debug/references/triage-questions.md +155 -0
- package/skills/codex/debug/references/troubleshooting.md +47 -0
- package/skills/codex/delegation/SKILL.md +353 -0
- package/skills/codex/delegation/references/adaptive-orchestration.md +31 -0
- package/skills/codex/delegation/references/agent-teams-saga.md +254 -0
- package/skills/codex/delegation/references/fix-mode.md +118 -0
- package/skills/codex/delegation/references/fixer-prompt.md +174 -0
- package/skills/codex/delegation/references/implementer-prompt.md +401 -0
- package/skills/codex/delegation/references/parallel-strategy.md +124 -0
- package/skills/codex/delegation/references/pbt-patterns.md +172 -0
- package/skills/codex/delegation/references/pr-fixes-mode.md +155 -0
- package/skills/codex/delegation/references/rationalization-refutation.md +15 -0
- package/skills/codex/delegation/references/state-management.md +84 -0
- package/skills/codex/delegation/references/testing-patterns.md +146 -0
- package/skills/codex/delegation/references/troubleshooting.md +109 -0
- package/skills/codex/delegation/references/worked-example.md +104 -0
- package/skills/codex/delegation/references/workflow-steps.md +131 -0
- package/skills/codex/delegation/references/worktree-enforcement.md +71 -0
- package/skills/codex/dogfood/SKILL.md +235 -0
- package/skills/codex/dogfood/references/report-template.md +109 -0
- package/skills/codex/dogfood/references/root-cause-patterns.md +227 -0
- package/skills/codex/git-worktrees/SKILL.md +193 -0
- package/skills/codex/git-worktrees/references/commands-reference.md +78 -0
- package/skills/codex/implementation-planning/SKILL.md +289 -0
- package/skills/codex/implementation-planning/references/plan-document-template.md +42 -0
- package/skills/codex/implementation-planning/references/rationalization-refutation.md +13 -0
- package/skills/codex/implementation-planning/references/spec-tracing-guide.md +51 -0
- package/skills/codex/implementation-planning/references/task-template.md +63 -0
- package/skills/codex/implementation-planning/references/testing-strategy-guide.md +109 -0
- package/skills/codex/implementation-planning/references/worked-example.md +76 -0
- package/skills/codex/oneshot-workflow/SKILL.md +468 -0
- package/skills/codex/oneshot-workflow/references/choice-state.md +65 -0
- package/skills/codex/prune-workflows/SKILL.md +290 -0
- package/skills/codex/prune-workflows/references/safeguards.md +74 -0
- package/skills/codex/quality-review/SKILL.md +371 -0
- package/skills/codex/quality-review/references/auto-transition.md +47 -0
- package/skills/codex/quality-review/references/axiom-integration.md +135 -0
- package/skills/codex/quality-review/references/code-quality-checklist.md +171 -0
- package/skills/codex/quality-review/references/convergence-and-verdict.md +48 -0
- package/skills/codex/quality-review/references/gate-execution.md +60 -0
- package/skills/codex/quality-review/references/rationalization-refutation.md +13 -0
- package/skills/codex/quality-review/references/review-report-template.md +65 -0
- package/skills/codex/quality-review/references/security-checklist.md +79 -0
- package/skills/codex/quality-review/references/typescript-standards.md +24 -0
- package/skills/codex/refactor/SKILL.md +196 -0
- package/skills/codex/refactor/references/brief-template.md +81 -0
- package/skills/codex/refactor/references/doc-update-checklist.md +113 -0
- package/skills/codex/refactor/references/explore-checklist.md +79 -0
- package/skills/codex/refactor/references/overhaul-track.md +194 -0
- package/skills/codex/refactor/references/phases/auto-chain.md +267 -0
- package/skills/codex/refactor/references/phases/brief.md +176 -0
- package/skills/codex/refactor/references/phases/explore.md +132 -0
- package/skills/codex/refactor/references/phases/overhaul-delegate.md +136 -0
- package/skills/codex/refactor/references/phases/overhaul-plan.md +312 -0
- package/skills/codex/refactor/references/phases/overhaul-review.md +304 -0
- package/skills/codex/refactor/references/phases/polish-implement.md +347 -0
- package/skills/codex/refactor/references/phases/polish-validate.md +218 -0
- package/skills/codex/refactor/references/phases/update-docs.md +234 -0
- package/skills/codex/refactor/references/polish-track.md +152 -0
- package/skills/codex/shepherd/SKILL.md +251 -0
- package/skills/codex/shepherd/references/assess-checklist.md +170 -0
- package/skills/codex/shepherd/references/escalation-criteria.md +53 -0
- package/skills/codex/shepherd/references/fix-strategies.md +289 -0
- package/skills/codex/shepherd/references/gate-event-emission.md +47 -0
- package/skills/codex/shepherd/references/shepherd-event-schemas.md +56 -0
- package/skills/codex/spec-review/SKILL.md +294 -0
- package/skills/codex/spec-review/references/rationalization-refutation.md +13 -0
- package/skills/codex/spec-review/references/review-checklist.md +79 -0
- package/skills/codex/spec-review/references/worked-example.md +72 -0
- package/skills/codex/synthesis/SKILL.md +217 -0
- package/skills/codex/synthesis/references/github-native-stacking.md +135 -0
- package/skills/codex/synthesis/references/merge-ordering.md +50 -0
- package/skills/codex/synthesis/references/pr-descriptions.md +87 -0
- package/skills/codex/synthesis/references/synthesis-steps.md +145 -0
- package/skills/codex/synthesis/references/troubleshooting.md +115 -0
- package/skills/codex/workflow-state/SKILL.md +254 -0
- package/skills/codex/workflow-state/references/mcp-tool-reference.md +89 -0
- package/skills/codex/workflow-state/references/phase-transitions.md +206 -0
- package/skills/copilot/brainstorming/SKILL.md +182 -0
- package/skills/copilot/brainstorming/references/design-template.md +107 -0
- package/skills/copilot/brainstorming/references/worked-example.md +58 -0
- package/skills/copilot/cleanup/SKILL.md +169 -0
- package/skills/copilot/cleanup/references/merge-verification.md +40 -0
- package/skills/copilot/debug/SKILL.md +247 -0
- package/skills/copilot/debug/references/hotfix-track.md +105 -0
- package/skills/copilot/debug/references/investigation-checklist.md +217 -0
- package/skills/copilot/debug/references/rca-template.md +150 -0
- package/skills/copilot/debug/references/state-schema.md +294 -0
- package/skills/copilot/debug/references/thorough-track.md +171 -0
- package/skills/copilot/debug/references/triage-questions.md +155 -0
- package/skills/copilot/debug/references/troubleshooting.md +47 -0
- package/skills/copilot/delegation/SKILL.md +345 -0
- package/skills/copilot/delegation/references/adaptive-orchestration.md +31 -0
- package/skills/copilot/delegation/references/agent-teams-saga.md +254 -0
- package/skills/copilot/delegation/references/fix-mode.md +118 -0
- package/skills/copilot/delegation/references/fixer-prompt.md +174 -0
- package/skills/copilot/delegation/references/implementer-prompt.md +401 -0
- package/skills/copilot/delegation/references/parallel-strategy.md +124 -0
- package/skills/copilot/delegation/references/pbt-patterns.md +172 -0
- package/skills/copilot/delegation/references/pr-fixes-mode.md +155 -0
- package/skills/copilot/delegation/references/rationalization-refutation.md +15 -0
- package/skills/copilot/delegation/references/state-management.md +84 -0
- package/skills/copilot/delegation/references/testing-patterns.md +146 -0
- package/skills/copilot/delegation/references/troubleshooting.md +109 -0
- package/skills/copilot/delegation/references/worked-example.md +104 -0
- package/skills/copilot/delegation/references/workflow-steps.md +131 -0
- package/skills/copilot/delegation/references/worktree-enforcement.md +71 -0
- package/skills/copilot/dogfood/SKILL.md +235 -0
- package/skills/copilot/dogfood/references/report-template.md +109 -0
- package/skills/copilot/dogfood/references/root-cause-patterns.md +227 -0
- package/skills/copilot/git-worktrees/SKILL.md +193 -0
- package/skills/copilot/git-worktrees/references/commands-reference.md +78 -0
- package/skills/copilot/implementation-planning/SKILL.md +289 -0
- package/skills/copilot/implementation-planning/references/plan-document-template.md +42 -0
- package/skills/copilot/implementation-planning/references/rationalization-refutation.md +13 -0
- package/skills/copilot/implementation-planning/references/spec-tracing-guide.md +51 -0
- package/skills/copilot/implementation-planning/references/task-template.md +63 -0
- package/skills/copilot/implementation-planning/references/testing-strategy-guide.md +109 -0
- package/skills/copilot/implementation-planning/references/worked-example.md +76 -0
- package/skills/copilot/oneshot-workflow/SKILL.md +468 -0
- package/skills/copilot/oneshot-workflow/references/choice-state.md +65 -0
- package/skills/copilot/prune-workflows/SKILL.md +290 -0
- package/skills/copilot/prune-workflows/references/safeguards.md +74 -0
- package/skills/copilot/quality-review/SKILL.md +371 -0
- package/skills/copilot/quality-review/references/auto-transition.md +47 -0
- package/skills/copilot/quality-review/references/axiom-integration.md +135 -0
- package/skills/copilot/quality-review/references/code-quality-checklist.md +171 -0
- package/skills/copilot/quality-review/references/convergence-and-verdict.md +48 -0
- package/skills/copilot/quality-review/references/gate-execution.md +60 -0
- package/skills/copilot/quality-review/references/rationalization-refutation.md +13 -0
- package/skills/copilot/quality-review/references/review-report-template.md +65 -0
- package/skills/copilot/quality-review/references/security-checklist.md +79 -0
- package/skills/copilot/quality-review/references/typescript-standards.md +24 -0
- package/skills/copilot/refactor/SKILL.md +196 -0
- package/skills/copilot/refactor/references/brief-template.md +81 -0
- package/skills/copilot/refactor/references/doc-update-checklist.md +113 -0
- package/skills/copilot/refactor/references/explore-checklist.md +79 -0
- package/skills/copilot/refactor/references/overhaul-track.md +194 -0
- package/skills/copilot/refactor/references/phases/auto-chain.md +267 -0
- package/skills/copilot/refactor/references/phases/brief.md +176 -0
- package/skills/copilot/refactor/references/phases/explore.md +132 -0
- package/skills/copilot/refactor/references/phases/overhaul-delegate.md +136 -0
- package/skills/copilot/refactor/references/phases/overhaul-plan.md +312 -0
- package/skills/copilot/refactor/references/phases/overhaul-review.md +304 -0
- package/skills/copilot/refactor/references/phases/polish-implement.md +347 -0
- package/skills/copilot/refactor/references/phases/polish-validate.md +218 -0
- package/skills/copilot/refactor/references/phases/update-docs.md +234 -0
- package/skills/copilot/refactor/references/polish-track.md +152 -0
- package/skills/copilot/shepherd/SKILL.md +251 -0
- package/skills/copilot/shepherd/references/assess-checklist.md +170 -0
- package/skills/copilot/shepherd/references/escalation-criteria.md +53 -0
- package/skills/copilot/shepherd/references/fix-strategies.md +289 -0
- package/skills/copilot/shepherd/references/gate-event-emission.md +47 -0
- package/skills/copilot/shepherd/references/shepherd-event-schemas.md +56 -0
- package/skills/copilot/spec-review/SKILL.md +294 -0
- package/skills/copilot/spec-review/references/rationalization-refutation.md +13 -0
- package/skills/copilot/spec-review/references/review-checklist.md +79 -0
- package/skills/copilot/spec-review/references/worked-example.md +72 -0
- package/skills/copilot/synthesis/SKILL.md +217 -0
- package/skills/copilot/synthesis/references/github-native-stacking.md +135 -0
- package/skills/copilot/synthesis/references/merge-ordering.md +50 -0
- package/skills/copilot/synthesis/references/pr-descriptions.md +87 -0
- package/skills/copilot/synthesis/references/synthesis-steps.md +145 -0
- package/skills/copilot/synthesis/references/troubleshooting.md +115 -0
- package/skills/copilot/workflow-state/SKILL.md +254 -0
- package/skills/copilot/workflow-state/references/mcp-tool-reference.md +89 -0
- package/skills/copilot/workflow-state/references/phase-transitions.md +206 -0
- package/skills/cursor/brainstorming/SKILL.md +182 -0
- package/skills/cursor/brainstorming/references/design-template.md +107 -0
- package/skills/cursor/brainstorming/references/worked-example.md +58 -0
- package/skills/cursor/cleanup/SKILL.md +169 -0
- package/skills/cursor/cleanup/references/merge-verification.md +40 -0
- package/skills/cursor/debug/SKILL.md +247 -0
- package/skills/cursor/debug/references/hotfix-track.md +105 -0
- package/skills/cursor/debug/references/investigation-checklist.md +217 -0
- package/skills/cursor/debug/references/rca-template.md +150 -0
- package/skills/cursor/debug/references/state-schema.md +294 -0
- package/skills/cursor/debug/references/thorough-track.md +171 -0
- package/skills/cursor/debug/references/triage-questions.md +155 -0
- package/skills/cursor/debug/references/troubleshooting.md +47 -0
- package/skills/cursor/delegation/SKILL.md +351 -0
- package/skills/cursor/delegation/references/adaptive-orchestration.md +31 -0
- package/skills/cursor/delegation/references/agent-teams-saga.md +254 -0
- package/skills/cursor/delegation/references/fix-mode.md +118 -0
- package/skills/cursor/delegation/references/fixer-prompt.md +174 -0
- package/skills/cursor/delegation/references/implementer-prompt.md +401 -0
- package/skills/cursor/delegation/references/parallel-strategy.md +124 -0
- package/skills/cursor/delegation/references/pbt-patterns.md +172 -0
- package/skills/cursor/delegation/references/pr-fixes-mode.md +155 -0
- package/skills/cursor/delegation/references/rationalization-refutation.md +15 -0
- package/skills/cursor/delegation/references/state-management.md +84 -0
- package/skills/cursor/delegation/references/testing-patterns.md +146 -0
- package/skills/cursor/delegation/references/troubleshooting.md +109 -0
- package/skills/cursor/delegation/references/worked-example.md +104 -0
- package/skills/cursor/delegation/references/workflow-steps.md +131 -0
- package/skills/cursor/delegation/references/worktree-enforcement.md +71 -0
- package/skills/cursor/dogfood/SKILL.md +235 -0
- package/skills/cursor/dogfood/references/report-template.md +109 -0
- package/skills/cursor/dogfood/references/root-cause-patterns.md +227 -0
- package/skills/cursor/git-worktrees/SKILL.md +193 -0
- package/skills/cursor/git-worktrees/references/commands-reference.md +78 -0
- package/skills/cursor/implementation-planning/SKILL.md +289 -0
- package/skills/cursor/implementation-planning/references/plan-document-template.md +42 -0
- package/skills/cursor/implementation-planning/references/rationalization-refutation.md +13 -0
- package/skills/cursor/implementation-planning/references/spec-tracing-guide.md +51 -0
- package/skills/cursor/implementation-planning/references/task-template.md +63 -0
- package/skills/cursor/implementation-planning/references/testing-strategy-guide.md +109 -0
- package/skills/cursor/implementation-planning/references/worked-example.md +76 -0
- package/skills/cursor/oneshot-workflow/SKILL.md +468 -0
- package/skills/cursor/oneshot-workflow/references/choice-state.md +65 -0
- package/skills/cursor/prune-workflows/SKILL.md +290 -0
- package/skills/cursor/prune-workflows/references/safeguards.md +74 -0
- package/skills/cursor/quality-review/SKILL.md +371 -0
- package/skills/cursor/quality-review/references/auto-transition.md +47 -0
- package/skills/cursor/quality-review/references/axiom-integration.md +135 -0
- package/skills/cursor/quality-review/references/code-quality-checklist.md +171 -0
- package/skills/cursor/quality-review/references/convergence-and-verdict.md +48 -0
- package/skills/cursor/quality-review/references/gate-execution.md +60 -0
- package/skills/cursor/quality-review/references/rationalization-refutation.md +13 -0
- package/skills/cursor/quality-review/references/review-report-template.md +65 -0
- package/skills/cursor/quality-review/references/security-checklist.md +79 -0
- package/skills/cursor/quality-review/references/typescript-standards.md +24 -0
- package/skills/cursor/refactor/SKILL.md +196 -0
- package/skills/cursor/refactor/references/brief-template.md +81 -0
- package/skills/cursor/refactor/references/doc-update-checklist.md +113 -0
- package/skills/cursor/refactor/references/explore-checklist.md +79 -0
- package/skills/cursor/refactor/references/overhaul-track.md +194 -0
- package/skills/cursor/refactor/references/phases/auto-chain.md +267 -0
- package/skills/cursor/refactor/references/phases/brief.md +176 -0
- package/skills/cursor/refactor/references/phases/explore.md +132 -0
- package/skills/cursor/refactor/references/phases/overhaul-delegate.md +136 -0
- package/skills/cursor/refactor/references/phases/overhaul-plan.md +312 -0
- package/skills/cursor/refactor/references/phases/overhaul-review.md +304 -0
- package/skills/cursor/refactor/references/phases/polish-implement.md +347 -0
- package/skills/cursor/refactor/references/phases/polish-validate.md +218 -0
- package/skills/cursor/refactor/references/phases/update-docs.md +234 -0
- package/skills/cursor/refactor/references/polish-track.md +152 -0
- package/skills/cursor/shepherd/SKILL.md +251 -0
- package/skills/cursor/shepherd/references/assess-checklist.md +170 -0
- package/skills/cursor/shepherd/references/escalation-criteria.md +53 -0
- package/skills/cursor/shepherd/references/fix-strategies.md +289 -0
- package/skills/cursor/shepherd/references/gate-event-emission.md +47 -0
- package/skills/cursor/shepherd/references/shepherd-event-schemas.md +56 -0
- package/skills/cursor/spec-review/SKILL.md +294 -0
- package/skills/cursor/spec-review/references/rationalization-refutation.md +13 -0
- package/skills/cursor/spec-review/references/review-checklist.md +79 -0
- package/skills/cursor/spec-review/references/worked-example.md +72 -0
- package/skills/cursor/synthesis/SKILL.md +217 -0
- package/skills/cursor/synthesis/references/github-native-stacking.md +135 -0
- package/skills/cursor/synthesis/references/merge-ordering.md +50 -0
- package/skills/cursor/synthesis/references/pr-descriptions.md +87 -0
- package/skills/cursor/synthesis/references/synthesis-steps.md +145 -0
- package/skills/cursor/synthesis/references/troubleshooting.md +115 -0
- package/skills/cursor/workflow-state/SKILL.md +254 -0
- package/skills/cursor/workflow-state/references/mcp-tool-reference.md +89 -0
- package/skills/cursor/workflow-state/references/phase-transitions.md +206 -0
- package/skills/generic/brainstorming/SKILL.md +182 -0
- package/skills/generic/brainstorming/references/design-template.md +107 -0
- package/skills/generic/brainstorming/references/worked-example.md +58 -0
- package/skills/generic/cleanup/SKILL.md +169 -0
- package/skills/generic/cleanup/references/merge-verification.md +40 -0
- package/skills/generic/debug/SKILL.md +247 -0
- package/skills/generic/debug/references/hotfix-track.md +105 -0
- package/skills/generic/debug/references/investigation-checklist.md +217 -0
- package/skills/generic/debug/references/rca-template.md +150 -0
- package/skills/generic/debug/references/state-schema.md +294 -0
- package/skills/generic/debug/references/thorough-track.md +171 -0
- package/skills/generic/debug/references/triage-questions.md +155 -0
- package/skills/generic/debug/references/troubleshooting.md +47 -0
- package/skills/generic/delegation/SKILL.md +345 -0
- package/skills/generic/delegation/references/adaptive-orchestration.md +31 -0
- package/skills/generic/delegation/references/agent-teams-saga.md +254 -0
- package/skills/generic/delegation/references/fix-mode.md +118 -0
- package/skills/generic/delegation/references/fixer-prompt.md +174 -0
- package/skills/generic/delegation/references/implementer-prompt.md +401 -0
- package/skills/generic/delegation/references/parallel-strategy.md +124 -0
- package/skills/generic/delegation/references/pbt-patterns.md +172 -0
- package/skills/generic/delegation/references/pr-fixes-mode.md +155 -0
- package/skills/generic/delegation/references/rationalization-refutation.md +15 -0
- package/skills/generic/delegation/references/state-management.md +84 -0
- package/skills/generic/delegation/references/testing-patterns.md +146 -0
- package/skills/generic/delegation/references/troubleshooting.md +109 -0
- package/skills/generic/delegation/references/worked-example.md +104 -0
- package/skills/generic/delegation/references/workflow-steps.md +131 -0
- package/skills/generic/delegation/references/worktree-enforcement.md +71 -0
- package/skills/generic/dogfood/SKILL.md +235 -0
- package/skills/generic/dogfood/references/report-template.md +109 -0
- package/skills/generic/dogfood/references/root-cause-patterns.md +227 -0
- package/skills/generic/git-worktrees/SKILL.md +193 -0
- package/skills/generic/git-worktrees/references/commands-reference.md +78 -0
- package/skills/generic/implementation-planning/SKILL.md +289 -0
- package/skills/generic/implementation-planning/references/plan-document-template.md +42 -0
- package/skills/generic/implementation-planning/references/rationalization-refutation.md +13 -0
- package/skills/generic/implementation-planning/references/spec-tracing-guide.md +51 -0
- package/skills/generic/implementation-planning/references/task-template.md +63 -0
- package/skills/generic/implementation-planning/references/testing-strategy-guide.md +109 -0
- package/skills/generic/implementation-planning/references/worked-example.md +76 -0
- package/skills/generic/oneshot-workflow/SKILL.md +468 -0
- package/skills/generic/oneshot-workflow/references/choice-state.md +65 -0
- package/skills/generic/prune-workflows/SKILL.md +290 -0
- package/skills/generic/prune-workflows/references/safeguards.md +74 -0
- package/skills/generic/quality-review/SKILL.md +371 -0
- package/skills/generic/quality-review/references/auto-transition.md +47 -0
- package/skills/generic/quality-review/references/axiom-integration.md +135 -0
- package/skills/generic/quality-review/references/code-quality-checklist.md +171 -0
- package/skills/generic/quality-review/references/convergence-and-verdict.md +48 -0
- package/skills/generic/quality-review/references/gate-execution.md +60 -0
- package/skills/generic/quality-review/references/rationalization-refutation.md +13 -0
- package/skills/generic/quality-review/references/review-report-template.md +65 -0
- package/skills/generic/quality-review/references/security-checklist.md +79 -0
- package/skills/generic/quality-review/references/typescript-standards.md +24 -0
- package/skills/generic/refactor/SKILL.md +196 -0
- package/skills/generic/refactor/references/brief-template.md +81 -0
- package/skills/generic/refactor/references/doc-update-checklist.md +113 -0
- package/skills/generic/refactor/references/explore-checklist.md +79 -0
- package/skills/generic/refactor/references/overhaul-track.md +194 -0
- package/skills/generic/refactor/references/phases/auto-chain.md +267 -0
- package/skills/generic/refactor/references/phases/brief.md +176 -0
- package/skills/generic/refactor/references/phases/explore.md +132 -0
- package/skills/generic/refactor/references/phases/overhaul-delegate.md +136 -0
- package/skills/generic/refactor/references/phases/overhaul-plan.md +312 -0
- package/skills/generic/refactor/references/phases/overhaul-review.md +304 -0
- package/skills/generic/refactor/references/phases/polish-implement.md +347 -0
- package/skills/generic/refactor/references/phases/polish-validate.md +218 -0
- package/skills/generic/refactor/references/phases/update-docs.md +234 -0
- package/skills/generic/refactor/references/polish-track.md +152 -0
- package/skills/generic/shepherd/SKILL.md +251 -0
- package/skills/generic/shepherd/references/assess-checklist.md +170 -0
- package/skills/generic/shepherd/references/escalation-criteria.md +53 -0
- package/skills/generic/shepherd/references/fix-strategies.md +289 -0
- package/skills/generic/shepherd/references/gate-event-emission.md +47 -0
- package/skills/generic/shepherd/references/shepherd-event-schemas.md +56 -0
- package/skills/generic/spec-review/SKILL.md +294 -0
- package/skills/generic/spec-review/references/rationalization-refutation.md +13 -0
- package/skills/generic/spec-review/references/review-checklist.md +79 -0
- package/skills/generic/spec-review/references/worked-example.md +72 -0
- package/skills/generic/synthesis/SKILL.md +217 -0
- package/skills/generic/synthesis/references/github-native-stacking.md +135 -0
- package/skills/generic/synthesis/references/merge-ordering.md +50 -0
- package/skills/generic/synthesis/references/pr-descriptions.md +87 -0
- package/skills/generic/synthesis/references/synthesis-steps.md +145 -0
- package/skills/generic/synthesis/references/troubleshooting.md +115 -0
- package/skills/generic/workflow-state/SKILL.md +254 -0
- package/skills/generic/workflow-state/references/mcp-tool-reference.md +89 -0
- package/skills/generic/workflow-state/references/phase-transitions.md +206 -0
- package/skills/opencode/brainstorming/SKILL.md +182 -0
- package/skills/opencode/brainstorming/references/design-template.md +107 -0
- package/skills/opencode/brainstorming/references/worked-example.md +58 -0
- package/skills/opencode/cleanup/SKILL.md +169 -0
- package/skills/opencode/cleanup/references/merge-verification.md +40 -0
- package/skills/opencode/debug/SKILL.md +247 -0
- package/skills/opencode/debug/references/hotfix-track.md +105 -0
- package/skills/opencode/debug/references/investigation-checklist.md +217 -0
- package/skills/opencode/debug/references/rca-template.md +150 -0
- package/skills/opencode/debug/references/state-schema.md +294 -0
- package/skills/opencode/debug/references/thorough-track.md +171 -0
- package/skills/opencode/debug/references/triage-questions.md +155 -0
- package/skills/opencode/debug/references/troubleshooting.md +47 -0
- package/skills/opencode/delegation/SKILL.md +353 -0
- package/skills/opencode/delegation/references/adaptive-orchestration.md +31 -0
- package/skills/opencode/delegation/references/agent-teams-saga.md +254 -0
- package/skills/opencode/delegation/references/fix-mode.md +118 -0
- package/skills/opencode/delegation/references/fixer-prompt.md +174 -0
- package/skills/opencode/delegation/references/implementer-prompt.md +401 -0
- package/skills/opencode/delegation/references/parallel-strategy.md +124 -0
- package/skills/opencode/delegation/references/pbt-patterns.md +172 -0
- package/skills/opencode/delegation/references/pr-fixes-mode.md +155 -0
- package/skills/opencode/delegation/references/rationalization-refutation.md +15 -0
- package/skills/opencode/delegation/references/state-management.md +84 -0
- package/skills/opencode/delegation/references/testing-patterns.md +146 -0
- package/skills/opencode/delegation/references/troubleshooting.md +109 -0
- package/skills/opencode/delegation/references/worked-example.md +104 -0
- package/skills/opencode/delegation/references/workflow-steps.md +131 -0
- package/skills/opencode/delegation/references/worktree-enforcement.md +71 -0
- package/skills/opencode/dogfood/SKILL.md +235 -0
- package/skills/opencode/dogfood/references/report-template.md +109 -0
- package/skills/opencode/dogfood/references/root-cause-patterns.md +227 -0
- package/skills/opencode/git-worktrees/SKILL.md +193 -0
- package/skills/opencode/git-worktrees/references/commands-reference.md +78 -0
- package/skills/opencode/implementation-planning/SKILL.md +289 -0
- package/skills/opencode/implementation-planning/references/plan-document-template.md +42 -0
- package/skills/opencode/implementation-planning/references/rationalization-refutation.md +13 -0
- package/skills/opencode/implementation-planning/references/spec-tracing-guide.md +51 -0
- package/skills/opencode/implementation-planning/references/task-template.md +63 -0
- package/skills/opencode/implementation-planning/references/testing-strategy-guide.md +109 -0
- package/skills/opencode/implementation-planning/references/worked-example.md +76 -0
- package/skills/opencode/oneshot-workflow/SKILL.md +468 -0
- package/skills/opencode/oneshot-workflow/references/choice-state.md +65 -0
- package/skills/opencode/prune-workflows/SKILL.md +290 -0
- package/skills/opencode/prune-workflows/references/safeguards.md +74 -0
- package/skills/opencode/quality-review/SKILL.md +371 -0
- package/skills/opencode/quality-review/references/auto-transition.md +47 -0
- package/skills/opencode/quality-review/references/axiom-integration.md +135 -0
- package/skills/opencode/quality-review/references/code-quality-checklist.md +171 -0
- package/skills/opencode/quality-review/references/convergence-and-verdict.md +48 -0
- package/skills/opencode/quality-review/references/gate-execution.md +60 -0
- package/skills/opencode/quality-review/references/rationalization-refutation.md +13 -0
- package/skills/opencode/quality-review/references/review-report-template.md +65 -0
- package/skills/opencode/quality-review/references/security-checklist.md +79 -0
- package/skills/opencode/quality-review/references/typescript-standards.md +24 -0
- package/skills/opencode/refactor/SKILL.md +196 -0
- package/skills/opencode/refactor/references/brief-template.md +81 -0
- package/skills/opencode/refactor/references/doc-update-checklist.md +113 -0
- package/skills/opencode/refactor/references/explore-checklist.md +79 -0
- package/skills/opencode/refactor/references/overhaul-track.md +194 -0
- package/skills/opencode/refactor/references/phases/auto-chain.md +267 -0
- package/skills/opencode/refactor/references/phases/brief.md +176 -0
- package/skills/opencode/refactor/references/phases/explore.md +132 -0
- package/skills/opencode/refactor/references/phases/overhaul-delegate.md +136 -0
- package/skills/opencode/refactor/references/phases/overhaul-plan.md +312 -0
- package/skills/opencode/refactor/references/phases/overhaul-review.md +304 -0
- package/skills/opencode/refactor/references/phases/polish-implement.md +347 -0
- package/skills/opencode/refactor/references/phases/polish-validate.md +218 -0
- package/skills/opencode/refactor/references/phases/update-docs.md +234 -0
- package/skills/opencode/refactor/references/polish-track.md +152 -0
- package/skills/opencode/shepherd/SKILL.md +251 -0
- package/skills/opencode/shepherd/references/assess-checklist.md +170 -0
- package/skills/opencode/shepherd/references/escalation-criteria.md +53 -0
- package/skills/opencode/shepherd/references/fix-strategies.md +289 -0
- package/skills/opencode/shepherd/references/gate-event-emission.md +47 -0
- package/skills/opencode/shepherd/references/shepherd-event-schemas.md +56 -0
- package/skills/opencode/spec-review/SKILL.md +294 -0
- package/skills/opencode/spec-review/references/rationalization-refutation.md +13 -0
- package/skills/opencode/spec-review/references/review-checklist.md +79 -0
- package/skills/opencode/spec-review/references/worked-example.md +72 -0
- package/skills/opencode/synthesis/SKILL.md +217 -0
- package/skills/opencode/synthesis/references/github-native-stacking.md +135 -0
- package/skills/opencode/synthesis/references/merge-ordering.md +50 -0
- package/skills/opencode/synthesis/references/pr-descriptions.md +87 -0
- package/skills/opencode/synthesis/references/synthesis-steps.md +145 -0
- package/skills/opencode/synthesis/references/troubleshooting.md +115 -0
- package/skills/opencode/workflow-state/SKILL.md +254 -0
- package/skills/opencode/workflow-state/references/mcp-tool-reference.md +89 -0
- package/skills/opencode/workflow-state/references/phase-transitions.md +206 -0
- package/.claude-plugin/marketplace.json +0 -34
- package/dist/node_modules/electron/index.js +0 -1
- package/dist/node_modules/electron/package.json +0 -1
- package/dist/node_modules/playwright-core/index.js +0 -1
- package/dist/node_modules/playwright-core/package.json +0 -1
- package/scripts/assess-refactor-scope.sh +0 -239
- package/scripts/check-coderabbit.sh +0 -288
- package/scripts/check-context-economy.sh +0 -405
- package/scripts/check-coverage-thresholds.sh +0 -194
- package/scripts/check-operational-resilience.sh +0 -306
- package/scripts/check-polish-scope.sh +0 -245
- package/scripts/check-post-merge.sh +0 -185
- package/scripts/check-pr-comments.sh +0 -127
- package/scripts/check-task-decomposition.sh +0 -451
- package/scripts/check-tdd-compliance.sh +0 -265
- package/scripts/check-workflow-determinism.sh +0 -312
- package/scripts/debug-review-gate.sh +0 -201
- package/scripts/extract-fix-tasks.sh +0 -179
- package/scripts/extract-task.sh +0 -67
- package/scripts/generate-traceability.sh +0 -209
- package/scripts/investigation-timer.sh +0 -171
- package/scripts/needs-schema-sync.sh +0 -174
- package/scripts/new-project.sh +0 -103
- package/scripts/post-delegation-check.sh +0 -317
- package/scripts/pre-synthesis-check.sh +0 -475
- package/scripts/reconcile-state.sh +0 -346
- package/scripts/review-diff.sh +0 -63
- package/scripts/review-verdict.sh +0 -169
- package/scripts/security-scan.sh +0 -248
- package/scripts/select-debug-track.sh +0 -186
- package/scripts/setup-worktree.sh +0 -323
- package/scripts/spec-coverage-check.sh +0 -230
- package/scripts/static-analysis-gate.sh +0 -261
- package/scripts/validate-companion.sh +0 -161
- package/scripts/validate-pr-body.sh +0 -158
- package/scripts/validate-pr-stack.sh +0 -146
- package/scripts/verify-delegation-saga.sh +0 -240
- package/scripts/verify-doc-links.sh +0 -211
- package/scripts/verify-ideate-artifacts.sh +0 -296
- package/scripts/verify-plan-coverage.sh +0 -408
- package/scripts/verify-provenance-chain.sh +0 -310
- package/scripts/verify-review-triage.sh +0 -219
- package/scripts/verify-worktree-baseline.sh +0 -159
- package/scripts/verify-worktree.sh +0 -84
- package/skills/delegation/references/fix-mode.md +0 -78
- package/skills/implementation-planning/references/task-template.md +0 -43
- package/skills/shared/prompts/context-reading.md +0 -66
- package/skills/shared/prompts/report-format.md +0 -54
- package/skills/shared/prompts/tdd-requirements.md +0 -39
- package/skills/shared/references/coding-standards.md +0 -46
- package/skills/shared/references/mcp-tool-guidance.md +0 -26
- package/skills/shared/references/skill-path-resolution.md +0 -10
- package/skills/shared/references/tdd.md +0 -41
- package/skills/shared/references/telemetry-awareness.md +0 -9
- /package/skills/{brainstorming → claude/brainstorming}/references/worked-example.md +0 -0
- /package/skills/{cleanup → claude/cleanup}/references/merge-verification.md +0 -0
- /package/skills/{debug → claude/debug}/references/rca-template.md +0 -0
- /package/skills/{debug → claude/debug}/references/state-schema.md +0 -0
- /package/skills/{debug → claude/debug}/references/triage-questions.md +0 -0
- /package/skills/{debug → claude/debug}/references/troubleshooting.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/adaptive-orchestration.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/fixer-prompt.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/pbt-patterns.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/pr-fixes-mode.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/rationalization-refutation.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/testing-patterns.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/worked-example.md +0 -0
- /package/skills/{git-worktrees → claude/git-worktrees}/references/commands-reference.md +0 -0
- /package/skills/{implementation-planning → claude/implementation-planning}/references/plan-document-template.md +0 -0
- /package/skills/{implementation-planning → claude/implementation-planning}/references/rationalization-refutation.md +0 -0
- /package/skills/{implementation-planning → claude/implementation-planning}/references/spec-tracing-guide.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/code-quality-checklist.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/convergence-and-verdict.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/gate-execution.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/rationalization-refutation.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/review-report-template.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/security-checklist.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/typescript-standards.md +0 -0
- /package/skills/{refactor → claude/refactor}/references/brief-template.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/auto-chain.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/brief.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/explore.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/overhaul-delegate.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/overhaul-plan.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/overhaul-review.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/update-docs.md +0 -0
- /package/skills/{shepherd → claude/shepherd}/references/assess-checklist.md +0 -0
- /package/skills/{shepherd → claude/shepherd}/references/escalation-criteria.md +0 -0
- /package/skills/{shepherd → claude/shepherd}/references/gate-event-emission.md +0 -0
- /package/skills/{spec-review → claude/spec-review}/references/rationalization-refutation.md +0 -0
- /package/skills/{spec-review → claude/spec-review}/references/review-checklist.md +0 -0
- /package/skills/{synthesis → claude/synthesis}/references/merge-ordering.md +0 -0
- /package/skills/{synthesis → claude/synthesis}/references/pr-descriptions.md +0 -0
- /package/skills/{synthesis → claude/synthesis}/references/troubleshooting.md +0 -0
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: implementation-planning
|
|
3
|
+
description: "Transform design documents into TDD-based implementation plans with parallelizable tasks. Triggers: 'plan implementation', 'create tasks from design', or /plan. Enforces the Iron Law: no production code without a failing test first. Requires an existing design document — use /ideate first if none exists. Do NOT use for brainstorming, debugging, or code review."
|
|
4
|
+
metadata:
|
|
5
|
+
author: exarchos
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
mcp-server: exarchos
|
|
8
|
+
category: workflow
|
|
9
|
+
phase-affinity: plan
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Implementation Planning Skill
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
Transform design documents into TDD-based implementation plans with granular, parallelizable tasks. Ensures complete spec coverage through explicit traceability.
|
|
17
|
+
|
|
18
|
+
For a complete worked example, see `references/worked-example.md`.
|
|
19
|
+
|
|
20
|
+
## Triggers
|
|
21
|
+
|
|
22
|
+
Activate this skill when:
|
|
23
|
+
- User runs `plan` command
|
|
24
|
+
- User wants to break down a design into tasks
|
|
25
|
+
- A design document exists and needs implementation steps
|
|
26
|
+
- User says "plan the implementation" or similar
|
|
27
|
+
- Auto-chained from `ideate` after design completion
|
|
28
|
+
- Auto-chained from plan-review with `--revise` flag (gaps found)
|
|
29
|
+
|
|
30
|
+
## Revision Mode (--revise flag)
|
|
31
|
+
|
|
32
|
+
When invoked with `--revise`, plan-review found gaps. Read `.planReview.gaps` from state, re-read the design, add tasks to address each gap, update the plan file, then clear gaps via `mcp__exarchos__exarchos_workflow` `action: "set"`.
|
|
33
|
+
|
|
34
|
+
### Revision Loop Guard
|
|
35
|
+
|
|
36
|
+
Max revisions: 3 per plan.
|
|
37
|
+
|
|
38
|
+
After 3 failed revisions:
|
|
39
|
+
1. Set `planReview.revisionsExhausted = true`
|
|
40
|
+
2. Output: "Plan revision failed after 3 attempts. Design may be incomplete."
|
|
41
|
+
3. Escalate: Suggest `ideate --redesign` to revisit design
|
|
42
|
+
|
|
43
|
+
> **MANDATORY:** Before accepting any rationalization for skipping tests, planning, or TDD steps, consult `references/rationalization-refutation.md`. Every common excuse is catalogued with a counter-argument and the correct action.
|
|
44
|
+
|
|
45
|
+
## The Iron Law
|
|
46
|
+
|
|
47
|
+
> **NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST**
|
|
48
|
+
|
|
49
|
+
Every implementation task MUST:
|
|
50
|
+
1. Start with writing a failing test
|
|
51
|
+
2. Specify the expected failure reason
|
|
52
|
+
3. Only then implement minimum code to pass
|
|
53
|
+
|
|
54
|
+
**Verify TDD compliance** in git history after implementation:
|
|
55
|
+
|
|
56
|
+
```typescript
|
|
57
|
+
exarchos_orchestrate({
|
|
58
|
+
action: "check_tdd_compliance",
|
|
59
|
+
featureId: "<featureId>",
|
|
60
|
+
taskId: "<taskId>",
|
|
61
|
+
branch: "feature/<name>"
|
|
62
|
+
})
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
- **`passed: true`** — All commits have test files before or alongside implementation
|
|
66
|
+
- **`passed: false`** — Violations found; commits have implementation without corresponding tests
|
|
67
|
+
|
|
68
|
+
## Planning Process
|
|
69
|
+
|
|
70
|
+
### Step 1: Analyze Design Document
|
|
71
|
+
|
|
72
|
+
Read the design document thoroughly. For each major section, extract:
|
|
73
|
+
- **Problem Statement** — Context (no tasks, but informs scope)
|
|
74
|
+
- **Chosen Approach** — Architectural decisions to implement
|
|
75
|
+
- **Technical Design** — Core implementation requirements
|
|
76
|
+
- **Integration Points** — Integration and glue code tasks
|
|
77
|
+
- **Testing Strategy** — Test coverage requirements
|
|
78
|
+
- **Open Questions** — Decisions to resolve or explicitly defer
|
|
79
|
+
|
|
80
|
+
### Step 1.5: Spec Tracing (Required)
|
|
81
|
+
|
|
82
|
+
Create a traceability matrix mapping design sections to planned tasks.
|
|
83
|
+
Consult `references/spec-tracing-guide.md` for the methodology and template.
|
|
84
|
+
|
|
85
|
+
**Pre-populate the matrix** using the traceability generator script:
|
|
86
|
+
|
|
87
|
+
```typescript
|
|
88
|
+
exarchos_orchestrate({
|
|
89
|
+
action: "generate_traceability",
|
|
90
|
+
designFile: "docs/designs/<feature>.md",
|
|
91
|
+
planFile: "docs/plans/<date>-<feature>.md",
|
|
92
|
+
output: "docs/plans/<date>-<feature>-traceability.md"
|
|
93
|
+
})
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
- **`passed: true`** — Matrix generated; review and fill in "Key Requirements" column
|
|
97
|
+
- **`passed: false`** — Parse error; design document may lack expected `##`/`###` headers
|
|
98
|
+
|
|
99
|
+
### Step 2: Decompose into Tasks
|
|
100
|
+
|
|
101
|
+
Each task follows the TDD format in `references/task-template.md`.
|
|
102
|
+
|
|
103
|
+
**Granularity Guidelines:**
|
|
104
|
+
- Each task: 2-5 minutes of focused work
|
|
105
|
+
- One test = one behavior
|
|
106
|
+
- Prefer many small tasks over few large ones
|
|
107
|
+
|
|
108
|
+
Assign a `testingStrategy` to each task using `references/testing-strategy-guide.md` to control which verification techniques agents apply. Auto-determine `propertyTests` and `benchmarks` flags by matching each task's description and file paths against the category tables — do not leave these for the implementer to decide.
|
|
109
|
+
|
|
110
|
+
**Task Ordering:**
|
|
111
|
+
1. Foundation first (types, interfaces, data structures)
|
|
112
|
+
2. Core behaviors second
|
|
113
|
+
3. Edge cases and error handling third
|
|
114
|
+
4. Integration and glue code last
|
|
115
|
+
|
|
116
|
+
### Step 3: Identify Parallelization
|
|
117
|
+
|
|
118
|
+
Analyze dependencies to find sequential chains and parallel-safe groups that can run simultaneously in worktrees.
|
|
119
|
+
|
|
120
|
+
### Step 4: Generate Plan Document
|
|
121
|
+
|
|
122
|
+
Save to: `docs/plans/YYYY-MM-DD-<feature>.md`
|
|
123
|
+
Use the template from `references/plan-document-template.md`.
|
|
124
|
+
|
|
125
|
+
### Step 5: Plan Verification
|
|
126
|
+
|
|
127
|
+
Run deterministic verification scripts instead of manual checklist review.
|
|
128
|
+
|
|
129
|
+
**5a. Design-to-plan coverage** — verify every Technical Design subsection maps to a task:
|
|
130
|
+
|
|
131
|
+
```typescript
|
|
132
|
+
exarchos_orchestrate({
|
|
133
|
+
action: "check_plan_coverage",
|
|
134
|
+
featureId: "<id>",
|
|
135
|
+
designPath: "docs/designs/<feature>.md",
|
|
136
|
+
planPath: "docs/plans/<date>-<feature>.md"
|
|
137
|
+
})
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
- **passed: true** — All design sections covered; proceed to 5a-ii
|
|
141
|
+
- **passed: false** — Gaps found; add tasks for uncovered sections or defer with rationale
|
|
142
|
+
- **error** — Usage error or empty design; check arguments
|
|
143
|
+
|
|
144
|
+
**5a-ii. Provenance chain verification** — verify every DR-N requirement maps to a task via `Implements:` field:
|
|
145
|
+
|
|
146
|
+
```typescript
|
|
147
|
+
exarchos_orchestrate({
|
|
148
|
+
action: "check_provenance_chain",
|
|
149
|
+
featureId: "<id>",
|
|
150
|
+
designPath: "docs/designs/<feature>.md",
|
|
151
|
+
planPath: "docs/plans/<date>-<feature>.md"
|
|
152
|
+
})
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
- **passed: true** — All DR-N requirements traced; proceed to 5b
|
|
156
|
+
- **passed: false** — **Block:** gaps or orphan references found. Add `**Implements:** DR-N` to tasks for each uncovered requirement before proceeding. Every DR-N requirement MUST trace to at least one task.
|
|
157
|
+
- **error** — No DR-N identifiers in design (exit 2); if design doesn't use DR-N identifiers, this check is skipped (exempt)
|
|
158
|
+
|
|
159
|
+
**5a-iii. D5: Task decomposition quality (advisory)** — verify each task has clear description, file targets, and test expectations; dependency graph is a valid DAG; parallelizable tasks don't modify the same files:
|
|
160
|
+
|
|
161
|
+
```typescript
|
|
162
|
+
exarchos_orchestrate({
|
|
163
|
+
action: "check_task_decomposition",
|
|
164
|
+
featureId: "<id>",
|
|
165
|
+
planPath: "docs/plans/<date>-<feature>.md"
|
|
166
|
+
})
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
- **passed: true** — All tasks well-decomposed; proceed to 5b
|
|
170
|
+
- **passed: false** — Findings recorded as D5 gate events for the ConvergenceView. Present findings to the user for awareness but do not block plan approval.
|
|
171
|
+
- **error** — Input error (missing file, no task headers); check arguments
|
|
172
|
+
|
|
173
|
+
**Advisory:** This gate verifies task structure quality but does not block plan approval. Findings are recorded for convergence tracking.
|
|
174
|
+
|
|
175
|
+
**5b. Spec coverage check** — verify planned test files exist and pass:
|
|
176
|
+
|
|
177
|
+
```typescript
|
|
178
|
+
exarchos_orchestrate({
|
|
179
|
+
action: "spec_coverage_check",
|
|
180
|
+
planFile: "docs/plans/<date>-<feature>.md",
|
|
181
|
+
repoRoot: ".",
|
|
182
|
+
threshold: 80
|
|
183
|
+
})
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
- **`passed: true`** — All planned tests found and passing; plan verification complete
|
|
187
|
+
- **`passed: false`** — Missing test files or test failures; create missing tests or fix failures
|
|
188
|
+
|
|
189
|
+
For reference, consult `references/spec-tracing-guide.md` for the underlying methodology.
|
|
190
|
+
|
|
191
|
+
## Anti-Patterns
|
|
192
|
+
|
|
193
|
+
| Don't | Do Instead |
|
|
194
|
+
|-------|------------|
|
|
195
|
+
| Write implementation first | Write failing test first |
|
|
196
|
+
| Create large tasks | Break into 2-5 min chunks |
|
|
197
|
+
| Skip dependency analysis | Identify parallel opportunities |
|
|
198
|
+
| Vague test descriptions | Specific: Method_Scenario_Outcome |
|
|
199
|
+
| Assume tests pass | Verify each test fails first |
|
|
200
|
+
| Add "nice to have" code | Only what the test requires |
|
|
201
|
+
|
|
202
|
+
## Rationalization Debunking
|
|
203
|
+
|
|
204
|
+
| Excuse | Reality |
|
|
205
|
+
|--------|---------|
|
|
206
|
+
| "This is too simple for tests" | Simple code breaks too. Test it. |
|
|
207
|
+
| "I'll add tests after" | You won't. Or they'll be weak. |
|
|
208
|
+
| "Tests slow me down" | Debugging without tests is slower. |
|
|
209
|
+
| "The design is obvious" | Obvious to you now. Not in 3 months. |
|
|
210
|
+
|
|
211
|
+
## State Management
|
|
212
|
+
|
|
213
|
+
On plan save, transition phase based on `workflowType`: feature → `plan-review`, refactor → `overhaul-plan-review`.
|
|
214
|
+
```
|
|
215
|
+
action: "set", featureId: "<id>", phase: "<plan-review-phase>", updates: {
|
|
216
|
+
"artifacts": { "plan": "<plan-file-path>" },
|
|
217
|
+
"tasks": [{ "id": "001", "title": "...", "status": "pending", "branch": "...", "blockedBy": [] }, ...]
|
|
218
|
+
}
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### Phase Transitions and Guards
|
|
222
|
+
|
|
223
|
+
For the full transition table, consult `@skills/workflow-state/references/phase-transitions.md`.
|
|
224
|
+
|
|
225
|
+
**Quick reference:** The `plan` → `plan-review` transition requires guard `plan-artifact-exists` — set `artifacts.plan` in the same `set` call as `phase`.
|
|
226
|
+
|
|
227
|
+
### Schema Discovery
|
|
228
|
+
|
|
229
|
+
Use `exarchos_workflow({ action: "describe", actions: ["set", "init"] })` for
|
|
230
|
+
parameter schemas and `exarchos_workflow({ action: "describe", playbook: "feature" })`
|
|
231
|
+
(or `"debug"`, `"refactor"`) for phase transitions, guards, and playbook guidance.
|
|
232
|
+
Use `exarchos_orchestrate({ action: "describe", actions: ["check_plan_coverage", "check_provenance_chain"] })`
|
|
233
|
+
for orchestrate action schemas.
|
|
234
|
+
|
|
235
|
+
## Completion Criteria
|
|
236
|
+
|
|
237
|
+
- [ ] Design document read and understood
|
|
238
|
+
- [ ] Spec traceability table created (`exarchos_orchestrate({ action: "generate_traceability" })`)
|
|
239
|
+
- [ ] Scope declared (full or partial with rationale)
|
|
240
|
+
- [ ] Tasks decomposed to 2-5 min granularity
|
|
241
|
+
- [ ] Each task starts with failing test
|
|
242
|
+
- [ ] Dependencies mapped
|
|
243
|
+
- [ ] Parallel groups identified
|
|
244
|
+
- [ ] Plan verification passed — `exarchos_orchestrate({ action: "check_plan_coverage" })` returns passed: true
|
|
245
|
+
- [ ] Provenance chain checked — `exarchos_orchestrate({ action: "check_provenance_chain" })` passed (blocking; gaps must be resolved before proceeding)
|
|
246
|
+
- [ ] Task decomposition checked — `exarchos_orchestrate({ action: "check_task_decomposition" })` run (advisory; findings presented but non-blocking)
|
|
247
|
+
- [ ] Spec coverage check passed — `exarchos_orchestrate({ action: "spec_coverage_check" })` passed: true
|
|
248
|
+
- [ ] Coverage thresholds met — `exarchos_orchestrate({ action: "check_coverage_thresholds" })` passed: true:
|
|
249
|
+
|
|
250
|
+
```typescript
|
|
251
|
+
exarchos_orchestrate({
|
|
252
|
+
action: "check_coverage_thresholds",
|
|
253
|
+
coverageFile: "coverage/coverage-summary.json",
|
|
254
|
+
lineThreshold: 80,
|
|
255
|
+
branchThreshold: 70,
|
|
256
|
+
functionThreshold: 100
|
|
257
|
+
})
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
- [ ] Plan saved to `docs/plans/`
|
|
261
|
+
- [ ] State file updated with plan path and tasks
|
|
262
|
+
|
|
263
|
+
## Transition
|
|
264
|
+
|
|
265
|
+
After planning completes, **auto-continue to plan-review** (delta analysis). Set `.phase` to the appropriate review phase (feature: `plan-review`, refactor: `overhaul-plan-review`). Plan-review compares design sections against planned tasks:
|
|
266
|
+
- Gaps found: set `.planReview.gaps`, auto-loop back to `plan --revise`
|
|
267
|
+
- No gaps: present to user for approval (human checkpoint)
|
|
268
|
+
- On approval: set `.planReview.approved = true`, invoke `delegate`
|
|
269
|
+
|
|
270
|
+
**REQUIRED:** Run `exarchos_orchestrate({ action: "check_plan_coverage" })`. If passed: false → auto-invoke `plan --revise`. If passed: true → continue to the plan-review phase (feature: `plan-review`, refactor: `overhaul-plan-review`) and only invoke `delegate` after plan-review approval.
|
|
271
|
+
|
|
272
|
+
## Exarchos Integration
|
|
273
|
+
|
|
274
|
+
Phase transitions auto-emit `workflow.transition` events via `exarchos_workflow` `set`. No manual `exarchos_event` append needed.
|
|
275
|
+
|
|
276
|
+
## Troubleshooting
|
|
277
|
+
|
|
278
|
+
| Issue | Cause | Resolution |
|
|
279
|
+
|-------|-------|------------|
|
|
280
|
+
| `check_plan_coverage` returns passed: false | Design sections not mapped to tasks | Add tasks for uncovered sections or add explicit deferral rationale |
|
|
281
|
+
| `spec_coverage_check` passed: false | Planned test files missing or failing | Create missing test stubs, verify file paths in plan match actual paths |
|
|
282
|
+
| `generate_traceability` passed: false | Design doc missing expected `##`/`###` headers | Verify design uses standard Markdown headings |
|
|
283
|
+
| Revision loop (3+ attempts) | Persistent gaps between design and plan | Set `planReview.revisionsExhausted = true`, suggest `ideate --redesign` |
|
|
284
|
+
|
|
285
|
+
## Performance Notes
|
|
286
|
+
|
|
287
|
+
- Complete each step fully before advancing — quality over speed
|
|
288
|
+
- Do not skip validation checks even when the change appears trivial
|
|
289
|
+
- Trace every design section to at least one task. Do not leave uncovered sections without explicit rationale.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Plan Document Template
|
|
2
|
+
|
|
3
|
+
Save to: `docs/plans/YYYY-MM-DD-<feature>.md`
|
|
4
|
+
|
|
5
|
+
```markdown
|
|
6
|
+
# Implementation Plan: [Feature Name]
|
|
7
|
+
|
|
8
|
+
## Source Design
|
|
9
|
+
Link: `docs/designs/YYYY-MM-DD-<feature>.md`
|
|
10
|
+
|
|
11
|
+
## Scope
|
|
12
|
+
**Target:** [Full design | Partial: <specific components>]
|
|
13
|
+
**Excluded:** [None | List excluded sections with rationale]
|
|
14
|
+
|
|
15
|
+
## Summary
|
|
16
|
+
- Total tasks: [N]
|
|
17
|
+
- Parallel groups: [N]
|
|
18
|
+
- Estimated test count: [N]
|
|
19
|
+
- Design coverage: [X of Y sections covered]
|
|
20
|
+
|
|
21
|
+
## Spec Traceability
|
|
22
|
+
|
|
23
|
+
[Traceability matrix from Step 1.5]
|
|
24
|
+
|
|
25
|
+
## Task Breakdown
|
|
26
|
+
|
|
27
|
+
[Tasks in execution order]
|
|
28
|
+
|
|
29
|
+
## Parallelization Strategy
|
|
30
|
+
|
|
31
|
+
[Which tasks can run in parallel worktrees]
|
|
32
|
+
|
|
33
|
+
## Deferred Items
|
|
34
|
+
|
|
35
|
+
[Open questions or design sections not addressed, with rationale]
|
|
36
|
+
|
|
37
|
+
## Completion Checklist
|
|
38
|
+
- [ ] All tests written before implementation
|
|
39
|
+
- [ ] All tests pass
|
|
40
|
+
- [ ] Code coverage meets standards
|
|
41
|
+
- [ ] Ready for review
|
|
42
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Rationalization Refutation — Implementation Planning
|
|
2
|
+
|
|
3
|
+
Common rationalizations that undermine planning rigor, with counter-arguments and correct actions.
|
|
4
|
+
|
|
5
|
+
| Rationalization | Counter-argument | What to do instead |
|
|
6
|
+
|-----------------|------------------|--------------------|
|
|
7
|
+
| "The design is clear enough to skip planning" | Designs describe *what* to build, not the sequence, dependencies, or test strategy. Skipping planning leads to ad-hoc implementation, missed edge cases, and rework. | Run `/exarchos:plan` to decompose the design into granular TDD tasks with explicit dependencies and parallel groups. |
|
|
8
|
+
| "Tests are implied by the implementation" | Implied tests are never written. The Iron Law exists because every "implied" test is a missing safety net that lets regressions ship. | Write each test explicitly in the plan: name, file path, method under test, expected failure reason. |
|
|
9
|
+
| "Small change doesn't need tests" | Small changes break things too — especially boundary conditions and integration points. The change's size does not determine its risk. | Plan a test for every behavioral change, regardless of size. Use the task template's TDD section. |
|
|
10
|
+
| "I'll add tests after the implementation" | Post-hoc tests validate what you built, not what you should have built. They miss edge cases the implementation accidentally handles and confirm bugs as features. | Plan tests first (RED step). Each task starts with a failing test that defines the expected behavior before any production code. |
|
|
11
|
+
| "This is just a refactor, no tests needed" | Refactors change structure, and structural changes can alter behavior in subtle ways. Without tests, you cannot prove the refactor preserved semantics. | Ensure existing tests cover the code being refactored. If coverage gaps exist, plan tests to fill them before the refactor task. |
|
|
12
|
+
| "We can plan as we go" | Incremental planning without upfront decomposition hides dependency conflicts, prevents parallelization, and makes progress invisible. | Complete the full planning process: analyze design, decompose tasks, identify dependencies, then delegate. |
|
|
13
|
+
| "The task is too simple to decompose further" | Tasks that feel "simple" often contain hidden subtasks (error handling, validation, edge cases). Undecomposed tasks balloon during implementation. | Apply the 2-5 minute granularity rule. If a task takes longer than 5 minutes, it needs further decomposition. |
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Spec Tracing Guide
|
|
2
|
+
|
|
3
|
+
## Traceability Matrix
|
|
4
|
+
|
|
5
|
+
Create a traceability table mapping design sections to planned tasks. This ensures complete coverage.
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
## Spec Traceability
|
|
9
|
+
|
|
10
|
+
### Scope Declaration
|
|
11
|
+
|
|
12
|
+
**Target:** [Full design | Partial: <specific components>]
|
|
13
|
+
**Excluded:** [List any intentionally excluded sections with rationale]
|
|
14
|
+
|
|
15
|
+
### Traceability Matrix
|
|
16
|
+
|
|
17
|
+
| Design Section | Key Requirements | Task ID(s) | Status |
|
|
18
|
+
|----------------|-----------------|------------|--------|
|
|
19
|
+
| Technical Design > Component A | - Requirement 1<br>- Requirement 2 | 001, 002 | Covered |
|
|
20
|
+
| Technical Design > Component B | - Requirement 3 | 003 | Covered |
|
|
21
|
+
| Integration Points > X | - Connection to Y | 004 | Covered |
|
|
22
|
+
| Testing Strategy | - Unit tests<br>- Integration tests | 005, 006 | Covered |
|
|
23
|
+
| Open Questions > Q1 | Decision needed | — | Deferred: [reason] |
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Rules
|
|
27
|
+
|
|
28
|
+
- Every sub-section of Technical Design MUST map to at least one task
|
|
29
|
+
- Every file in "Files Changed" table MUST be touched by at least one task
|
|
30
|
+
- Open Questions MUST be resolved OR explicitly deferred with rationale
|
|
31
|
+
- For partial plans, declare scope upfront and only trace in-scope sections
|
|
32
|
+
|
|
33
|
+
## Plan Verification
|
|
34
|
+
|
|
35
|
+
Before saving, verify completeness against the design document.
|
|
36
|
+
|
|
37
|
+
### Coverage Checklist
|
|
38
|
+
|
|
39
|
+
- [ ] Every sub-section of "Technical Design" has at least one task
|
|
40
|
+
- [ ] All files in "Files Changed" table are touched by tasks
|
|
41
|
+
- [ ] Testing strategy items have corresponding test tasks
|
|
42
|
+
- [ ] Open questions are resolved OR explicitly deferred with rationale
|
|
43
|
+
- [ ] For partial plans: scope declaration is clear and justified
|
|
44
|
+
|
|
45
|
+
### Delta Analysis
|
|
46
|
+
|
|
47
|
+
Compare design sections against task list. For each gap:
|
|
48
|
+
1. Create a task to address it, OR
|
|
49
|
+
2. Add to "Deferred Items" with explicit rationale
|
|
50
|
+
|
|
51
|
+
If significant gaps remain that cannot be justified, **do not proceed** — return to design phase for clarification.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# TDD Task Template
|
|
2
|
+
|
|
3
|
+
## Task Format
|
|
4
|
+
|
|
5
|
+
Each task follows this structure:
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
### Task [N]: [Brief Description]
|
|
9
|
+
|
|
10
|
+
**Phase:** [RED | GREEN | REFACTOR]
|
|
11
|
+
**Test Layer:** [acceptance | integration | unit | property]
|
|
12
|
+
**Acceptance Test Ref:** [Task ID of parent acceptance test, or omit]
|
|
13
|
+
**Implements:** [DR-N identifiers]
|
|
14
|
+
|
|
15
|
+
**TDD Steps:**
|
|
16
|
+
1. [RED] Write test: `TestName_Scenario_ExpectedOutcome`
|
|
17
|
+
- File: `path/to/test.ts`
|
|
18
|
+
- Expected failure: [Specific failure reason]
|
|
19
|
+
- Run: `npm run test:run` - MUST FAIL
|
|
20
|
+
|
|
21
|
+
2. [GREEN] Implement minimum code
|
|
22
|
+
- File: `path/to/implementation.ts`
|
|
23
|
+
- Changes: [Brief description]
|
|
24
|
+
- Run: `npm run test:run` - MUST PASS
|
|
25
|
+
|
|
26
|
+
3. [REFACTOR] Clean up (optional)
|
|
27
|
+
- Apply: [SOLID principle or improvement]
|
|
28
|
+
- Run: `npm run test:run` - MUST STAY GREEN
|
|
29
|
+
|
|
30
|
+
**Verification:**
|
|
31
|
+
- [ ] Witnessed test fail for the right reason
|
|
32
|
+
- [ ] Test passes after implementation
|
|
33
|
+
- [ ] No extra code beyond test requirements
|
|
34
|
+
|
|
35
|
+
**Dependencies:** [Task IDs this depends on, or "None"]
|
|
36
|
+
**Parallelizable:** [Yes/No]
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Test Layer Selection
|
|
40
|
+
|
|
41
|
+
Each task must declare its test layer. This determines the scope and style of testing:
|
|
42
|
+
|
|
43
|
+
| Layer | Scope | When to use |
|
|
44
|
+
|---|---|---|
|
|
45
|
+
| `acceptance` | Feature-level behavior from user perspective | First task per feature or DR-N cluster. Uses real collaborators, no mocks. Remains RED until inner tasks complete. |
|
|
46
|
+
| `integration` | Multiple components working together | **Default for most tasks.** Uses real collaborators, mocks only at infrastructure boundaries. |
|
|
47
|
+
| `unit` | Single function/class in isolation | Complex algorithmic logic, pure functions, parsers. |
|
|
48
|
+
| `property` | Invariants across input space | Transformations, state machines, serialization (auto-determined via testingStrategy). |
|
|
49
|
+
|
|
50
|
+
**Acceptance Test Ref:** Inner tasks that implement toward an acceptance test should declare `**Acceptance Test Ref:** [Task ID]` linking to the parent acceptance test task. This creates the provenance chain: `DR-N → Acceptance Test → Inner Tests → Code`.
|
|
51
|
+
|
|
52
|
+
## Characterization Testing
|
|
53
|
+
|
|
54
|
+
When a task modifies existing code behavior, the planner should set `characterizationRequired: true` in the testingStrategy. The implementer captures current behavior as characterization tests before making changes, providing a safety net against unintended regressions.
|
|
55
|
+
|
|
56
|
+
## Test Naming Convention
|
|
57
|
+
|
|
58
|
+
Follow: `MethodName_Scenario_ExpectedOutcome`
|
|
59
|
+
|
|
60
|
+
**Examples:**
|
|
61
|
+
- `CreateUser_ValidInput_ReturnsUserId`
|
|
62
|
+
- `CreateUser_EmptyEmail_ThrowsValidationError`
|
|
63
|
+
- `GetUser_NonExistentId_ReturnsNull`
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# Testing Strategy Guide
|
|
2
|
+
|
|
3
|
+
When creating implementation plans, assign a `testingStrategy` to each task. This field controls which verification techniques agents apply during implementation.
|
|
4
|
+
|
|
5
|
+
## Schema
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
testingStrategy: {
|
|
9
|
+
exampleTests: true; // Always required (literal true)
|
|
10
|
+
propertyTests: boolean; // Property-based tests required?
|
|
11
|
+
benchmarks: boolean; // Performance benchmarks required?
|
|
12
|
+
testLayer: 'acceptance' | 'integration' | 'unit'; // Required (property is a separate axis via propertyTests)
|
|
13
|
+
characterizationRequired?: boolean; // Pre-capture behavior before modifying existing code?
|
|
14
|
+
properties?: string[]; // Guidance: which properties to verify
|
|
15
|
+
performanceSLAs?: PerformanceSLA[]; // Guidance: performance targets
|
|
16
|
+
}
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Category Requirements
|
|
20
|
+
|
|
21
|
+
Assign `propertyTests: true` when the task involves any of these categories:
|
|
22
|
+
|
|
23
|
+
| Category | Example Code | Properties to Test |
|
|
24
|
+
|---|---|---|
|
|
25
|
+
| **Data transformations** | Parse/serialize, encode/decode, format/unformat | Roundtrip: `decode(encode(x)) === x` |
|
|
26
|
+
| **State machines** | Workflow HSM, circuit breaker, connection lifecycle | Transition validity: no invalid state reachable from any valid state |
|
|
27
|
+
| **Collections/ordering** | Sort, filter, deduplicate, paginate, merge | Idempotence: `sort(sort(x)) === sort(x)` |
|
|
28
|
+
| **Concurrency** | Optimistic locking, CAS, event ordering | Linearizability: concurrent operations produce valid state |
|
|
29
|
+
| **Serialization** | Event schemas, API contracts, JSON/YAML/TOML | Schema compliance: output matches declared schema for all inputs |
|
|
30
|
+
| **Mathematical operations** | Scoring, percentages, budgets, rates | Invariants: `score >= 0 && score <= 1.0`, conservation laws |
|
|
31
|
+
|
|
32
|
+
Assign `propertyTests: false` when the task is:
|
|
33
|
+
- Pure wiring (DI registration, configuration binding)
|
|
34
|
+
- UI layout or styling
|
|
35
|
+
- Simple CRUD without business logic
|
|
36
|
+
- Documentation or content-only changes
|
|
37
|
+
|
|
38
|
+
## Populating the `properties` Array
|
|
39
|
+
|
|
40
|
+
When `propertyTests: true`, provide guidance strings in the `properties` array describing which properties to verify:
|
|
41
|
+
|
|
42
|
+
```json
|
|
43
|
+
{
|
|
44
|
+
"exampleTests": true,
|
|
45
|
+
"propertyTests": true,
|
|
46
|
+
"benchmarks": false,
|
|
47
|
+
"properties": [
|
|
48
|
+
"roundtrip: decode(encode(x)) === x for all valid inputs",
|
|
49
|
+
"idempotence: format(format(x)) === format(x)"
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Benchmark Requirements
|
|
55
|
+
|
|
56
|
+
Assign `benchmarks: true` when the task involves any of these categories:
|
|
57
|
+
|
|
58
|
+
| Category | Example Code | What to Measure |
|
|
59
|
+
|---|---|---|
|
|
60
|
+
| **Event store operations** | Append, query, snapshot | Throughput (ops/sec), p99 latency |
|
|
61
|
+
| **View materialization** | Projection apply, cold-start rebuild | Events/sec, cold-start time |
|
|
62
|
+
| **Serialization hot paths** | JSON parse/stringify, schema validation | Throughput, memory allocation |
|
|
63
|
+
| **Query-heavy reads** | CQRS projections, aggregations | Query latency under load |
|
|
64
|
+
|
|
65
|
+
Assign `benchmarks: false` when the task is:
|
|
66
|
+
- Pure wiring, configuration, or DI registration
|
|
67
|
+
- Content-only changes (Markdown, documentation)
|
|
68
|
+
- Test infrastructure (test helpers, fixtures)
|
|
69
|
+
- UI components or styling
|
|
70
|
+
|
|
71
|
+
When `benchmarks: true`, populate `performanceSLAs` with targets:
|
|
72
|
+
|
|
73
|
+
```json
|
|
74
|
+
{
|
|
75
|
+
"exampleTests": true,
|
|
76
|
+
"propertyTests": false,
|
|
77
|
+
"benchmarks": true,
|
|
78
|
+
"performanceSLAs": [
|
|
79
|
+
{ "operation": "event-append", "metric": "p99_ms", "threshold": 10 }
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Test Layer Selection (Testing Trophy Distribution)
|
|
85
|
+
|
|
86
|
+
The planner MUST assign `testLayer` to each task. Follow the Testing Trophy distribution: **integration-heavy, unit-light**.
|
|
87
|
+
|
|
88
|
+
| Layer | When to assign | Default? |
|
|
89
|
+
|---|---|---|
|
|
90
|
+
| `acceptance` | First task per feature or DR-N cluster with Given/When/Then criteria. Tests feature from user perspective with real collaborators. | No — explicitly assigned |
|
|
91
|
+
| `integration` | Task tests multiple components working together. Uses real collaborators, mocks only at infrastructure boundaries. | **Yes — default layer** |
|
|
92
|
+
| `unit` | Task involves isolated complex logic (parsers, algorithms, math). Pure functions with complex edge cases. | No — only for naturally isolated code |
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
> **Note:** `propertyTests: true` can coexist with any `testLayer` value — it's an independent overlay, not a mutually exclusive layer.
|
|
96
|
+
|
|
97
|
+
**Sociable test preference:** Default to using real collaborators (sociable tests). Mock only at infrastructure boundaries — external HTTP services, databases, filesystem. If a test requires >3 mocked dependencies, the task may be at the wrong test layer.
|
|
98
|
+
|
|
99
|
+
## Characterization Testing
|
|
100
|
+
|
|
101
|
+
Assign `characterizationRequired: true` when the task modifies existing code behavior (refactoring, fixing, enhancing). The implementer captures current behavior before making changes. Not applicable for new code creation.
|
|
102
|
+
|
|
103
|
+
## Auto-Determination
|
|
104
|
+
|
|
105
|
+
The planner MUST auto-determine `propertyTests`, `benchmarks`, and `testLayer` for each task based on the category tables above. Do NOT leave these fields for the implementer to decide. Analyze each task's description and file paths to match against the categories. When uncertain, default `testLayer` to `"integration"`, `propertyTests` to `false`, and `benchmarks` to `false`.
|
|
106
|
+
|
|
107
|
+
## Reference
|
|
108
|
+
|
|
109
|
+
See [Autonomous Code Verification design](../../../docs/designs/2026-02-15-autonomous-code-verification.md#when-to-require-property-based-tests) for the full rationale and category taxonomy.
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: implementation-planning-worked-example
|
|
3
|
+
description: "Complete trace of the implementation planning skill in action, showing happy path and re-planning after gap detection."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Worked Example: Implementation Planning — Event Stream Compaction
|
|
7
|
+
|
|
8
|
+
## Context
|
|
9
|
+
|
|
10
|
+
Feature: event stream compaction for the Exarchos MCP server. Design document exists at `docs/designs/2026-02-20-stream-compaction.md`. The user runs `/exarchos:plan` (or auto-chained from `/exarchos:ideate`).
|
|
11
|
+
|
|
12
|
+
## Step 1: Analyze Design Document
|
|
13
|
+
|
|
14
|
+
Agent reads design and extracts key sections:
|
|
15
|
+
|
|
16
|
+
- **Problem Statement:** Event streams grow unbounded; view queries slow down after 1000+ events.
|
|
17
|
+
- **Chosen Approach:** Snapshot-based compaction. Periodically write a snapshot event summarizing state, then readers start from latest snapshot.
|
|
18
|
+
- **Technical Design:** `SnapshotWriter` class, `StreamReader` with snapshot-aware cursor, snapshot trigger threshold.
|
|
19
|
+
- **Integration Points:** `exarchos_view` tool, `exarchos_event` append tool.
|
|
20
|
+
- **Testing Strategy:** Unit tests for writer/reader, integration test for round-trip.
|
|
21
|
+
|
|
22
|
+
## Step 1.5: Spec Tracing
|
|
23
|
+
|
|
24
|
+
Agent runs `exarchos_orchestrate({ action: "generate_traceability" })` to pre-populate the traceability matrix, then fills in key requirements per section.
|
|
25
|
+
|
|
26
|
+
## Step 2: Decompose into Tasks
|
|
27
|
+
|
|
28
|
+
| Task | Test Name | Dependencies | Parallel |
|
|
29
|
+
|------|-----------|-------------|----------|
|
|
30
|
+
| 1 | `SnapshotEvent_Serialize_RoundTrips` | None | Yes |
|
|
31
|
+
| 2 | `SnapshotWriter_ThresholdReached_WritesSnapshot` | Task 1 | Yes |
|
|
32
|
+
| 3 | `SnapshotWriter_BelowThreshold_NoSnapshot` | Task 1 | Yes |
|
|
33
|
+
| 4 | `StreamReader_SnapshotExists_StartsFromSnapshot` | Task 1 | No (after 1) |
|
|
34
|
+
| 5 | `StreamReader_NoSnapshot_ReadsFullStream` | Task 4 | No (after 4) |
|
|
35
|
+
| 6 | `ViewTool_WithCompaction_ReturnsCorrectState` | Tasks 2, 4 | No |
|
|
36
|
+
|
|
37
|
+
**Parallel groups:** Tasks 1-3 run simultaneously. Task 4 waits for 1. Task 5 waits for 4. Task 6 is the integration task, last.
|
|
38
|
+
|
|
39
|
+
## Step 3: Plan Verification
|
|
40
|
+
|
|
41
|
+
Agent runs `exarchos_orchestrate({ action: "check_plan_coverage" })`:
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
exarchos_orchestrate({
|
|
45
|
+
action: "check_plan_coverage",
|
|
46
|
+
featureId: "<id>",
|
|
47
|
+
designPath: "docs/designs/2026-02-20-stream-compaction.md",
|
|
48
|
+
planPath: "docs/plans/2026-02-20-stream-compaction.md"
|
|
49
|
+
})
|
|
50
|
+
→ passed: false — Uncovered section: "Snapshot trigger threshold configuration"
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Gap Detected: Re-Planning
|
|
54
|
+
|
|
55
|
+
The design specifies a configurable threshold (default 500 events). No task covers configuration parsing.
|
|
56
|
+
|
|
57
|
+
**Agent adds Task 7:**
|
|
58
|
+
|
|
59
|
+
| Task | Test Name | Dependencies | Parallel |
|
|
60
|
+
|------|-----------|-------------|----------|
|
|
61
|
+
| 7 | `CompactionConfig_CustomThreshold_OverridesDefault` | None | Yes |
|
|
62
|
+
|
|
63
|
+
Agent re-runs verification:
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
exarchos_orchestrate({ action: "check_plan_coverage", ... })
|
|
67
|
+
→ passed: true — All design sections covered
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Agent runs `exarchos_orchestrate({ action: "spec_coverage_check", planFile: "docs/plans/2026-02-20-stream-compaction.md", repoRoot: "." })` -- passed: true (no pre-existing tests expected at planning time).
|
|
71
|
+
|
|
72
|
+
## Output
|
|
73
|
+
|
|
74
|
+
Plan saved to `docs/plans/2026-02-20-stream-compaction.md`. State updated: `artifacts.plan` set, `tasks` array populated with 7 tasks, phase transitions to `plan-review`.
|
|
75
|
+
|
|
76
|
+
**Agent:** "Plan complete. Auto-continuing to plan-review for gap analysis..."
|