Iterative hypothesis-driven debugging for unknown-cause bugs. Runs rounds of five falsifiable predictions to narrow scope, then validates a fix. Invoked by name or when asked to drill into a bug.
Ships in prediction-drill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
One bug. One agent. Two drills. Descend the problem space to the root cause, then ascend the solution space to a validated fix. Every step is a falsifiable prediction, checked cheaply.
Guiding principle: reduce the problem before trying to fix it. Every lookup and every round shrinks scope until the cause jumps out — the drill is reduction made rigorous.
Single-stranded: run every round in this session. No subagents unless the user explicitly commands it. If commanded for multiple issues, each issue runs this loop independently; the orchestrator verifies each drill log on return.
A round is 5 predictions. Each must be:
Check all five. Mark each TRUE (survived) or FALSIFIED (with the lesson the failure taught — what it excluded).
Convergence is rung-gated. All-5-true at a coarse rung does not end the phase — it earns one rung deeper. Only terminal-rung survivors converge. This blocks timid rounds from finishing early.
Stall valve. Typically 2–4 rounds per phase. If ~5 rounds die at the same granularity, stop honestly: report the verified boundary (confirmed facts, excluded causes), name the check that is too expensive to run, and ask the user before scaling any check past the minutes budget. Never soften predictions to force convergence — that counterfeits a green and delivers nothing.
Answer five questions with lookups first — git history, logs, and input inspection are cheaper than code comprehension:
git log, git diff, recent deploys)Answers seed round 1; unanswered questions become round 1 predictions. Read only the code the answers implicate — never start by reading the code at large.
Goal: root cause at mechanism granularity — where it lives, what state/input triggers it, why behavior diverges.
Granularity ladder — one rung per round, recentered on survivors:
Goal: a minimal fix, validated element by element.
Predict about elements of one solution, not competing whole solutions: the guard that prevents the state, the invariant the fix restores, what callers do after the change, which test flips, what breaks elsewhere.
Ladder outward: fix shape → element → exact change → integration (callers, side effects) → verification (repro flips, suite green) ← terminal rung = fully specified fix + blast radius.
Recenter on the closest approach from falsified rounds.
bd close <id> --reason "root cause + fix", then bd sync.Keep in-session; it is the evidence the close-out files.
Triage: broke after 08-20 deploy; git log → ts parser touched 08-19; repro = midnight fixture
A1 P1 cause is in ingest path, not query — grep router; both pass through normalize() — TRUE
A1 P2 rows drop before validation — counter at validation entry — FALSIFIED (rows arrive intact; drop is later)
A2 P1 (recentered: post-validation) midnight ts sorts before epoch floor — fixture repro — TRUE
B1 P1 clamping ts at parse prevents the drop — patched repro no longer drops — TRUE
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/prediction-drill:prediction-drillfrom prediction-drill
npx claudepluginhub ratacat/ratacats-skills --plugin prediction-drill