systematic-debugging

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Random fixes and guess-and-check patching waste hours and introduce new bugs. This Skill enforces a disciplined four-phase debugging process that finds the root cause before any fix is attempted, preventing symptom-only patches and repeated failed fix attempts. ## 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 fully, reproduce issues consistently, check recent git changes, and trace data flow across component boundaries. - Rule of Three: After three failed fixes, stop and question the architecture instead of attempting a fourth patch. - Use Case: A failing pytest suite in production gets debugged by reproducing the failure, tracing the bad value upstream through the call stack, forming a single hypothesis, and fixing the root cause with a regression test. ## Quick Start Use the systematic-debugging skill to investigate why my test suite is failing and find the root cause before proposing 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 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::test_name -v. Check recent git changes, trace the data flow to find where the bad value originates, and only then form a hypothesis and fix.

What is root cause analysis in software debugging?

Root cause analysis means identifying why a bug happens before attempting any fix, rather than patching symptoms. It involves reading errors carefully, reproducing the issue, reviewing recent changes, gathering evidence at component boundaries, and tracing bad values upstream to their source.

When should I stop trying fixes and question the architecture?

Stop after three failed fix attempts. If each fix reveals new shared state or coupling in a different place, requires massive refactoring, or creates new symptoms elsewhere, the pattern itself is likely wrong and the architecture should be discussed before more fixes.

Does systematic debugging work for production incidents under time pressure?

Yes, the process is designed especially for emergencies because guessing under pressure causes thrashing and rework. A systematic investigation typically resolves issues in 15-30 minutes versus hours of random fix attempts, with a much higher first-time fix rate.

Why do quick fixes create more bugs?

Quick fixes address symptoms without understanding the underlying cause, so the real problem persists and the patch often introduces new issues. Bundling multiple changes at once also makes it impossible to isolate what worked, and untested fixes lack regression protection.