systematic-debugging

Enforce a four-phase root-cause debugging workflow before implementing fixes.

16|9|Updated Nov 6, 2013
One-click install
npx skills add https://github.com/erikstmartin/dotfiles --skill systematic-debugging-erikstmartin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: systematic-debugging
Source: https://github.com/erikstmartin/dotfiles/tree/main/skills/global/.agents/skills/systematic-debugging
Command: npx skills add https://github.com/erikstmartin/dotfiles --skill systematic-debugging-erikstmartin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces a four-phase debugging workflow to ensure root-cause analysis occurs before fixes, reducing wasted effort and symptom-chasing.

Core Features & Use Cases

  • Structured 4-phase workflow: Root Cause Investigation, Pattern Analysis, Hypothesis & Testing, and Implementation.
  • Defensive practices: anti-patterns, explicit stop-and-reanalyze rules, and defense-in-depth guidance to prevent shortcut fixes.
  • Use Case: When encountering bugs or flaky tests, follow the process to uncover the root cause and implement durable fixes.

Quick Start

Follow Phase 1 to Phase 4 in order, ensuring root-cause investigation is completed before 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 systematically debug software to find the root cause instead of just fixing symptoms?

Systematic debugging enforces a four-phase workflow—Root Cause Investigation, Pattern Analysis, Hypothesis & Testing, and Implementation—to ensure root-cause analysis occurs before fixes. This structured phase sequencing stops symptom-chasing and wasted effort.

What is the best way to debug flaky tests and prevent recurring incidents?

Debugging flaky tests requires disciplined phase sequencing with explicit failure mode analysis before applying fixes. Pattern Analysis and Hypothesis & Testing phases uncover the actual root cause, while defense-in-depth guidance prevents shortcut symptom fixes.

How does a phase-based debugging workflow handle production incident response?

For production incident response, the phase-based workflow mandates Root Cause Investigation before any Implementation phase. Explicit stop-and-reanalyze rules and anti-pattern checks ensure engineers do not apply premature symptom patches during time-critical incidents.

When should I use root-cause debugging instead of applying a quick fix?

Use root-cause debugging when the underlying failure mode is not obvious or when symptom fixes have failed. The workflow's explicit stop-and-reanalyze rules and anti-pattern checks prevent wasted effort on shortcut fixes when a thorough investigation is required.

Can I skip the investigation phases if I already have a strong hypothesis for the bug?

No, the workflow requires completing Root Cause Investigation and Pattern Analysis before the Hypothesis & Testing and Implementation phases. Skipping phases risks applying symptom fixes, so the structured sequence enforces defense-in-depth to ensure durable fixes.

What are the limitations of using a structured debugging workflow for urgent production bugs?

The structured debugging workflow may not suit time-critical production bugs requiring immediate mitigation, because it enforces complete Root Cause Investigation before the Implementation phase. It is designed for non-obvious root causes where durable fixes are prioritized over speed.