systematic-debugging

Diagnose root causes of bugs using a four-phase investigation workflow.

4|1|Updated Oct 29, 2025
One-click install
npx skills add https://github.com/samjhecht/wrangler --skill systematic-debugging-samjhecht
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: systematic-debugging
Source: https://github.com/samjhecht/wrangler/tree/main/skills/systematic-debugging
Command: npx skills add https://github.com/samjhecht/wrangler --skill systematic-debugging-samjhecht

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Random fixes and quick patches only mask underlying issues, leading to wasted time, new bugs, and a lack of true understanding of the problem. This skill enforces a disciplined approach to debugging.

Core Features & Use Cases

  • Four-Phase Framework: Guides through Root Cause Investigation, Pattern Analysis, Hypothesis Testing, and Implementation, ensuring understanding before attempting solutions.
  • Root Cause Mandate: Enforces the iron law: "NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST," preventing symptom-based fixes.
  • Anti-Rationalization Rules: Includes explicit rules and red flags to resist the temptation of shortcuts, especially under time pressure.
  • Use Case: Any time you encounter a bug, test failure, or unexpected behavior, this skill guides you through a systematic process to find and fix the actual root cause, even in emergencies.

Quick Start

I'm seeing a NullPointerException in the logs. Guide me through systematic debugging.

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 a bug instead of just patching symptoms?

Root cause investigation follows a structured four-phase workflow: first, gather evidence and isolate the failure; second, identify patterns across failures; third, test hypotheses against the evidence; fourth, implement fixes targeting the actual cause. This prevents temporary patches that mask underlying issues.

What's the systematic approach to debugging test failures and unexpected behavior?

Systematic debugging enforces investigation before fixes through phase-by-phase checklists, anti-pattern detection, and cross-component evidence gathering. The workflow ensures you understand what broke and why before proposing solutions, applicable to test failures, production bugs, performance problems, and integration issues.

How do I avoid quick fixes that create new bugs later?

The root cause mandate enforces the iron law: no fixes without root cause investigation first. Anti-rationalization rules and explicit red flags resist the temptation of shortcuts under time pressure, ensuring fixes address actual causes rather than symptoms.

Can I use systematic debugging in emergencies and under time constraints?

Yes. The framework applies to any bug, test failure, or unexpected behavior, even in emergencies. Anti-rationalization rules and mandatory phase-by-phase investigation help you resist pressure to skip diagnosis, preventing wasted time on ineffective patches.

What's the difference between fixing symptoms and fixing root causes?

Symptom-based fixes mask underlying issues, leading to repeated failures and wasted debugging time. Root cause fixes address the actual problem through disciplined investigation, pattern analysis, and hypothesis testing, ensuring lasting solutions and deeper problem understanding.

When should I apply structured debugging instead of ad-hoc troubleshooting?

Apply structured debugging whenever you encounter bugs, test failures, unexpected behavior, performance problems, builds, or integrations. Random fixes lead to new bugs and poor understanding; systematic investigation prevents false starts and ensures fixes work across all cases.