debug

star 164

Find and fix the root cause when something breaks: a failing test, a broken build, a bug report, or behavior that doesn't match expectations. Use when the user says 'debug', 'why is this failing', 'fix this bug', or when a failure interrupts other work.

owainlewis By owainlewis schedule Updated 6/11/2026

name: debug description: "Find and fix the root cause when something breaks: a failing test, a broken build, a bug report, or behavior that doesn't match expectations. Use when the user says 'debug', 'why is this failing', 'fix this bug', or when a failure interrupts other work." user-invocable: true argument-hint: "<failure description, error output, or bug report>"

Debug

Find the root cause and fix it for good. Stop the line: when something breaks, don't push past it to the next piece of work. Errors compound.

Workflow

  1. Preserve the evidence. Capture the error output, logs, and the state that produced the failure before changing anything.
  2. Reproduce it. Make the failure happen reliably. If you can't reproduce it, gather context until you can; report what you observed rather than fixing blind.
  3. Find the root cause. Trace the error to the code and explain why it happens. A fix you can't explain is a guess.
  4. Run tdd with the root cause as the behavior: the failing test reproduces the bug, the fix makes it pass, and the test guards against recurrence.
  5. Verify and report. Run the wider checks, then report the root cause, the fix, the guarding test, and anything still unexplained.

Rules

  • Fix the cause, not the symptom. Deleting the assertion, widening the type, or swallowing the exception is not a fix.
  • One bug at a time. If diagnosis reveals a second issue, report it instead of expanding the fix.
  • If the failure comes from unrelated code or flaky infrastructure, say so and report it; don't absorb it into the current task.
  • Stop and hand back when the root cause needs a product or ownership decision.
Install via CLI
npx skills add https://github.com/owainlewis/blueprint --skill debug
Repository Details
star Stars 164
call_split Forks 30
navigation Branch main
article Path SKILL.md
More from Creator