Loading...
Loading...
Bug investigation and fix workflow. Triggers: 'debug', 'fix bug', 'investigate issue', 'something is broken', or /debug. Hotfix track for quick fixes, thorough track for root cause analysis. Do NOT use for feature development or refactoring. Do NOT escalate to /ideate unless the fix requires architectural redesign.
npx skill4agent add lvlup-sw/exarchos debug/debug/debug/refactor /debug
│
┌────┴────┐
│ Triage │
└────┬────┘
│
┌─────────────────┼─────────────────┐
│ │ │
--hotfix (default) --escalate
│ │ │
▼ ▼ ▼
┌────────────────┐ ┌─────────────┐ ┌──────────┐
│ Hotfix Track │ │ Thorough │ │ /ideate │
│ │ │ Track │ │ handoff │
└────────────────┘ └─────────────┘ └──────────┘# Default: thorough track
/debug "Description of the bug"
# Fast path: hotfix track
/debug --hotfix "Production is down - users can't login"
# Escalate to feature workflow
/debug --escalate "This needs architectural changes"# Switch from hotfix to thorough (during investigation)
/debug --switch-thorough
# Escalate to /ideate (manual handoff)
/debug --escalate "Reason for escalation"
# Resume after context compaction
/rehydrate| Aspect | Hotfix | Thorough |
|---|---|---|
| Urgency | P0 (production down) | P1/P2 (normal priority) |
| Investigation | 15 min time-boxed | No time limit |
| RCA Document | No (minimal in state) | Yes (full docs/rca/) |
| Worktree | No (in-place fix) | Yes (isolated) |
| Review | Smoke test only | Spec review |
| Human Checkpoints | 1 (merge) | 1 (merge) |
exarchos_orchestrate({ action: "runbook", id: "triage-decision" })exarchos_orchestrate({ action: "runbook", id: "investigation-decision" })triageinvestigatehotfix-implementhotfix-validatecompletedreferences/triage-questions.mdinvestigation.startedAtinvestigation.timeoutreferences/hotfix-track.mdtriageinvestigatercadesigndebug-implementdebug-validatedebug-reviewsynthesizecompletedreferences/thorough-track.mdreferences/investigation-checklist.md/ideatereferences/thorough-track.mdtriage → investigate → hotfix-implement → [HUMAN: hotfix-validate] → completed
(auto) (auto)triage → investigate → rca → design → debug-implement → debug-validate → debug-review → [HUMAN: synthesize] → completed
(auto) (auto) (auto) (auto) (auto) (auto)action: "init", featureId: "debug-<issue-slug>", workflowType: "debug"@skills/debug/references/state-schema.md@skills/workflow-state/references/phase-transitions.mdexarchos_workflow({ action: "describe", actions: ["set", "init"] })exarchos_workflow({ action: "describe", playbook: "debug" })/rehydrateworkflowType: "debug"exarchos_workflow setcompleted| Exit path | Guard | Required state |
|---|---|---|
| Direct push (no PR) | | |
| Validation passed | | |
| Via PR | Through | |
references/rca-template.mdsynthesizecompletedpr-url-existsprUrl| Don't | Do Instead |
|---|---|
| Start coding before understanding bug | Investigate first, always |
| Skip RCA on thorough track | Document for future learning |
| Exceed 15 min on hotfix investigation | Switch to thorough track |
| Add features during bug fix | Scope creep - only fix the bug |
| Skip tests because "it's just a fix" | Fixes need tests to prevent regression |
references/troubleshooting.md