systematic-debugging

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

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

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 production API returns intermittent 500 errors. Instead of tweaking handlers blindly, reproduce the failure, add logging at each component boundary, trace the bad value upstream, write a failing regression test, then fix the actual source. ## Quick Start Use the systematic-debugging skill to investigate why my test suite fails 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 specific test command like pytest -v. Check recent git changes, trace the data flow to the source, and only then form a hypothesis and write a failing regression test before fixing.

What is root cause analysis in software debugging?

Root cause analysis means identifying why a bug occurs rather than patching its symptoms. It involves reproducing the issue, gathering evidence at component boundaries, tracing bad values upstream through the call stack, and fixing the source instead of the symptom.

How do I debug issues in multi-component systems?

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

When should I stop trying fixes and question the architecture?

Stop after three failed fix attempts. If each fix reveals new coupling in a different place, requires massive refactoring, or creates new symptoms elsewhere, the pattern itself is likely wrong. Discuss architectural changes before attempting a fourth fix.

Why do quick fixes cause more bugs?

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