@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,135 @@
|
|
|
1
|
+
# Axiom Plugin Integration
|
|
2
|
+
|
|
3
|
+
How the exarchos quality review integrates general backend quality checks — through MCP-served check catalogs (platform-agnostic) and optional companion plugins (platform-dependent). Axiom and impeccable are optional skill libraries that enhance depth when available.
|
|
4
|
+
|
|
5
|
+
## Architecture
|
|
6
|
+
|
|
7
|
+
Quality checks are layered across three tiers, each progressively more platform-dependent:
|
|
8
|
+
|
|
9
|
+
- **Tier 1** (MCP gates): Automated checks via `exarchos_orchestrate` actions. Platform-agnostic.
|
|
10
|
+
- **Tier 2** (MCP-served catalog): `prepare_review` returns structured check patterns that any LLM agent executes. Platform-agnostic.
|
|
11
|
+
- **Tier 3** (Companion skills): `axiom:audit` and `impeccable:critique` provide deeper qualitative analysis. Platform-dependent (Claude Code, Cursor).
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
Any MCP client (Claude Code, Cursor, generic)
|
|
15
|
+
│
|
|
16
|
+
├── Tier 1: MCP Gates (always, automated)
|
|
17
|
+
│ ├── check_static_analysis (D2 gate)
|
|
18
|
+
│ ├── check_security_scan (D1 gate)
|
|
19
|
+
│ ├── check_context_economy (D3 gate — advisory)
|
|
20
|
+
│ ├── check_workflow_determinism (D5 gate — advisory)
|
|
21
|
+
│ └── Test Desiderata evaluation
|
|
22
|
+
│
|
|
23
|
+
├── Tier 2: MCP-Served Check Catalog (always, agent-executed)
|
|
24
|
+
│ ├── prepare_review → returns catalog as structured data
|
|
25
|
+
│ │ ├── Grep patterns (error handling, type safety, test quality, ...)
|
|
26
|
+
│ │ ├── Structural checks (nesting depth, function length, ...)
|
|
27
|
+
│ │ └── Heuristic instructions (LLM-guided checks)
|
|
28
|
+
│ ├── Agent executes checks against codebase
|
|
29
|
+
│ └── Findings fed as pluginFindings to check_review_verdict
|
|
30
|
+
│
|
|
31
|
+
├── Tier 3: Companion Plugin Skills (platform-dependent, optional)
|
|
32
|
+
│ ├── axiom:audit — deeper qualitative backend analysis (7 dimensions)
|
|
33
|
+
│ ├── impeccable:critique — design quality analysis
|
|
34
|
+
│ └── Findings fed as additional pluginFindings to verdict
|
|
35
|
+
│
|
|
36
|
+
└── Verdict: check_review_verdict merges ALL findings → APPROVED | NEEDS_FIXES
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Dimension Ownership Split
|
|
40
|
+
|
|
41
|
+
The quality review draws from three independent sources. Each source owns distinct quality dimensions with no overlap:
|
|
42
|
+
|
|
43
|
+
| Concern | Owner | Rationale |
|
|
44
|
+
|---------|-------|-----------|
|
|
45
|
+
| DIM-1: Topology | Axiom plugin (optional) | General backend quality |
|
|
46
|
+
| DIM-2: Observability | Axiom plugin (optional) | General backend quality |
|
|
47
|
+
| DIM-3: Contracts | Axiom plugin (optional) | General backend quality |
|
|
48
|
+
| DIM-4: Test Fidelity | Axiom plugin (optional) | General backend quality |
|
|
49
|
+
| DIM-5: Hygiene | Axiom plugin (optional) | General backend quality |
|
|
50
|
+
| DIM-6: Architecture | Axiom plugin (optional) | General backend quality |
|
|
51
|
+
| DIM-7: Resilience | Axiom plugin (optional) | General backend quality |
|
|
52
|
+
| D1: Spec Fidelity & TDD | Exarchos (always runs) | Requires workflow state (design, plan, implementation traceability) |
|
|
53
|
+
| D2-domain: Event Sourcing / CQRS / HSM / Saga | Exarchos (always runs) | Domain-specific to event-sourced systems |
|
|
54
|
+
| D3: Context Economy | Exarchos (always runs) | Specific to AI-agent skill systems |
|
|
55
|
+
| D5: Workflow Determinism | Exarchos (always runs) | Specific to workflow orchestration |
|
|
56
|
+
| Design Quality (UI, accessibility, design system, responsive) | Impeccable plugin (optional) | Design-specific concerns |
|
|
57
|
+
|
|
58
|
+
**Key distinction:** Axiom's DIM-1 through DIM-7 are general backend quality dimensions. Exarchos's D1-D5 are workflow-specific dimensions that require access to workflow state. These are complementary, not overlapping.
|
|
59
|
+
|
|
60
|
+
## Detection and Invocation Protocol
|
|
61
|
+
|
|
62
|
+
Plugin detection and invocation is performed by the **orchestrator** (commands/review.md), not by the quality-review subagent. The subagent does not have Skill tool access and should not attempt plugin invocation.
|
|
63
|
+
|
|
64
|
+
### Step 1: Detect Plugin Availability (Orchestrator)
|
|
65
|
+
|
|
66
|
+
After the quality-review subagent returns its verdict, the orchestrator checks for companion plugins in its available skills list:
|
|
67
|
+
|
|
68
|
+
- `axiom:audit` — general backend quality (7 dimensions)
|
|
69
|
+
- `impeccable:critique` — design quality (UI, accessibility, design system, responsive)
|
|
70
|
+
|
|
71
|
+
### Step 2: Check Configuration Override (Orchestrator)
|
|
72
|
+
|
|
73
|
+
Read the project's `.exarchos.yml` for explicit plugin toggles:
|
|
74
|
+
|
|
75
|
+
```yaml
|
|
76
|
+
# .exarchos.yml — plugin overrides
|
|
77
|
+
plugins:
|
|
78
|
+
axiom:
|
|
79
|
+
enabled: true # default when key is absent
|
|
80
|
+
impeccable:
|
|
81
|
+
enabled: true # default when key is absent
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
A plugin is invoked only when BOTH conditions are met:
|
|
85
|
+
1. The skill is present in the available skills list (plugin is installed)
|
|
86
|
+
2. The config does not set `plugins.<name>.enabled: false`
|
|
87
|
+
|
|
88
|
+
If the `plugins` key or any sub-key is absent from `.exarchos.yml`, the default is `enabled: true`.
|
|
89
|
+
|
|
90
|
+
### Step 3: Invoke and Merge (Orchestrator)
|
|
91
|
+
|
|
92
|
+
**axiom:audit invocation:**
|
|
93
|
+
1. `Skill({ skill: "axiom:audit" })` with the diff content and list of changed files
|
|
94
|
+
2. axiom returns findings in Standard Finding Format (`severity`, `dimension`, `file`, `line`, `message`)
|
|
95
|
+
3. Map axiom findings to the unified list:
|
|
96
|
+
- `dimension` (DIM-1 through DIM-7) becomes the category prefix (e.g., `axiom:DIM-1-topology`)
|
|
97
|
+
- `severity` maps directly (HIGH, MEDIUM, LOW)
|
|
98
|
+
- axiom HIGH findings are treated identically to exarchos-native HIGH findings
|
|
99
|
+
|
|
100
|
+
**impeccable:critique invocation:**
|
|
101
|
+
1. `Skill({ skill: "impeccable:critique" })` with the diff content
|
|
102
|
+
2. impeccable returns design quality findings (`severity`, `category`, `file`, `line`, `message`)
|
|
103
|
+
3. Map all impeccable findings under the `design-quality` category
|
|
104
|
+
|
|
105
|
+
**Merge:** Append all plugin findings to the subagent's findings list. The merged list informs verdict escalation.
|
|
106
|
+
|
|
107
|
+
### Step 4: Verdict Escalation (Orchestrator)
|
|
108
|
+
|
|
109
|
+
Compare plugin findings against the subagent's verdict:
|
|
110
|
+
|
|
111
|
+
- If the subagent returned **APPROVED** but plugins found HIGH-severity issues → escalate to **NEEDS_FIXES**
|
|
112
|
+
- If the subagent returned **NEEDS_FIXES** → preserve (plugins may add more findings but verdict is already failing)
|
|
113
|
+
- If no plugins ran → preserve subagent verdict as-is
|
|
114
|
+
|
|
115
|
+
## Graceful Degradation
|
|
116
|
+
|
|
117
|
+
When a plugin is not installed or is disabled, the orchestrator skips it and the review proceeds with exarchos-native checks only. The orchestrator logs a "Plugin Coverage" note in the review output:
|
|
118
|
+
|
|
119
|
+
- **Not installed:** Suggests the install command (`claude plugin install axiom@lvlup-sw` or `claude plugin marketplace add pbakaus/impeccable && claude plugin install impeccable@impeccable`)
|
|
120
|
+
- **Disabled via config:** Notes the config key to re-enable
|
|
121
|
+
- **Active:** Reports the number of dimensions checked and findings produced
|
|
122
|
+
|
|
123
|
+
The subagent's verdict is unaffected by plugin absence — it operates on exarchos-native findings. Plugins can only escalate (APPROVED → NEEDS_FIXES), never downgrade.
|
|
124
|
+
|
|
125
|
+
## Verdict Mapping
|
|
126
|
+
|
|
127
|
+
The verdict uses the merged findings from all sources. The logic is the same regardless of which plugins contributed:
|
|
128
|
+
|
|
129
|
+
| Merged Findings | Verdict |
|
|
130
|
+
|----------------|---------|
|
|
131
|
+
| No HIGH findings, acceptable MEDIUM/LOW | APPROVED |
|
|
132
|
+
| Any HIGH findings in blocking dimensions | NEEDS_FIXES |
|
|
133
|
+
| Critical architectural or security issues | BLOCKED |
|
|
134
|
+
|
|
135
|
+
axiom HIGH findings and exarchos-native HIGH findings carry equal weight — both trigger NEEDS_FIXES when present in blocking dimensions.
|
|
@@ -91,6 +91,16 @@ Activate this skill when:
|
|
|
91
91
|
| Documentation | Mandatory update phase | Mandatory update phase |
|
|
92
92
|
| Human Checkpoints | 0 | 1 (merge) |
|
|
93
93
|
|
|
94
|
+
## Characterization Testing (Both Tracks)
|
|
95
|
+
|
|
96
|
+
Before modifying any existing code behavior, capture current behavior as characterization tests. This is a mandatory pre-step for both tracks:
|
|
97
|
+
|
|
98
|
+
1. **Before changes:** Write tests that document what the code **currently does** (not what it should do). Exercise the code through the most appropriate observable seam (API, CLI, integration boundary, or function) with representative inputs and assert on actual outputs/effects.
|
|
99
|
+
2. **During changes:** Any characterization test failure means behavior changed. Evaluate: intentional or accidental?
|
|
100
|
+
3. **After changes:** Document which characterization test failures were expected. Remaining characterization tests become regression tests.
|
|
101
|
+
|
|
102
|
+
This aligns with Michael Feathers' approach in *Working Effectively with Legacy Code* — understand behavior before changing it.
|
|
103
|
+
|
|
94
104
|
## Polish Track
|
|
95
105
|
|
|
96
106
|
Fast path for small, contained refactors (<=5 files, single concern). Orchestrator may write code directly (exception to orchestrator constraints). No worktree, no delegation.
|
|
@@ -114,45 +124,28 @@ Initialize refactor workflow:
|
|
|
114
124
|
action: "init", featureId: "refactor-<slug>", workflowType: "refactor"
|
|
115
125
|
```
|
|
116
126
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
"affectedAreas": ["string"],
|
|
140
|
-
"outOfScope": ["string"],
|
|
141
|
-
"successCriteria": ["string"],
|
|
142
|
-
"docsToUpdate": ["string"]
|
|
143
|
-
},
|
|
144
|
-
"artifacts": {
|
|
145
|
-
"plan": "string | null",
|
|
146
|
-
"pr": "string | null",
|
|
147
|
-
"updatedDocs": ["string"]
|
|
148
|
-
},
|
|
149
|
-
"validation": {
|
|
150
|
-
"testsPass": "boolean",
|
|
151
|
-
"goalsVerified": ["string"],
|
|
152
|
-
"docsUpdated": "boolean"
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
```
|
|
127
|
+
Use `describe` to discover the full state schema at runtime: `exarchos_workflow({ action: "describe", actions: ["init"] })`.
|
|
128
|
+
|
|
129
|
+
### Phase Transitions and Guards
|
|
130
|
+
|
|
131
|
+
> **Sequential traversal required.** Every phase MUST be traversed in order — you cannot skip phases, even if you have all the data for a later phase ready. For example, `explore` must transition to `brief` before `overhaul-plan` — attempting `explore` → `overhaul-plan` directly will be rejected by the HSM. From `brief` you must go to `polish-implement` or `overhaul-plan`, not directly to `completed`. Each transition requires its guard to be satisfied via `updates` sent alongside the `phase` parameter in a single `set` call. See `@skills/refactor/references/polish-track.md` or `@skills/refactor/references/overhaul-track.md` for the exact tool call at each step.
|
|
132
|
+
|
|
133
|
+
Every phase transition has a guard that must be satisfied. Before transitioning, consult `@skills/workflow-state/references/phase-transitions.md` for the exact prerequisite for each guard.
|
|
134
|
+
|
|
135
|
+
The pattern for every transition: send the guard prerequisite in `updates` and the target in `phase` in a single `set` call.
|
|
136
|
+
|
|
137
|
+
### Schema Discovery
|
|
138
|
+
|
|
139
|
+
Use `exarchos_workflow({ action: "describe", actions: ["set", "init"] })` for
|
|
140
|
+
parameter schemas and `exarchos_workflow({ action: "describe", playbook: "refactor" })`
|
|
141
|
+
for phase transitions, guards, and playbook guidance.
|
|
142
|
+
|
|
143
|
+
### Decision Runbooks
|
|
144
|
+
|
|
145
|
+
For track-selection criteria at the explore phase, query the decision runbook:
|
|
146
|
+
`exarchos_orchestrate({ action: "runbook", id: "scope-decision" })`
|
|
147
|
+
|
|
148
|
+
This runbook provides structured criteria for choosing between polish and overhaul tracks based on file count, structural impact, and PR scope.
|
|
156
149
|
|
|
157
150
|
## Track Switching
|
|
158
151
|
|
|
@@ -59,9 +59,8 @@ After updating documentation, run automated link verification:
|
|
|
59
59
|
|
|
60
60
|
```typescript
|
|
61
61
|
exarchos_orchestrate({
|
|
62
|
-
action: "
|
|
63
|
-
|
|
64
|
-
args: ["--docs-dir", "docs/"]
|
|
62
|
+
action: "verify_doc_links",
|
|
63
|
+
docsDir: "docs/"
|
|
65
64
|
})
|
|
66
65
|
```
|
|
67
66
|
|
|
@@ -48,15 +48,13 @@ Run the scope assessment script for a deterministic track recommendation:
|
|
|
48
48
|
|
|
49
49
|
```typescript
|
|
50
50
|
exarchos_orchestrate({
|
|
51
|
-
action: "
|
|
52
|
-
|
|
53
|
-
args: ["--files", "<file1,file2,...>"]
|
|
51
|
+
action: "assess_refactor_scope",
|
|
52
|
+
files: ["<file1>", "<file2>", "..."]
|
|
54
53
|
})
|
|
55
54
|
// or
|
|
56
55
|
exarchos_orchestrate({
|
|
57
|
-
action: "
|
|
58
|
-
|
|
59
|
-
args: ["--state-file", "<path>"]
|
|
56
|
+
action: "assess_refactor_scope",
|
|
57
|
+
stateFile: "<path>"
|
|
60
58
|
})
|
|
61
59
|
```
|
|
62
60
|
|
|
@@ -33,40 +33,21 @@ Thorough scope assessment using `@skills/refactor/references/explore-checklist.m
|
|
|
33
33
|
action: "init", featureId: "refactor-<slug>", workflowType: "refactor"
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
**Set track and scope assessment:**
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"startedAt": "<ISO8601>",
|
|
42
|
-
"scopeAssessment": {
|
|
43
|
-
"filesAffected": ["<paths>"],
|
|
44
|
-
"modulesAffected": ["<modules>"],
|
|
45
|
-
"testCoverage": "good | gaps | none",
|
|
46
|
-
"recommendedTrack": "overhaul"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}, phase: "brief"
|
|
36
|
+
**Set track and scope assessment, then transition to brief:**
|
|
37
|
+
|
|
38
|
+
Before calling `set`, query the required guard shape:
|
|
39
|
+
```
|
|
40
|
+
exarchos_workflow({ action: "describe", playbook: "refactor" })
|
|
50
41
|
```
|
|
42
|
+
Use the returned guard requirements for the `explore → brief` transition to construct your `set` call with the correct fields.
|
|
51
43
|
|
|
52
44
|
### 2. Brief Phase
|
|
53
45
|
|
|
54
46
|
Detailed capture of refactor intent (more thorough than polish).
|
|
55
47
|
|
|
56
|
-
**Save brief and advance:**
|
|
57
|
-
|
|
58
|
-
action: "
|
|
59
|
-
"brief": {
|
|
60
|
-
"problem": "<problem statement>",
|
|
61
|
-
"goals": ["<goal1>", "<goal2>"],
|
|
62
|
-
"approach": "<approach>",
|
|
63
|
-
"affectedAreas": ["<areas>"],
|
|
64
|
-
"outOfScope": ["<items>"],
|
|
65
|
-
"successCriteria": ["<criteria>"],
|
|
66
|
-
"docsToUpdate": ["<doc paths>"]
|
|
67
|
-
}
|
|
68
|
-
}, phase: "overhaul-plan"
|
|
69
|
-
```
|
|
48
|
+
**Save brief and advance to overhaul-plan:**
|
|
49
|
+
|
|
50
|
+
Call `exarchos_workflow({ action: "describe", playbook: "refactor" })` for the `brief → overhaul-plan` guard requirements, then `set` the required fields and phase.
|
|
70
51
|
|
|
71
52
|
Then auto-invoke plan:
|
|
72
53
|
```typescript
|
|
@@ -88,12 +69,8 @@ The `/exarchos:plan` skill:
|
|
|
88
69
|
- Dependency order matters more for refactors
|
|
89
70
|
|
|
90
71
|
**Save plan and advance to plan-review:**
|
|
91
|
-
|
|
92
|
-
action: "
|
|
93
|
-
"artifacts": { "plan": "<plan-file-path>" },
|
|
94
|
-
"tasks": [{ "id": "001", "title": "...", "status": "pending", "branch": "...", "blockedBy": [] }, ...]
|
|
95
|
-
}, phase: "overhaul-plan-review"
|
|
96
|
-
```
|
|
72
|
+
|
|
73
|
+
Call `exarchos_workflow({ action: "describe", playbook: "refactor" })` for the `overhaul-plan → overhaul-plan-review` guard requirements, then `set` the required fields (plan artifact, tasks array) and phase.
|
|
97
74
|
|
|
98
75
|
**Human checkpoint:** Plan-review verifies plan coverage against the brief before committing to delegation. The orchestrator compares design sections against planned tasks.
|
|
99
76
|
- Gaps found → set `.planReview.gaps`, auto-loop back to `/exarchos:plan --revise`
|
|
@@ -120,9 +97,8 @@ The `/exarchos:delegate` skill:
|
|
|
120
97
|
- Tracks progress in state file
|
|
121
98
|
|
|
122
99
|
**Advance to review:**
|
|
123
|
-
|
|
124
|
-
action: "
|
|
125
|
-
```
|
|
100
|
+
|
|
101
|
+
Call `exarchos_workflow({ action: "describe", playbook: "refactor" })` for the `overhaul-delegate → overhaul-review` guard requirements, then `set` the phase.
|
|
126
102
|
|
|
127
103
|
Then auto-invoke review:
|
|
128
104
|
```typescript
|
|
@@ -143,9 +119,8 @@ The `/exarchos:review` skill:
|
|
|
143
119
|
- Verifies structure matches brief goals
|
|
144
120
|
|
|
145
121
|
**Advance to doc updates:**
|
|
146
|
-
|
|
147
|
-
action: "
|
|
148
|
-
```
|
|
122
|
+
|
|
123
|
+
Call `exarchos_workflow({ action: "describe", playbook: "refactor" })` for the `overhaul-review → overhaul-update-docs` guard requirements, then `set` the phase.
|
|
149
124
|
|
|
150
125
|
### 6. Update Docs Phase
|
|
151
126
|
|
|
@@ -155,9 +130,8 @@ Verify all documentation links are valid:
|
|
|
155
130
|
|
|
156
131
|
```typescript
|
|
157
132
|
exarchos_orchestrate({
|
|
158
|
-
action: "
|
|
159
|
-
|
|
160
|
-
args: ["--docs-dir", "docs/"]
|
|
133
|
+
action: "verify_doc_links",
|
|
134
|
+
docsDir: "docs/"
|
|
161
135
|
})
|
|
162
136
|
```
|
|
163
137
|
|
|
@@ -170,13 +144,9 @@ For overhaul, typically includes:
|
|
|
170
144
|
- Migration guides if public interfaces changed
|
|
171
145
|
- Updated diagrams
|
|
172
146
|
|
|
173
|
-
**Mark docs updated and advance:**
|
|
174
|
-
|
|
175
|
-
action: "
|
|
176
|
-
"validation": { "docsUpdated": true },
|
|
177
|
-
"artifacts": { "updatedDocs": ["<doc paths>"] }
|
|
178
|
-
}, phase: "synthesize"
|
|
179
|
-
```
|
|
147
|
+
**Mark docs updated and advance to synthesize:**
|
|
148
|
+
|
|
149
|
+
Call `exarchos_workflow({ action: "describe", playbook: "refactor" })` for the `overhaul-update-docs → synthesize` guard requirements, then `set` the required fields (validation, artifacts) and phase.
|
|
180
150
|
|
|
181
151
|
Then auto-invoke synthesize:
|
|
182
152
|
```typescript
|
|
@@ -45,7 +45,7 @@ Must return: `"polish"`
|
|
|
45
45
|
```
|
|
46
46
|
action: "get", featureId: "refactor-<slug>", query: ".phase"
|
|
47
47
|
```
|
|
48
|
-
Must return: `"implement"`
|
|
48
|
+
Must return: `"polish-implement"`
|
|
49
49
|
|
|
50
50
|
**Check goals:**
|
|
51
51
|
```
|
|
@@ -58,7 +58,7 @@ Must return: populated array
|
|
|
58
58
|
| Field | Requirement |
|
|
59
59
|
|-------|-------------|
|
|
60
60
|
| `.track` | "polish" |
|
|
61
|
-
| `.phase` | "implement" |
|
|
61
|
+
| `.phase` | "polish-implement" |
|
|
62
62
|
| `.brief.problem` | Non-empty string |
|
|
63
63
|
| `.brief.goals` | 1-3 items |
|
|
64
64
|
| `.brief.affectedAreas` | 1-5 files |
|
|
@@ -143,7 +143,7 @@ action: "set", featureId: "refactor-<slug>", updates: {
|
|
|
143
143
|
action: "set", featureId: "refactor-<slug>", updates: {
|
|
144
144
|
"validation.testsPass": false,
|
|
145
145
|
"validation.failureReason": "<reason>"
|
|
146
|
-
}, phase: "implement"
|
|
146
|
+
}, phase: "polish-implement"
|
|
147
147
|
```
|
|
148
148
|
|
|
149
149
|
## Pass/Fail Handling
|
|
@@ -34,21 +34,13 @@ Use `@skills/refactor/references/explore-checklist.md` to assess:
|
|
|
34
34
|
action: "init", featureId: "refactor-<slug>", workflowType: "refactor"
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
**Set track and scope assessment:**
|
|
37
|
+
**Set track and scope assessment, then transition to brief:**
|
|
38
|
+
|
|
39
|
+
Before calling `set`, query the required guard shape:
|
|
38
40
|
```
|
|
39
|
-
action: "
|
|
40
|
-
"track": "polish",
|
|
41
|
-
"explore": {
|
|
42
|
-
"startedAt": "<ISO8601>",
|
|
43
|
-
"scopeAssessment": {
|
|
44
|
-
"filesAffected": ["<paths>"],
|
|
45
|
-
"modulesAffected": ["<modules>"],
|
|
46
|
-
"testCoverage": "good | gaps | none",
|
|
47
|
-
"recommendedTrack": "polish"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}, phase: "brief"
|
|
41
|
+
exarchos_workflow({ action: "describe", playbook: "refactor" })
|
|
51
42
|
```
|
|
43
|
+
Use the returned guard requirements for the `explore → brief` transition to construct your `set` call with the correct fields.
|
|
52
44
|
|
|
53
45
|
### 2. Brief Phase
|
|
54
46
|
|
|
@@ -62,20 +54,9 @@ Use `@skills/refactor/references/brief-template.md` to structure:
|
|
|
62
54
|
- Success criteria
|
|
63
55
|
- Docs to update
|
|
64
56
|
|
|
65
|
-
**Save brief and advance:**
|
|
66
|
-
|
|
67
|
-
action: "
|
|
68
|
-
"brief": {
|
|
69
|
-
"problem": "<problem statement>",
|
|
70
|
-
"goals": ["<goal1>", "<goal2>"],
|
|
71
|
-
"approach": "<approach>",
|
|
72
|
-
"affectedAreas": ["<areas>"],
|
|
73
|
-
"outOfScope": ["<items>"],
|
|
74
|
-
"successCriteria": ["<criteria>"],
|
|
75
|
-
"docsToUpdate": ["<doc paths>"]
|
|
76
|
-
}
|
|
77
|
-
}, phase: "polish-implement"
|
|
78
|
-
```
|
|
57
|
+
**Save brief and advance to polish-implement:**
|
|
58
|
+
|
|
59
|
+
Call `exarchos_workflow({ action: "describe", playbook: "refactor" })` for the `brief → polish-implement` guard requirements, then `set` the required fields (brief) and phase.
|
|
79
60
|
|
|
80
61
|
### 3. Implement Phase
|
|
81
62
|
|
|
@@ -94,9 +75,8 @@ git push -u origin refactor/<brief-name>
|
|
|
94
75
|
```
|
|
95
76
|
|
|
96
77
|
**Advance to validation:**
|
|
97
|
-
|
|
98
|
-
action: "
|
|
99
|
-
```
|
|
78
|
+
|
|
79
|
+
Call `exarchos_workflow({ action: "describe", playbook: "refactor" })` for the `polish-implement → polish-validate` guard requirements, then `set` the phase.
|
|
100
80
|
|
|
101
81
|
### 4. Validate Phase
|
|
102
82
|
|
|
@@ -104,16 +84,15 @@ Verify scope hasn't expanded beyond polish limits:
|
|
|
104
84
|
|
|
105
85
|
```typescript
|
|
106
86
|
mcp__plugin_exarchos_exarchos__exarchos_orchestrate({
|
|
107
|
-
action: "
|
|
108
|
-
|
|
109
|
-
args: ["--repo-root", "<path>"]
|
|
87
|
+
action: "check_polish_scope",
|
|
88
|
+
repoRoot: "<path>"
|
|
110
89
|
})
|
|
111
90
|
```
|
|
112
91
|
|
|
113
92
|
**On `passed: true`:** Scope OK — stay on polish track.
|
|
114
93
|
**On `passed: false`:** Scope expanded — switch to overhaul track.
|
|
115
94
|
|
|
116
|
-
Then run the refactor validation via the static analysis gate
|
|
95
|
+
Then run the refactor validation via the static analysis gate:
|
|
117
96
|
|
|
118
97
|
```typescript
|
|
119
98
|
mcp__plugin_exarchos_exarchos__exarchos_orchestrate({
|
|
@@ -126,12 +105,9 @@ mcp__plugin_exarchos_exarchos__exarchos_orchestrate({
|
|
|
126
105
|
**On `passed: true`:** All static analysis checks pass (lint, typecheck).
|
|
127
106
|
**On `passed: false`:** One or more static analysis checks failed — fix before proceeding.
|
|
128
107
|
|
|
129
|
-
**Save validation results and advance:**
|
|
130
|
-
|
|
131
|
-
action: "
|
|
132
|
-
"validation": { "testsPass": true, "goalsVerified": ["<verified goals>"] }
|
|
133
|
-
}, phase: "polish-update-docs"
|
|
134
|
-
```
|
|
108
|
+
**Save validation results and advance to polish-update-docs:**
|
|
109
|
+
|
|
110
|
+
Call `exarchos_workflow({ action: "describe", playbook: "refactor" })` for the `polish-validate → polish-update-docs` guard requirements, then `set` the required fields (validation) and phase.
|
|
135
111
|
|
|
136
112
|
### 5. Update Docs Phase
|
|
137
113
|
|
|
@@ -146,12 +122,8 @@ Use `@skills/refactor/references/doc-update-checklist.md` to update:
|
|
|
146
122
|
If `docsToUpdate` is empty, verify no docs need updating.
|
|
147
123
|
|
|
148
124
|
**Mark docs updated and complete:**
|
|
149
|
-
|
|
150
|
-
action: "
|
|
151
|
-
"validation": { "docsUpdated": true },
|
|
152
|
-
"artifacts": { "updatedDocs": ["<doc paths>"] }
|
|
153
|
-
}, phase: "completed"
|
|
154
|
-
```
|
|
125
|
+
|
|
126
|
+
Call `exarchos_workflow({ action: "describe", playbook: "refactor" })` for the `polish-update-docs → completed` guard requirements, then `set` the required fields (validation, artifacts) and phase.
|
|
155
127
|
|
|
156
128
|
> **Note:** The HSM transitions directly from `polish-update-docs` to `completed`. There is no `synthesize` phase for polish track.
|
|
157
129
|
|
|
@@ -21,6 +21,10 @@ Iterative loop that shepherds published PRs through CI checks and code reviews t
|
|
|
21
21
|
^^^^^^^^^ runs within synthesize phase
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
+
## Pipeline Hygiene
|
|
25
|
+
|
|
26
|
+
When `mcp__plugin_exarchos_exarchos__exarchos_view pipeline` accumulates stale workflows (inactive > 7 days), run `@skills/prune-workflows/SKILL.md` to bulk-cancel abandoned workflows before starting a new shepherd cycle. Safeguards skip workflows with open PRs or recent commits, so active shepherd targets are never touched. A clean pipeline makes shepherd iteration reporting easier to read and reduces noise in the stale-count view.
|
|
27
|
+
|
|
24
28
|
## Triggers
|
|
25
29
|
|
|
26
30
|
Activate when:
|
|
@@ -36,6 +40,10 @@ Activate when:
|
|
|
36
40
|
|
|
37
41
|
## Process
|
|
38
42
|
|
|
43
|
+
> **Runbook:** Each shepherd iteration follows the shepherd-iteration runbook:
|
|
44
|
+
> `exarchos_orchestrate({ action: "runbook", id: "shepherd-iteration" })`
|
|
45
|
+
> If runbook unavailable, use `describe` to retrieve action schemas: `exarchos_orchestrate({ action: "describe", actions: ["assess_stack"] })`
|
|
46
|
+
|
|
39
47
|
The shepherd loop repeats until all PRs are healthy or escalation criteria are met. Default: 5 iterations.
|
|
40
48
|
|
|
41
49
|
### Step 0 — Surface Quality Signals
|
|
@@ -183,18 +191,34 @@ mcp__plugin_exarchos_exarchos__exarchos_workflow({
|
|
|
183
191
|
|
|
184
192
|
**After each iteration:** Update `currentIteration`, record assessment summary and actions taken. On approval: set `approvalRequested: true` with timestamp and approver list.
|
|
185
193
|
|
|
194
|
+
### Phase Transitions and Guards
|
|
195
|
+
|
|
196
|
+
For the full transition table, consult `@skills/workflow-state/references/phase-transitions.md`.
|
|
197
|
+
|
|
198
|
+
The shepherd skill operates within the `synthesize` phase and does not drive phase transitions directly.
|
|
199
|
+
|
|
200
|
+
### Schema Discovery
|
|
201
|
+
|
|
202
|
+
Use `exarchos_workflow({ action: "describe", actions: ["set", "init"] })` for
|
|
203
|
+
parameter schemas and `exarchos_workflow({ action: "describe", playbook: "feature" })`
|
|
204
|
+
for phase transitions, guards, and playbook guidance. Use
|
|
205
|
+
`exarchos_event({ action: "describe", eventTypes: ["shepherd.iteration", "ci.status", "remediation.attempted"] })`
|
|
206
|
+
for event data schemas before emitting events.
|
|
207
|
+
|
|
186
208
|
## Event Emission
|
|
187
209
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
|
191
|
-
|
|
192
|
-
| `
|
|
193
|
-
| `
|
|
194
|
-
| `
|
|
195
|
-
| `
|
|
196
|
-
| `
|
|
197
|
-
| `
|
|
210
|
+
Before emitting any shepherd events, consult `references/shepherd-event-schemas.md` for full Zod schemas, type constraints, and example payloads. Use `exarchos_event({ action: "describe", eventTypes: ["shepherd.iteration", "ci.status"] })` to discover required fields at runtime.
|
|
211
|
+
|
|
212
|
+
| Event | When | Purpose |
|
|
213
|
+
|-------|------|---------|
|
|
214
|
+
| `shepherd.started` | On skill start (emitted by `assess_stack`) | Audit trail |
|
|
215
|
+
| `shepherd.iteration` | After each assess cycle | Track progress |
|
|
216
|
+
| `gate.executed` | Per CI check (emitted by `assess_stack`) | CodeQualityView -- gate pass rates |
|
|
217
|
+
| `ci.status` | Per CI check result | ShepherdStatusView -- PR health tracking |
|
|
218
|
+
| `remediation.attempted` | Before applying a fix | selfCorrectionRate metric |
|
|
219
|
+
| `remediation.succeeded` | After fix confirmed | avgRemediationAttempts metric |
|
|
220
|
+
| `shepherd.approval_requested` | On requesting review | Audit trail |
|
|
221
|
+
| `shepherd.completed` | On merge detected (emitted by `assess_stack`) | Audit trail |
|
|
198
222
|
|
|
199
223
|
## Domain Knowledge
|
|
200
224
|
|
|
@@ -202,6 +226,14 @@ Consult these references for detailed guidance:
|
|
|
202
226
|
- `references/fix-strategies.md` — Fix approaches per issue type, response templates, remediation event emission details
|
|
203
227
|
- `references/escalation-criteria.md` — When to stop iterating and escalate to the user
|
|
204
228
|
- `references/gate-event-emission.md` — Event format for `gate.executed` (now emitted by `assess_stack`)
|
|
229
|
+
- `references/shepherd-event-schemas.md` — Full Zod-aligned schemas for all four shepherd lifecycle events
|
|
230
|
+
|
|
231
|
+
### Decision Runbooks
|
|
232
|
+
|
|
233
|
+
When iteration limits are reached or CI repeatedly fails, consult the escalation runbook:
|
|
234
|
+
`exarchos_orchestrate({ action: "runbook", id: "shepherd-escalation" })`
|
|
235
|
+
|
|
236
|
+
This runbook provides structured criteria for deciding whether to keep iterating, escalate to the user, or abort the shepherd loop based on iteration count, CI stability, and review status.
|
|
205
237
|
|
|
206
238
|
## Anti-Patterns
|
|
207
239
|
|