Install
openclaw skills install debug-probeProvides a precise six-phase hypothesis-driven runtime debugging process with minimal instrumentation to identify and fix root causes of unexpected behavior.
openclaw skills install debug-probeWhen you hit a bug that reading code can't resolve:
[DIAG_<topic>]Never skip to fixing. Always clean up after.
Read relevant source code. Generate 2-4 testable hypotheses:
[H1] Root cause may be X → if true, log would show Y
[H2] Root cause may be Z → if true, log would show W
Share hypotheses with user before touching code.
Rules:
[DIAG_<topic>] (short topic like auth, render, state)// DIAG: remove after debug (adapt comment syntax to language)Use diagLog('H1', 'key=val', ...) — outputs to both console and an in-memory buffer so users can export all logs at once after reproducing the bug.
[DIAG][H1], [DIAG][H2])| Situation | Action |
|---|---|
| Logs confirm a hypothesis | Confirmed root cause → Phase 5 |
| All hypotheses refuted | New hypotheses from log clues → Phase 2 |
| Insufficient data | More precise instrumentation → Phase 2 |
Max 2-3 iterations before escalating.
Mandatory. Search for DIAG: remove after debug and:
console.log / print — use the diag buffer pattern