systematic-debugging

Guide evidence-based root-cause debugging through four ordered investigation phases.

190|27|Updated Apr 22, 2026
One-click install
npx skills add https://github.com/linxuan-sys/opencode-skills-chinese --skill systematic-debugging-linxuan-sys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: systematic-debugging
Source: https://github.com/linxuan-sys/opencode-skills-chinese/tree/main/systematic-debugging
Command: npx skills add https://github.com/linxuan-sys/opencode-skills-chinese --skill systematic-debugging-linxuan-sys

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

It prevents wasted time and new bugs caused by proposing fixes before understanding the underlying root cause of a failure or unexpected behavior.

Core Features & Use Cases

  • Iron-clad guardrail: Enforces the rule that you must complete root-cause investigation before proposing any fix.
  • A four-phase debugging workflow: Investigation → Pattern Analysis → Hypothesis & Testing → Implementation, with strict phase ordering.
  • Pressure-resistant decision-making: Requires pausing and re-analyzing when fixes don’t work, resisting “quick patch” temptation.
  • Safety stops for failure modes: Tells you to stop and return to Phase 1 when you see specific “danger signals,” especially after multiple failed fixes.
  • When root cause seems unavailable: Allows handling environment/timing/external-factor cases, while warning that most “no root cause” outcomes mean investigation was incomplete.

Quick Start

When you hit a bug, test failure, or unexpected behavior, follow Phase 1 root-cause investigation and only after that propose any fix.

Frequently Asked Questions about systematic-debugging

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

FAQPage Schema
Why do my test failures keep coming back after I apply a patch?

Test failures recur because symptom patching doesn't address the underlying root cause. You must complete evidence-based root cause investigation before proposing any fix to prevent wasted time and new bugs.

How do I debug race conditions and complex multi-component system failures?

Debug race conditions using a four-phase workflow: root-cause investigation, pattern analysis, single-hypothesis testing, and implementation with a failing test to prevent incomplete understanding.

What should I do when my production incident fixes don't work?

When production incident fixes fail, trigger a safety stop and return to Phase 1 root-cause investigation. Resist the quick patch temptation and pause to re-analyze evidence to ensure complete understanding.

When should I stop debugging and re-analyze an unexpected behavior?

Stop debugging unexpected behavior when you see specific danger signals, especially after multiple failed fixes. Return to root-cause investigation because most incomplete outcomes mean the investigation was insufficient.

What is the best way to find a root cause when environment or timing factors seem impossible to isolate?

Finding a root cause for environment or timing issues requires handling external factors carefully, while recognizing that most no root cause outcomes actually mean your root-cause investigation was incomplete.

Can I use systematic debugging for performance and build integration failures?

Systematic debugging applies to performance, build, and integration failures by enforcing hypothesis testing and a failing test before implementation, ensuring fixes target evidence-based root causes.