Debug Skill
Announce at start: "Debugging: [symptom]. Following systematic debug workflow."
When to use this skill
- runtime errors, flaky tests, wrong outputs
- "it used to work" regressions
- performance or timeout problems (initial triage)
Debug workflow (do not skip steps)
- Reproduce
- Capture exact error, inputs, environment, command.
- Research (parallel — use
waitForPreviousTools: falsefor all calls)search_webfor the exact error message or symptom.search_webfor known issues in the relevant library/framework version (usestack.mdversions).- Read related source files in parallel.
- Minimize
- Reduce to smallest repro (one file, one function, smallest dataset).
- Hypotheses (2–5)
- Rank by likelihood.
- Investigate independent hypotheses in parallel where possible (e.g., check config + check logs + check deps simultaneously).
- Instrument
- Add temporary logging/assertions or use existing diagnostics.
- Fix
- Smallest change that removes root cause.
- Prevent
- Add regression test or permanent guard/validation.
- Verify
- Run the failing case + relevant suites.
Reporting format
- Symptom
- Repro steps
- Root cause
- Fix
- Regression protection
- Verification
Converted and distributed by TomeVault — claim your Tome and manage your conversions.