systematic-debugging

Diagnose bugs through a four-phase root-cause investigation process before proposing fixes.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Random fixes and guess-and-check patches waste time, mask underlying issues, and introduce new bugs. This Skill enforces a disciplined debugging methodology that finds the root cause before any fix is attempted. ## Core Features & Use Cases - Four-Phase Process: Root cause investigation, pattern analysis, hypothesis testing, and verified implementation, each gated before proceeding. - Multi-Component Evidence Gathering: Instrument component boundaries (build, test, service layers) to locate exactly where failures originate. - Architectural Escalation: After three failed fixes, stop and question the architecture instead of attempting a fourth patch. - Defense-in-Depth Validation: Add validation at entry, business logic, environment, and debug layers so fixed bugs become structurally impossible. - Use Case: A CI pipeline fails intermittently. Instead of retrying or tweaking config blindly, trace data flow across each stage, form a single hypothesis, test it minimally, and verify with a failing test case. ## Quick Start Use the systematic-debugging skill to investigate this failing test and find its root cause before suggesting any fix.

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 test failure systematically?▼

Start by reading the full error message and stack trace, then reproduce the failure consistently. Check recent changes via git diff, form a single hypothesis about the root cause, and test it with the smallest possible change before implementing a fix.

What is root cause analysis in debugging?▼

Root cause analysis traces a bug to its origin rather than patching symptoms. It involves reading errors carefully, reproducing the issue, checking recent changes, and tracing data flow up the call stack until the source of the bad value is found.

How do I debug failures in multi-component systems?▼

Add diagnostic instrumentation at each component boundary: log what data enters and exits each layer, then run once to gather evidence showing where the failure occurs. Investigate only the failing component instead of guessing across the whole system.

When should I stop trying fixes and question the architecture?▼

Stop after three failed fix attempts. If each fix reveals a new problem elsewhere or requires massive refactoring, the pattern itself is likely flawed. Discuss the architecture with your team before attempting a fourth fix.

What is defense-in-depth validation?▼

Defense-in-depth adds validation at every layer data passes through: entry point checks, business logic validation, environment guards, and debug instrumentation. This makes a fixed bug structurally impossible rather than blocked at a single checkpoint.