systematic-debugging

Diagnose software bugs through a four-phase root cause investigation workflow.

Updated Jun 30, 2026
One-click install
npx skills add https://github.com/zhoulingxiao1216/testworkspace --skill systematic-debugging-zhoulingxiao1216
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: systematic-debugging
Source: https://github.com/zhoulingxiao1216/testworkspace/tree/main/all_Skills/software-development/systematic-debugging
Command: npx skills add https://github.com/zhoulingxiao1216/testworkspace --skill systematic-debugging-zhoulingxiao1216

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Random fixes and guess-and-check patching waste time, mask underlying issues, and introduce new bugs. This Skill enforces a disciplined four-phase debugging process 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 implementation, each with explicit completion criteria. - Evidence Gathering: Read error messages, reproduce failures, check recent git changes, and trace data flow across component boundaries before proposing fixes. - Rule of Three: After three failed fix attempts, stop and question the architecture instead of attempting a fourth patch. - Use Case: A test fails in CI after a dependency update. Instead of tweaking code blindly, reproduce the failure locally, review recent commits, trace the bad value upstream, form one hypothesis, and verify a single minimal fix with a regression test. ## Quick Start Use the systematic-debugging skill to investigate why my pytest suite fails on test_module.py and find the root cause before fixing it.

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

Start by reading the full error message and stack trace, then reproduce the failure consistently with a command like pytest tests/test_module.py -v. Check recent git changes, trace the bad value upstream, and only propose a fix after forming a root cause hypothesis.

What is root cause analysis in debugging?▼

Root cause analysis means identifying why a bug occurs before attempting any fix, rather than patching symptoms. It involves reading errors carefully, reproducing the issue, gathering evidence at component boundaries, and tracing data flow to the source.

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

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

Can I skip investigation for simple or urgent bugs?▼

No. Simple bugs have root causes too, and under time pressure systematic debugging is faster than guess-and-check thrashing. Skipping investigation leads to repeated failed fixes and new bugs introduced by unverified patches.

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

Add diagnostic instrumentation at each component boundary: log what data enters and exits each layer, verify config propagation, and check state at every step. Run once to gather evidence showing where the failure occurs, then investigate that specific component.