systematic-debugging

Diagnose root causes of bugs, test failures, and build issues through a phased workflow.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/heymishy/2x2-v3-28-03-20216 --skill systematic-debugging-heymishy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: systematic-debugging
Source: https://github.com/heymishy/2x2-v3-28-03-20216/tree/main/.github/skills/systematic-debugging
Command: npx skills add https://github.com/heymishy/2x2-v3-28-03-20216 --skill systematic-debugging-heymishy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Four-phase root cause debugging process. Random fixes waste time and create new bugs. The iron law: no fixes without root cause investigation first. Use when encountering any bug, test failure, unexpected behaviour, or build failure — before proposing any fix. Use especially when under time pressure, when a "quick fix" seems obvious, or when a previous fix didn't work.

Core Features & Use Cases

  • Phase-based diagnostic workflow that enforces order and validation.
  • Clear guidance for collecting evidence, reproducing failures, and exploring causes before fixes.
  • Structured path from error observation to root cause diagnosis to a safe implementation.

Quick Start

Use the four-phase debugging process to guide a failing issue from error capture through to a validated fix.

Frequently Asked Questions about systematic-debugging

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

FAQPage Schema
What is root-cause debugging and how does it prevent introducing new bugs?

Root-cause debugging enforces investigating the actual origin of a bug before attempting any fix, preventing random patches that waste time and create new bugs. It mandates evidence collection and reproduction before implementation.

How do I debug a failing test or production bug systematically?

Debug a failing test or production bug systematically through a four-phase workflow: investigate root cause, analyze patterns, test hypotheses, and implement the fix with a failing test, followed by an architectural review.

What's the best way to fix build errors under time pressure without making things worse?

The best way to fix build errors under time pressure is following a disciplined phase-based diagnostic workflow that enforces order and validation, ensuring you explore causes and collect evidence before proposing any quick fixes.

How does TDD fit into the root-cause debugging workflow?

TDD fits into the implementation phase of root-cause debugging by requiring a failing test that validates the fix before the code change is applied. This ensures the reproduction case is captured and the root cause is confirmed.

When should I use a phase-based debugging process instead of applying a quick fix?

Use a phase-based debugging process when encountering any bug, test failure, unexpected behavior, or build failure — especially under time pressure when a quick fix seems obvious, or when a previous fix did not resolve the issue.

What does an architectural review involve after fixing a bug?

An architectural review follows the implementation phase to evaluate whether structural patterns contributed to the root cause, ensuring the fix integrates safely and preventing similar bugs from recurring in the wider system architecture.