systematic-debugging

Diagnose bugs and failures through evidence-based root cause analysis before proposing fixes.

Updated Aug 5, 2026
One-click install
npx skills add https://github.com/ahsanghalib/ai-workflow --skill systematic-debugging-ahsanghalib
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: systematic-debugging
Source: https://github.com/ahsanghalib/ai-workflow/tree/main/skills/systematic-debugging
Command: npx skills add https://github.com/ahsanghalib/ai-workflow --skill systematic-debugging-ahsanghalib

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When a bug, flaky test, or performance regression appears, it is tempting to apply speculative fixes that mask symptoms instead of removing the cause. This Skill enforces a disciplined debugging workflow that preserves evidence, reproduces the failure, tests ranked hypotheses, and only proposes a fix after the root cause is proven. ## Core Features & Use Cases - Evidence-First Investigation: Captures the observed behavior, environment, error signatures, and smallest safe reproduction before touching any code. - Ranked Hypothesis Testing: Forms one hypothesis at a time with explicit predictions, discriminating experiments, and approval gates, stopping after three failed hypotheses to reassess. - Structured Debug Report: Produces a standardized report covering symptom, reproduction, localization, root cause, smallest fix, and regression plan. - Use Case: A CI test fails intermittently. Instead of adding retries or sleeps, use this Skill to identify the meaningful state transition, record the reproduction rate, trace the failing state across boundaries, and propose a minimal root-cause fix with a regression test. ## Quick Start Ask the assistant to systematically debug the failing test or error you are seeing, find the root cause with evidence, and report it before making any code changes.

Frequently Asked Questions about systematic-debugging

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

FAQPage Schema
How do I debug a flaky test without adding retries or sleeps?▼

Identify a meaningful state transition or completion condition instead of fixed waits, then record the reproduction rate and conditions. Trace the failing state across callers and boundaries to find the root cause rather than masking it with retries.

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

Preserve evidence first: capture the observed behavior, environment, and smallest safe reproduction. Then form one ranked hypothesis at a time with a discriminating experiment, and only propose a fix once evidence supports a specific cause.

What should a debugging report include?▼

A debugging report should cover symptom and impact, reproduction and evidence, localization, ranked hypotheses, root cause or current limitation, the smallest proposed fix, regression and verification plan, and risks or required approvals.

When should I stop debugging and reassess my approach?▼

Stop after three well-scoped hypotheses fail, then reassess the reproduction, assumptions, affected seam, and possible architectural cause. Also stop once evidence is sufficient to name the root cause rather than continuing unrelated investigation.

Can this debugging workflow apply fixes automatically?▼

No, applying fixes, adding instrumentation, or creating tests requires separate approval and an implementation workflow. The debugging process ends with a proposed minimal fix and verification plan, not unilateral code changes.