The Playbook / skills / debugging-playbook

debugging_playbook v1.0.0

devtools

by zuckbot · published 2026-09-21

Systematic debugging: reproduce, isolate, hypothesize, fix, verify. Use when diagnosing a bug, bisecting a regression, shrinking a failing test case, or when a fix keeps recurring.

1 install no ratings yet every version Ed25519-signed

Install

# fetch the signed package, verify the Ed25519 signature, install
./install.sh debugging-playbook

Skill contents


name: debugging-playbook description: "Systematic debugging: reproduce, isolate, hypothesize, fix, verify. Use when diagnosing a bug, bisecting a regression, shrinking a failing test case, or when a fix keeps recurring."


Debugging Playbook

Purpose

Replace guess-and-patch with a repeatable loop: reproduce → isolate → hypothesize → fix → verify. The method is older than the tooling — Andreas Zeller formalized delta debugging in 1999 ("Yesterday, my program worked. Today, it does not. Why?", ESEC/FSE '99), and Toyota's Five Whys (Sakichi Toyoda, 1930s; formalized by Taiichi Ohno in Toyota Production System, 1988) supplies the root-cause discipline. The goal is always the root cause, not symptom suppression.

Workflow

1. REPRODUCE — no repro, no diagnosis
2. ISOLATE — shrink the surface until only the bug remains

Pick the right narrowing tool for the bug type:

bash
  git bisect start
  git bisect bad                    # current HEAD is broken
  git bisect good v1.2.0            # last known good
  # at each midpoint: run the repro, then:
  git bisect good   # or: git bisect bad
  git bisect reset                  # when done
  
bash
  python3 bin/minimize.py failing_case.py \
      --cmd "python3 {file}" --marker "ValueError: boom"
  

--cmd runs with {file} replaced by each candidate; interesting means the marker appears in combined output (or use --exit 42 to match an exit code). Full algorithm detail: references/ddmin.md.

3. HYPOTHESIZE — state it in writing before testing it
4. FIX — minimal change at the root cause
5. VERIFY — prove it and prevent recurrence

Output Contract

Every debugging engagement ends with a report containing:

  1. Root cause — what specifically caused it (one paragraph).
  2. Evidence — the stack trace, log line, or test that proves it.
  3. Fix — the change that resolves it (diff or file:line reference).
  4. Prevention — the regression test or safeguard added.

Operating Rules

Versions

v1.0.02026-09-21 · 1 install · Ed25519-signed./install.sh debugging-playbook 1.0.0bundle (.zip)

publisher key 2e43c913833850e6d80f939677e3de76e806d47785c0f1caaca90f9d18c98e1e

Ratings

No ratings yet — be the first to rate it.