@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,247 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: debug
|
|
3
|
+
description: "Bug investigation and fix workflow. Triggers: 'debug', 'fix bug', 'investigate issue', 'something is broken', or /debug. Hotfix track for quick fixes, thorough track for root cause analysis. Do NOT use for feature development or refactoring. Do NOT escalate to /ideate unless the fix requires architectural redesign."
|
|
4
|
+
metadata:
|
|
5
|
+
author: exarchos
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
mcp-server: exarchos
|
|
8
|
+
category: workflow
|
|
9
|
+
phase-affinity:
|
|
10
|
+
- triage
|
|
11
|
+
- investigate
|
|
12
|
+
- rca
|
|
13
|
+
- design
|
|
14
|
+
- debug-implement
|
|
15
|
+
- debug-validate
|
|
16
|
+
- debug-review
|
|
17
|
+
- hotfix-implement
|
|
18
|
+
- hotfix-validate
|
|
19
|
+
- synthesize
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# Debug Workflow Skill
|
|
23
|
+
|
|
24
|
+
## Overview
|
|
25
|
+
|
|
26
|
+
Investigation-first workflow for debugging and regression fixes. Provides two tracks based on urgency: hotfix (fast, minimal ceremony) and thorough (rigorous, full RCA documentation).
|
|
27
|
+
|
|
28
|
+
## Triggers
|
|
29
|
+
|
|
30
|
+
Activate this skill when:
|
|
31
|
+
- User runs `debug` command
|
|
32
|
+
- User reports a bug or regression
|
|
33
|
+
- User needs to investigate an error
|
|
34
|
+
- User says "fix this bug" or similar
|
|
35
|
+
|
|
36
|
+
**Disambiguation:** If the user says "fix" or "clean up" — use `debug` when something is *broken* (error, crash, wrong behavior). Use `refactor` when the code *works* but needs structural improvement.
|
|
37
|
+
|
|
38
|
+
## Workflow Overview
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
debug
|
|
42
|
+
│
|
|
43
|
+
┌────┴────┐
|
|
44
|
+
│ Triage │
|
|
45
|
+
└────┬────┘
|
|
46
|
+
│
|
|
47
|
+
┌─────────────────┼─────────────────┐
|
|
48
|
+
│ │ │
|
|
49
|
+
--hotfix (default) --escalate
|
|
50
|
+
│ │ │
|
|
51
|
+
▼ ▼ ▼
|
|
52
|
+
┌────────────────┐ ┌─────────────┐ ┌──────────┐
|
|
53
|
+
│ Hotfix Track │ │ Thorough │ │ ideate │
|
|
54
|
+
│ │ │ Track │ │ handoff │
|
|
55
|
+
└────────────────┘ └─────────────┘ └──────────┘
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Command Interface
|
|
59
|
+
|
|
60
|
+
### Start Debug Workflow
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# Default: thorough track
|
|
64
|
+
debug "Description of the bug"
|
|
65
|
+
|
|
66
|
+
# Fast path: hotfix track
|
|
67
|
+
debug --hotfix "Production is down - users can't login"
|
|
68
|
+
|
|
69
|
+
# Escalate to feature workflow
|
|
70
|
+
debug --escalate "This needs architectural changes"
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Mid-Workflow Commands
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
# Switch from hotfix to thorough (during investigation)
|
|
77
|
+
debug --switch-thorough
|
|
78
|
+
|
|
79
|
+
# Escalate to ideate (manual handoff)
|
|
80
|
+
debug --escalate "Reason for escalation"
|
|
81
|
+
|
|
82
|
+
# Resume after context compaction
|
|
83
|
+
rehydrate
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Track Comparison
|
|
87
|
+
|
|
88
|
+
| Aspect | Hotfix | Thorough |
|
|
89
|
+
|--------|--------|----------|
|
|
90
|
+
| Urgency | P0 (production down) | P1/P2 (normal priority) |
|
|
91
|
+
| Investigation | 15 min time-boxed | No time limit |
|
|
92
|
+
| RCA Document | No (minimal in state) | Yes (full docs/rca/) |
|
|
93
|
+
| Worktree | No (in-place fix) | Yes (isolated) |
|
|
94
|
+
| Review | Smoke test only | Spec review |
|
|
95
|
+
| Human Checkpoints | 1 (merge) | 1 (merge) |
|
|
96
|
+
|
|
97
|
+
### Decision Runbooks
|
|
98
|
+
|
|
99
|
+
For track-selection criteria at the triage phase, query the decision runbook:
|
|
100
|
+
`exarchos_orchestrate({ action: "runbook", id: "triage-decision" })`
|
|
101
|
+
|
|
102
|
+
For investigation escalation criteria, query:
|
|
103
|
+
`exarchos_orchestrate({ action: "runbook", id: "investigation-decision" })`
|
|
104
|
+
|
|
105
|
+
These runbooks encode the structured decision trees for track selection. The agent reads the decision tree and follows the guidance — the platform does not execute branches.
|
|
106
|
+
|
|
107
|
+
## Hotfix Track
|
|
108
|
+
|
|
109
|
+
Fix production issues ASAP. Speed over ceremony.
|
|
110
|
+
|
|
111
|
+
**HSM phases:** `triage` → `investigate` (15 min max) → `hotfix-implement` (no worktree) → `hotfix-validate` → `completed`
|
|
112
|
+
|
|
113
|
+
See `references/triage-questions.md` for triage guidance.
|
|
114
|
+
|
|
115
|
+
### Investigation Timer
|
|
116
|
+
|
|
117
|
+
1. On hotfix track selection: record `investigation.startedAt` in state
|
|
118
|
+
2. After each major finding: check elapsed time
|
|
119
|
+
3. At 15 min mark: emit `investigation.timeout` event, pause for user confirmation
|
|
120
|
+
- Switch to thorough track? (yes/no)
|
|
121
|
+
|
|
122
|
+
For detailed phase instructions, see `references/hotfix-track.md`.
|
|
123
|
+
|
|
124
|
+
## Thorough Track
|
|
125
|
+
|
|
126
|
+
Fix bugs with proper rigor. Full RCA documentation.
|
|
127
|
+
|
|
128
|
+
**HSM phases:** `triage` → `investigate` → `rca` → `design` → `debug-implement` (worktree + TDD) → `debug-validate` → `debug-review` → `synthesize` → `completed`
|
|
129
|
+
|
|
130
|
+
For detailed phase instructions, see `references/thorough-track.md`. For systematic investigation methodology, see `references/investigation-checklist.md`.
|
|
131
|
+
|
|
132
|
+
### Characterization Testing (Thorough Track Only)
|
|
133
|
+
|
|
134
|
+
Before fixing a bug in the thorough track, capture the buggy behavior as a characterization test:
|
|
135
|
+
|
|
136
|
+
1. **Before fix:** Write a test that documents the current (buggy) behavior — it should PASS with the bug present
|
|
137
|
+
2. **Write the fix test:** Write a test that describes the correct behavior — it should FAIL (this is the standard TDD RED phase)
|
|
138
|
+
3. **Apply the fix:** Implement the fix. The fix test should now PASS, and the characterization test should now FAIL
|
|
139
|
+
4. **Verify:** The characterization test failing confirms the bug is actually fixed. If it still passes, the fix didn't address the root cause.
|
|
140
|
+
|
|
141
|
+
This is not required for the hotfix track — hotfixes prioritize speed over documentation.
|
|
142
|
+
|
|
143
|
+
### Track Switching
|
|
144
|
+
|
|
145
|
+
- **Hotfix -> Thorough:** When investigation timer expires (15 min). All findings preserved.
|
|
146
|
+
- **Thorough -> Escalate:** When fix requires architectural changes. Hand off to `ideate`.
|
|
147
|
+
|
|
148
|
+
For detailed switching logic, see `references/thorough-track.md`.
|
|
149
|
+
|
|
150
|
+
## Auto-Chain Behavior
|
|
151
|
+
|
|
152
|
+
Both tracks have ONE human checkpoint before completion.
|
|
153
|
+
|
|
154
|
+
**Hotfix auto-chain:**
|
|
155
|
+
```
|
|
156
|
+
triage → investigate → hotfix-implement → [HUMAN: hotfix-validate] → completed
|
|
157
|
+
(auto) (auto)
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
**Thorough auto-chain:**
|
|
161
|
+
```
|
|
162
|
+
triage → investigate → rca → design → debug-implement → debug-validate → debug-review → [HUMAN: synthesize] → completed
|
|
163
|
+
(auto) (auto) (auto) (auto) (auto) (auto)
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
## State Management
|
|
167
|
+
|
|
168
|
+
Initialize debug workflow:
|
|
169
|
+
```
|
|
170
|
+
action: "init", featureId: "debug-<issue-slug>", workflowType: "debug"
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
See `@skills/debug/references/state-schema.md` for full schema.
|
|
174
|
+
|
|
175
|
+
### Phase Transitions and Guards
|
|
176
|
+
|
|
177
|
+
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.
|
|
178
|
+
|
|
179
|
+
### Schema Discovery
|
|
180
|
+
|
|
181
|
+
Use `exarchos_workflow({ action: "describe", actions: ["set", "init"] })` for
|
|
182
|
+
parameter schemas and `exarchos_workflow({ action: "describe", playbook: "debug" })`
|
|
183
|
+
for phase transitions, guards, and playbook guidance.
|
|
184
|
+
|
|
185
|
+
## Integration Points
|
|
186
|
+
|
|
187
|
+
### With rehydrate
|
|
188
|
+
|
|
189
|
+
Debug workflows resume like feature workflows:
|
|
190
|
+
```bash
|
|
191
|
+
rehydrate
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
### With Existing Skills
|
|
195
|
+
|
|
196
|
+
- Uses spec-review skill for thorough track review phase
|
|
197
|
+
- Uses synthesis skill for PR creation
|
|
198
|
+
- Uses git-worktrees skill for thorough track implementation
|
|
199
|
+
|
|
200
|
+
### With MCP Workflow State Tools
|
|
201
|
+
|
|
202
|
+
Extended to support:
|
|
203
|
+
- `workflowType: "debug"` field
|
|
204
|
+
- Debug-specific phases handled by the SessionStart hook (which determines next action on resume)
|
|
205
|
+
- Debug context provided by the SessionStart hook on session start
|
|
206
|
+
|
|
207
|
+
## Completion Criteria
|
|
208
|
+
|
|
209
|
+
### Hotfix Complete
|
|
210
|
+
|
|
211
|
+
- [ ] Root cause identified (even if briefly)
|
|
212
|
+
- [ ] Minimal fix applied
|
|
213
|
+
- [ ] Affected tests pass
|
|
214
|
+
- [ ] Follow-up RCA task created
|
|
215
|
+
- [ ] Changes merged
|
|
216
|
+
|
|
217
|
+
**Completion guard shapes** — set these via `exarchos_workflow set` before transitioning to `completed`:
|
|
218
|
+
|
|
219
|
+
| Exit path | Guard | Required state |
|
|
220
|
+
|-----------|-------|----------------|
|
|
221
|
+
| Direct push (no PR) | `fix-verified-directly` | `resolution: { directPush: true, commitSha: "<sha>" }` |
|
|
222
|
+
| Validation passed | `validation-passed` | `validation: { passed: true }` |
|
|
223
|
+
| Via PR | Through `synthesize` → `completed` | `prUrl` must exist |
|
|
224
|
+
|
|
225
|
+
### Thorough Complete
|
|
226
|
+
|
|
227
|
+
- [ ] Full RCA documented in docs/rca/ (use `references/rca-template.md`)
|
|
228
|
+
- [ ] Fix matches RCA findings
|
|
229
|
+
- [ ] TDD implementation with tests
|
|
230
|
+
- [ ] Spec review passed
|
|
231
|
+
- [ ] PR merged
|
|
232
|
+
|
|
233
|
+
**Completion guard shapes** — the thorough track exits through `synthesize` → `completed` (guard: `pr-url-exists`, requires `prUrl` in state).
|
|
234
|
+
|
|
235
|
+
## Anti-Patterns
|
|
236
|
+
|
|
237
|
+
| Don't | Do Instead |
|
|
238
|
+
|-------|------------|
|
|
239
|
+
| Start coding before understanding bug | Investigate first, always |
|
|
240
|
+
| Skip RCA on thorough track | Document for future learning |
|
|
241
|
+
| Exceed 15 min on hotfix investigation | Switch to thorough track |
|
|
242
|
+
| Add features during bug fix | Scope creep - only fix the bug |
|
|
243
|
+
| Skip tests because "it's just a fix" | Fixes need tests to prevent regression |
|
|
244
|
+
|
|
245
|
+
## Troubleshooting
|
|
246
|
+
|
|
247
|
+
See `references/troubleshooting.md` for MCP tool failures, state desync, investigation timeouts, and track switching issues.
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: hotfix-track
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Hotfix Track
|
|
6
|
+
|
|
7
|
+
## Purpose
|
|
8
|
+
|
|
9
|
+
Fix production issues or critical regressions ASAP. Speed over ceremony.
|
|
10
|
+
|
|
11
|
+
## Phases
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
triage -> investigate -> hotfix-implement -> hotfix-validate -> completed
|
|
15
|
+
| | | | |
|
|
16
|
+
| | | | +- Human checkpoint: merge
|
|
17
|
+
| | | +- Smoke tests only
|
|
18
|
+
| | +- Minimal fix, no worktree
|
|
19
|
+
| +- 15 min max, focused on root cause
|
|
20
|
+
+- Capture symptom, select track
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Phase Details
|
|
24
|
+
|
|
25
|
+
### 1. Triage Phase
|
|
26
|
+
|
|
27
|
+
Use `@skills/debug/references/triage-questions.md` to gather:
|
|
28
|
+
- Symptom description
|
|
29
|
+
- Reproduction steps
|
|
30
|
+
- Urgency justification
|
|
31
|
+
- Affected area
|
|
32
|
+
|
|
33
|
+
Run deterministic track selection:
|
|
34
|
+
|
|
35
|
+
```typescript
|
|
36
|
+
exarchos_orchestrate({
|
|
37
|
+
action: "select_debug_track",
|
|
38
|
+
urgency: "<critical|high|medium|low>",
|
|
39
|
+
rootCauseKnown: "<yes|no>"
|
|
40
|
+
})
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**On `passed: true`:** Hotfix track selected.
|
|
44
|
+
**On `passed: false`:** Thorough track selected.
|
|
45
|
+
|
|
46
|
+
**Save triage results and advance to investigate:**
|
|
47
|
+
|
|
48
|
+
Call `exarchos_workflow({ action: "describe", playbook: "debug" })` for the `triage → investigate` guard requirements, then `set` the required fields (triage, urgency, track) and phase.
|
|
49
|
+
|
|
50
|
+
### 2. Investigate Phase (15 min max)
|
|
51
|
+
|
|
52
|
+
Use `@skills/debug/references/investigation-checklist.md`.
|
|
53
|
+
|
|
54
|
+
Run the investigation timer to enforce the 15-minute time-box:
|
|
55
|
+
|
|
56
|
+
```typescript
|
|
57
|
+
exarchos_orchestrate({
|
|
58
|
+
action: "investigation_timer",
|
|
59
|
+
stateFile: "<state-file>"
|
|
60
|
+
})
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**On `passed: true`:** Within budget -- continue investigation.
|
|
64
|
+
**On `passed: false`:** Budget exceeded -- escalate to thorough track.
|
|
65
|
+
|
|
66
|
+
**Record findings and advance when root cause found:**
|
|
67
|
+
|
|
68
|
+
Call `exarchos_workflow({ action: "describe", playbook: "debug" })` for the `investigate → hotfix-implement` guard requirements and the expected field shapes for investigation findings, then `set` accordingly.
|
|
69
|
+
|
|
70
|
+
### 3. Implement Phase
|
|
71
|
+
|
|
72
|
+
Apply minimal fix directly (no worktree):
|
|
73
|
+
- Change only what's necessary
|
|
74
|
+
- No new features or refactoring
|
|
75
|
+
- Record fix approach in state
|
|
76
|
+
|
|
77
|
+
Call `exarchos_workflow({ action: "describe", playbook: "debug" })` for the `hotfix-implement → hotfix-validate` guard requirements, then `set` the required fields (artifacts) and phase.
|
|
78
|
+
|
|
79
|
+
### 4. Validate Phase
|
|
80
|
+
|
|
81
|
+
Run affected tests only:
|
|
82
|
+
```bash
|
|
83
|
+
npm run test:run -- <affected-test-files>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
If tests pass, call `exarchos_workflow({ action: "describe", playbook: "debug" })` for the `hotfix-validate → completed` guard requirements, then `set` the required fields (followUp) and phase.
|
|
87
|
+
|
|
88
|
+
Create follow-up task for proper RCA:
|
|
89
|
+
```bash
|
|
90
|
+
cat > docs/follow-ups/$(date +%Y-%m-%d)-<issue-slug>.json << EOF
|
|
91
|
+
{
|
|
92
|
+
"type": "follow-up",
|
|
93
|
+
"created": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
|
|
94
|
+
"source": "hotfix:<state-file>",
|
|
95
|
+
"task": "Create proper RCA for hotfix: <issue-slug>",
|
|
96
|
+
"context": {
|
|
97
|
+
"symptom": "<symptom>",
|
|
98
|
+
"quickFix": "<fix description>",
|
|
99
|
+
"affectedFiles": ["<files>"]
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
EOF
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
**Human checkpoint:** Confirm merge.
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
# Investigation Checklist
|
|
2
|
+
|
|
3
|
+
Systematic approach to finding root cause during the investigate phase.
|
|
4
|
+
|
|
5
|
+
## Investigation Process
|
|
6
|
+
|
|
7
|
+
### Step 1: Reproduce the Issue
|
|
8
|
+
|
|
9
|
+
Before investigating, ensure you can trigger the bug:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# Run the reproduction steps
|
|
13
|
+
# Observe the failure
|
|
14
|
+
# Capture any error output (redact secrets/PII before sharing)
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
**If cannot reproduce:**
|
|
18
|
+
- Check environment differences (local vs prod)
|
|
19
|
+
- Check data differences (test vs real data)
|
|
20
|
+
- Check timing/race conditions
|
|
21
|
+
- Ask for more context from reporter
|
|
22
|
+
|
|
23
|
+
### Step 2: Identify Entry Point
|
|
24
|
+
|
|
25
|
+
Find where the problem manifests:
|
|
26
|
+
|
|
27
|
+
| Entry Point Type | How to Find |
|
|
28
|
+
|-----------------|-------------|
|
|
29
|
+
| Error message | Search codebase for exact text |
|
|
30
|
+
| Failing test | Read test output for assertion location |
|
|
31
|
+
| User report | Trace from UI component to backend |
|
|
32
|
+
| Log entry | Search logs for timestamp, correlate with code |
|
|
33
|
+
|
|
34
|
+
**Tools:**
|
|
35
|
+
```bash
|
|
36
|
+
# Search for error message
|
|
37
|
+
Grep({ pattern: "exact error text", output_mode: "content" })
|
|
38
|
+
|
|
39
|
+
# Find related files
|
|
40
|
+
Glob({ pattern: "**/auth/**/*.ts" })
|
|
41
|
+
|
|
42
|
+
# Read suspicious file
|
|
43
|
+
Read({ file_path: "/path/to/file.ts" })
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Step 3: Trace Execution Path
|
|
47
|
+
|
|
48
|
+
Follow the code from entry point to failure:
|
|
49
|
+
|
|
50
|
+
1. **Identify the call stack** - What functions are called?
|
|
51
|
+
2. **Check input values** - Are parameters valid?
|
|
52
|
+
3. **Trace data flow** - Where does data transform?
|
|
53
|
+
4. **Find the divergence** - Where does actual != expected?
|
|
54
|
+
|
|
55
|
+
**Tracing Pattern:**
|
|
56
|
+
```text
|
|
57
|
+
Entry Point → Function A → Function B → [FAILURE POINT] → Function C (never reached)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Step 4: Narrow Down Location
|
|
61
|
+
|
|
62
|
+
Use binary search to isolate the problem:
|
|
63
|
+
|
|
64
|
+
1. Add logging/breakpoints at midpoint
|
|
65
|
+
2. Determine which half contains bug
|
|
66
|
+
3. Repeat until isolated to specific lines
|
|
67
|
+
|
|
68
|
+
**Quick Logging:**
|
|
69
|
+
```typescript
|
|
70
|
+
console.log('[DEBUG] checkpoint 1:', { value });
|
|
71
|
+
console.log('[DEBUG] checkpoint 2:', { transformed });
|
|
72
|
+
console.log('[DEBUG] checkpoint 3:', { result });
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Step 5: Understand the Why
|
|
76
|
+
|
|
77
|
+
Once located, understand the mechanism:
|
|
78
|
+
|
|
79
|
+
- **What condition fails?** (if/else, validation, null check)
|
|
80
|
+
- **Why is that condition triggered?** (bad input, state corruption, race)
|
|
81
|
+
- **When was this introduced?** (recent change, always broken, regression)
|
|
82
|
+
|
|
83
|
+
## Hotfix Time-Boxing (15 Minutes)
|
|
84
|
+
|
|
85
|
+
For hotfix track, investigation is time-boxed:
|
|
86
|
+
|
|
87
|
+
```text
|
|
88
|
+
0:00 - Start investigation
|
|
89
|
+
0:05 - Should have identified entry point
|
|
90
|
+
0:10 - Should have narrowed to general area
|
|
91
|
+
0:15 - DECISION POINT
|
|
92
|
+
│
|
|
93
|
+
├─ Root cause found → Transition to `hotfix-implement` (set track = "hotfix")
|
|
94
|
+
│
|
|
95
|
+
└─ Root cause NOT found → Transition to `rca` (set track = "thorough")
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### 15-Minute Checkpoint Questions
|
|
99
|
+
|
|
100
|
+
At 15 minutes, ask:
|
|
101
|
+
1. Do I know the exact cause?
|
|
102
|
+
2. Do I know exactly what code to change?
|
|
103
|
+
3. Am I confident the fix won't break other things?
|
|
104
|
+
|
|
105
|
+
If any answer is "no" → transition to `rca` (set `track = "thorough"`).
|
|
106
|
+
|
|
107
|
+
### Switching to Thorough Track
|
|
108
|
+
|
|
109
|
+
**Switch track and record findings:**
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
action: "set", featureId: "debug-<issue-slug>", updates: {
|
|
113
|
+
"track": "thorough",
|
|
114
|
+
"investigation.findings": ["Investigated for 15 min, narrowed to auth module but root cause unclear"]
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## Investigation Tools
|
|
119
|
+
|
|
120
|
+
### For Code Search
|
|
121
|
+
|
|
122
|
+
```typescript
|
|
123
|
+
// Find error message source
|
|
124
|
+
Grep({ pattern: "Error: something failed", output_mode: "content" })
|
|
125
|
+
|
|
126
|
+
// Find function definition
|
|
127
|
+
Grep({ pattern: "function handleLogin", output_mode: "content" })
|
|
128
|
+
|
|
129
|
+
// Find all usages
|
|
130
|
+
Grep({ pattern: "handleLogin\\(", output_mode: "files_with_matches" })
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### For Codebase Exploration
|
|
134
|
+
|
|
135
|
+
```typescript
|
|
136
|
+
// Use Explore agent for complex investigation
|
|
137
|
+
Task({
|
|
138
|
+
subagent_type: "Explore",
|
|
139
|
+
description: "Find auth error handling",
|
|
140
|
+
prompt: "Find where authentication errors are handled and what could cause a 500 response"
|
|
141
|
+
})
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### For Test Execution
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
# Run specific test to see failure
|
|
148
|
+
npm run test:run -- --grep "login"
|
|
149
|
+
|
|
150
|
+
# Run tests with verbose output
|
|
151
|
+
npm run test:run -- --reporter=verbose
|
|
152
|
+
|
|
153
|
+
# Run tests in specific file
|
|
154
|
+
npm run test:run -- src/auth/login.test.ts
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### For Git History
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
# Find when file was last changed
|
|
161
|
+
git log --oneline -10 -- src/auth/login.ts
|
|
162
|
+
|
|
163
|
+
# Find what changed recently
|
|
164
|
+
git diff HEAD~5 -- src/auth/
|
|
165
|
+
|
|
166
|
+
# Blame specific lines
|
|
167
|
+
git blame -L 50,60 src/auth/login.ts
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## Recording Findings
|
|
171
|
+
|
|
172
|
+
**Add finding:**
|
|
173
|
+
|
|
174
|
+
```
|
|
175
|
+
action: "set", featureId: "debug-<issue-slug>", updates: {
|
|
176
|
+
"investigation.findings": ["Error occurs in handleLogin when session is null"]
|
|
177
|
+
}
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
**Record root cause:**
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
action: "set", featureId: "debug-<issue-slug>", updates: {
|
|
184
|
+
"investigation.rootCause": "Session cookie not being set due to SameSite attribute mismatch"
|
|
185
|
+
}
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
**Mark investigation complete:**
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
action: "set", featureId: "debug-<issue-slug>", updates: {
|
|
192
|
+
"investigation.completedAt": "2026-01-27T10:30:00Z"
|
|
193
|
+
}
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
## Common Bug Patterns
|
|
197
|
+
|
|
198
|
+
Quick reference for common root causes:
|
|
199
|
+
|
|
200
|
+
| Symptom | Common Causes |
|
|
201
|
+
|---------|---------------|
|
|
202
|
+
| Null/undefined error | Missing null check, async race, optional field |
|
|
203
|
+
| Type error | Wrong cast, schema mismatch, serialization issue |
|
|
204
|
+
| Timeout | N+1 query, missing index, external service slow |
|
|
205
|
+
| 500 error | Unhandled exception, missing env var, DB connection |
|
|
206
|
+
| Wrong data | Cache stale, transaction isolation, merge conflict |
|
|
207
|
+
| UI not updating | State not propagated, missing re-render, stale closure |
|
|
208
|
+
|
|
209
|
+
## Escalation Triggers
|
|
210
|
+
|
|
211
|
+
During investigation, escalate to `/exarchos:ideate` if you discover:
|
|
212
|
+
|
|
213
|
+
- [ ] Fundamental design flaw requiring architectural change
|
|
214
|
+
- [ ] Multiple interconnected bugs requiring coordinated fix
|
|
215
|
+
- [ ] Security vulnerability requiring careful handling
|
|
216
|
+
- [ ] Data corruption requiring recovery strategy
|
|
217
|
+
- [ ] Issue affecting multiple teams/services
|