@lvlup-sw/exarchos 2.5.0 → 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 +1 -1
- package/README.md +21 -0
- package/commands/dogfood.md +31 -0
- package/commands/oneshot.md +178 -0
- package/commands/prune.md +90 -0
- package/dist/exarchos.js +292 -289
- package/package.json +7 -3
- package/skills/{cleanup → claude/cleanup}/SKILL.md +6 -0
- package/skills/{delegation → claude/delegation}/SKILL.md +50 -29
- package/skills/{delegation → claude/delegation}/references/troubleshooting.md +2 -2
- 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/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 +2 -0
- package/skills/{shepherd → claude/shepherd}/SKILL.md +4 -0
- package/skills/{spec-review → claude/spec-review}/SKILL.md +2 -0
- package/skills/{synthesis → claude/synthesis}/SKILL.md +40 -0
- package/skills/{workflow-state → claude/workflow-state}/SKILL.md +40 -4
- package/skills/{workflow-state → claude/workflow-state}/references/phase-transitions.md +22 -0
- 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/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/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 -39
- package/skills/shared/references/skill-path-resolution.md +0 -10
- package/skills/shared/references/tdd.md +0 -58
- package/skills/shared/references/telemetry-awareness.md +0 -9
- /package/skills/{brainstorming → claude/brainstorming}/SKILL.md +0 -0
- /package/skills/{brainstorming → claude/brainstorming}/references/design-template.md +0 -0
- /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}/SKILL.md +0 -0
- /package/skills/{debug → claude/debug}/references/hotfix-track.md +0 -0
- /package/skills/{debug → claude/debug}/references/investigation-checklist.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/thorough-track.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/agent-teams-saga.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/fix-mode.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/fixer-prompt.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/implementer-prompt.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/parallel-strategy.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/state-management.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/{delegation → claude/delegation}/references/workflow-steps.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/worktree-enforcement.md +0 -0
- /package/skills/{git-worktrees → claude/git-worktrees}/SKILL.md +0 -0
- /package/skills/{git-worktrees → claude/git-worktrees}/references/commands-reference.md +0 -0
- /package/skills/{implementation-planning → claude/implementation-planning}/SKILL.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/{implementation-planning → claude/implementation-planning}/references/task-template.md +0 -0
- /package/skills/{implementation-planning → claude/implementation-planning}/references/testing-strategy-guide.md +0 -0
- /package/skills/{implementation-planning → claude/implementation-planning}/references/worked-example.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/auto-transition.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/axiom-integration.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}/SKILL.md +0 -0
- /package/skills/{refactor → claude/refactor}/references/brief-template.md +0 -0
- /package/skills/{refactor → claude/refactor}/references/doc-update-checklist.md +0 -0
- /package/skills/{refactor → claude/refactor}/references/explore-checklist.md +0 -0
- /package/skills/{refactor → claude/refactor}/references/overhaul-track.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/polish-implement.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/polish-validate.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/update-docs.md +0 -0
- /package/skills/{refactor → claude/refactor}/references/polish-track.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/fix-strategies.md +0 -0
- /package/skills/{shepherd → claude/shepherd}/references/gate-event-emission.md +0 -0
- /package/skills/{shepherd → claude/shepherd}/references/shepherd-event-schemas.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/{spec-review → claude/spec-review}/references/worked-example.md +0 -0
- /package/skills/{synthesis → claude/synthesis}/references/github-native-stacking.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/synthesis-steps.md +0 -0
- /package/skills/{synthesis → claude/synthesis}/references/troubleshooting.md +0 -0
- /package/skills/{workflow-state → claude/workflow-state}/references/mcp-tool-reference.md +0 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
# Auto-Chain Behavior
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Define automatic phase transitions for refactor workflows, minimizing human intervention while maintaining quality.
|
|
6
|
+
|
|
7
|
+
## Design Principle
|
|
8
|
+
|
|
9
|
+
**Single human checkpoint per track.**
|
|
10
|
+
|
|
11
|
+
- Polish track: One checkpoint at completion (commit approval)
|
|
12
|
+
- Overhaul track: One checkpoint at merge (PR approval)
|
|
13
|
+
|
|
14
|
+
All other transitions are automatic.
|
|
15
|
+
|
|
16
|
+
## Polish Track Auto-Chain
|
|
17
|
+
|
|
18
|
+
```text
|
|
19
|
+
explore → brief → polish-implement → polish-validate → polish-update-docs → CHECKPOINT
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### Transition Rules
|
|
23
|
+
|
|
24
|
+
| From | To | Condition | Auto? |
|
|
25
|
+
|------|-----|-----------|-------|
|
|
26
|
+
| explore | brief | Scope assessed | Yes |
|
|
27
|
+
| brief | polish-implement | Brief captured | Yes |
|
|
28
|
+
| polish-implement | polish-validate | Changes complete | Yes |
|
|
29
|
+
| polish-validate | polish-update-docs | Validation passed | Yes |
|
|
30
|
+
| polish-update-docs | completed | Docs updated | Yes |
|
|
31
|
+
| completed | — | Human approves commit | CHECKPOINT |
|
|
32
|
+
|
|
33
|
+
### Polish Auto-Chain Commands
|
|
34
|
+
|
|
35
|
+
After each phase, use the SessionStart hook with the featureId to determine the next action:
|
|
36
|
+
|
|
37
|
+
```text
|
|
38
|
+
# After explore
|
|
39
|
+
The SessionStart hook determines the next action automatically.
|
|
40
|
+
Returns: AUTO:brief
|
|
41
|
+
|
|
42
|
+
# After brief
|
|
43
|
+
The SessionStart hook determines the next action automatically.
|
|
44
|
+
Returns: AUTO:polish-implement
|
|
45
|
+
|
|
46
|
+
# After polish-implement
|
|
47
|
+
The SessionStart hook determines the next action automatically.
|
|
48
|
+
Returns: AUTO:polish-validate
|
|
49
|
+
|
|
50
|
+
# After polish-validate (passed)
|
|
51
|
+
The SessionStart hook determines the next action automatically.
|
|
52
|
+
Returns: AUTO:polish-update-docs
|
|
53
|
+
|
|
54
|
+
# After update-docs
|
|
55
|
+
The SessionStart hook determines the next action automatically.
|
|
56
|
+
Returns: WAIT:human-checkpoint:polish-update-docs
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Polish Checkpoint
|
|
60
|
+
|
|
61
|
+
At completion, present to user:
|
|
62
|
+
|
|
63
|
+
```markdown
|
|
64
|
+
## Polish Refactor Complete
|
|
65
|
+
|
|
66
|
+
**Changes Made:**
|
|
67
|
+
<summary of files modified>
|
|
68
|
+
|
|
69
|
+
**Goals Achieved:**
|
|
70
|
+
- <goal 1>: ✓
|
|
71
|
+
- <goal 2>: ✓
|
|
72
|
+
|
|
73
|
+
**Validation:**
|
|
74
|
+
- Tests: ✓ All passing
|
|
75
|
+
- Docs: ✓ Updated
|
|
76
|
+
|
|
77
|
+
**Action Required:**
|
|
78
|
+
Ready to commit changes. Approve to commit, or request modifications.
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Overhaul Track Auto-Chain
|
|
82
|
+
|
|
83
|
+
```text
|
|
84
|
+
explore → brief → overhaul-plan → overhaul-plan-review → overhaul-delegate → overhaul-review → overhaul-update-docs → synthesize → CHECKPOINT
|
|
85
|
+
↑ │
|
|
86
|
+
└─────── fixes ─────────────┘ (if review fails)
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Transition Rules
|
|
90
|
+
|
|
91
|
+
| From | To | Condition | Auto? |
|
|
92
|
+
|------|-----|-----------|-------|
|
|
93
|
+
| explore | brief | Scope assessed | Yes |
|
|
94
|
+
| brief | overhaul-plan | Brief captured | Yes |
|
|
95
|
+
| overhaul-plan | overhaul-plan-review | Plan created | Yes |
|
|
96
|
+
| overhaul-plan-review | overhaul-delegate | Plan approved | Yes |
|
|
97
|
+
| overhaul-delegate | overhaul-review | All tasks complete | Yes |
|
|
98
|
+
| overhaul-review (pass) | overhaul-update-docs | Review approved | Yes |
|
|
99
|
+
| overhaul-review (fail) | overhaul-delegate | Fix tasks dispatched | Yes (loop) |
|
|
100
|
+
| overhaul-update-docs | synthesize | Docs updated | Yes |
|
|
101
|
+
| synthesize | completed | Human approves PR | CHECKPOINT |
|
|
102
|
+
|
|
103
|
+
### Overhaul Auto-Chain Commands
|
|
104
|
+
|
|
105
|
+
Use the SessionStart hook with the featureId after each phase:
|
|
106
|
+
|
|
107
|
+
```text
|
|
108
|
+
# After explore
|
|
109
|
+
Returns: AUTO:brief
|
|
110
|
+
|
|
111
|
+
# After brief
|
|
112
|
+
Returns: AUTO:overhaul-plan
|
|
113
|
+
|
|
114
|
+
# After overhaul-plan
|
|
115
|
+
Returns: AUTO:overhaul-plan-review
|
|
116
|
+
|
|
117
|
+
# After overhaul-plan-review (approved)
|
|
118
|
+
Returns: AUTO:overhaul-delegate
|
|
119
|
+
|
|
120
|
+
# After overhaul-delegate
|
|
121
|
+
Returns: AUTO:overhaul-review
|
|
122
|
+
|
|
123
|
+
# After overhaul-review (passed)
|
|
124
|
+
Returns: AUTO:overhaul-update-docs
|
|
125
|
+
|
|
126
|
+
# After overhaul-review (failed)
|
|
127
|
+
Returns: AUTO:delegate:--fixes
|
|
128
|
+
|
|
129
|
+
# After overhaul-update-docs
|
|
130
|
+
Returns: AUTO:synthesize
|
|
131
|
+
|
|
132
|
+
# After synthesize
|
|
133
|
+
Returns: WAIT:human-checkpoint:synthesize
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Overhaul Checkpoint
|
|
137
|
+
|
|
138
|
+
#### PR Approval
|
|
139
|
+
|
|
140
|
+
```markdown
|
|
141
|
+
## Refactor PR Ready
|
|
142
|
+
|
|
143
|
+
**PR:** <url>
|
|
144
|
+
|
|
145
|
+
**Summary:**
|
|
146
|
+
<refactor summary>
|
|
147
|
+
|
|
148
|
+
**Goals Achieved:**
|
|
149
|
+
- <goal 1>: ✓
|
|
150
|
+
- <goal 2>: ✓
|
|
151
|
+
|
|
152
|
+
**Review Status:**
|
|
153
|
+
- Behavior preserved: ✓
|
|
154
|
+
- Tests passing: ✓
|
|
155
|
+
- Docs updated: ✓
|
|
156
|
+
|
|
157
|
+
**Action Required:**
|
|
158
|
+
Review PR and approve merge, or request changes.
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
## Track Switching
|
|
162
|
+
|
|
163
|
+
If polish track discovers scope expansion, it switches to overhaul:
|
|
164
|
+
|
|
165
|
+
```text
|
|
166
|
+
polish-implement → [scope expands] → overhaul-plan
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Auto-chain handles this via MCP tools:
|
|
170
|
+
|
|
171
|
+
```text
|
|
172
|
+
# When scope expands during implement, use mcp__plugin_exarchos_exarchos__exarchos_workflow with action: "set":
|
|
173
|
+
# 1. First call: Set updates
|
|
174
|
+
updates: { "implement.switchReason": "<reason>", "implement.switchedAt": "<ISO8601>" }
|
|
175
|
+
|
|
176
|
+
# 2. Second call: Transition phase and track
|
|
177
|
+
phase: "overhaul-plan"
|
|
178
|
+
updates: { "track": "overhaul" }
|
|
179
|
+
|
|
180
|
+
# Next action returns
|
|
181
|
+
The SessionStart hook determines the next action automatically.
|
|
182
|
+
Returns: AUTO:overhaul-plan
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
## Failure Handling
|
|
186
|
+
|
|
187
|
+
### Polish Track Failures
|
|
188
|
+
|
|
189
|
+
| Failure | Recovery |
|
|
190
|
+
|---------|----------|
|
|
191
|
+
| Validate fails | Return to polish-implement, fix issues |
|
|
192
|
+
| Tests fail | Fix tests, re-validate |
|
|
193
|
+
| Scope expands | Switch to overhaul track |
|
|
194
|
+
|
|
195
|
+
### Overhaul Track Failures
|
|
196
|
+
|
|
197
|
+
| Failure | Recovery |
|
|
198
|
+
|---------|----------|
|
|
199
|
+
| Review fails | Delegate fixes, re-review |
|
|
200
|
+
| Synthesize fails | Fix PR issues, re-synthesize |
|
|
201
|
+
|
|
202
|
+
All recoveries are automatic loops until success.
|
|
203
|
+
|
|
204
|
+
## State Machine Summary
|
|
205
|
+
|
|
206
|
+
```text
|
|
207
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
208
|
+
│ REFACTOR WORKFLOW │
|
|
209
|
+
├─────────────────────────────────────────────────────────────────┤
|
|
210
|
+
│ │
|
|
211
|
+
│ START → explore → brief ─┬─→ [polish] ─→ polish-implement ─→ polish-validate │
|
|
212
|
+
│ │ ↓ │
|
|
213
|
+
│ │ polish-update-docs │
|
|
214
|
+
│ │ ↓ │
|
|
215
|
+
│ │ ▣ COMPLETE │
|
|
216
|
+
│ │ │
|
|
217
|
+
│ └─→ [overhaul] ─→ overhaul-plan ─→ overhaul-delegate │
|
|
218
|
+
│ ↓ │
|
|
219
|
+
│ overhaul-review ───┐ │
|
|
220
|
+
│ ↓ │ │
|
|
221
|
+
│ overhaul-update-docs │ │
|
|
222
|
+
│ ↓ │ │
|
|
223
|
+
│ synthesize │ │
|
|
224
|
+
│ ↓ │ │
|
|
225
|
+
│ ▣ PR-MERGE │ │
|
|
226
|
+
│ │ │
|
|
227
|
+
│ overhaul-delegate:--fixes ←────────┘ │
|
|
228
|
+
│ (on review fail) │
|
|
229
|
+
│ │
|
|
230
|
+
│ Legend: ▣ = Human Checkpoint │
|
|
231
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
## Integration with workflow-auto-resume.md
|
|
235
|
+
|
|
236
|
+
The auto-chain actions are handled by workflow-auto-resume.md rules.
|
|
237
|
+
|
|
238
|
+
**CRITICAL:** Use explicit `Skill()` tool invocations to ensure skills are actually invoked:
|
|
239
|
+
|
|
240
|
+
| Action | Skill Invocation |
|
|
241
|
+
|--------|------------------|
|
|
242
|
+
| AUTO:brief | Continue to brief capture (inline) |
|
|
243
|
+
| AUTO:polish-implement | Continue to implement phase (inline - orchestrator implements) |
|
|
244
|
+
| AUTO:polish-validate | Continue to validate phase (inline) |
|
|
245
|
+
| AUTO:polish-update-docs | Continue to update-docs phase (inline) |
|
|
246
|
+
| AUTO:overhaul-plan | `Skill({ skill: "exarchos:plan", args: "--refactor <state-file>" })` |
|
|
247
|
+
| AUTO:overhaul-plan-review | Plan-review human checkpoint (inline gap analysis) |
|
|
248
|
+
| AUTO:overhaul-delegate | `Skill({ skill: "exarchos:delegate", args: "<state-file>" })` |
|
|
249
|
+
| AUTO:delegate:--fixes | `Skill({ skill: "exarchos:delegate", args: "--fixes <state-file>" })` |
|
|
250
|
+
| AUTO:overhaul-review | `Skill({ skill: "exarchos:review", args: "<state-file>" })` |
|
|
251
|
+
| AUTO:synthesize | `Skill({ skill: "exarchos:synthesize", args: "<feature-name>" })` |
|
|
252
|
+
|
|
253
|
+
### Example Overhaul Chain
|
|
254
|
+
|
|
255
|
+
```typescript
|
|
256
|
+
// After brief complete
|
|
257
|
+
Skill({ skill: "exarchos:plan", args: "--refactor ~/.claude/workflow-state/refactor-auth.state.json" })
|
|
258
|
+
|
|
259
|
+
// After plan complete (invoked by /exarchos:plan skill)
|
|
260
|
+
Skill({ skill: "exarchos:delegate", args: "~/.claude/workflow-state/refactor-auth.state.json" })
|
|
261
|
+
|
|
262
|
+
// After all tasks complete (invoked by /exarchos:delegate skill)
|
|
263
|
+
Skill({ skill: "exarchos:review", args: "~/.claude/workflow-state/refactor-auth.state.json" })
|
|
264
|
+
|
|
265
|
+
// After review passes, update-docs runs inline, then:
|
|
266
|
+
Skill({ skill: "exarchos:synthesize", args: "refactor-auth" })
|
|
267
|
+
```
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
# Brief Phase
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Capture refactoring intent in a structured format without the overhead of a full design document.
|
|
6
|
+
|
|
7
|
+
## Entry Conditions
|
|
8
|
+
|
|
9
|
+
- Explore phase complete
|
|
10
|
+
- Track selected (polish or overhaul)
|
|
11
|
+
- Scope assessment available in state
|
|
12
|
+
|
|
13
|
+
## Brief Structure
|
|
14
|
+
|
|
15
|
+
The brief captures these required fields:
|
|
16
|
+
|
|
17
|
+
### 1. Problem Statement
|
|
18
|
+
|
|
19
|
+
**What's wrong with the current code?** Be specific and measurable.
|
|
20
|
+
|
|
21
|
+
Good examples:
|
|
22
|
+
- "UserService class has grown to 500 lines with authentication, validation, and persistence mixed together"
|
|
23
|
+
- "The payment module uses 4 different error handling patterns inconsistently"
|
|
24
|
+
- "Test setup duplicated across 12 test files with slight variations"
|
|
25
|
+
|
|
26
|
+
Bad examples:
|
|
27
|
+
- "Code is messy"
|
|
28
|
+
- "Need to clean things up"
|
|
29
|
+
- "Could be better"
|
|
30
|
+
|
|
31
|
+
### 2. Goals
|
|
32
|
+
|
|
33
|
+
**What specific outcomes will this refactor achieve?** Each goal must be verifiable.
|
|
34
|
+
|
|
35
|
+
Good goals:
|
|
36
|
+
- "Extract validation into UserValidator class (<100 lines)"
|
|
37
|
+
- "Consolidate error handling to single pattern using Result type"
|
|
38
|
+
- "Create shared TestFixtures reducing setup duplication by 80%"
|
|
39
|
+
|
|
40
|
+
Bad goals:
|
|
41
|
+
- "Improve code quality"
|
|
42
|
+
- "Make it cleaner"
|
|
43
|
+
- "Better organization"
|
|
44
|
+
|
|
45
|
+
### 3. Approach
|
|
46
|
+
|
|
47
|
+
**How will you achieve the goals?** High-level strategy.
|
|
48
|
+
|
|
49
|
+
Polish approach (1-2 sentences):
|
|
50
|
+
- "Extract methods, create new class, update callers"
|
|
51
|
+
|
|
52
|
+
Overhaul approach (phases):
|
|
53
|
+
- "Phase 1: Create adapter for new pattern alongside old"
|
|
54
|
+
- "Phase 2: Migrate internal callers"
|
|
55
|
+
- "Phase 3: Migrate external callers"
|
|
56
|
+
- "Phase 4: Remove old pattern"
|
|
57
|
+
|
|
58
|
+
### 4. Affected Areas
|
|
59
|
+
|
|
60
|
+
**Specific paths that will change.** From explore phase.
|
|
61
|
+
|
|
62
|
+
### 5. Out of Scope
|
|
63
|
+
|
|
64
|
+
**What you're explicitly NOT changing.** Prevents scope creep.
|
|
65
|
+
|
|
66
|
+
Examples:
|
|
67
|
+
- "Not changing the public API"
|
|
68
|
+
- "Not addressing performance issues"
|
|
69
|
+
- "Not updating unrelated tests"
|
|
70
|
+
|
|
71
|
+
### 6. Success Criteria
|
|
72
|
+
|
|
73
|
+
**How will you verify the refactor is complete?**
|
|
74
|
+
|
|
75
|
+
- All existing tests pass
|
|
76
|
+
- New tests added for [specific areas]
|
|
77
|
+
- [Goal 1] achieved (measurable)
|
|
78
|
+
- No new linting errors
|
|
79
|
+
- Documentation updated
|
|
80
|
+
|
|
81
|
+
### 7. Docs to Update
|
|
82
|
+
|
|
83
|
+
**Documentation that needs updating.** From explore phase.
|
|
84
|
+
|
|
85
|
+
## Brief Depth by Track
|
|
86
|
+
|
|
87
|
+
| Field | Polish | Overhaul |
|
|
88
|
+
|-------|--------|----------|
|
|
89
|
+
| Problem | 1-2 sentences | Paragraph with context |
|
|
90
|
+
| Goals | 1-3 items | 3-5 items |
|
|
91
|
+
| Approach | 1-2 sentences | Phases described |
|
|
92
|
+
| Out of Scope | 1-2 items | 3+ items |
|
|
93
|
+
| Success Criteria | 2-3 items | 4+ items |
|
|
94
|
+
|
|
95
|
+
## Interactive Capture
|
|
96
|
+
|
|
97
|
+
When in brief phase, prompt user for each field if not provided:
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
## Refactor Brief
|
|
101
|
+
|
|
102
|
+
Based on exploration, preparing brief for <polish|overhaul> track.
|
|
103
|
+
|
|
104
|
+
**Problem:** <from user or prompt>
|
|
105
|
+
**Goals:** <from user or prompt>
|
|
106
|
+
...
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## State Update
|
|
110
|
+
|
|
111
|
+
**Save brief and advance:**
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
action: "set", featureId: "refactor-<slug>", updates: {
|
|
115
|
+
"brief": {
|
|
116
|
+
"problem": "<problem statement>",
|
|
117
|
+
"goals": ["<goal 1>", "<goal 2>"],
|
|
118
|
+
"approach": "<approach description>",
|
|
119
|
+
"affectedAreas": ["<from explore>"],
|
|
120
|
+
"outOfScope": ["<exclusion 1>"],
|
|
121
|
+
"successCriteria": ["<criterion 1>"],
|
|
122
|
+
"docsToUpdate": ["<from explore>"],
|
|
123
|
+
"capturedAt": "<ISO8601>"
|
|
124
|
+
}
|
|
125
|
+
}, phase: "<polish-implement|overhaul-plan>"
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Phase transitions:
|
|
129
|
+
- Polish track -> `polish-implement`
|
|
130
|
+
- Overhaul track -> `overhaul-plan`
|
|
131
|
+
|
|
132
|
+
## Validation
|
|
133
|
+
|
|
134
|
+
Before proceeding, validate brief completeness:
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
Required fields check:
|
|
138
|
+
[x] Problem: defined
|
|
139
|
+
[x] Goals: at least 1
|
|
140
|
+
[x] Approach: defined
|
|
141
|
+
[x] Affected areas: from explore
|
|
142
|
+
[x] Out of scope: at least 1
|
|
143
|
+
[x] Success criteria: at least 2
|
|
144
|
+
[x] Docs to update: from explore (can be empty)
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
If validation fails, prompt for missing fields.
|
|
148
|
+
|
|
149
|
+
## Exit Conditions
|
|
150
|
+
|
|
151
|
+
- All required fields captured
|
|
152
|
+
- Brief stored in state
|
|
153
|
+
- Phase transitioned appropriately:
|
|
154
|
+
- Polish -> implement
|
|
155
|
+
- Overhaul -> plan
|
|
156
|
+
|
|
157
|
+
## Transition
|
|
158
|
+
|
|
159
|
+
After brief is captured, auto-continue to next phase:
|
|
160
|
+
|
|
161
|
+
### Polish Track
|
|
162
|
+
|
|
163
|
+
1. Update state: `.phase = "polish-implement"`
|
|
164
|
+
2. Output: "Brief captured. Auto-continuing to implementation..."
|
|
165
|
+
3. Continue with implement phase inline (no Skill invocation - orchestrator implements directly)
|
|
166
|
+
|
|
167
|
+
### Overhaul Track
|
|
168
|
+
|
|
169
|
+
1. Update state: `.phase = "overhaul-plan"`
|
|
170
|
+
2. Output: "Brief captured. Auto-continuing to planning..."
|
|
171
|
+
3. Invoke immediately:
|
|
172
|
+
```typescript
|
|
173
|
+
Skill({ skill: "exarchos:plan", args: "--refactor ~/.claude/workflow-state/<feature>.state.json" })
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
This is NOT a human checkpoint - workflow continues autonomously.
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# Explore Phase
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Assess refactoring scope to determine appropriate track (polish vs overhaul).
|
|
6
|
+
|
|
7
|
+
## Entry Conditions
|
|
8
|
+
|
|
9
|
+
- Refactor workflow initiated via `/exarchos:refactor`
|
|
10
|
+
- Target area identified (file, directory, or module)
|
|
11
|
+
|
|
12
|
+
## Process
|
|
13
|
+
|
|
14
|
+
### Step 1: Scope Discovery
|
|
15
|
+
|
|
16
|
+
Use exploration tools to understand the impact:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# Find files that will be affected
|
|
20
|
+
# Use Glob to find files in target area
|
|
21
|
+
# Use Grep to find references to target code
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Questions to answer:
|
|
25
|
+
1. How many files will be modified?
|
|
26
|
+
2. How many modules/packages are affected?
|
|
27
|
+
3. Are there cross-module dependencies?
|
|
28
|
+
4. What's the test coverage of affected code?
|
|
29
|
+
|
|
30
|
+
### Step 2: Concern Analysis
|
|
31
|
+
|
|
32
|
+
Identify what types of changes are needed:
|
|
33
|
+
|
|
34
|
+
- [ ] Renaming (variables, functions, files)
|
|
35
|
+
- [ ] Extracting (new functions, classes, modules)
|
|
36
|
+
- [ ] Moving (relocating code between files/modules)
|
|
37
|
+
- [ ] Restructuring (changing architecture)
|
|
38
|
+
- [ ] Cleaning (removing dead code, improving style)
|
|
39
|
+
|
|
40
|
+
Count distinct concerns - multiple indicates overhaul track.
|
|
41
|
+
|
|
42
|
+
### Step 3: Test Assessment
|
|
43
|
+
|
|
44
|
+
Evaluate existing test coverage:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# Check for test files covering affected code
|
|
48
|
+
# Review test coverage if available
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
| Coverage Level | Implication |
|
|
52
|
+
|----------------|-------------|
|
|
53
|
+
| Good (>80%) | Either track viable |
|
|
54
|
+
| Gaps (50-80%) | Overhaul recommended (need test additions) |
|
|
55
|
+
| Poor (<50%) | Overhaul required (significant test work) |
|
|
56
|
+
|
|
57
|
+
### Step 4: Documentation Check
|
|
58
|
+
|
|
59
|
+
Identify docs that reference affected code:
|
|
60
|
+
|
|
61
|
+
- Architecture documentation
|
|
62
|
+
- API documentation
|
|
63
|
+
- README files
|
|
64
|
+
- Inline comments with explanations
|
|
65
|
+
|
|
66
|
+
Significant doc updates → overhaul track indicator.
|
|
67
|
+
|
|
68
|
+
## Track Decision Matrix
|
|
69
|
+
|
|
70
|
+
| Criterion | Polish | Overhaul |
|
|
71
|
+
|-----------|--------|----------|
|
|
72
|
+
| Files affected | <=5 | >5 |
|
|
73
|
+
| Concerns | 1 | >1 |
|
|
74
|
+
| Cross-module | No | Yes |
|
|
75
|
+
| Test gaps | No | Yes |
|
|
76
|
+
| Doc updates | Minor | Significant |
|
|
77
|
+
|
|
78
|
+
**Rule**: If ANY criterion indicates overhaul, use overhaul track.
|
|
79
|
+
|
|
80
|
+
## Output
|
|
81
|
+
|
|
82
|
+
**Save assessment and advance to brief:**
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
action: "set", featureId: "refactor-<slug>", updates: {
|
|
86
|
+
"explore": {
|
|
87
|
+
"filesAffected": <count>,
|
|
88
|
+
"filesList": ["<path1>", "<path2>"],
|
|
89
|
+
"modulesAffected": ["<module1>"],
|
|
90
|
+
"concerns": ["<concern1>", "<concern2>"],
|
|
91
|
+
"crossModule": <true|false>,
|
|
92
|
+
"testCoverage": "<good|gaps|none>",
|
|
93
|
+
"docsImpacted": ["<doc1>"],
|
|
94
|
+
"recommendedTrack": "<polish|overhaul>",
|
|
95
|
+
"completedAt": "<ISO8601>"
|
|
96
|
+
}
|
|
97
|
+
}, phase: "brief"
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Exit Conditions
|
|
101
|
+
|
|
102
|
+
- Scope assessment complete
|
|
103
|
+
- Track recommendation recorded
|
|
104
|
+
- State updated with findings
|
|
105
|
+
- Ready to proceed to brief phase
|
|
106
|
+
|
|
107
|
+
## If --explore-only Flag
|
|
108
|
+
|
|
109
|
+
When `--explore-only` is specified:
|
|
110
|
+
|
|
111
|
+
1. Complete assessment as normal
|
|
112
|
+
2. Output summary to user
|
|
113
|
+
3. Do NOT transition to brief phase
|
|
114
|
+
4. Keep phase as "explore" in state
|
|
115
|
+
|
|
116
|
+
```markdown
|
|
117
|
+
## Exploration Summary
|
|
118
|
+
|
|
119
|
+
**Target:** <target path>
|
|
120
|
+
**Recommended Track:** <polish|overhaul>
|
|
121
|
+
|
|
122
|
+
### Scope Assessment
|
|
123
|
+
- Files: <count>
|
|
124
|
+
- Modules: <list>
|
|
125
|
+
- Concerns: <list>
|
|
126
|
+
- Cross-module: <yes|no>
|
|
127
|
+
- Test coverage: <good|gaps|none>
|
|
128
|
+
- Docs to update: <list>
|
|
129
|
+
|
|
130
|
+
### Rationale
|
|
131
|
+
<explanation of track recommendation>
|
|
132
|
+
```
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# Overhaul Track: Delegate/Review
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Execute large refactors using worktree-isolated subagents with the standard delegation workflow.
|
|
6
|
+
|
|
7
|
+
## Entry Conditions
|
|
8
|
+
|
|
9
|
+
- Track is `overhaul`
|
|
10
|
+
- Plan created with tasks defined
|
|
11
|
+
- Tasks defined in plan document
|
|
12
|
+
|
|
13
|
+
## Phase Flow
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
delegate → review → [update-docs OR delegate --fixes]
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Delegation Phase
|
|
20
|
+
|
|
21
|
+
Invoke the delegation skill with explicit Skill tool call:
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
Skill({ skill: "exarchos:delegate", args: "~/.claude/workflow-state/<feature>.state.json" })
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The `/exarchos:delegate` skill handles:
|
|
28
|
+
- Creating worktrees for each task
|
|
29
|
+
- Dispatching subagents via Task tool with `model: "opus"`
|
|
30
|
+
- Using the implementer prompt template
|
|
31
|
+
- Tracking task completion in state
|
|
32
|
+
|
|
33
|
+
### Refactor-Specific Task Guidance
|
|
34
|
+
|
|
35
|
+
Each delegated task should emphasize:
|
|
36
|
+
|
|
37
|
+
1. **Working State**: Code must compile and tests pass after task
|
|
38
|
+
2. **Atomic Changes**: One logical change per commit
|
|
39
|
+
3. **Test-First**: New code should have tests
|
|
40
|
+
|
|
41
|
+
Example task prompt addition:
|
|
42
|
+
```
|
|
43
|
+
IMPORTANT: After this task, code MUST:
|
|
44
|
+
- Build successfully
|
|
45
|
+
- Pass all tests
|
|
46
|
+
- Not break existing functionality
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Task Dependencies
|
|
50
|
+
|
|
51
|
+
Refactors often have strict ordering:
|
|
52
|
+
```
|
|
53
|
+
Create new class → Move methods → Update callers → Remove old code
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Ensure dependencies are respected in delegation.
|
|
57
|
+
|
|
58
|
+
## Review Phase
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
/exarchos:review ~/.claude/workflow-state/<feature>.state.json
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Refactor Review Criteria
|
|
65
|
+
|
|
66
|
+
When type is "refactor", apply additional scrutiny:
|
|
67
|
+
|
|
68
|
+
| Criterion | Description |
|
|
69
|
+
|-----------|-------------|
|
|
70
|
+
| Behavior preserved | Same inputs produce same outputs |
|
|
71
|
+
| No regressions | Existing functionality works |
|
|
72
|
+
| Goals achieved | Brief goals are met |
|
|
73
|
+
| Performance OK | No degradation |
|
|
74
|
+
|
|
75
|
+
See `overhaul-review.md` for detailed criteria.
|
|
76
|
+
|
|
77
|
+
## State Updates
|
|
78
|
+
|
|
79
|
+
**After delegation complete:**
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
action: "set", featureId: "refactor-<slug>", phase: "review"
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
**After review passes:**
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
action: "set", featureId: "refactor-<slug>", phase: "update-docs"
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
**After review fails (dispatch fix tasks, loop back):**
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
action: "set", featureId: "refactor-<slug>", updates: {
|
|
95
|
+
"reviews.<id>.status": "failed",
|
|
96
|
+
"reviews.<id>.findings": ["<issue1>"]
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Auto-Chain Behavior
|
|
101
|
+
|
|
102
|
+
No human checkpoints in this chain. Automatic progression:
|
|
103
|
+
|
|
104
|
+
| From | To | Condition |
|
|
105
|
+
|------|-----|-----------|
|
|
106
|
+
| delegate | review | All tasks complete |
|
|
107
|
+
| review | update-docs | Review passes |
|
|
108
|
+
| review | delegate --fixes | Review fails (loop) |
|
|
109
|
+
|
|
110
|
+
## Transition to Review
|
|
111
|
+
|
|
112
|
+
After all tasks complete, auto-continue to review:
|
|
113
|
+
|
|
114
|
+
1. Update state: `.phase = "review"`
|
|
115
|
+
2. Output: "All tasks complete. Auto-continuing to review..."
|
|
116
|
+
3. Invoke immediately:
|
|
117
|
+
```typescript
|
|
118
|
+
Skill({ skill: "exarchos:review", args: "~/.claude/workflow-state/<feature>.state.json" })
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
This is NOT a human checkpoint - workflow continues autonomously.
|
|
122
|
+
|
|
123
|
+
## Exit Conditions
|
|
124
|
+
|
|
125
|
+
**Success Path:**
|
|
126
|
+
- All tasks delegated and completed
|
|
127
|
+
- Review passes
|
|
128
|
+
- Ready for update-docs phase
|
|
129
|
+
|
|
130
|
+
**Failure Path:**
|
|
131
|
+
- Review failures documented
|
|
132
|
+
- Fix tasks dispatched via `--fixes`:
|
|
133
|
+
```typescript
|
|
134
|
+
Skill({ skill: "exarchos:delegate", args: "--fixes ~/.claude/workflow-state/<feature>.state.json" })
|
|
135
|
+
```
|
|
136
|
+
- Loop until review passes
|