@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,155 @@
|
|
|
1
|
+
# Triage Questions
|
|
2
|
+
|
|
3
|
+
Use these questions during the triage phase to gather context and select the appropriate track.
|
|
4
|
+
|
|
5
|
+
## Core Questions
|
|
6
|
+
|
|
7
|
+
### 1. What is the symptom?
|
|
8
|
+
|
|
9
|
+
Capture the observable problem:
|
|
10
|
+
- Error messages (exact text)
|
|
11
|
+
- Unexpected behavior
|
|
12
|
+
- Performance degradation
|
|
13
|
+
- Data corruption/loss
|
|
14
|
+
|
|
15
|
+
**Prompts:**
|
|
16
|
+
- "What error message do you see?"
|
|
17
|
+
- "What behavior are you observing?"
|
|
18
|
+
- "What did you expect to happen instead?"
|
|
19
|
+
|
|
20
|
+
### 2. Can it be reproduced?
|
|
21
|
+
|
|
22
|
+
Determine reproducibility:
|
|
23
|
+
- **Always** - Happens every time
|
|
24
|
+
- **Sometimes** - Intermittent, conditions unclear
|
|
25
|
+
- **Rarely** - Happened once, hard to trigger
|
|
26
|
+
- **Unknown** - Haven't tried yet
|
|
27
|
+
|
|
28
|
+
**Prompts:**
|
|
29
|
+
- "Can you trigger this consistently?"
|
|
30
|
+
- "What steps reproduce the issue?"
|
|
31
|
+
- "Does it happen in all environments?"
|
|
32
|
+
|
|
33
|
+
### 3. What is the impact/urgency?
|
|
34
|
+
|
|
35
|
+
Assess business impact to determine urgency level:
|
|
36
|
+
|
|
37
|
+
| Level | Criteria | Examples |
|
|
38
|
+
|-------|----------|----------|
|
|
39
|
+
| **P0** | Production down, revenue impact, data loss | Site unreachable, payments failing, user data corrupted |
|
|
40
|
+
| **P1** | Major feature broken, significant user impact | Login fails for subset, core workflow blocked |
|
|
41
|
+
| **P2** | Minor issue, workaround exists, cosmetic | UI glitch, slow performance, edge case failure |
|
|
42
|
+
|
|
43
|
+
**Prompts:**
|
|
44
|
+
- "How many users are affected?"
|
|
45
|
+
- "Is there a workaround?"
|
|
46
|
+
- "Is this blocking production use?"
|
|
47
|
+
|
|
48
|
+
### 4. What area of code is likely affected?
|
|
49
|
+
|
|
50
|
+
Narrow down the investigation scope:
|
|
51
|
+
- Component/module name
|
|
52
|
+
- File paths if known
|
|
53
|
+
- Recent changes that might relate
|
|
54
|
+
- Related features
|
|
55
|
+
|
|
56
|
+
**Prompts:**
|
|
57
|
+
- "Which feature/page does this affect?"
|
|
58
|
+
- "Were there recent deployments?"
|
|
59
|
+
- "Has this worked before? When did it break?"
|
|
60
|
+
|
|
61
|
+
## Track Selection Logic
|
|
62
|
+
|
|
63
|
+
Based on answers, select the appropriate track:
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
┌─────────────┐
|
|
67
|
+
│ P0 / P1 │
|
|
68
|
+
│ severity? │
|
|
69
|
+
└──────┬──────┘
|
|
70
|
+
│
|
|
71
|
+
┌────────────┼────────────┐
|
|
72
|
+
│ │ │
|
|
73
|
+
P0 + Known P0 + Unknown P1 or P2
|
|
74
|
+
Root Cause Root Cause
|
|
75
|
+
│ │ │
|
|
76
|
+
▼ ▼ ▼
|
|
77
|
+
┌─────────┐ ┌─────────┐ ┌─────────┐
|
|
78
|
+
│ HOTFIX │ │ Attempt │ │THOROUGH │
|
|
79
|
+
│ TRACK │ │ Hotfix │ │ TRACK │
|
|
80
|
+
└─────────┘ │ 15 min │ └─────────┘
|
|
81
|
+
└────┬────┘
|
|
82
|
+
│
|
|
83
|
+
┌────┴────┐
|
|
84
|
+
│ Found │
|
|
85
|
+
│ in 15m? │
|
|
86
|
+
└────┬────┘
|
|
87
|
+
Yes │ No
|
|
88
|
+
┌───┴───┐
|
|
89
|
+
▼ ▼
|
|
90
|
+
HOTFIX THOROUGH
|
|
91
|
+
TRACK TRACK
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Hotfix Track Criteria
|
|
95
|
+
|
|
96
|
+
Select hotfix when ALL of these apply:
|
|
97
|
+
- [ ] P0 urgency (production down or revenue impact)
|
|
98
|
+
- [ ] Root cause is known OR likely findable in 15 minutes
|
|
99
|
+
- [ ] Fix is straightforward (code change, config fix, rollback)
|
|
100
|
+
- [ ] User accepts reduced ceremony for speed
|
|
101
|
+
|
|
102
|
+
### Thorough Track Criteria
|
|
103
|
+
|
|
104
|
+
Select thorough when ANY of these apply:
|
|
105
|
+
- [ ] P1/P2 urgency (not production-critical)
|
|
106
|
+
- [ ] Root cause is unknown and complex
|
|
107
|
+
- [ ] Fix requires design decisions
|
|
108
|
+
- [ ] Issue is recurring or indicates systemic problem
|
|
109
|
+
- [ ] User wants full documentation for learning
|
|
110
|
+
|
|
111
|
+
### Escalation Criteria
|
|
112
|
+
|
|
113
|
+
Escalate to `/exarchos:ideate` when:
|
|
114
|
+
- [ ] Fix requires architectural changes
|
|
115
|
+
- [ ] Multiple systems/teams need coordination
|
|
116
|
+
- [ ] Issue exposes design flaw requiring redesign
|
|
117
|
+
- [ ] Scope exceeds bug fix (becomes feature work)
|
|
118
|
+
|
|
119
|
+
## Triage Output Format
|
|
120
|
+
|
|
121
|
+
After gathering answers, record in state file:
|
|
122
|
+
|
|
123
|
+
```json
|
|
124
|
+
{
|
|
125
|
+
"triage": {
|
|
126
|
+
"symptom": "Login button returns 500 error on click",
|
|
127
|
+
"reproduction": "Always reproducible: Click login with valid credentials",
|
|
128
|
+
"affectedArea": "Authentication service, src/auth/login.ts",
|
|
129
|
+
"impact": "All users cannot log in"
|
|
130
|
+
},
|
|
131
|
+
"urgency": {
|
|
132
|
+
"level": "P0",
|
|
133
|
+
"justification": "Production login completely broken, 100% of users affected"
|
|
134
|
+
},
|
|
135
|
+
"track": "hotfix"
|
|
136
|
+
}
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Quick Triage Script
|
|
140
|
+
|
|
141
|
+
For fast P0 situations, use this abbreviated flow:
|
|
142
|
+
|
|
143
|
+
1. **Symptom?** [one sentence]
|
|
144
|
+
2. **Repro?** [yes/no/unknown]
|
|
145
|
+
3. **P0?** [yes → hotfix, no → thorough]
|
|
146
|
+
4. **Affected file?** [path or "unknown"]
|
|
147
|
+
|
|
148
|
+
Example:
|
|
149
|
+
```
|
|
150
|
+
Symptom: Login 500 error
|
|
151
|
+
Repro: Yes
|
|
152
|
+
P0: Yes
|
|
153
|
+
File: src/auth/login.ts
|
|
154
|
+
→ HOTFIX TRACK
|
|
155
|
+
```
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: troubleshooting
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Troubleshooting
|
|
6
|
+
|
|
7
|
+
## MCP Tool Call Failed
|
|
8
|
+
If an Exarchos MCP tool returns an error:
|
|
9
|
+
1. Check the error message -- it usually contains specific guidance
|
|
10
|
+
2. Verify the workflow state exists: call `mcp__plugin_exarchos_exarchos__exarchos_workflow` with `action: "get"` and the featureId
|
|
11
|
+
3. If "version mismatch": another process updated state -- retry the operation
|
|
12
|
+
4. If state is corrupted: call `mcp__plugin_exarchos_exarchos__exarchos_workflow` with `action: "cancel"` and `dryRun: true`
|
|
13
|
+
|
|
14
|
+
## State Desync
|
|
15
|
+
If workflow state doesn't match git reality:
|
|
16
|
+
1. The SessionStart hook runs reconciliation automatically on resume
|
|
17
|
+
2. If manual check needed: compare state file with `git log` and branch state
|
|
18
|
+
3. Update state via `mcp__plugin_exarchos_exarchos__exarchos_workflow` with `action: "set"` to match git truth
|
|
19
|
+
|
|
20
|
+
## Investigation Timeout (Hotfix Track)
|
|
21
|
+
If 15-minute investigation timer expires without root cause:
|
|
22
|
+
1. The workflow auto-switches to thorough track
|
|
23
|
+
2. All investigation findings are preserved in state
|
|
24
|
+
3. Continue investigation without time constraint
|
|
25
|
+
|
|
26
|
+
## Track Switching
|
|
27
|
+
If hotfix track reveals complexity requiring thorough investigation:
|
|
28
|
+
1. Call `mcp__plugin_exarchos_exarchos__exarchos_workflow` with `action: "set"` to update track to "thorough"
|
|
29
|
+
2. Previous investigation findings carry over
|
|
30
|
+
3. RCA phase begins after investigation completes
|
|
31
|
+
|
|
32
|
+
## Exarchos Integration
|
|
33
|
+
|
|
34
|
+
When Exarchos MCP tools are available, emit events throughout the debug workflow:
|
|
35
|
+
|
|
36
|
+
1. **At workflow start (triage):** `mcp__plugin_exarchos_exarchos__exarchos_event` with `action: "append"` -> `workflow.started` with workflowType "debug", urgency
|
|
37
|
+
2. **On track selection:** `mcp__plugin_exarchos_exarchos__exarchos_event` with `action: "append"` -> `phase.transitioned` with selected track (hotfix/thorough)
|
|
38
|
+
3. **On each phase transition:** `mcp__plugin_exarchos_exarchos__exarchos_event` with `action: "append"` -> `phase.transitioned` from->to
|
|
39
|
+
4. **Thorough track stacking:** Handled by `/exarchos:synthesize` (PR creation via `gh pr create`)
|
|
40
|
+
5. **Hotfix track commit:** Single `git commit -m "fix: <description>"` + `git push` -- no multi-branch stacking needed
|
|
41
|
+
6. **On complete:** `mcp__plugin_exarchos_exarchos__exarchos_event` with `action: "append"` -> `phase.transitioned` to "completed"
|
|
42
|
+
|
|
43
|
+
## Performance Notes
|
|
44
|
+
|
|
45
|
+
- Complete each step fully before advancing -- quality over speed
|
|
46
|
+
- Do not skip validation checks even when the change appears trivial
|
|
47
|
+
- Complete each investigation step before concluding root cause. Do not jump to fix without evidence.
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: delegation
|
|
3
|
+
description: "Dispatch implementation tasks to agent teammates in git worktrees. Triggers: 'delegate', 'dispatch tasks', 'assign work', or /delegate. Spawns teammates, creates worktrees, monitors progress. Supports --fixes flag. Do NOT use for single-file changes or polish-track refactors."
|
|
4
|
+
metadata:
|
|
5
|
+
author: exarchos
|
|
6
|
+
version: 2.0.0
|
|
7
|
+
mcp-server: exarchos
|
|
8
|
+
category: workflow
|
|
9
|
+
phase-affinity: delegate
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Delegation Skill
|
|
13
|
+
|
|
14
|
+
Dispatch implementation tasks to Claude Code subagents with proper context, worktree isolation, and TDD requirements. This skill follows a three-step flow: **Prepare, Dispatch, Monitor.**
|
|
15
|
+
|
|
16
|
+
## Triggers
|
|
17
|
+
|
|
18
|
+
Activate this skill when:
|
|
19
|
+
- User runs `delegate` command
|
|
20
|
+
- Implementation plan is ready with extractable tasks
|
|
21
|
+
- User wants to parallelize work across subagents
|
|
22
|
+
|
|
23
|
+
**Exception — oneshot workflows skip delegation entirely.** The oneshot playbook runs an in-session TDD loop in the main agent's context, with no subagent dispatch or review phase. If `workflowType === "oneshot"`, do not call this skill — see `@skills/oneshot-workflow/SKILL.md` for the lightweight path.
|
|
24
|
+
|
|
25
|
+
## Core Principles
|
|
26
|
+
|
|
27
|
+
### Fresh Context Per Task (MANDATORY)
|
|
28
|
+
|
|
29
|
+
Each subagent MUST start with a clean, self-contained context. As established in the Anthropic best practices for multi-agent coordination:
|
|
30
|
+
|
|
31
|
+
- **No shared state assumptions.** Every subagent prompt must contain the full task description, file paths, TDD requirements, and acceptance criteria. Never say "see the plan" or "as discussed earlier."
|
|
32
|
+
- **No cross-agent references.** Subagent A must not depend on output from Subagent B unless explicitly sequenced with a dependency edge in the plan.
|
|
33
|
+
- **Isolated worktrees.** Each subagent operates in its own `git worktree`. Parallel agents in the same worktree will corrupt branch state.
|
|
34
|
+
|
|
35
|
+
Rationalization patterns that violate this principle are catalogued in `references/rationalization-refutation.md`.
|
|
36
|
+
|
|
37
|
+
### Delegation Modes
|
|
38
|
+
|
|
39
|
+
| Mode | Mechanism | Best for |
|
|
40
|
+
|------|-----------|----------|
|
|
41
|
+
| `subagent` (default) | `Task` with `run_in_background` | 1-3 independent tasks, CI, headless |
|
|
42
|
+
| `agent-team` | `Task` with `team_name` | 3+ interdependent tasks, interactive sessions |
|
|
43
|
+
|
|
44
|
+
**Auto-detection:** tmux + `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` present means `agent-team`. Otherwise `subagent`. Override with `delegate --mode subagent|agent-team`.
|
|
45
|
+
|
|
46
|
+
**CRITICAL:** Always specify `model: "opus"` for coding tasks (when not using native agent definitions).
|
|
47
|
+
|
|
48
|
+
### Pre-Dispatch Schema Discovery
|
|
49
|
+
|
|
50
|
+
Before dispatching, query decision runbooks to classify the work and select the right strategy:
|
|
51
|
+
|
|
52
|
+
1. **Task complexity:** `exarchos_orchestrate({ action: "runbook", id: "task-classification" })` to get the cognitive complexity classification tree. Low-complexity tasks can use the scaffolder agent spec for faster execution.
|
|
53
|
+
2. **Dispatch strategy:** `exarchos_orchestrate({ action: "runbook", id: "dispatch-decision" })` for dispatch strategy (parallel vs sequential, team sizing, isolation mode).
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Step 1: Prepare
|
|
58
|
+
|
|
59
|
+
Use the `prepare_delegation` composite action to validate readiness in a single call. This replaces manual script invocations and individual checks.
|
|
60
|
+
|
|
61
|
+
```typescript
|
|
62
|
+
exarchos_orchestrate({
|
|
63
|
+
action: "prepare_delegation",
|
|
64
|
+
featureId: "<featureId>",
|
|
65
|
+
tasks: [{ id: "task-001", title: "...", modules: [...] }, ...]
|
|
66
|
+
})
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
The composite action performs:
|
|
70
|
+
1. **Worktree creation** — creates `.worktrees/task-<id>` with `git worktree add`, runs `npm install`
|
|
71
|
+
2. **State validation** — verifies workflow state is in `delegate` phase, plan exists, plan approved
|
|
72
|
+
3. **Quality signal assembly** — queries `code_quality` view; if `gatePassRate < 0.80`, returns quality hints to embed in prompts. Emits `gate.executed('plan-coverage')` on success (no pre-query needed)
|
|
73
|
+
4. **Benchmark detection** — sets `verification.hasBenchmarks` if any task has benchmark criteria
|
|
74
|
+
5. **Readiness verdict** — returns `{ ready: true, worktrees: [...], qualityHints: [...] }` or `{ ready: false, reason: "..." }`
|
|
75
|
+
|
|
76
|
+
**If `ready: false`:** Stop. Report the reason to the user. Do not proceed.
|
|
77
|
+
|
|
78
|
+
**If `ready: true`:** Extract the `worktrees` paths and `qualityHints` for prompt construction.
|
|
79
|
+
|
|
80
|
+
### Task Extraction
|
|
81
|
+
|
|
82
|
+
From the implementation plan, extract for each task:
|
|
83
|
+
- Full task description (paste inline; never reference external files)
|
|
84
|
+
- Files to create/modify with absolute worktree paths
|
|
85
|
+
- Test file paths and expected test names
|
|
86
|
+
- Dependencies on other tasks (for sequencing)
|
|
87
|
+
- Property-based testing flag (`testingStrategy.propertyTests`)
|
|
88
|
+
|
|
89
|
+
For a complete worked example of this flow, see `references/worked-example.md`.
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Step 2: Dispatch
|
|
94
|
+
|
|
95
|
+
Build subagent prompts using `references/implementer-prompt.md` as the template. Each prompt MUST include the full task context — this is the fresh-context principle in action.
|
|
96
|
+
|
|
97
|
+
### Prompt Construction
|
|
98
|
+
|
|
99
|
+
**Claude Code (native agent definitions):**
|
|
100
|
+
|
|
101
|
+
The `exarchos-implementer` agent spec already includes the system prompt, model, isolation, skills, hooks, and memory. The dispatch prompt should contain ONLY task-specific context:
|
|
102
|
+
1. Full task description (requirements, acceptance criteria)
|
|
103
|
+
2. Working directory (worktree path from Step 1)
|
|
104
|
+
3. File paths to create/modify and test file paths
|
|
105
|
+
4. Quality hints (if any)
|
|
106
|
+
5. PBT flag when `propertyTests: true`
|
|
107
|
+
|
|
108
|
+
**Cross-platform (full prompt template):**
|
|
109
|
+
|
|
110
|
+
For each task:
|
|
111
|
+
1. Fill the implementer prompt template with task-specific details
|
|
112
|
+
2. Set the `Working Directory` to the worktree path from Step 1
|
|
113
|
+
3. Include quality hints (if any) in the Quality Signals section
|
|
114
|
+
4. Include PBT section from `references/pbt-patterns.md` when `propertyTests: true`
|
|
115
|
+
5. Include testing patterns from `references/testing-patterns.md`
|
|
116
|
+
|
|
117
|
+
### Decision Runbooks
|
|
118
|
+
|
|
119
|
+
For dispatch strategy decisions, query the decision runbook:
|
|
120
|
+
`exarchos_orchestrate({ action: "runbook", id: "dispatch-decision" })`
|
|
121
|
+
|
|
122
|
+
This runbook provides structured criteria for parallel vs sequential dispatch, team sizing, and failure escalation.
|
|
123
|
+
|
|
124
|
+
### Parallel Dispatch
|
|
125
|
+
|
|
126
|
+
Dispatch all independent tasks using the runtime's native spawn primitive. On runtimes with subagent support, fan out in a **single message** so the dispatches run in parallel. On runtimes without a subagent primitive, execute each task sequentially against its prepared worktree and emit one operator-visible warning per batch so users know they are not getting parallelism.
|
|
127
|
+
|
|
128
|
+
```typescript
|
|
129
|
+
spawn_agent({
|
|
130
|
+
agent_type: "default",
|
|
131
|
+
message: "Implement task-001: [title]\n\nTask-specific context: requirements, file paths, acceptance criteria"
|
|
132
|
+
})
|
|
133
|
+
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
> **Note:** On Claude Code, the `exarchos-implementer` agent definition already contains the system prompt, model, isolation, skills, hooks, and memory — the dispatch prompt should carry ONLY task-specific context. On runtimes without native agent definitions, include the full implementer prompt template from `references/implementer-prompt.md` in the `prompt` field so the spawned agent has a self-contained context.
|
|
137
|
+
|
|
138
|
+
For parallel grouping strategy and model selection, see `references/parallel-strategy.md`.
|
|
139
|
+
|
|
140
|
+
### Agent Teams Dispatch
|
|
141
|
+
|
|
142
|
+
When using `--mode agent-team`, follow the 6-step saga in `references/agent-teams-saga.md`. The saga requires event-first execution: emit event, then execute side effect at every step.
|
|
143
|
+
|
|
144
|
+
Event emission contract for agent teams: see `references/agent-teams-saga.md` for full payload shapes and compensation protocol.
|
|
145
|
+
|
|
146
|
+
### Event Emission Contract (REQUIRED)
|
|
147
|
+
|
|
148
|
+
The delegate phase requires these events (checked by `check-event-emissions`):
|
|
149
|
+
|
|
150
|
+
| Event | When | Emitted By |
|
|
151
|
+
|-------|------|------------|
|
|
152
|
+
| `team.spawned` | After team creation, before dispatch | Orchestrator |
|
|
153
|
+
| `team.task.planned` | For each task in the plan (use `batch_append`) | Orchestrator |
|
|
154
|
+
| `team.teammate.dispatched` | After each subagent is spawned | Orchestrator |
|
|
155
|
+
| `task.progressed` | After each TDD phase (red/green/refactor) | Subagent |
|
|
156
|
+
| `team.disbanded` | After all subagents complete | Orchestrator |
|
|
157
|
+
|
|
158
|
+
See `references/agent-teams-saga.md` for full event schemas and emission order.
|
|
159
|
+
|
|
160
|
+
> **Note:** `task.progressed` events are emitted by subagents during TDD execution, not by the orchestrator. The orchestrator only emits team lifecycle events.
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## Step 3: Monitor and Collect
|
|
165
|
+
|
|
166
|
+
### Subagent Monitoring
|
|
167
|
+
|
|
168
|
+
Poll background tasks and collect results:
|
|
169
|
+
|
|
170
|
+
```typescript
|
|
171
|
+
TaskOutput({ task_id: "<id>", block: true })
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
After each subagent reports completion:
|
|
175
|
+
|
|
176
|
+
> **Runbook:** For each completed task, execute the task-completion runbook:
|
|
177
|
+
> `exarchos_orchestrate({ action: "runbook", id: "task-completion" })`
|
|
178
|
+
> Execute the returned steps in order. Stop on gate failure.
|
|
179
|
+
> If the runbook action is unavailable, use `describe` to retrieve gate schemas and run manually:
|
|
180
|
+
> `exarchos_orchestrate({ action: "describe", actions: ["check_tdd_compliance", "check_static_analysis", "task_complete"] })`
|
|
181
|
+
|
|
182
|
+
1. **Extract provenance from subagent report** — parse the subagent's completion output and extract structured provenance fields (`implements`, `tests`, `files`). These fields are reported by the subagent following the Provenance Reporting section of the implementer prompt.
|
|
183
|
+
|
|
184
|
+
2. **Verify worktree state** — confirm each worktree has clean `git status` and passing tests
|
|
185
|
+
|
|
186
|
+
3. **Run blocking gates** — the `task-completion` runbook (referenced above) defines the exact gate sequence (TDD compliance, static analysis, then task_complete). On any gate failure, keep the task in-progress and report findings. All gate handlers auto-emit `gate.executed` events, so manual `exarchos_event` calls are not needed.
|
|
187
|
+
|
|
188
|
+
5. **Pass provenance in task completion** — when marking a task complete, pass the extracted provenance fields in the `result` parameter so they flow into the `task.completed` event:
|
|
189
|
+
|
|
190
|
+
```typescript
|
|
191
|
+
exarchos_orchestrate({
|
|
192
|
+
action: "task_complete",
|
|
193
|
+
taskId: "<taskId>",
|
|
194
|
+
streamId: "<featureId>",
|
|
195
|
+
result: {
|
|
196
|
+
summary: "<task summary>",
|
|
197
|
+
implements: ["DR-1", "DR-3"],
|
|
198
|
+
tests: [{ name: "testName", file: "path/to/test.ts" }],
|
|
199
|
+
files: ["path/to/impl.ts", "path/to/test.ts"]
|
|
200
|
+
}
|
|
201
|
+
})
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
6. **Update workflow state** — set each passing `tasks[].status` to `"complete"` via `exarchos_workflow set`
|
|
205
|
+
7. **Delegation completion gate (D4, advisory)** — after ALL tasks pass, run an operational resilience check on the full branch diff before transitioning to review:
|
|
206
|
+
|
|
207
|
+
```typescript
|
|
208
|
+
exarchos_orchestrate({
|
|
209
|
+
action: "check_operational_resilience",
|
|
210
|
+
featureId: "<featureId>",
|
|
211
|
+
repoRoot: ".",
|
|
212
|
+
baseBranch: "main"
|
|
213
|
+
})
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
This is advisory — findings are recorded for the convergence view but do not block the delegation→review transition. Include findings in the delegation summary for review-phase attention.
|
|
217
|
+
|
|
218
|
+
8. **Schema sync** — if any task modified API files (`*Endpoints.cs`, `Models/*.cs`), run `npm run sync:schemas`
|
|
219
|
+
|
|
220
|
+
### Agent Teams Monitoring
|
|
221
|
+
|
|
222
|
+
- Teammates visible in tmux split panes
|
|
223
|
+
- `TeammateIdle` hook auto-runs quality gates and emits completion/failure events
|
|
224
|
+
- Orchestrator monitors via `exarchos_view delegation_timeline` for bottleneck detection
|
|
225
|
+
- See `references/agent-teams-saga.md` for disbanding and reconciliation
|
|
226
|
+
|
|
227
|
+
### Failure Recovery
|
|
228
|
+
|
|
229
|
+
When a task fails:
|
|
230
|
+
1. Read the failure output from `TaskOutput`
|
|
231
|
+
2. Diagnose root cause — do NOT trust the implementer's self-assessment (see R3 adversarial posture)
|
|
232
|
+
3. Fix the task using the resume-aware fixer flow below
|
|
233
|
+
4. Run the `task-fix` runbook gate chain after the fix completes
|
|
234
|
+
|
|
235
|
+
For the full recovery flow with a concrete example, see `references/worked-example.md`.
|
|
236
|
+
|
|
237
|
+
### Fix Failed Tasks
|
|
238
|
+
|
|
239
|
+
Dispatch a fix agent with the full failure context and the original task description. On runtimes that support session resume (e.g. Claude Code with an `agentId` in workflow state), prefer resuming the original agent so it retains its implementer context; otherwise dispatch a fresh fixer agent using the runtime's native spawn primitive.
|
|
240
|
+
|
|
241
|
+
```typescript
|
|
242
|
+
spawn_agent({
|
|
243
|
+
agent_type: "default",
|
|
244
|
+
message: "Fix failed task-001\n\nYour implementation failed. [failure context from test output]. Apply adversarial verification: do NOT trust your previous self-assessment, re-read actual test output, identify root cause not symptoms. [Original task context]."
|
|
245
|
+
})
|
|
246
|
+
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
After fix completes, run the `task-fix` runbook gate chain:
|
|
250
|
+
`exarchos_orchestrate({ action: "runbook", id: "task-fix" })`
|
|
251
|
+
If runbook unavailable, use `describe` to retrieve gate schemas: `exarchos_orchestrate({ action: "describe", actions: ["check_tdd_compliance", "check_static_analysis", "task_complete"] })`
|
|
252
|
+
|
|
253
|
+
---
|
|
254
|
+
|
|
255
|
+
## Fix Mode (--fixes)
|
|
256
|
+
|
|
257
|
+
Handles review failures instead of initial implementation. Uses `references/fixer-prompt.md` template with adversarial verification posture, dispatches fix tasks per issue, then re-invokes review to re-integrate fixes.
|
|
258
|
+
|
|
259
|
+
**Arguments:** `--fixes <state-file-path>` — state JSON containing review results in `.reviews.<taskId>.specReview` or `.reviews.<taskId>.qualityReview`.
|
|
260
|
+
|
|
261
|
+
For detailed fix-mode process, see `references/fix-mode.md`. For PR feedback workflows (`--pr-fixes`), see `references/pr-fixes-mode.md`.
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
## Context Compaction Recovery
|
|
266
|
+
|
|
267
|
+
If context compaction occurs during delegation:
|
|
268
|
+
1. Query workflow state: `exarchos_workflow get` with `fields: ["tasks"]`
|
|
269
|
+
2. Check active worktrees: `ls .worktrees/` and verify branch state
|
|
270
|
+
3. Reconcile: `exarchos_workflow reconcile` replays the event stream and patches stale task state (CAS-protected)
|
|
271
|
+
4. Do NOT re-create branches or re-dispatch agents until confirmed lost
|
|
272
|
+
|
|
273
|
+
### Worktree State Schema
|
|
274
|
+
|
|
275
|
+
Worktree entries are stored as `worktrees["<wt-id>"]` in workflow state. Each entry requires:
|
|
276
|
+
|
|
277
|
+
| Field | Type | Required | Notes |
|
|
278
|
+
|-------|------|----------|-------|
|
|
279
|
+
| `branch` | string | Yes | Git branch name |
|
|
280
|
+
| `taskId` | string | Conditional | Single task ID (use for 1-task worktrees) |
|
|
281
|
+
| `tasks` | string[] | Conditional | Multiple task IDs (use for multi-task worktrees) |
|
|
282
|
+
| `status` | `"active"` \| `"merged"` \| `"removed"` | Yes | Worktree lifecycle status |
|
|
283
|
+
|
|
284
|
+
Either `taskId` or `tasks` (non-empty array) is required — at least one must be present.
|
|
285
|
+
|
|
286
|
+
**Single-task example:**
|
|
287
|
+
```json
|
|
288
|
+
{ "branch": "feat/task-001", "taskId": "task-001", "status": "active" }
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
**Multi-task example:**
|
|
292
|
+
```json
|
|
293
|
+
{ "branch": "feat/integration", "tasks": ["task-001", "task-002"], "status": "active" }
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
---
|
|
297
|
+
|
|
298
|
+
## Phase Transitions and Guards
|
|
299
|
+
|
|
300
|
+
For the full transition table, consult `@skills/workflow-state/references/phase-transitions.md`.
|
|
301
|
+
|
|
302
|
+
**Quick reference:** The `delegate` → `review` transition requires guard `all-tasks-complete` — all `tasks[].status` must be `"complete"` in workflow state.
|
|
303
|
+
|
|
304
|
+
> **Before transitioning to review:** You MUST first update all task statuses to `"complete"` via `exarchos_workflow set` with the tasks array. The phase transition will be rejected by the guard if any task is still pending/in_progress/failed. Update tasks first, then set the phase in a separate call.
|
|
305
|
+
|
|
306
|
+
### Task Status Values
|
|
307
|
+
|
|
308
|
+
| Status | When to use |
|
|
309
|
+
|--------|------------|
|
|
310
|
+
| `pending` | Task not yet started |
|
|
311
|
+
| `in_progress` | Task actively being worked on |
|
|
312
|
+
| `complete` | Task finished successfully |
|
|
313
|
+
| `failed` | Task encountered an error (requires fix cycle) |
|
|
314
|
+
|
|
315
|
+
### Schema Discovery
|
|
316
|
+
|
|
317
|
+
Use `exarchos_workflow({ action: "describe", actions: ["set", "init"] })` for
|
|
318
|
+
parameter schemas and `exarchos_workflow({ action: "describe", playbook: "feature" })`
|
|
319
|
+
for phase transitions, guards, and playbook guidance. Use
|
|
320
|
+
`exarchos_orchestrate({ action: "describe", actions: ["check_tdd_compliance", "task_complete"] })`
|
|
321
|
+
for orchestrate action schemas.
|
|
322
|
+
|
|
323
|
+
## Transition
|
|
324
|
+
|
|
325
|
+
After all tasks complete, **auto-continue immediately** (no user confirmation):
|
|
326
|
+
|
|
327
|
+
1. Verify all `tasks[].status === "complete"` in workflow state
|
|
328
|
+
2. Update state: `exarchos_workflow set` with `phase: "review"`
|
|
329
|
+
3. Invoke: `[Invoke the exarchos:review skill with args: <plan-path>]`
|
|
330
|
+
|
|
331
|
+
This is NOT a human checkpoint — the workflow continues autonomously.
|
|
332
|
+
|
|
333
|
+
---
|
|
334
|
+
|
|
335
|
+
## References
|
|
336
|
+
|
|
337
|
+
| Document | Purpose |
|
|
338
|
+
|----------|---------|
|
|
339
|
+
| `references/implementer-prompt.md` | Full prompt template for implementation tasks |
|
|
340
|
+
| `references/fixer-prompt.md` | Fix agent prompt with adversarial verification posture |
|
|
341
|
+
| `references/worked-example.md` | Complete delegation trace with recovery path (R1) |
|
|
342
|
+
| `references/rationalization-refutation.md` | Common rationalizations and counter-arguments (R2) |
|
|
343
|
+
| `references/agent-teams-saga.md` | 6-step agent-team saga with event payloads |
|
|
344
|
+
| `references/parallel-strategy.md` | Parallel grouping and model selection |
|
|
345
|
+
| `references/testing-patterns.md` | Arrange/Act/Assert, naming, mocking conventions |
|
|
346
|
+
| `references/pbt-patterns.md` | Property-based testing patterns |
|
|
347
|
+
| `references/fix-mode.md` | Detailed fix-mode process |
|
|
348
|
+
| `references/pr-fixes-mode.md` | PR feedback fix workflows |
|
|
349
|
+
| `references/state-management.md` | State patterns and benchmark labeling |
|
|
350
|
+
| `references/troubleshooting.md` | Common failure modes and resolutions |
|
|
351
|
+
| `references/adaptive-orchestration.md` | Adaptive team composition |
|
|
352
|
+
| `references/workflow-steps.md` | Cross-platform step-by-step delegation reference |
|
|
353
|
+
| `references/worktree-enforcement.md` | Worktree isolation rules |
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Adaptive Orchestration
|
|
2
|
+
|
|
3
|
+
When using Agent Teams mode, the orchestrator can leverage historical data for smarter team composition.
|
|
4
|
+
|
|
5
|
+
## Pre-Delegation Intelligence
|
|
6
|
+
|
|
7
|
+
Before creating the team, query the TeamPerformanceView for historical teammate metrics:
|
|
8
|
+
- `exarchos_view` with `action: 'team_performance'` -- teammate efficiency, module expertise, quality gate pass rates
|
|
9
|
+
- Use `synthesizeIntelligence()` from SubagentStart hook for historical fix-cycle patterns per module
|
|
10
|
+
|
|
11
|
+
## Team Composition
|
|
12
|
+
|
|
13
|
+
Informed by historical metrics:
|
|
14
|
+
- **Team sizing:** Use `teamSizing.avgTasksPerTeammate` to determine optimal teammate count
|
|
15
|
+
- **Task assignment:** Match modules to teammates with relevant `moduleExpertise`
|
|
16
|
+
- **Cold start:** When no historical data exists, fall back to plan's parallel groups for sizing
|
|
17
|
+
|
|
18
|
+
## Guard-Aware Task Graph
|
|
19
|
+
|
|
20
|
+
Before creating the native Claude Code task list:
|
|
21
|
+
1. Build a dependency graph from plan task `blockedBy` fields
|
|
22
|
+
2. Identify the critical path through the dependency chain
|
|
23
|
+
3. Front-load independent tasks for maximum parallelism
|
|
24
|
+
4. On TeammateIdle, scan the task graph for newly unblocked tasks (tasks whose `blockedBy` dependencies are all completed) so teammates can claim them
|
|
25
|
+
|
|
26
|
+
## Intelligence Views
|
|
27
|
+
|
|
28
|
+
Two CQRS views provide team analytics:
|
|
29
|
+
|
|
30
|
+
- `exarchos_view` with `action: 'team_performance'` -- Query before delegation for team sizing and module assignment. Returns teammate metrics (tasks completed, avg duration, module expertise, quality gate pass rates) and team sizing recommendations.
|
|
31
|
+
- `exarchos_view` with `action: 'delegation_timeline'` -- Query after delegation for retrospective analysis. Returns task timeline with bottleneck detection (longest task, blocking dependencies).
|