systematic-debugging

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

Updated Jul 3, 2026
One-click install
npx skills add https://github.com/CHENHUI-X/toolbox --skill systematic-debugging-chenhui-x
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: systematic-debugging
Source: https://github.com/CHENHUI-X/toolbox/tree/main/official-skills/software-development/systematic-debugging
Command: npx skills add https://github.com/CHENHUI-X/toolbox --skill systematic-debugging-chenhui-x

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Random fixes and guess-and-check patching waste hours, 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: Concrete commands for reading errors, reproducing failures, checking git history, and tracing data flow across components. - Rule of Three: After three failed fixes, the process stops and questions the architecture instead of attempting a fourth patch. - Use Case: A production API test fails intermittently. Follow Phase 1 to reproduce it and trace the bad value upstream, form a single hypothesis, write a regression test, then fix the root cause and verify the full suite passes. ## Quick Start Debug this failing test using the systematic-debugging process: investigate the root cause first, then propose a fix with a regression test.

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 -v. Check recent git changes, trace the data flow to the root cause, and only then form a hypothesis and write a regression test before fixing.

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 reproducing the issue, gathering evidence at component boundaries, and tracing bad values upstream to their source.

Why is my cloud VM port unreachable from the internet?

Check all three firewall layers: the cloud firewall (GCP VPC rules, AWS security groups), the VM firewall (ufw or iptables), and whether the app is actually listening via ss -tulnp. GCP also drops hairpin traffic, so test reachability with an external port checker.

When should I stop trying fixes and question the architecture?

Stop after three failed fix attempts. If each fix reveals new coupling or creates symptoms elsewhere, the pattern indicates an architectural problem, and you should discuss refactoring with the team instead of attempting a fourth fix.

Can I skip the debugging process for simple bugs?

No. Simple bugs have root causes too, and skipping investigation leads to symptom patches that mask the real issue. The systematic process is fast for simple bugs and prevents rework from guess-and-check thrashing.