A disciplined debugging process — reproduce, isolate, hypothesise, and verify — used before proposing any fix.
Debugging and Error Recovery Skill
Addy Osmani's systematic debugging skill: stop the line, then reproduce, localize, reduce, fix the root cause, guard with a test and verify end to end, treating error output as untrusted data.
Install
Other ways to install
About
- Stop-the-Line rule: no new work while something is broken
- Ordered triage: reproduce, localize, reduce, fix, guard, verify
- git bisect for finding the commit that introduced a bug
- Separate triage for test, build and runtime failures
- Safe fallback patterns and instrumentation guidelines
- Treats error output and logs as untrusted data, not instructions
Debugging and Error Recovery, from Addy Osmani's agent-skills collection, gives a coding agent a fixed procedure for the moment something breaks: a failing test, a broken build, a runtime error, or behaviour that no longer matches expectations. Its core is the Stop-the-Line rule: stop adding features, preserve the evidence, diagnose, fix the root cause, guard against recurrence, and resume only once verification passes, because a bug left in place makes every later step wrong.
The triage checklist runs in order. Reproduce the failure reliably (the specific test, verbose output, in isolation to rule out test pollution). Localize it, including git bisect to find the commit that introduced it. Reduce it to a minimal case. Fix the cause rather than the symptom. Add a regression test. Verify end to end with the failing test, the full suite, a build and a manual check. Separate triage guides cover test failures, build failures and runtime errors, followed by safe fallback patterns and guidance on adding instrumentation.
One section deals with a risk specific to agents: error messages, stack traces and CI logs are treated as data to analyse, not instructions to follow, so a command or URL embedded in error output is shown to the user instead of being run. The skill ends with common rationalisations ("I know what the bug is", "it's a flaky test"), red flags and a verification list. MIT-licensed.
Try it
Once installed, ask your agent something like:
The checkout tests started failing after yesterday's merge. Find out why and fix the root cause.
SKILL.md
The instructions your agent loads, as published by Addy Osmani.
Related Skills
See all Debugging and Error Recovery alternativesMicrosoft's official Playwright skill — drives a real browser from the command line using accessibility snapshots and element refs, and plans, generates and heals Playwright tests.
Skill: Diagnosing Bugs
by Matt Pocock
Matt Pocock's discipline for hard bugs and performance regressions: build a tight, red-capable feedback loop first, then reproduce, minimise, hypothesise, instrument, fix with a regression test and clean up.
Skill: Datadog Triage Flaky Test
by Datadog
Official Datadog skill for investigating one flaky test — pulls its history and failure pattern, categorises the root cause and recommends fixing, quarantining or escalating.