systematic-debugging

Diagnose bugs through a four-phase root cause analysis methodology.

1|Updated Apr 16, 2026
One-click install
npx skills add https://github.com/klh/skills --skill systematic-debugging-klh
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: systematic-debugging
Source: https://github.com/klh/skills/tree/main/.well-known/agent-skills/systematic-debugging
Command: npx skills add https://github.com/klh/skills --skill systematic-debugging-klh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Debugging often devolves into guesswork and symptom-patching that masks underlying problems and creates new bugs. This Skill enforces a disciplined four-phase methodology that requires identifying the root cause before any fix is applied. ## Core Features & Use Cases - Four-Phase Framework: Root cause investigation, pattern analysis, hypothesis testing, and verified implementation. - Root Cause Tracing: Trace bad values backward through the call chain to find the original trigger instead of patching where errors appear. - Failure Guardrails: Red-flag detection for process violations and a hard stop after three consecutive failed fixes to surface architectural problems. - Use Case: When a test suite fails after a refactor, follow the methodology to read the full stack trace, reproduce the failure, form one hypothesis, create a failing test that captures the bug, and verify the fix against the full suite. ## Quick Start Use the systematic-debugging skill to investigate why my login test fails intermittently and find the root cause before fixing it.

Frequently Asked Questions about systematic-debugging

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

FAQPage Schema
How do I debug a failing test systematically?▼

Read the full error message and stack trace, identify which assertion failed, verify the test setup and fixtures, then trace the unexpected value back to its source. Create a failing test that reproduces the bug before implementing any fix.

What is root cause analysis in debugging?▼

Root cause analysis traces an error backward through the call chain to find where the problem actually originated, rather than patching where the symptom appears. You observe the symptom, find the immediate cause, and keep asking what called this until you reach the original trigger.

How do I debug intermittent test failures?▼

Intermittent failures usually indicate race conditions, shared mutable state, async ordering issues, or timing dependencies. Look for these patterns and add deterministic waits or proper synchronization to make the failure reproducible.

When should I stop trying to fix a bug?▼

Stop after three consecutive failed fix attempts, as this signals an architectural problem rather than a simple bug. Document your findings and discuss the design with your team before attempting more patches.

How do I find which commit introduced a bug?▼

Use git bisect to binary-search through commit history and identify the exact breaking change. Then compare the change with the previous working version to find which assumption was violated.