systematic-debugging

Diagnose bugs through a four-phase root-cause investigation process before proposing fixes.

Updated Aug 14, 2026
One-click install
npx skills add https://github.com/bill80362/laravel-thread-admin --skill systematic-debugging-bill80362
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: systematic-debugging
Source: https://github.com/bill80362/laravel-thread-admin/tree/main/.github/superpowers/systematic-debugging
Command: npx skills add https://github.com/bill80362/laravel-thread-admin --skill systematic-debugging-bill80362

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? When facing bugs, test failures, or unexpected behavior, developers often jump straight to symptom-level fixes that waste time and never address the real cause. This Skill enforces a disciplined four-phase debugging methodology that finds the root cause before any fix is attempted. ## Core Features & Use Cases - Four-Phase Framework: Root cause investigation, pattern analysis, hypothesis testing, and implementation, each with explicit pass criteria. - Anti-Shortcut Guardrails: Red-line rules and common-excuse tables that stop guesswork fixes, shotgun changes, and repeated failed attempts (3+ failures trigger architecture review). - Supporting Techniques: Includes root-cause tracing up the call stack, defense-in-depth validation across layers, condition-based waiting to replace flaky timeouts, and a bisection script to find polluting tests. - Use Case: A test fails intermittently in CI. Instead of adding arbitrary sleeps, follow Phase 1 to reproduce and gather evidence, trace the data flow to the source, then fix the root cause with a failing test proving the fix. ## Quick Start Use the systematic-debugging skill to investigate why this test is failing before suggesting 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 debug a failing test systematically?

Follow the four phases: first investigate the root cause by reading errors and reproducing reliably, then compare against working examples, form a single testable hypothesis, and finally write a failing test before implementing the fix. Never skip to fixes before completing Phase 1.

What is root cause analysis in debugging?

Root cause analysis means tracing a bug back along the call chain to its original trigger point rather than patching where the error surfaces. The skill provides root-cause-tracing techniques including stack instrumentation and a bisection script to find polluting tests.

How do I fix flaky tests caused by timing issues?

Replace hardcoded setTimeout or sleep calls with condition-based waiting that polls for the actual state you need, such as an event appearing or a count being reached. The skill includes a TypeScript waitFor implementation and real examples that took pass rates from 60% to 100%.

When should I stop trying fixes and question the architecture?

After three failed fix attempts, stop and question the architecture. Patterns like each fix exposing new coupling problems or requiring large refactors indicate the design itself is wrong, and further patching only treats symptoms.

Can I skip the debugging process for simple bugs or emergencies?

No. The skill explicitly rejects shortcuts for simple bugs, time pressure, or authority pressure, because guesswork fixes are slower overall and set a bad precedent. For simple bugs the process completes quickly anyway.