debugging

Diagnose failures by reproducing symptoms and isolating root causes with evidence.

1|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/kreek/consult --skill debugging-kreek
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: debugging
Source: https://github.com/kreek/consult/tree/main/plugin/skills/debugging
Command: npx skills add https://github.com/kreek/consult --skill debugging-kreek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Debugging often devolves into guess-and-check fixes that mask symptoms without addressing the underlying defect. This Skill enforces a disciplined, evidence-first debugging process so bugs are reproduced, root-caused, and fixed with regression protection instead of speculative patches. ## Core Features & Use Cases - Root-Cause Discipline: Enforces the rule of no fix without root-cause evidence, requiring a stated failure model before any edit. - Systematic Hypothesis Testing: Guides one-hypothesis-at-a-time experiments with a debug log after the third attempt. - Flake and Timing Bug Handling: Treats flaky tests as real bugs and verifies timing-sensitive issues through non-invasive observation rather than sleeps. - Use Case: When a production incident or intermittent test failure appears, use this Skill to capture the exact symptom, isolate the cause with minimal experiments, and ship one atomic fix guarded by a regression test. ## Quick Start Use the debugging skill to reproduce this failing test, identify its root cause, and propose a fix with a regression test.

Frequently Asked Questions about debugging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug a failing test systematically?▼

Reproduce the failure first and capture the exact symptom: command, input, output, and stack trace. Then test one hypothesis at a time with the smallest experiment possible, and only edit code after stating the likely cause and the evidence supporting it.

How to find the root cause of a bug before fixing it?▼

State a failure model naming the likely cause, the evidence for it, and the observation that would disprove it. The root cause should explain every observed symptom in one sentence and name the evidence that ruled out the main alternatives.

Should I retry a flaky test or investigate it?▼

Investigate it. A flake is a bug, so identify whether the test, the code, or the environment failed rather than retrying it away. Retrying hides the defect and lets it resurface later in production.

When should I not use a root-cause debugging process?▼

Skip it for planned refactors with no failing behavior, which belong in a refactoring workflow, and for pure performance symptoms, which fit a performance workflow. Git bisect and reflog mechanics pair better with a git-workflow skill.

Why does adding sleeps fail to fix timing-sensitive bugs?▼

Sleeps mask race conditions without proving the cause. Timing-sensitive bugs should be verified with non-invasive observation or replay, showing interleaving, shared state, or timing evidence before touching concurrency code.