@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,234 @@
|
|
|
1
|
+
# Update Docs Phase
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Ensure all documentation remains accurate after refactoring. This phase updates affected documentation to reflect the new code structure, APIs, and architecture.
|
|
6
|
+
|
|
7
|
+
## MANDATORY REQUIREMENT
|
|
8
|
+
|
|
9
|
+
**Documentation updates are NOT optional for refactors.**
|
|
10
|
+
|
|
11
|
+
Every refactor changes existing code structure. If documentation exists for that code, it MUST be updated. Skipping this phase results in documentation drift, which compounds over time and misleads future developers.
|
|
12
|
+
|
|
13
|
+
The `docsToUpdate` field in the brief identifies documents requiring updates. If this field is empty, the phase still runs to VERIFY no documentation needs updating.
|
|
14
|
+
|
|
15
|
+
## Entry Conditions
|
|
16
|
+
|
|
17
|
+
### Polish Track
|
|
18
|
+
|
|
19
|
+
- `validate` phase complete
|
|
20
|
+
- All tests passing
|
|
21
|
+
- Goals verified
|
|
22
|
+
|
|
23
|
+
### Overhaul Track
|
|
24
|
+
|
|
25
|
+
- `review` phase complete
|
|
26
|
+
- All quality checks passed
|
|
27
|
+
- Code merged to feature branch
|
|
28
|
+
|
|
29
|
+
## Process
|
|
30
|
+
|
|
31
|
+
### Step 1: Review Documentation List
|
|
32
|
+
|
|
33
|
+
**Read docs list:**
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
action: "get", featureId: "refactor-<slug>", query: ".brief.docsToUpdate"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
If the list is empty, proceed to Step 4 (Verification).
|
|
40
|
+
|
|
41
|
+
### Step 2: Read Each Document
|
|
42
|
+
|
|
43
|
+
For each document in the list:
|
|
44
|
+
|
|
45
|
+
1. Read the current content
|
|
46
|
+
2. Identify sections affected by the refactor
|
|
47
|
+
3. Note what needs to change
|
|
48
|
+
|
|
49
|
+
```typescript
|
|
50
|
+
Read({ file_path: "/path/to/affected-doc.md" })
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Step 3: Update Affected Sections
|
|
54
|
+
|
|
55
|
+
Update each document to reflect the new code structure:
|
|
56
|
+
|
|
57
|
+
| Change Type | Documentation Update |
|
|
58
|
+
|-------------|---------------------|
|
|
59
|
+
| Renamed file/class | Update all references |
|
|
60
|
+
| Moved location | Update paths and imports |
|
|
61
|
+
| Changed API | Update signatures and examples |
|
|
62
|
+
| New architecture | Add/update diagrams |
|
|
63
|
+
| Removed code | Remove obsolete references |
|
|
64
|
+
|
|
65
|
+
**Update Guidelines:**
|
|
66
|
+
|
|
67
|
+
- Keep updates minimal and focused
|
|
68
|
+
- Match the existing document style
|
|
69
|
+
- Update code examples if affected
|
|
70
|
+
- Verify links still work
|
|
71
|
+
|
|
72
|
+
### Step 4: Verification
|
|
73
|
+
|
|
74
|
+
Verify documentation accuracy against the new code:
|
|
75
|
+
|
|
76
|
+
| Check | How to Verify |
|
|
77
|
+
|-------|---------------|
|
|
78
|
+
| File paths | Confirm paths in docs exist |
|
|
79
|
+
| Code examples | Examples compile/run correctly |
|
|
80
|
+
| API signatures | Match actual implementation |
|
|
81
|
+
| Diagrams | Reflect current architecture |
|
|
82
|
+
| Links | All internal links resolve |
|
|
83
|
+
|
|
84
|
+
If `docsToUpdate` was empty, verify:
|
|
85
|
+
- Search for references to changed code
|
|
86
|
+
- Confirm no documentation references outdated patterns
|
|
87
|
+
- If documentation gaps found, update immediately
|
|
88
|
+
|
|
89
|
+
## Documentation Types
|
|
90
|
+
|
|
91
|
+
### Architecture Documentation
|
|
92
|
+
|
|
93
|
+
Update when:
|
|
94
|
+
- Module structure changes
|
|
95
|
+
- Dependencies change
|
|
96
|
+
- Component relationships change
|
|
97
|
+
|
|
98
|
+
Typical locations:
|
|
99
|
+
- `docs/architecture/*.md`
|
|
100
|
+
- `docs/adrs/*.md`
|
|
101
|
+
- `README.md` architecture sections
|
|
102
|
+
|
|
103
|
+
### API Documentation
|
|
104
|
+
|
|
105
|
+
Update when:
|
|
106
|
+
- Function signatures change
|
|
107
|
+
- Types/interfaces change
|
|
108
|
+
- Endpoints change
|
|
109
|
+
|
|
110
|
+
Typical locations:
|
|
111
|
+
- Inline JSDoc/TSDoc comments
|
|
112
|
+
- `docs/api/*.md`
|
|
113
|
+
- OpenAPI/Swagger specs
|
|
114
|
+
|
|
115
|
+
### README Files
|
|
116
|
+
|
|
117
|
+
Update when:
|
|
118
|
+
- Setup process changes
|
|
119
|
+
- Usage patterns change
|
|
120
|
+
- Dependencies change
|
|
121
|
+
|
|
122
|
+
Typical locations:
|
|
123
|
+
- Project root `README.md`
|
|
124
|
+
- Module-level `README.md` files
|
|
125
|
+
|
|
126
|
+
### Inline Comments
|
|
127
|
+
|
|
128
|
+
Update when:
|
|
129
|
+
- Complex logic moves
|
|
130
|
+
- Algorithms change
|
|
131
|
+
- Important context relocates
|
|
132
|
+
|
|
133
|
+
**Note:** Avoid over-commenting. Only update comments that explain WHY, not WHAT.
|
|
134
|
+
|
|
135
|
+
## State Updates
|
|
136
|
+
|
|
137
|
+
**Record docs and advance (polish track):**
|
|
138
|
+
|
|
139
|
+
```
|
|
140
|
+
action: "set", featureId: "refactor-<slug>", updates: {
|
|
141
|
+
"artifacts.updatedDocs": ["docs/architecture/modules.md"],
|
|
142
|
+
"validation.docsUpdated": true
|
|
143
|
+
}, phase: "completed"
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
**Record docs and advance (overhaul track):**
|
|
147
|
+
|
|
148
|
+
```
|
|
149
|
+
action: "set", featureId: "refactor-<slug>", updates: {
|
|
150
|
+
"artifacts.updatedDocs": ["docs/architecture/modules.md"],
|
|
151
|
+
"validation.docsUpdated": true
|
|
152
|
+
}, phase: "synthesize"
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## Exit Conditions
|
|
156
|
+
|
|
157
|
+
### Polish Track
|
|
158
|
+
|
|
159
|
+
After completing documentation updates:
|
|
160
|
+
|
|
161
|
+
1. All listed documents updated
|
|
162
|
+
2. Verification complete
|
|
163
|
+
3. State updated with `docsUpdated = true`
|
|
164
|
+
4. **CHECKPOINT: Human approval required**
|
|
165
|
+
|
|
166
|
+
Present summary to user:
|
|
167
|
+
```text
|
|
168
|
+
Documentation Update Complete
|
|
169
|
+
-----------------------------
|
|
170
|
+
Updated docs:
|
|
171
|
+
- docs/architecture/modules.md (updated paths)
|
|
172
|
+
- README.md (updated examples)
|
|
173
|
+
|
|
174
|
+
Verification: All links and examples verified
|
|
175
|
+
|
|
176
|
+
Ready to complete refactor? [Approve / Request changes]
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### Overhaul Track
|
|
180
|
+
|
|
181
|
+
After completing documentation updates:
|
|
182
|
+
|
|
183
|
+
1. All listed documents updated
|
|
184
|
+
2. Verification complete
|
|
185
|
+
3. State updated with `docsUpdated = true`
|
|
186
|
+
4. **Auto-chain to synthesize phase**
|
|
187
|
+
|
|
188
|
+
**Advance to synthesize:**
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
action: "set", featureId: "refactor-<slug>", phase: "synthesize"
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
5. Auto-invoke synthesize immediately:
|
|
195
|
+
```typescript
|
|
196
|
+
Skill({ skill: "exarchos:synthesize", args: "<feature-name>" })
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
This is NOT a human checkpoint - workflow continues autonomously.
|
|
200
|
+
|
|
201
|
+
## Common Issues
|
|
202
|
+
|
|
203
|
+
### No Documentation Exists
|
|
204
|
+
|
|
205
|
+
If refactored code has no documentation:
|
|
206
|
+
- This is acceptable for refactors
|
|
207
|
+
- Creating new documentation is a separate task
|
|
208
|
+
- Note the gap in the state for future reference
|
|
209
|
+
|
|
210
|
+
### Documentation Scope Creep
|
|
211
|
+
|
|
212
|
+
If updating one document reveals many need updates:
|
|
213
|
+
- Update only what's necessary for this refactor
|
|
214
|
+
- Note other gaps for future work
|
|
215
|
+
- Stay focused on the brief's scope
|
|
216
|
+
|
|
217
|
+
### Conflicting Documentation
|
|
218
|
+
|
|
219
|
+
If documentation conflicts with new code:
|
|
220
|
+
- Trust the code (you just validated it)
|
|
221
|
+
- Update documentation to match
|
|
222
|
+
- Add clarifying notes if needed
|
|
223
|
+
|
|
224
|
+
## Checklist
|
|
225
|
+
|
|
226
|
+
Before exiting this phase:
|
|
227
|
+
|
|
228
|
+
- [ ] Reviewed all documents in `docsToUpdate`
|
|
229
|
+
- [ ] Updated affected sections in each document
|
|
230
|
+
- [ ] Verified file paths and links
|
|
231
|
+
- [ ] Verified code examples work
|
|
232
|
+
- [ ] Updated state with `artifacts.updatedDocs` list
|
|
233
|
+
- [ ] Set `docsUpdated = true`
|
|
234
|
+
- [ ] Transitioned to next phase (completed or synthesize)
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: polish-track
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Polish Track — Detailed Phase Guide
|
|
6
|
+
|
|
7
|
+
## Purpose
|
|
8
|
+
|
|
9
|
+
Fast path for small, contained refactors. Single session, minimal ceremony. Orchestrator may write implementation code directly (exception to orchestrator constraints).
|
|
10
|
+
|
|
11
|
+
## Phases
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
explore -> brief -> polish-implement -> polish-validate -> polish-update-docs -> completed
|
|
15
|
+
| | | | |
|
|
16
|
+
| | | | +-- Update affected documentation
|
|
17
|
+
| | | +-- Run tests, verify goals met
|
|
18
|
+
| | +-- Direct implementation (no worktree)
|
|
19
|
+
| +-- Capture goals and approach in state
|
|
20
|
+
+-- Quick scope assessment, confirm polish-appropriate
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### 1. Explore Phase
|
|
24
|
+
|
|
25
|
+
Use `@skills/refactor/references/explore-checklist.md` to assess:
|
|
26
|
+
- Current code structure
|
|
27
|
+
- Files/modules affected (must be <=5 for polish)
|
|
28
|
+
- Test coverage of affected areas
|
|
29
|
+
- Documentation that needs updates
|
|
30
|
+
- Confirm polish is appropriate
|
|
31
|
+
|
|
32
|
+
**Initialize workflow:**
|
|
33
|
+
```
|
|
34
|
+
action: "init", featureId: "refactor-<slug>", workflowType: "refactor"
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
**Set track and scope assessment, then transition to brief:**
|
|
38
|
+
|
|
39
|
+
Before calling `set`, query the required guard shape:
|
|
40
|
+
```
|
|
41
|
+
exarchos_workflow({ action: "describe", playbook: "refactor" })
|
|
42
|
+
```
|
|
43
|
+
Use the returned guard requirements for the `explore → brief` transition to construct your `set` call with the correct fields.
|
|
44
|
+
|
|
45
|
+
### 2. Brief Phase
|
|
46
|
+
|
|
47
|
+
Capture refactor intent and approach in state (not separate document).
|
|
48
|
+
|
|
49
|
+
Use `@skills/refactor/references/brief-template.md` to structure:
|
|
50
|
+
- Problem statement (2-3 sentences)
|
|
51
|
+
- Specific goals (bulleted list)
|
|
52
|
+
- High-level approach
|
|
53
|
+
- Out of scope items
|
|
54
|
+
- Success criteria
|
|
55
|
+
- Docs to update
|
|
56
|
+
|
|
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.
|
|
60
|
+
|
|
61
|
+
### 3. Implement Phase
|
|
62
|
+
|
|
63
|
+
**Orchestrator may write code directly** (polish track exception).
|
|
64
|
+
|
|
65
|
+
Constraints:
|
|
66
|
+
- Follow TDD (write/update test first if behavior changes)
|
|
67
|
+
- Commit after each logical change
|
|
68
|
+
- Stop if scope expands beyond brief
|
|
69
|
+
|
|
70
|
+
When done, commit and push:
|
|
71
|
+
```bash
|
|
72
|
+
git add <files>
|
|
73
|
+
git commit -m "refactor: <description>"
|
|
74
|
+
git push -u origin refactor/<brief-name>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**Advance to validation:**
|
|
78
|
+
|
|
79
|
+
Call `exarchos_workflow({ action: "describe", playbook: "refactor" })` for the `polish-implement → polish-validate` guard requirements, then `set` the phase.
|
|
80
|
+
|
|
81
|
+
### 4. Validate Phase
|
|
82
|
+
|
|
83
|
+
Verify scope hasn't expanded beyond polish limits:
|
|
84
|
+
|
|
85
|
+
```typescript
|
|
86
|
+
mcp__plugin_exarchos_exarchos__exarchos_orchestrate({
|
|
87
|
+
action: "check_polish_scope",
|
|
88
|
+
repoRoot: "<path>"
|
|
89
|
+
})
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**On `passed: true`:** Scope OK — stay on polish track.
|
|
93
|
+
**On `passed: false`:** Scope expanded — switch to overhaul track.
|
|
94
|
+
|
|
95
|
+
Then run the refactor validation via the static analysis gate:
|
|
96
|
+
|
|
97
|
+
```typescript
|
|
98
|
+
mcp__plugin_exarchos_exarchos__exarchos_orchestrate({
|
|
99
|
+
action: "check_static_analysis",
|
|
100
|
+
featureId: "refactor-<slug>",
|
|
101
|
+
repoRoot: "<path>"
|
|
102
|
+
})
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
**On `passed: true`:** All static analysis checks pass (lint, typecheck).
|
|
106
|
+
**On `passed: false`:** One or more static analysis checks failed — fix before proceeding.
|
|
107
|
+
|
|
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.
|
|
111
|
+
|
|
112
|
+
### 5. Update Docs Phase
|
|
113
|
+
|
|
114
|
+
**Mandatory** - documentation must reflect new architecture.
|
|
115
|
+
|
|
116
|
+
Use `@skills/refactor/references/doc-update-checklist.md` to update:
|
|
117
|
+
- Architecture docs if structure changed
|
|
118
|
+
- API docs if interfaces changed
|
|
119
|
+
- README if setup/usage changed
|
|
120
|
+
- Inline comments if complex logic moved
|
|
121
|
+
|
|
122
|
+
If `docsToUpdate` is empty, verify no docs need updating.
|
|
123
|
+
|
|
124
|
+
**Mark docs updated and complete:**
|
|
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.
|
|
127
|
+
|
|
128
|
+
> **Note:** The HSM transitions directly from `polish-update-docs` to `completed`. There is no `synthesize` phase for polish track.
|
|
129
|
+
|
|
130
|
+
## Auto-Chain
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
explore -> brief -> polish-implement -> polish-validate -> polish-update-docs -> completed
|
|
134
|
+
(auto) (auto) (auto) (auto) (auto)
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
**Next actions:**
|
|
138
|
+
- `AUTO:brief` after explore
|
|
139
|
+
- `AUTO:polish-implement` after brief
|
|
140
|
+
- `AUTO:polish-validate` after polish-implement
|
|
141
|
+
- `AUTO:polish-update-docs` after polish-validate
|
|
142
|
+
- `AUTO:completed` after polish-update-docs
|
|
143
|
+
|
|
144
|
+
## Completion Criteria
|
|
145
|
+
|
|
146
|
+
- [ ] Scope assessment completed (<=5 files)
|
|
147
|
+
- [ ] Brief goals captured
|
|
148
|
+
- [ ] Implementation complete
|
|
149
|
+
- [ ] All tests pass
|
|
150
|
+
- [ ] Each goal verified
|
|
151
|
+
- [ ] Documentation updated
|
|
152
|
+
- [ ] User confirmed completion
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: shepherd
|
|
3
|
+
description: "Shepherd PRs through CI and reviews to merge readiness. Operates as an iteration loop within the synthesize phase (not a separate HSM phase). Uses assess_stack to check PR health, fix failures, and request approval. Triggers: 'shepherd', 'tend PRs', 'check CI', or /shepherd."
|
|
4
|
+
metadata:
|
|
5
|
+
author: exarchos
|
|
6
|
+
version: 2.0.0
|
|
7
|
+
mcp-server: exarchos
|
|
8
|
+
category: workflow
|
|
9
|
+
phase-affinity: synthesize
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Shepherd Skill
|
|
13
|
+
|
|
14
|
+
Iterative loop that shepherds published PRs through CI checks and code reviews to merge readiness. Uses the `assess_stack` composite action for all PR health checks, fixing failures and addressing feedback until the stack is green.
|
|
15
|
+
|
|
16
|
+
> **Note:** Shepherd is not a separate HSM phase. It operates as a loop within the `synthesize` phase. The workflow phase remains `synthesize` throughout the shepherd iteration cycle. Events (`shepherd.iteration`, `ci.status`) and the `shepherd_status` view track loop progress without requiring a phase transition.
|
|
17
|
+
|
|
18
|
+
**Position in workflow:**
|
|
19
|
+
```text
|
|
20
|
+
synthesize → shepherd (assess → fix → resubmit → loop) → cleanup
|
|
21
|
+
^^^^^^^^^ runs within synthesize phase
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Pipeline Hygiene
|
|
25
|
+
|
|
26
|
+
When `mcp__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
|
+
|
|
28
|
+
## Triggers
|
|
29
|
+
|
|
30
|
+
Activate when:
|
|
31
|
+
- User runs `shepherd` or says "shepherd", "tend PRs", "check CI"
|
|
32
|
+
- PRs are published and need monitoring through the CI/review gauntlet
|
|
33
|
+
- After `synthesize` completes and PRs are enqueued
|
|
34
|
+
|
|
35
|
+
## Prerequisites
|
|
36
|
+
|
|
37
|
+
- Active workflow with PRs published (PR URLs in `synthesis.prUrl` or `artifacts.pr`)
|
|
38
|
+
- PRs created and pushed (`gh pr create` already ran)
|
|
39
|
+
- GitHub MCP tools available (preferred) or `gh` CLI authenticated
|
|
40
|
+
|
|
41
|
+
## Process
|
|
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
|
+
|
|
47
|
+
The shepherd loop repeats until all PRs are healthy or escalation criteria are met. Default: 5 iterations.
|
|
48
|
+
|
|
49
|
+
### Step 0 — Surface Quality Signals
|
|
50
|
+
|
|
51
|
+
At the start of each iteration, query quality hints to inform the assessment:
|
|
52
|
+
```
|
|
53
|
+
mcp__exarchos__exarchos_view({ action: "code_quality", workflowId: "<featureId>" })
|
|
54
|
+
```
|
|
55
|
+
- If `regressions` is non-empty, include regression context in the status report
|
|
56
|
+
- If any hint has `confidenceLevel: 'actionable'`, surface the `suggestedAction` in the iteration summary
|
|
57
|
+
- If `gatePassRate < 0.80` for any skill, flag degrading quality trends
|
|
58
|
+
|
|
59
|
+
This step ensures the agent acts on accumulated quality intelligence before polling individual PRs.
|
|
60
|
+
|
|
61
|
+
### Step 1 — Assess
|
|
62
|
+
|
|
63
|
+
Invoke the `assess_stack` composite action to check all PR dimensions at once:
|
|
64
|
+
```
|
|
65
|
+
mcp__exarchos__exarchos_orchestrate({
|
|
66
|
+
action: "assess_stack",
|
|
67
|
+
featureId: "<id>",
|
|
68
|
+
prNumbers: [123, 124, 125]
|
|
69
|
+
})
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
The composite action internally handles:
|
|
73
|
+
- CI status checking for all PRs
|
|
74
|
+
- Formal review status (APPROVED / CHANGES_REQUESTED)
|
|
75
|
+
- Inline review comment polling and thread resolution (Sentry, CodeRabbit, humans)
|
|
76
|
+
- Stack health verification
|
|
77
|
+
- Event emission: `gate.executed` events per CI check (feeds CodeQualityView) and `ci.status` events per PR (feeds ShepherdStatusView). See `references/gate-event-emission.md` for the event format.
|
|
78
|
+
|
|
79
|
+
Review the returned `actionItems` and `recommendation`:
|
|
80
|
+
|
|
81
|
+
| Recommendation | Action |
|
|
82
|
+
|----------------|--------|
|
|
83
|
+
| `request-approval` | Skip to Step 4 |
|
|
84
|
+
| `fix-and-resubmit` | Proceed to Step 2 |
|
|
85
|
+
| `wait` | Inform user, pause, re-assess after delay |
|
|
86
|
+
| `escalate` | See `references/escalation-criteria.md` |
|
|
87
|
+
|
|
88
|
+
### Step 2 — Fix
|
|
89
|
+
|
|
90
|
+
Address each blocking action item from the assessment. Consult `references/fix-strategies.md` for detailed strategies per issue type.
|
|
91
|
+
|
|
92
|
+
**Remediation event protocol (FLYWHEEL):**
|
|
93
|
+
|
|
94
|
+
1. **BEFORE applying a fix**, emit `remediation.attempted`:
|
|
95
|
+
```typescript
|
|
96
|
+
mcp__exarchos__exarchos_event({
|
|
97
|
+
action: "append",
|
|
98
|
+
stream: "<featureId>",
|
|
99
|
+
event: {
|
|
100
|
+
type: "remediation.attempted",
|
|
101
|
+
data: { taskId: "<taskId>", skill: "shepherd", gateName: "<failing-gate>", attemptNumber: <N>, strategy: "direct-fix" }
|
|
102
|
+
}
|
|
103
|
+
})
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
2. Apply the fix (CI failure, review comment response, stack restack).
|
|
107
|
+
|
|
108
|
+
3. **AFTER the next assess confirms the fix resolved the gate**, emit `remediation.succeeded`:
|
|
109
|
+
```
|
|
110
|
+
mcp__exarchos__exarchos_event({
|
|
111
|
+
action: "append",
|
|
112
|
+
stream: "<featureId>",
|
|
113
|
+
event: {
|
|
114
|
+
type: "remediation.succeeded",
|
|
115
|
+
data: { taskId: "<taskId>", skill: "shepherd", gateName: "<gate>", totalAttempts: <N>, finalStrategy: "direct-fix" }
|
|
116
|
+
}
|
|
117
|
+
})
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
These events feed `selfCorrectionRate` and `avgRemediationAttempts` metrics in CodeQualityView.
|
|
121
|
+
|
|
122
|
+
**Action item types:**
|
|
123
|
+
|
|
124
|
+
| Type | Strategy |
|
|
125
|
+
|------|----------|
|
|
126
|
+
| `ci-fix` | Read logs, reproduce locally, fix, commit to stack branch |
|
|
127
|
+
| `comment-reply` | Read context from `actionItem.context`, compose response, post via GitHub MCP |
|
|
128
|
+
| `review-address` | Fix code for CHANGES_REQUESTED, reply to each thread |
|
|
129
|
+
| `restack` | Run `git rebase origin/<base>`, verify with `gh pr list` |
|
|
130
|
+
| `escalate` | Consult `references/escalation-criteria.md` |
|
|
131
|
+
|
|
132
|
+
Every inline review comment must get a reply. The goal is that a human scanning the PR sees every thread has a response.
|
|
133
|
+
|
|
134
|
+
### Step 3 — Resubmit
|
|
135
|
+
|
|
136
|
+
After fixes are applied, resubmit the stack:
|
|
137
|
+
```bash
|
|
138
|
+
git push --force-with-lease
|
|
139
|
+
# Re-enable auto-merge if needed:
|
|
140
|
+
gh pr merge <number> --auto --squash
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Return to Step 1 for the next iteration. Track iteration count against the limit (default 5). If the limit is reached without reaching `request-approval`, escalate per `references/escalation-criteria.md`.
|
|
144
|
+
|
|
145
|
+
### Step 4 — Request Approval
|
|
146
|
+
|
|
147
|
+
When `assess_stack` returns `recommendation: 'request-approval'` (all checks green, all comments addressed):
|
|
148
|
+
|
|
149
|
+
1. Request review via GitHub MCP:
|
|
150
|
+
```
|
|
151
|
+
mcp__plugin_github_github__update_pull_request({
|
|
152
|
+
owner: "<owner>", repo: "<repo>", pullNumber: <number>,
|
|
153
|
+
reviewers: ["<approver>"]
|
|
154
|
+
})
|
|
155
|
+
```
|
|
156
|
+
Fallback (if MCP token lacks write scope): `gh pr edit <number> --add-reviewer <approver>`
|
|
157
|
+
|
|
158
|
+
2. Report to user:
|
|
159
|
+
```markdown
|
|
160
|
+
## Ready for Approval
|
|
161
|
+
|
|
162
|
+
All CI checks pass. All review comments addressed.
|
|
163
|
+
Approval requested from: <approvers>
|
|
164
|
+
|
|
165
|
+
PRs:
|
|
166
|
+
- #123: <url>
|
|
167
|
+
- #124: <url>
|
|
168
|
+
|
|
169
|
+
Run `cleanup` after merge completes.
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
## State Management
|
|
173
|
+
|
|
174
|
+
Track shepherd progress via workflow state:
|
|
175
|
+
|
|
176
|
+
**Initialize:**
|
|
177
|
+
```
|
|
178
|
+
mcp__exarchos__exarchos_workflow({
|
|
179
|
+
action: "set",
|
|
180
|
+
featureId: "<id>",
|
|
181
|
+
updates: {
|
|
182
|
+
"shepherd": {
|
|
183
|
+
"startedAt": "<ISO8601>",
|
|
184
|
+
"currentIteration": 0,
|
|
185
|
+
"maxIterations": 5,
|
|
186
|
+
"approvalRequested": false
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
})
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
**After each iteration:** Update `currentIteration`, record assessment summary and actions taken. On approval: set `approvalRequested: true` with timestamp and approver list.
|
|
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
|
+
|
|
208
|
+
## Event Emission
|
|
209
|
+
|
|
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 |
|
|
222
|
+
|
|
223
|
+
## Domain Knowledge
|
|
224
|
+
|
|
225
|
+
Consult these references for detailed guidance:
|
|
226
|
+
- `references/fix-strategies.md` — Fix approaches per issue type, response templates, remediation event emission details
|
|
227
|
+
- `references/escalation-criteria.md` — When to stop iterating and escalate to the user
|
|
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.
|
|
237
|
+
|
|
238
|
+
## Anti-Patterns
|
|
239
|
+
|
|
240
|
+
| Don't | Do Instead |
|
|
241
|
+
|-------|------------|
|
|
242
|
+
| Poll CI/reviews directly | Use `assess_stack` composite action |
|
|
243
|
+
| Force-merge with failing CI | Fix the failures first |
|
|
244
|
+
| Ignore inline comments | Address every thread with a reply |
|
|
245
|
+
| Loop indefinitely | Respect iteration limits, escalate |
|
|
246
|
+
| Skip remediation events | Emit `remediation.attempted` / `remediation.succeeded` for every fix |
|
|
247
|
+
| Push directly to main | All fixes go through stack branches |
|
|
248
|
+
|
|
249
|
+
## Transition
|
|
250
|
+
|
|
251
|
+
After approval is granted and PRs merge, run `cleanup` to resolve the workflow to completed state.
|