systematic-debugging

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Random fixes and quick patches waste time, mask underlying issues, and introduce new bugs. This Skill enforces a disciplined process that finds the root cause of any technical issue 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. - Tight Feedback Loops: Build fast, deterministic, red-capable reproduction commands (failing tests, curl scripts, CLI invocations, headless browser checks) before forming theories. - Rule of Three: After three failed fixes, stop and question the architecture instead of attempting a fourth patch. - Use Case: A flaky integration test fails intermittently in CI. Use this Skill to raise the reproduction rate, trace data flow across component boundaries, form ranked falsifiable hypotheses, and land a single verified fix with a regression test. ## Quick Start Use the systematic-debugging skill to investigate why the checkout endpoint returns a 500 error 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 bug systematically instead of guessing?▼

Follow four phases: investigate the root cause by reading errors and reproducing the issue, analyze patterns against working examples, form and test ranked hypotheses one variable at a time, then implement a single fix verified by a regression test.

How to reproduce a flaky test for debugging?▼

Raise the reproduction rate by running the trigger repeatedly, parallelizing, adding stress, or narrowing timing windows. A 50% flake is debuggable while a 1% flake usually is not, so prioritize making the loop deterministic enough to go red reliably.

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 needs architectural discussion.

Does systematic debugging work for multi-component systems?▼

Yes. Add diagnostic instrumentation at each component boundary, logging what data enters and exits, then run once to gather evidence showing where the failure occurs before investigating that specific component.

Why should I write a failing test before fixing a bug?▼

A failing test proves you understand the root cause and gives a tight feedback loop that goes green only when the bug is fixed. It also becomes a regression test preventing the bug from returning.