@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,294 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: spec-review
|
|
3
|
+
description: "Stage 1 spec compliance review. Triggers: /review stage 1. Verifies implementation matches design specification — functional completeness, TDD compliance, and test coverage. Do NOT use for code quality checks — use quality-review instead. Do NOT use for debugging."
|
|
4
|
+
metadata:
|
|
5
|
+
author: exarchos
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
mcp-server: exarchos
|
|
8
|
+
category: workflow
|
|
9
|
+
phase-affinity: review
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Spec Review Skill
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
Stage 1 of two-stage review: Verify implementation matches specification and follows TDD.
|
|
17
|
+
|
|
18
|
+
For a complete worked example, see `references/worked-example.md`.
|
|
19
|
+
|
|
20
|
+
> **MANDATORY:** Before accepting any rationalization for approving without full verification, consult `references/rationalization-refutation.md`. Every common excuse is catalogued with a counter-argument and the correct action.
|
|
21
|
+
|
|
22
|
+
## Triggers
|
|
23
|
+
|
|
24
|
+
Activate this skill when:
|
|
25
|
+
- User runs `/review` command (first stage)
|
|
26
|
+
- Task implementation is complete
|
|
27
|
+
- Need to verify spec compliance before quality review
|
|
28
|
+
- Subagent reports task completion
|
|
29
|
+
|
|
30
|
+
## Execution Context
|
|
31
|
+
|
|
32
|
+
This skill runs in a SUBAGENT spawned by the orchestrator, not inline.
|
|
33
|
+
|
|
34
|
+
The orchestrator provides:
|
|
35
|
+
- State file path (preferred) OR design/plan paths
|
|
36
|
+
- Diff output from `exarchos_orchestrate({ action: "review_diff" })` (context-efficient)
|
|
37
|
+
- Task ID being reviewed
|
|
38
|
+
|
|
39
|
+
The subagent:
|
|
40
|
+
- Reads state file to get artifact paths
|
|
41
|
+
- Uses diff output instead of reading full files
|
|
42
|
+
- Runs verification commands
|
|
43
|
+
- Generates report
|
|
44
|
+
- Returns verdict to orchestrator
|
|
45
|
+
|
|
46
|
+
### Data Handoff Protocol
|
|
47
|
+
|
|
48
|
+
The **orchestrator** is responsible for generating the diff before dispatching the spec-review subagent. The subagent does NOT generate its own diff.
|
|
49
|
+
|
|
50
|
+
**Orchestrator responsibilities:**
|
|
51
|
+
1. Generate diff: `exarchos_orchestrate({ action: "review_diff", worktreePath: "<worktree-path>", baseBranch: "main" })`
|
|
52
|
+
2. Pass diff content in the subagent dispatch prompt
|
|
53
|
+
3. Include state file path for artifact resolution
|
|
54
|
+
|
|
55
|
+
**Subagent responsibilities:**
|
|
56
|
+
1. Receive diff content from dispatch prompt (do NOT re-generate)
|
|
57
|
+
2. Read state file for design/plan artifact paths
|
|
58
|
+
3. Run verification commands against the working tree
|
|
59
|
+
4. Return structured JSON verdict
|
|
60
|
+
|
|
61
|
+
### Context-Efficient Input
|
|
62
|
+
|
|
63
|
+
Instead of per-worktree diffs, receive an integrated diff from the
|
|
64
|
+
integration branch (e.g., `feature/integration-branch`) against main:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
# Generate integrated diff for review
|
|
68
|
+
git diff main...integration > /tmp/combined-diff.patch
|
|
69
|
+
|
|
70
|
+
# Alternative: use review-diff script against integration branch via orchestrate
|
|
71
|
+
# exarchos_orchestrate({ action: "review_diff", worktreePath: "<worktree-path>", baseBranch: "main" })
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
This provides the complete picture of all changes across all tasks and reduces context consumption by 80-90%.
|
|
75
|
+
|
|
76
|
+
### Pre-Review Schema Discovery
|
|
77
|
+
|
|
78
|
+
Before evaluating, query the review strategy runbook to determine the appropriate evaluation approach:
|
|
79
|
+
|
|
80
|
+
- **Evaluation strategy:** `exarchos_orchestrate({ action: "runbook", id: "review-strategy" })` to determine the review approach based on diff scope, prior fix cycles, and review stage.
|
|
81
|
+
|
|
82
|
+
## Review Scope
|
|
83
|
+
|
|
84
|
+
### Review Scope: Combined Changes
|
|
85
|
+
|
|
86
|
+
After delegation completes, spec review examines:
|
|
87
|
+
- The **complete integrated diff** (main...feature/integration branch)
|
|
88
|
+
- All changes across all tasks in one view
|
|
89
|
+
- The full picture of combined functionality
|
|
90
|
+
|
|
91
|
+
This enables catching:
|
|
92
|
+
- Cross-task interface mismatches
|
|
93
|
+
- Bugs not visible in isolation
|
|
94
|
+
- Combined behavior vs specification
|
|
95
|
+
|
|
96
|
+
**Spec Review focuses on:**
|
|
97
|
+
- Functional completeness
|
|
98
|
+
- TDD compliance
|
|
99
|
+
- Specification alignment
|
|
100
|
+
- Test coverage
|
|
101
|
+
|
|
102
|
+
**Does NOT cover (that's Quality Review):**
|
|
103
|
+
- Code style
|
|
104
|
+
- SOLID principles
|
|
105
|
+
- Performance optimization
|
|
106
|
+
- Error handling elegance
|
|
107
|
+
|
|
108
|
+
## Review Checklist
|
|
109
|
+
|
|
110
|
+
For the full checklist with verification commands, tables, and report template, see `references/review-checklist.md`.
|
|
111
|
+
|
|
112
|
+
**Verification:**
|
|
113
|
+
```bash
|
|
114
|
+
npm run test:run
|
|
115
|
+
npm run test:coverage
|
|
116
|
+
npm run typecheck
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
```typescript
|
|
120
|
+
exarchos_orchestrate({
|
|
121
|
+
action: "check_tdd_compliance",
|
|
122
|
+
featureId: "<featureId>",
|
|
123
|
+
taskId: "<taskId>",
|
|
124
|
+
branch: "<branch>"
|
|
125
|
+
})
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Fix Loop
|
|
129
|
+
|
|
130
|
+
If review FAILS:
|
|
131
|
+
|
|
132
|
+
1. Create fix task with specific issues
|
|
133
|
+
2. Dispatch to implementer (same or new)
|
|
134
|
+
3. Re-review after fixes
|
|
135
|
+
4. Repeat until PASS
|
|
136
|
+
|
|
137
|
+
```typescript
|
|
138
|
+
// Return to implementer
|
|
139
|
+
Task({
|
|
140
|
+
model: "opus",
|
|
141
|
+
description: "Fix spec review issues",
|
|
142
|
+
prompt: `
|
|
143
|
+
# Fix Required: Spec Review Failed
|
|
144
|
+
|
|
145
|
+
## Issues to Fix
|
|
146
|
+
1. Missing rate limiting implementation
|
|
147
|
+
- Add rate limiter middleware
|
|
148
|
+
- Test: RateLimiter_ExceedsLimit_Returns429
|
|
149
|
+
|
|
150
|
+
2. Email validation incomplete
|
|
151
|
+
- Add MX record check
|
|
152
|
+
- Test: ValidateEmail_InvalidDomain_ReturnsError
|
|
153
|
+
|
|
154
|
+
## Success Criteria
|
|
155
|
+
- All tests pass
|
|
156
|
+
- Coverage >80%
|
|
157
|
+
- All issues resolved
|
|
158
|
+
`
|
|
159
|
+
})
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
## Required Output Format
|
|
163
|
+
|
|
164
|
+
The subagent MUST return results as structured JSON. The orchestrator parses this JSON to populate state. Any other format is an error.
|
|
165
|
+
|
|
166
|
+
```json
|
|
167
|
+
{
|
|
168
|
+
"verdict": "pass | fail | blocked",
|
|
169
|
+
"summary": "1-2 sentence summary",
|
|
170
|
+
"issues": [
|
|
171
|
+
{
|
|
172
|
+
"severity": "HIGH | MEDIUM | LOW",
|
|
173
|
+
"category": "spec | tdd | coverage",
|
|
174
|
+
"file": "path/to/file",
|
|
175
|
+
"line": 123,
|
|
176
|
+
"description": "Issue description",
|
|
177
|
+
"required_fix": "What must change"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"test_results": {
|
|
181
|
+
"passed": 0,
|
|
182
|
+
"failed": 0,
|
|
183
|
+
"coverage_percent": 0
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
## Anti-Patterns
|
|
189
|
+
|
|
190
|
+
| Don't | Do Instead |
|
|
191
|
+
|-------|------------|
|
|
192
|
+
| Skip to quality review | Complete spec review first |
|
|
193
|
+
| Accept incomplete work | Return for fixes |
|
|
194
|
+
| Review code style here | Save for quality review |
|
|
195
|
+
| Approve without tests | Require test coverage |
|
|
196
|
+
| Let scope creep pass | Flag over-engineering |
|
|
197
|
+
|
|
198
|
+
## Cross-Task Integration Issues
|
|
199
|
+
|
|
200
|
+
If an issue spans multiple tasks:
|
|
201
|
+
1. Classify as "cross-task integration"
|
|
202
|
+
2. Create fix task specifying ALL affected tasks
|
|
203
|
+
3. Dispatch fix to implementer with context from all affected tasks
|
|
204
|
+
4. Mark original tasks as blocked until cross-task fix completes
|
|
205
|
+
|
|
206
|
+
## State Management
|
|
207
|
+
|
|
208
|
+
### On Review Complete
|
|
209
|
+
|
|
210
|
+
**Pass:**
|
|
211
|
+
```
|
|
212
|
+
action: "set", featureId: "<id>", updates: {
|
|
213
|
+
"reviews": { "spec-review": { "status": "pass", "summary": "...", "issues": [] } }
|
|
214
|
+
}
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
**Fail:**
|
|
218
|
+
```
|
|
219
|
+
action: "set", featureId: "<id>", updates: {
|
|
220
|
+
"reviews": { "spec-review": { "status": "fail", "summary": "...", "issues": [{ "severity": "...", "file": "...", "description": "..." }] } }
|
|
221
|
+
}
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
> **Important:** The review value MUST be an object with a `status` field (e.g., `{ "status": "pass" }`), not a flat string (e.g., `"pass"`). The `all-reviews-passed` guard silently ignores non-object entries. Accepted statuses: `pass`, `passed`, `approved`, `fixes-applied`.
|
|
225
|
+
|
|
226
|
+
### Phase Transitions and Guards
|
|
227
|
+
|
|
228
|
+
For the full transition table, consult `@skills/workflow-state/references/phase-transitions.md`.
|
|
229
|
+
|
|
230
|
+
**Quick reference:**
|
|
231
|
+
- `review` → `synthesize` requires guard `all-reviews-passed` — all `reviews.{name}.status` must be passing
|
|
232
|
+
- `review` → `delegate` requires guard `any-review-failed` — triggers fix cycle when any review fails
|
|
233
|
+
|
|
234
|
+
### Schema Discovery
|
|
235
|
+
|
|
236
|
+
Use `exarchos_workflow({ action: "describe", actions: ["set", "init"] })` for
|
|
237
|
+
parameter schemas and `exarchos_workflow({ action: "describe", playbook: "feature" })`
|
|
238
|
+
for phase transitions, guards, and playbook guidance. Use
|
|
239
|
+
`exarchos_orchestrate({ action: "describe", actions: ["check_tdd_compliance", "check_static_analysis"] })`
|
|
240
|
+
for orchestrate action schemas.
|
|
241
|
+
|
|
242
|
+
## Transition
|
|
243
|
+
|
|
244
|
+
All transitions happen **immediately** without user confirmation:
|
|
245
|
+
|
|
246
|
+
### Pre-Chain Validation (MANDATORY)
|
|
247
|
+
|
|
248
|
+
Before invoking quality-review:
|
|
249
|
+
1. Verify `reviews["spec-review"].status === "pass"` in workflow state (all tasks passed)
|
|
250
|
+
2. If not: "Spec review did not pass, cannot proceed to quality review"
|
|
251
|
+
|
|
252
|
+
> **Guard shape:** The `all-reviews-passed` guard requires `reviews["spec-review"]` to be an object with a `status` field set to a passing value (`pass`, `passed`, `approved`, `fixes-applied`). Flat strings like `reviews: { "spec-review": "pass" }` are silently ignored and will block the `review → synthesize` transition.
|
|
253
|
+
|
|
254
|
+
### If PASS:
|
|
255
|
+
1. Record results — the reviews value MUST be an object with a `status` field, not a flat string:
|
|
256
|
+
```
|
|
257
|
+
exarchos_workflow({ action: "set", featureId: "<id>", updates: {
|
|
258
|
+
reviews: { "spec-review": { status: "pass", summary: "...", issues: [] } }
|
|
259
|
+
}})
|
|
260
|
+
```
|
|
261
|
+
2. Output: "Spec review passed. Auto-continuing to quality review..."
|
|
262
|
+
3. Orchestrator dispatches quality-review subagent immediately
|
|
263
|
+
|
|
264
|
+
> **Gate events:** Do NOT manually emit `gate.executed` events via `exarchos_event`. Gate events are automatically emitted by the `check_review_verdict` orchestrate handler. Manual emission causes duplicates.
|
|
265
|
+
|
|
266
|
+
### If FAIL:
|
|
267
|
+
1. Record results with failing status and issue details:
|
|
268
|
+
```
|
|
269
|
+
exarchos_workflow({ action: "set", featureId: "<id>", updates: {
|
|
270
|
+
reviews: { "spec-review": { status: "fail", summary: "...", issues: [{ severity: "HIGH", file: "...", description: "..." }] } }
|
|
271
|
+
}})
|
|
272
|
+
```
|
|
273
|
+
2. Output: "Spec review found [N] issues. Auto-continuing to fixes..."
|
|
274
|
+
3. Auto-invoke delegate with fix tasks:
|
|
275
|
+
```typescript
|
|
276
|
+
[Invoke the exarchos:delegate skill with args: --fixes <plan-path>]
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
This is NOT a human checkpoint - workflow continues autonomously.
|
|
280
|
+
|
|
281
|
+
## Troubleshooting
|
|
282
|
+
|
|
283
|
+
| Issue | Cause | Resolution |
|
|
284
|
+
|-------|-------|------------|
|
|
285
|
+
| Test file not found | Task didn't create expected test | Check plan for test file paths, verify worktree contents |
|
|
286
|
+
| Coverage below threshold | Implementation incomplete or tests superficial | Add missing test cases, verify assertions are meaningful |
|
|
287
|
+
| TDD compliance check fails | Implementation committed before tests | Check git log order — test commits must precede or accompany implementation |
|
|
288
|
+
| Diff too large for context | Many tasks with large changes | Generate per-worktree diffs with `exarchos_orchestrate({ action: "review_diff", worktreePath: "<task-worktree>" })` to review incrementally |
|
|
289
|
+
|
|
290
|
+
## Performance Notes
|
|
291
|
+
|
|
292
|
+
- Use the integrated diff (`exarchos_orchestrate({ action: "review_diff" })`) instead of reading full files — reduces context by 80-90%
|
|
293
|
+
- Review per-task when the combined diff exceeds 2,000 lines
|
|
294
|
+
- Run TDD compliance check (`exarchos_orchestrate({ action: "check_tdd_compliance" })`) in parallel with spec tracing
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Rationalization Refutation — Spec Review
|
|
2
|
+
|
|
3
|
+
Common rationalizations that undermine spec review rigor, with counter-arguments and correct actions.
|
|
4
|
+
|
|
5
|
+
| Rationalization | Counter-argument | What to do instead |
|
|
6
|
+
|-----------------|------------------|--------------------|
|
|
7
|
+
| "The implementation obviously matches the spec" | Obvious agreement is an illusion of familiarity. Reviewers who assume compliance find it — confirmation bias makes you see what you expect instead of what exists. | Independently trace each spec requirement to the implementing code. Use the compliance matrix to verify each requirement has a corresponding implementation and test. |
|
|
8
|
+
| "Tests pass so it must be correct" | Tests only verify what they test. Passing tests prove nothing about untested requirements, missing edge cases, or spec items with no corresponding test. A 100% pass rate on incomplete coverage is misleading. | Check test coverage against the spec — not just line coverage, but requirement coverage. Every spec item needs at least one test that would fail if the requirement were unmet. |
|
|
9
|
+
| "This is a minor deviation from the spec" | Minor deviations compound. Each "small" gap erodes the contract between design and implementation. What seems minor today becomes a confusing inconsistency tomorrow. | Flag the deviation explicitly with severity classification. Either update the spec to match reality (with rationale) or require the implementation to match the spec. No silent deviations. |
|
|
10
|
+
| "The spec was ambiguous anyway" | Ambiguity is not a license to guess. If the spec is ambiguous, the correct action is to resolve the ambiguity — not to implement an assumption and hope it aligns. | Escalate the ambiguity: document the interpretation in the review report, request spec clarification, and block the review until the ambiguity is resolved or explicitly accepted. |
|
|
11
|
+
| "The implementer said it's done" | Self-assessment of completeness is unreliable. Implementers have blind spots about their own work — they know what they intended, not necessarily what they built. | Verify independently. Read the code and tests yourself. Run the verification scripts. Compare against the spec line by line. The implementer's assessment is a starting point, not evidence. |
|
|
12
|
+
| "We're running behind, just approve it" | Schedule pressure produces the exact conditions where defects escape. Approving incomplete work creates more rework than the time "saved" by skipping review. | Document what's incomplete, file it as a blocking issue, and return to the implementer. A clean review now prevents a costly debugging session later. |
|
|
13
|
+
| "The edge cases are obvious and handled" | Obvious to whom? Edge cases that the implementer considered obvious are often the ones with subtle bugs. The reviewer's job is to independently verify, not to trust claims of coverage. | List the edge cases from the spec. For each one, find the test that exercises it. If no test exists, flag it as missing coverage. |
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: spec-review-checklist
|
|
3
|
+
description: "Validation script invocations and report template for spec compliance verification."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Spec Review Checklist
|
|
7
|
+
|
|
8
|
+
## Adversarial Review Posture
|
|
9
|
+
|
|
10
|
+
You are an ADVERSARIAL reviewer. Your job is to find what's wrong, not confirm what's right.
|
|
11
|
+
|
|
12
|
+
- Do NOT trust the implementer's self-assessment of completeness
|
|
13
|
+
- Do NOT assume passing tests mean the spec is satisfied
|
|
14
|
+
- Do NOT accept "it works" as evidence of correctness
|
|
15
|
+
- Independently verify each spec requirement against the actual code
|
|
16
|
+
- Treat every claim as unverified until you see the evidence yourself
|
|
17
|
+
|
|
18
|
+
Consult `references/rationalization-refutation.md` when you feel tempted to accept a rationalization for skipping verification.
|
|
19
|
+
|
|
20
|
+
## Automated Verification
|
|
21
|
+
|
|
22
|
+
Run these scripts as the authoritative checks:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
# Full test suite
|
|
26
|
+
npm run test:run
|
|
27
|
+
|
|
28
|
+
# Coverage thresholds (line >80%, branch >70%, function 100% for public APIs)
|
|
29
|
+
npm run test:coverage
|
|
30
|
+
|
|
31
|
+
# Type safety
|
|
32
|
+
npm run typecheck
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
```typescript
|
|
36
|
+
// TDD compliance (test-first ordering, naming conventions, coverage)
|
|
37
|
+
exarchos_orchestrate({
|
|
38
|
+
action: "check_tdd_compliance",
|
|
39
|
+
featureId: "<featureId>",
|
|
40
|
+
taskId: "<taskId>",
|
|
41
|
+
branch: "<branch>"
|
|
42
|
+
})
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Manual Checks
|
|
46
|
+
|
|
47
|
+
After scripts pass, verify:
|
|
48
|
+
- All spec requirements implemented (compare to design/plan)
|
|
49
|
+
- No over-engineering beyond spec
|
|
50
|
+
- No missing edge cases
|
|
51
|
+
|
|
52
|
+
## Report Template
|
|
53
|
+
|
|
54
|
+
```markdown
|
|
55
|
+
## Spec Review Report
|
|
56
|
+
|
|
57
|
+
### Summary
|
|
58
|
+
- Status: [PASS | FAIL | NEEDS_FIXES]
|
|
59
|
+
- Tested: [timestamp]
|
|
60
|
+
|
|
61
|
+
### Compliance Matrix
|
|
62
|
+
| Requirement | Implemented | Test Exists | Notes |
|
|
63
|
+
|-------------|-------------|-------------|-------|
|
|
64
|
+
|
|
65
|
+
### Issues Found
|
|
66
|
+
1. [Issue] — File: `path` — Fix: [required change]
|
|
67
|
+
|
|
68
|
+
### Verdict
|
|
69
|
+
[PASS] Ready for quality review
|
|
70
|
+
[FAIL] Return to implementer with fix list
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Completion Criteria
|
|
74
|
+
|
|
75
|
+
- [ ] `check_tdd_compliance` orchestrate action passes
|
|
76
|
+
- [ ] All tests pass
|
|
77
|
+
- [ ] Coverage meets thresholds
|
|
78
|
+
- [ ] All spec requirements verified
|
|
79
|
+
- [ ] State file updated with review results
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: spec-review-worked-example
|
|
3
|
+
description: "Complete trace of the spec review skill in action, showing happy path and false-positive correction."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Worked Example: Spec Review — Workflow Transition Validation
|
|
7
|
+
|
|
8
|
+
## Context
|
|
9
|
+
|
|
10
|
+
Feature: HSM phase transition guards for the Exarchos MCP server. The orchestrator dispatches a spec-review subagent after all tasks complete. The subagent receives the integrated diff and the state file path.
|
|
11
|
+
|
|
12
|
+
## Inputs Received
|
|
13
|
+
|
|
14
|
+
- **Diff:** `git diff main...feature/hsm-guards` (420 lines)
|
|
15
|
+
- **State file:** Contains design path, plan path, and 4 completed tasks
|
|
16
|
+
- **Task ID:** Combined review (all tasks)
|
|
17
|
+
|
|
18
|
+
## Step 1: Read Spec Artifacts
|
|
19
|
+
|
|
20
|
+
Subagent reads design (`docs/designs/2026-02-15-hsm-guards.md`) and plan (`docs/plans/2026-02-16-hsm-guards.md`) from state. Design specifies 5 guard conditions; plan decomposes into 4 tasks with 12 TDD test cases.
|
|
21
|
+
|
|
22
|
+
## Step 2: Run Verification Commands
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
npm run test:run — 47 passed, 0 failed
|
|
26
|
+
npm run test:coverage — 89% line, 82% branch
|
|
27
|
+
npm run typecheck — clean
|
|
28
|
+
exarchos_orchestrate({ action: "check_tdd_compliance" }) — passed: true
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
All automated checks pass.
|
|
32
|
+
|
|
33
|
+
## Step 3: Trace Spec to Implementation
|
|
34
|
+
|
|
35
|
+
Subagent maps each design requirement to diff hunks:
|
|
36
|
+
|
|
37
|
+
| Requirement | Found in Diff | Test Exists |
|
|
38
|
+
|-------------|--------------|-------------|
|
|
39
|
+
| Guard: `planReviewComplete` | Yes — `guards.ts:34` | Yes |
|
|
40
|
+
| Guard: `allTasksComplete` | Yes — `guards.ts:52` | Yes |
|
|
41
|
+
| Guard: `allReviewsPassed` | Yes — `guards.ts:68` | Yes |
|
|
42
|
+
| Guard: `docsUpdated` | Yes — `guards.ts:81` | Yes |
|
|
43
|
+
| Error message on guard failure | **NOT FOUND** | No |
|
|
44
|
+
|
|
45
|
+
## Gap Found
|
|
46
|
+
|
|
47
|
+
Design specifies: "Guards must return descriptive error messages on failure." The implementation returns `false` without messages. This is a real spec gap.
|
|
48
|
+
|
|
49
|
+
## False-Positive Correction
|
|
50
|
+
|
|
51
|
+
Subagent initially flags "Missing rate-limit guard" as a spec gap. On re-reading the design, rate limiting is listed under "Future Work," not current scope. Subagent removes this from findings.
|
|
52
|
+
|
|
53
|
+
**Agent reasoning:** "Rate limiting appears in the design's Future Work section (not Technical Design). Flagging it would be scope creep. Removing from issues list."
|
|
54
|
+
|
|
55
|
+
## Verdict
|
|
56
|
+
|
|
57
|
+
```json
|
|
58
|
+
{
|
|
59
|
+
"verdict": "fail",
|
|
60
|
+
"summary": "4 of 5 spec requirements met. Missing guard failure error messages.",
|
|
61
|
+
"issues": [{
|
|
62
|
+
"severity": "HIGH",
|
|
63
|
+
"category": "spec",
|
|
64
|
+
"file": "src/guards.ts",
|
|
65
|
+
"description": "Guards return boolean without error messages",
|
|
66
|
+
"required_fix": "Return { allowed: boolean, reason: string } per design spec"
|
|
67
|
+
}],
|
|
68
|
+
"test_results": { "passed": 47, "failed": 0, "coverage_percent": 89 }
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
State updated with `reviews["spec-review"].status = "fail"`. Orchestrator dispatches fix task automatically.
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: synthesis
|
|
3
|
+
description: "Create pull request from completed feature branch using GitHub-native stacked PRs. Use when the user says 'create PR', 'submit for review', 'synthesize', or runs /synthesize. Validates branch readiness, creates PR with structured description, and manages merge queue. Do NOT use before review phase completes. Not for draft PRs."
|
|
4
|
+
metadata:
|
|
5
|
+
author: exarchos
|
|
6
|
+
version: 2.0.0
|
|
7
|
+
mcp-server: exarchos
|
|
8
|
+
category: workflow
|
|
9
|
+
phase-affinity: synthesize
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Synthesis Skill
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
Submit stacked PRs after review phase completes. The `prepare_synthesis` composite action consolidates readiness checks, stack verification, test validation, and quality signal analysis into a single call -- eliminating the multi-script coordination that historically caused synthesis failures.
|
|
17
|
+
|
|
18
|
+
**Prerequisites:**
|
|
19
|
+
- All delegated tasks complete with reviews passed (spec + quality)
|
|
20
|
+
- The integration branch already exists from delegation phase
|
|
21
|
+
- Task branches present and pushed to remote
|
|
22
|
+
|
|
23
|
+
Do NOT proceed if either review is incomplete or failed -- return to `/review` first.
|
|
24
|
+
|
|
25
|
+
**Entry points:** Synthesis is normally reached from the `review` phase of
|
|
26
|
+
feature / debug / refactor workflows. It is also reachable from `oneshot`
|
|
27
|
+
workflows via the opt-in path — when a user signals "let's open a PR for
|
|
28
|
+
this" during `plan` or `implementing`, the `request_synthesize` event is
|
|
29
|
+
appended, and `finalize_oneshot` then resolves the choice state and
|
|
30
|
+
transitions the workflow to `synthesize`. See
|
|
31
|
+
`@skills/oneshot-workflow/SKILL.md` for the opt-in mechanics and
|
|
32
|
+
`synthesisPolicy` semantics.
|
|
33
|
+
|
|
34
|
+
## Triggers
|
|
35
|
+
|
|
36
|
+
Activate this skill when:
|
|
37
|
+
- User runs `/synthesize` command
|
|
38
|
+
- All reviews have passed successfully
|
|
39
|
+
- Ready to submit PRs
|
|
40
|
+
- Oneshot workflow resolved to `synthesize` via `finalize_oneshot`
|
|
41
|
+
|
|
42
|
+
## Process
|
|
43
|
+
|
|
44
|
+
> **Runbook:** Follow the synthesis-flow runbook:
|
|
45
|
+
> `exarchos_orchestrate({ action: "runbook", id: "synthesis-flow" })`
|
|
46
|
+
> If runbook unavailable, use `describe` to retrieve action schemas: `exarchos_orchestrate({ action: "describe", actions: ["prepare_synthesis"] })`
|
|
47
|
+
|
|
48
|
+
### Step 1: Verify Readiness
|
|
49
|
+
|
|
50
|
+
Call the `prepare_synthesis` composite action to validate all preconditions in a single operation:
|
|
51
|
+
|
|
52
|
+
```typescript
|
|
53
|
+
mcp__exarchos__exarchos_orchestrate({
|
|
54
|
+
action: "prepare_synthesis",
|
|
55
|
+
featureId: "<id>"
|
|
56
|
+
})
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
This action performs:
|
|
60
|
+
- **Phase readiness** -- Confirms workflow is in the correct phase with all reviews complete
|
|
61
|
+
- **Stack integrity** -- Detects diverged branches, missing task branches, or broken parent chains and reconstructs automatically
|
|
62
|
+
- **Test verification** -- Runs `npm run test:run && npm run typecheck` from the stack top
|
|
63
|
+
- **Benchmark regression** -- If `state.verification.hasBenchmarks` is true, checks for performance regressions
|
|
64
|
+
- **Quality signals** -- Queries `code_quality` view for regressions and actionable hints
|
|
65
|
+
- **Gate events** -- Auto-emits `gate.executed` events for each check (tests, benchmarks, CodeRabbit)
|
|
66
|
+
|
|
67
|
+
For the full breakdown of individual checks the composite action performs, see `references/synthesis-steps.md`.
|
|
68
|
+
|
|
69
|
+
**On success:** All checks passed. The response includes a readiness summary with any quality hints to present to the user. Proceed to Step 2.
|
|
70
|
+
|
|
71
|
+
**On failure:** The response identifies which check failed and provides remediation guidance. Follow the guidance -- typically returning to `/review` or `/delegate`.
|
|
72
|
+
|
|
73
|
+
If any quality hint has `confidenceLevel: 'actionable'`, present the `suggestedAction` to the user before proceeding.
|
|
74
|
+
|
|
75
|
+
### Step 2: Write and Validate PR Descriptions
|
|
76
|
+
|
|
77
|
+
For each PR in the stack, write a structured description following `references/pr-descriptions.md`. Required sections: **Summary**, **Changes**, **Test Plan**, plus a footer. Projects can override required sections via `.exarchos/pr-template.md`.
|
|
78
|
+
|
|
79
|
+
**Title format:** `<type>: <what>` (max 72 chars)
|
|
80
|
+
|
|
81
|
+
Write the PR body to a temp file:
|
|
82
|
+
```bash
|
|
83
|
+
cat > /tmp/pr-body.md <<'EOF'
|
|
84
|
+
## Summary
|
|
85
|
+
[2-3 sentences: what changed, why it matters]
|
|
86
|
+
|
|
87
|
+
## Changes
|
|
88
|
+
- **Component** -- Description of change
|
|
89
|
+
|
|
90
|
+
## Test Plan
|
|
91
|
+
[Testing approach and coverage]
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
**Results:** Tests X pass · Build 0 errors
|
|
95
|
+
**Design:** [doc](path)
|
|
96
|
+
**Related:** #issue
|
|
97
|
+
EOF
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Validate **before** creating the PR:
|
|
101
|
+
```typescript
|
|
102
|
+
mcp__exarchos__exarchos_orchestrate({
|
|
103
|
+
action: "validate_pr_body",
|
|
104
|
+
bodyFile: "/tmp/pr-body.md"
|
|
105
|
+
})
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**Do NOT call `gh pr create` until validation passes.** If validation fails, fix the body and re-validate.
|
|
109
|
+
|
|
110
|
+
### Step 3: Submit and Merge
|
|
111
|
+
|
|
112
|
+
Create PRs using the validated body and enable auto-merge:
|
|
113
|
+
```bash
|
|
114
|
+
# For each branch in the stack (bottom-up):
|
|
115
|
+
gh pr create --base <parent-branch> --head <branch> --title "<type>: <what>" --body-file /tmp/pr-body.md
|
|
116
|
+
gh pr merge <number> --auto --squash
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
After submission:
|
|
120
|
+
1. **Apply benchmark label** -- If `verification.hasBenchmarks` is true, apply label: `gh pr edit <number> --add-label has-benchmarks`
|
|
121
|
+
2. **Record PR URLs** -- Capture URLs from `gh pr list --json number,url,headRefName`
|
|
122
|
+
3. **Update state:**
|
|
123
|
+
|
|
124
|
+
```typescript
|
|
125
|
+
mcp__exarchos__exarchos_workflow({
|
|
126
|
+
action: "set", featureId: "<id>", updates: {
|
|
127
|
+
"artifacts": { "pr": ["<url1>", "<url2>"] },
|
|
128
|
+
"synthesis": { "mergeOrder": ["<branch1>", ...], "prUrl": ["<url1>", ...], "prFeedback": [] }
|
|
129
|
+
}
|
|
130
|
+
})
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
For merge ordering strategy, see `references/merge-ordering.md`.
|
|
134
|
+
|
|
135
|
+
**Human checkpoint:** Output "Stacked PRs enqueued: [URLs]. Waiting for CI/merge queue." then **PAUSE for user input**: "Merge stack? (yes/no/feedback)"
|
|
136
|
+
|
|
137
|
+
- **'yes'** -- PRs merge; transition to completed via `/cleanup`
|
|
138
|
+
- **'feedback'** -- Route to `/delegate --pr-fixes [PR_URL]` to address comments, then return here
|
|
139
|
+
- **'no'** -- Pause workflow; resume later with `/rehydrate`
|
|
140
|
+
|
|
141
|
+
### Event Emissions (REQUIRED)
|
|
142
|
+
|
|
143
|
+
After PRs are created and auto-merge is enabled, emit the `stack.submitted` event:
|
|
144
|
+
|
|
145
|
+
```typescript
|
|
146
|
+
mcp__exarchos__exarchos_event({ action: "append", stream: "<featureId>", event: {
|
|
147
|
+
type: "stack.submitted",
|
|
148
|
+
data: {
|
|
149
|
+
branches: ["task-001-branch", "task-002-branch"],
|
|
150
|
+
prNumbers: [101, 102]
|
|
151
|
+
}
|
|
152
|
+
}})
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
During shepherd iterations (CI monitoring loop), emit after each assessment:
|
|
156
|
+
|
|
157
|
+
```typescript
|
|
158
|
+
mcp__exarchos__exarchos_event({ action: "append", stream: "<featureId>", event: {
|
|
159
|
+
type: "shepherd.iteration",
|
|
160
|
+
data: {
|
|
161
|
+
iteration: 1,
|
|
162
|
+
prsAssessed: 2,
|
|
163
|
+
fixesApplied: 0,
|
|
164
|
+
status: "all-green"
|
|
165
|
+
}
|
|
166
|
+
}})
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
These events are checked by `check-event-emissions` during workflow validation. Missing emissions will trigger warnings.
|
|
170
|
+
|
|
171
|
+
### Post-Merge Cleanup
|
|
172
|
+
|
|
173
|
+
After PRs merge, invoke cleanup:
|
|
174
|
+
```typescript
|
|
175
|
+
mcp__exarchos__exarchos_workflow({
|
|
176
|
+
action: "cleanup", featureId: "<id>", mergeVerified: true,
|
|
177
|
+
prUrl: ["<url>", ...], mergedBranches: ["<branch>", ...]
|
|
178
|
+
})
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
Then sync: `git fetch --prune` and remove worktrees.
|
|
182
|
+
|
|
183
|
+
## Anti-Patterns
|
|
184
|
+
|
|
185
|
+
| Don't | Do Instead |
|
|
186
|
+
|-------|------------|
|
|
187
|
+
| Skip review phase | Always run `/review` first |
|
|
188
|
+
| Force push stack branches | Use normal push |
|
|
189
|
+
| Delete worktrees before merge | Wait for merge confirmation |
|
|
190
|
+
| Create PR with failing tests | Ensure review phase passes first |
|
|
191
|
+
| Run readiness scripts manually | Use `prepare_synthesis` composite action |
|
|
192
|
+
|
|
193
|
+
## Handling Failures
|
|
194
|
+
|
|
195
|
+
See `references/troubleshooting.md` for test failures, PR check failures, merge queue rejections, and MCP tool errors.
|
|
196
|
+
|
|
197
|
+
## Phase Transitions and Guards
|
|
198
|
+
|
|
199
|
+
For the full transition table, consult `@skills/workflow-state/references/phase-transitions.md`.
|
|
200
|
+
|
|
201
|
+
**Quick reference:** The `synthesize` → `completed` transition requires guard `pr-url-exists` — set `synthesis.prUrl` or `artifacts.pr` in the same `set` call as `phase`.
|
|
202
|
+
|
|
203
|
+
### Schema Discovery
|
|
204
|
+
|
|
205
|
+
Use `exarchos_workflow({ action: "describe", actions: ["set", "init"] })` for
|
|
206
|
+
parameter schemas and `exarchos_workflow({ action: "describe", playbook: "feature" })`
|
|
207
|
+
for phase transitions, guards, and playbook guidance. Use
|
|
208
|
+
`exarchos_orchestrate({ action: "describe", actions: ["prepare_synthesis"] })`
|
|
209
|
+
for orchestrate action schemas.
|
|
210
|
+
|
|
211
|
+
## Completion Criteria
|
|
212
|
+
|
|
213
|
+
- [ ] `prepare_synthesis` readiness check passed
|
|
214
|
+
- [ ] PR descriptions written per `references/pr-descriptions.md`
|
|
215
|
+
- [ ] PRs created and auto-merge enabled
|
|
216
|
+
- [ ] PR links provided to user
|
|
217
|
+
- [ ] State updated with PR URLs and merge order
|