systematic-debugging

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

Updated Dec 7, 2025
One-click install
npx skills add https://github.com/harlanljones/dotfiles --skill systematic-debugging-harlanljones
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: systematic-debugging
Source: https://github.com/harlanljones/dotfiles/tree/main/dot_hermes/skills/software-development/systematic-debugging
Command: npx skills add https://github.com/harlanljones/dotfiles --skill systematic-debugging-harlanljones

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. - Tight Feedback Loops: Build fast, deterministic, red-capable reproduction commands (failing tests, curl scripts, headless browser checks, bisection harnesses) before forming theories. - 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 code blindly, you build a reproducible failing test, trace data flow across the service and database layers, form ranked hypotheses, and fix the actual root cause with a regression test. ## Quick Start Ask the AI to debug a failing test or bug using the systematic-debugging process, providing the full error message and the command that reproduces 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 build a tight feedback loop such as a single failing pytest command that reproduces the exact symptom. Only after isolating the root cause should you form hypotheses and implement a fix verified by a regression test.

What is root cause analysis in software debugging?▼

Root cause analysis means tracing a bug to its origin in the code or data flow rather than patching the visible symptom. This Skill enforces it through a four-phase process: investigation, pattern analysis, hypothesis testing, and implementation.

How do I reproduce intermittent or flaky bugs?▼

Raise the reproduction rate by running the trigger repeatedly, parallelizing executions, adding stress, narrowing timing windows, or injecting sleeps. A 50% flake is debuggable, while a 1% flake usually requires more instrumentation first.

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

Stop after three failed fix attempts. If each fix reveals new shared state or coupling in a different place, or fixes create new symptoms elsewhere, the pattern indicates an architectural problem that needs discussion before more patching.

Does this debugging process work for multi-component systems?▼

Yes. For systems spanning APIs, services, and databases, it directs you to add diagnostic logging at each component boundary, run once to gather evidence showing where data breaks, then investigate only the failing component.