systematic-debugging

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

2|Updated Aug 15, 2025
One-click install
npx skills add https://github.com/Grupo-6-ADS-B/FittNutri --skill systematic-debugging-grupo-6-ads-b
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: systematic-debugging
Source: https://github.com/Grupo-6-ADS-B/FittNutri/tree/main/.claude/skills/systematic-debugging
Command: npx skills add https://github.com/Grupo-6-ADS-B/FittNutri --skill systematic-debugging-grupo-6-ads-b

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Random fixes and quick patches waste time, mask underlying issues, and introduce new bugs. This Skill enforces a disciplined debugging methodology that finds the true root cause before any fix is attempted, even under time pressure or social pressure to take shortcuts. ## Core Features & Use Cases - Four-Phase Process: Structured workflow covering root cause investigation, pattern analysis, hypothesis testing, and verified implementation. - Supporting Techniques: Includes root-cause tracing through call stacks, defense-in-depth validation at multiple layers, and condition-based waiting to replace flaky arbitrary timeouts. - Pressure Resistance: Explicit anti-patterns, red flags, and rationalization tables that stop shortcut behavior during emergencies. - Use Case: When a production test fails intermittently, use this Skill to trace the failure backward through the call chain, form a single testable hypothesis, create a failing test case, and fix the source rather than adding another sleep timer. ## 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?

Follow the four phases: first investigate the root cause by reading errors and reproducing consistently, then analyze patterns against working examples, form a single testable hypothesis, and finally implement one verified fix with a failing test case.

What is root cause analysis in debugging?

Root cause analysis traces a bug backward through the call stack to find the original trigger rather than fixing where the error appears. The skill provides instrumentation techniques like stack trace logging to locate the source of bad data.

How do I fix flaky tests caused by timing issues?

Replace arbitrary setTimeout or sleep delays with condition-based waiting that polls for the actual expected state, such as an event appearing or a count being reached. This eliminates race conditions and typically speeds up test execution.

Should I skip investigation for simple bugs or emergencies?

No. The skill explicitly states that simple bugs have root causes too and that systematic investigation is faster than guess-and-check thrashing, even during production emergencies with revenue at stake.

What should I do when multiple fix attempts have failed?

After three failed fixes, stop and question the architecture rather than attempting a fourth fix. Repeated failures revealing new problems in different places indicate a fundamental design issue requiring discussion, not another patch.

How do I find which test pollutes shared state?

Use the included find-polluter.sh bisection script, which runs test files one by one and checks whether unwanted files or directories appear after each run, stopping at the first polluting test.