systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

Author

Install

Hot:7

Download and extract to your skills directory

Copy command and send to OpenClaw for auto-install:

Download and install this skill https://openskills.cc/api/download?slug=sickn33-skills-systematic-debugging&locale=en&source=copy

Systematic Debugging

Skill Overview


Systematic debugging is a structured fault-finding methodology that emphasizes identifying the root cause before attempting any fixes. It follows four clear stages—root-cause investigation, pattern analysis, hypothesis validation, and implementing the fix—to prevent blind fixes and the creation of new bugs.

Applicable Scenarios


  • Test Failure Troubleshooting — When automated or manual tests fail, use a systematic approach to locate the true source of the failure instead of making arbitrary code changes.

  • Production Environment Failures — When dealing with live bugs or performance issues, collect evidence and analyze patterns according to the process, avoiding random fixes under pressure.

  • Integration and Build Issues — In multi-component systems (CI/CD pipelines, API integrations, database interactions), diagnose step by step to identify the component that is genuinely causing the problem.
  • Core Functions


  • Four-Stage Debugging Workflow — Provides a clear framework for root-cause investigation, pattern analysis, hypothesis testing, and implementing fixes, ensuring that each step has explicit success criteria.

  • Multi-Component Diagnostic Techniques — Teaches how to add diagnostic logging at each component boundary in complex systems, trace data flow and the propagation of environment variables, and precisely pinpoint the failing layer.

  • Architecture Issue Identification Mechanism — If more than three repair attempts fail, an architecture review process is automatically triggered to prevent wasting more time on the wrong design.
  • Common Questions

    What Is the “Iron Law”?


    The iron law is the core principle of systematic debugging: No fixes are allowed until the root cause is found. This means that if you haven’t completed the first stage (root-cause investigation), you cannot propose a fix. Although it sounds strict, it prevents a large amount of ineffective work and the creation of new bugs.

    Can the Systematic Process Be Skipped in Emergency Situations?


    No—if anything, you especially need to follow it. Emergencies make it easiest to fall into the trap of “quick fixes,” leading to guess-based repairs. Experience shows that systematic debugging (15–30 minutes) resolves issues faster than random trial and error (repeated changes over 2–3 hours). Keeping process discipline during urgent moments is what makes it possible to fix the problem in one go.

    What Should You Do After Multiple Failed Fixes?


    If you have attempted more than three fixes and none succeeded, the skill triggers the “architecture issue identification” mechanism. At this point, you should stop trying to keep fixing and instead challenge whether the underlying architecture is sound: Does the current pattern have fundamental defects? Are you persisting with an incorrect design out of inertia? Do you need a refactor rather than patching? This is the signal to shift from debugging to architecture design.