Systematic Debugging Framework

Diagnose root causes of software failures across distributed systems.

Updated Nov 5, 2025
One-click install
npx skills add https://github.com/mikeyobrien/ghclip --skill systematic-debugging-framework
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Systematic Debugging Framework
Source: https://github.com/mikeyobrien/ghclip/tree/main/.claude/skills/systematic-debugging
Command: npx skills add https://github.com/mikeyobrien/ghclip --skill systematic-debugging-framework

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This framework enforces a disciplined four-phase approach to debugging that prioritizes root-cause investigation before attempting fixes.

Core Principles

The core principle is: "NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST." Rushing past root causes wastes time and can mask deeper issues.

The Four Essential Phases

  • Phase 1: Root Cause Investigation focuses on careful error analysis, reproducible steps, reviewing recent changes, and collecting diagnostic evidence. For multi-component systems, instrumenting each boundary helps identify exactly where failures occur.
  • Phase 2: Pattern Analysis involves locating working examples, comparing them against broken code, and understanding all dependencies and assumptions involved.
  • Phase 3: Hypothesis and Testing applies scientific methodology—formulating specific theories, making minimal changes, and testing one variable at a time rather than bundling modifications.
  • Phase 4: Implementation includes creating failing test cases first, implementing focused fixes, and recognizing architectural problems when three or more fixes succeed.

Critical Red Flags

The guide warns against proposing solutions before understanding data flow, attempting multiple fixes simultaneously, or continuing fix attempts beyond two failures without reconsidering architecture itself.

Key Insight

Rushing guarantees rework—systematic investigation actually proves faster than iterative guessing in real-world debugging scenarios.

Frequently Asked Questions about Systematic Debugging Framework

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does my bug keep coming back after I fix it?

Repeated fixes suggest you're treating symptoms, not root causes. Systematic debugging requires investigating data flow, recent changes, and failure reproduction before implementing solutions—architectural problems often hide beneath surface-level fixes.

How do I debug failures across multiple components?

Instrument each component boundary to isolate where failures occur. Collect diagnostic evidence from error logs and recent changes, then compare working and broken code paths to identify the exact failure point in your distributed system.

What's the best approach to debugging without making things worse?

Root-cause debugging applies hypothesis-driven testing: formulate specific theories, make minimal changes, and test one variable at a time. This disciplined four-phase approach—investigation, pattern analysis, hypothesis testing, then implementation—prevents bundled modifications that mask deeper issues.

How do I know when to stop trying fixes and reconsider my architecture?

If three or more fixes succeed without resolving the problem, architectural problems are likely at play. The framework flags this red flag to redirect you toward redesign rather than continued patching.

Can I debug software failures without understanding the full data flow?

No. The framework identifies proposing solutions before understanding data flow as a critical red flag. Careful error analysis and reproducible steps must precede any fix to avoid wasted rework.