skills/run-debug/SKILL.md
Use when: 'failing tests', 'crashes', 'regressions', 'flaky failures'.
npx skillsauth add kenoxa/spine run-debugInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Diagnose root cause and fix: observe → pattern → hypothesis → harden. Subagent-dispatched with orchestrator-managed loop.
Reference paths (backticked): dispatch to subagent — do NOT Read into mainthread.
| Phase | Agent | Reference |
|-------|-------|-----------|
| Observe | @scout | references/observe-scout.md |
| Pattern | @researcher | references/pattern-researcher.md |
| Hypothesis | @implementer | references/hypothesis-implementer.md |
| Harden | @implementer | references/harden-implementer.md |
hypothesis_attempts: 0 # increment on each hypothesis dispatch, cap 5
dead_ends: .scratch/<session>/debug-dead-ends.md # append-only
current_phase: observe # observe | pattern | hypothesis | harden
instrumentation_tag: <4-char hex from openssl rand -hex 2> # generated once per session
Phase Trace: Log row at each phase transition (observe, pattern, hypothesis, harden) and each backtrack. Include hypothesis_attempts count and status.
observe(@scout) → pattern(@researcher) → hypothesis(@implementer) → harden(@implementer)
Backtrack: hypothesis fails → orchestrator appends failed hypotheses to dead_ends → increment hypothesis_attempts → re-dispatch observe with dead_ends path.
Proceed: hypothesis confirmed → dispatch harden with confirmed hypothesis.
Each dispatch is self-contained. Pass by path:
dead_ends path (if backtracking)debug-observe.md path, dead_ends path (if exists)debug-pattern.md path, dead_ends path, instrumentation_tagdebug-hypothesis.md path, instrumentation_tagAfter each hypothesis dispatch, orchestrator reads debug-hypothesis.md header (status: confirmed|failed) to decide backtrack or proceed.
hypothesis_attempts >= 5) → halt loop, report all dead-end evidence to user, suggest /use-goal-prompt interrogate for architectural investigation./use-goal-prompt interrogate).Verification requires current-run evidence (E3). Confirm instrumentation fully removed before marking complete.
testing
Use when: 'clawpatch', 'clawpatch campaign', 'clawpatch review fix revalidate'.
tools
Use when: 'create a worktree', 'git worktree', 'parallel branch'.
tools
Use when: 'session state', 'resume work', 'worktree session'.
development
Use when: 'goal prompt', 'frame this', 'scope this', 'design', 'plan the approach', 'implement and review', 'just ship it', 'fix this', 'add this'.