systematic-debugging

Guide four-phase debugging to identify root causes before proposing fixes.

127|19|Updated Oct 23, 2025
One-click install
npx skills add https://github.com/rileyhilliard/claude-essentials --skill systematic-debugging-rileyhilliard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: systematic-debugging
Source: https://github.com/rileyhilliard/claude-essentials/tree/main/plugins/ce/skills/systematic-debugging
Command: npx skills add https://github.com/rileyhilliard/claude-essentials --skill systematic-debugging-rileyhilliard

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a disciplined four-phase debugging framework that emphasizes identifying root causes before proposing fixes, reducing wasted effort and repeated issues.

Core Features & Use Cases

  • Four-phase workflow: Phase 1 Root Cause Investigation, Phase 2 Pattern Analysis, Phase 3 Hypothesis Testing, Phase 4 Implementation.
  • Actionable diagnostics: guidance on collecting evidence, reproducing failures, and tracing data flow.
  • Multi-component readiness: strategies for instrumentation and logging across complex systems.
  • Use Case: apply the framework to intermittent bugs, failing tests, and regressions to arrive at robust fixes.

Quick Start

Start Phase 1 by carefully reading error messages, reproducing the issue consistently, and tracing the data flow. Use diagnostic logging at component boundaries to gather signals. Refer to references/debugging-techniques.md for instrumentation patterns. Then progress through Phases 2–4 to identify root causes and implement fixes.

Frequently Asked Questions about systematic-debugging

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

FAQPage Schema
How do I identify the root cause of a bug before attempting a fix?

To identify the root cause of a bug before fixing, use a four-phase debugging framework starting with root cause investigation, then pattern analysis, hypothesis testing, and implementation. This approach reduces wasted effort by ensuring the actual issue is found first.

What is the best way to debug intermittent bugs and test regressions?

Debugging intermittent bugs and regressions is best handled by applying a structured framework that progresses through pattern analysis and hypothesis testing. By gathering diagnostic evidence and reproducing failures across component boundaries, you can arrive at robust fixes for these complex issues.

How do I add diagnostic logging to trace data flow across complex systems?

To trace data flow across complex systems, add diagnostic logging at component boundaries to gather signals during root cause investigation. This multi-component instrumentation helps collect actionable evidence needed to progress through pattern analysis and hypothesis testing phases.

Does this debugging framework require any special software or testing tools?

This debugging framework requires no special software and can be used alongside standard debugging tools and logs. It provides a methodology for instrumentation and evidence collection rather than relying on specific proprietary testing platforms or dependencies.

Why should I use hypothesis testing instead of immediately patching failing code?

Hypothesis testing prevents wasted effort by validating your assumptions about a failure before you change code. By testing your theories against collected evidence in the debugging framework, you avoid repeated issues and implement robust fixes rather than temporary patches.