systematic-debugging

Investigate root causes systematically before proposing fixes to avoid symptom-based workarounds.

383|15|Updated Oct 19, 2026
Ready to run
npx skills add https://github.com/Innei/ryugi --skill systematic-debugging-innei
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: systematic-debugging
Source: https://github.com/Innei/ryugi/tree/main/skills/systematic-debugging
Command: npx skills add https://github.com/Innei/ryugi --skill systematic-debugging-innei

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Debugging under pressure often leads to quick fixes that address symptoms rather than root causes, creating technical debt and recurring failures. This Skill enforces a disciplined four-phase investigation process that resists rationalization and ensures you understand the actual problem before attempting solutions. ## Core Features & Use Cases - Four-Phase Framework: Investigation → Pattern Analysis → Hypothesis Testing → Implementation, with mandatory root cause identification before any fix. - Pressure-Resistant Design: Includes explicit anti-patterns and language (ALWAYS, NEVER) to resist shortcuts even under time pressure. - Multi-Layer Evidence Gathering: For complex systems with multiple components, adds diagnostic instrumentation at each boundary to isolate failure points. - Use Case: A test suite is failing intermittently. Instead of adding arbitrary timeouts, systematically reproduce the issue, trace data flow backward, identify the actual race condition, test a minimal fix, and add defense-in-depth validation at multiple layers. ## Quick Start When you encounter any bug or test failure, load this Skill and follow Phase 1 (Root Cause Investigation) completely before proposing any fix.

Frequently Asked Questions about systematic-debugging

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

FAQPage Schema
When should I use systematic debugging versus quick fixes?▼

Use this process for ANY technical issue—test failures, production bugs, unexpected behavior. Even under time pressure, systematic debugging is faster than multiple failed fix attempts. Quick fixes create technical debt and recurring failures.

What should I do if my first fix attempt doesn't work?▼

Stop and return to Phase 1 with new information. After 2-3 failed fixes, question the architecture itself rather than continuing to patch symptoms. Multiple failures indicate a fundamental design problem, not just a missing variable.

How do I trace a bug that appears deep in the call stack?▼

Use root-cause-tracing technique: identify the immediate symptom, ask what called it, keep tracing backward through the call chain, and add instrumentation (logging) at each layer to pinpoint where bad data originates.

Why does the process include Phase 2 (Pattern Analysis) instead of jumping straight to fixes?▼

Pattern analysis prevents adapting reference implementations incorrectly. Comparing working versus broken code reveals crucial differences you might otherwise miss, and understanding complete patterns prevents introducing new bugs.

What is defense-in-depth validation, and why is it needed after fixing?▼

Add validation at every layer data passes through—entry point, business logic, environment guards, and debug logging. Single validation can be bypassed by different code paths or refactoring, making bugs structurally impossible instead of just hard to trigger.

How do I handle flaky tests that seem to have no reproducible root cause?▼

Replace arbitrary timeouts with condition-based waiting that polls for actual completion. Use bisection scripts to identify which test creates unwanted state. Most apparently unreproducible flakiness has a root cause once you gather diagnostic evidence systematically.