systematic-debugging

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

Updated Aug 28, 2026
One-click install
npx skills add https://github.com/AnderHonorato/Mem-rias-IA---Infinity --skill systematic-debugging-anderhonorato
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: systematic-debugging
Source: https://github.com/AnderHonorato/Mem-rias-IA---Infinity/tree/main/Manus/Skills/snapshots/superpowers-systematic-debugging
Command: npx skills add https://github.com/AnderHonorato/Mem-rias-IA---Infinity --skill systematic-debugging-anderhonorato

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Developers under time pressure often apply quick symptom fixes that fail repeatedly, causing thrashing, flaky tests, and recurring production incidents. This Skill enforces a disciplined debugging methodology that finds the actual root cause before any fix is attempted. ## Core Features & Use Cases - Four-Phase Process: Root Cause Investigation, Pattern Analysis, Hypothesis Testing, and Implementation, with mandatory completion of each phase before proceeding. - Supporting Techniques: Includes root-cause-tracing (backward call-stack tracing), defense-in-depth validation at four layers, and condition-based waiting to replace arbitrary timeouts in flaky tests. - Pressure Resistance: Explicit red flags, rationalization tables, and a 3-failed-fixes rule that triggers architectural review instead of more guessing. - Use Case: A test fails intermittently in CI. Instead of adding longer sleep calls, you trace the data flow backward, find the original trigger, fix it at the source, and add validation at each layer so the bug becomes structurally impossible. ## Quick Start Use the systematic-debugging skill to investigate this failing test and find its root cause 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 instead of guessing?

Follow the four phases: investigate the root cause by reading errors and reproducing consistently, analyze patterns against working examples, form and test a single hypothesis, then implement one fix with a failing test case. Never propose fixes before completing the investigation phase.

How to fix flaky tests caused by arbitrary timeouts?

Replace setTimeout and sleep calls with condition-based waiting that polls for the actual condition you care about, such as an event appearing or state changing. Poll every 10ms with a clear timeout error, and only use arbitrary delays when testing actual timing behavior with documented justification.

What should I do when multiple fix attempts keep failing?

Stop after three failed fixes and question the architecture rather than attempting a fourth fix. Repeated failures where each fix reveals new problems elsewhere indicate a fundamentally wrong pattern, so discuss the architecture with your team before continuing.

How do I find which test is polluting shared state or creating files?

Use the included find-polluter.sh bisection script, which runs each test file individually and checks whether the unwanted file or directory appears. It stops at the first polluting test and reports the file for investigation.

When is it acceptable to skip root cause investigation for a quick fix?

Never, according to this methodology. Even under production emergencies or time pressure, systematic investigation is faster than guess-and-check thrashing, and symptom fixes are treated as failures regardless of how simple the issue appears.