systematic-debugging

Trace data flow and test hypotheses to identify root causes of bugs.

13|5|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/Jonghakseo/my-pi --skill systematic-debugging-jonghakseo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: systematic-debugging
Source: https://github.com/Jonghakseo/my-pi/tree/main/skills/systematic-debugging
Command: npx skills add https://github.com/Jonghakseo/my-pi --skill systematic-debugging-jonghakseo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents guess-driven fixes by guiding you through evidence-based root-cause investigation for bugs, test failures, and unexpected behavior.

Core Features & Use Cases

  • Root-Cause Investigation: Read complete errors, reproduce failures consistently, inspect recent changes, instrument component boundaries, and trace incorrect data back to its origin.
  • Pattern-Based Diagnosis: Compare broken behavior with working examples, identify meaningful differences, and verify dependencies and assumptions.
  • Hypothesis Testing: Form one testable hypothesis at a time, apply the smallest possible change, and validate results before proceeding.
  • Guardrails for Reliable Fixes: Require regression tests, prohibit speculative multi-change fixes, and trigger architectural review after three unsuccessful attempts.
  • Use Case: When a test fails unexpectedly, use this Skill to isolate the failure boundary, identify the originating cause, create a reproducing test, and implement only the verified root-cause fix.

Quick Start

Ask the systematic-debugging skill to investigate the root cause of the failing test using its four-phase process before proposing any code changes.

Frequently Asked Questions about systematic-debugging

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

FAQPage Schema
How do I find the root cause of test failures instead of guessing fixes?

To find the root cause of test failures, investigate by reading complete errors, reproducing failures consistently, and tracing incorrect data back to its origin. Compare broken behavior with working examples to identify meaningful differences before applying code changes.

What is the best way to debug multi-component failures and unexpected software behavior?

The best way to debug multi-component failures is systematic investigation: instrument component boundaries, trace data flow, and verify dependencies. Form a single testable hypothesis, apply the smallest possible change, and validate results before proceeding to fix unexpected behavior.

How do I investigate regression bugs after recent code changes?

To investigate regression bugs, inspect recent changes and reproduce the failure consistently. Compare working patterns against the broken behavior to isolate differences, then verify assumptions and dependencies to identify the originating cause of the regression.

When should I trigger an architectural review during bug investigation?

Trigger an architectural review during bug investigation after three unsuccessful fix attempts. This guardrail prevents repeated speculative changes by forcing a higher-level evaluation of the system design when single-hypothesis testing fails to resolve the issue.

Why does applying multiple speculative fixes make debugging harder?

Applying multiple speculative fixes obscures the true root cause by introducing unverified variables. Systematic debugging requires testing one hypothesis at a time with the smallest possible change, ensuring you validate results and understand exactly what resolves the failure.

Do I need to write regression tests when fixing difficult bugs?

Yes, you need to write regression tests when fixing difficult bugs. Creating a reproducing test that captures the failure before implementing the verified root-cause fix ensures the specific issue remains resolved and prevents future regressions.