systematic-debugging

Identify root causes of software bugs before applying fixes.

Updated Apr 17, 2026
One-click install
npx skills add https://github.com/Chris-Maskey/opencode-config --skill systematic-debugging-chris-maskey
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: systematic-debugging
Source: https://github.com/Chris-Maskey/opencode-config/tree/main/skills/systematic-debugging
Command: npx skills add https://github.com/Chris-Maskey/opencode-config --skill systematic-debugging-chris-maskey

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Random patches and guesswork waste time and introduce new bugs by addressing symptoms instead of causes. This Skill provides a structured, pressure-resistant process to identify the true root cause of bugs, test failures, flaky behavior, build issues, and multi-component integration problems before any fix is applied.

Core Features & Use Cases

  • Phase-driven workflow: four mandatory phases (Root Cause Investigation, Pattern Analysis, Hypothesis & Testing, Implementation) that must be completed in order.
  • Evidence-first techniques: reproduce reliably, add diagnostic instrumentation at component boundaries, trace data flow back through the call stack, and collect concrete evidence before proposing changes.
  • Safe testing practices: single-hypothesis minimal changes, create a failing test before fixing, and clear rules for when to escalate to architectural review after repeated failures.
  • Practical tools and examples: includes tracing guidance, defense-in-depth validation patterns, condition-based waiting patterns, and a bisection script to find test polluters.

Quick Start

Load the systematic-debugging skill, reproduce the issue, gather diagnostic evidence, form a single hypothesis, test with the smallest change, and create a failing test before implementing the fix.

Frequently Asked Questions about systematic-debugging

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

FAQPage Schema
How do I find the root cause of flaky tests and build failures?

Finding the root cause of flaky tests requires reproducing the failure reliably, adding diagnostic instrumentation, and tracing data flow back through the call stack before applying any fixes. This structured approach ensures you address the underlying cause rather than random symptoms.

What is the best way to debug software bugs without introducing new issues?

The best way to debug without regressions is forming a single hypothesis, testing the smallest possible change, and creating a failing test before implementing the fix. This evidence-first methodology prevents guesswork patches from masking symptoms or introducing new defects.

How do I systematically debug multi-component integration issues?

Systematically debug multi-component integration issues by adding diagnostic instrumentation at component boundaries, tracing data flow back through the call stack, and collecting concrete evidence. This process identifies root causes across single and multi-component systems before fixes are applied.

When should I escalate a bug to architectural review during debugging?

You should escalate to architectural review after repeated failures during the hypothesis testing phase. If single-hypothesis minimal changes consistently fail to resolve the issue, the problem indicates a deeper structural flaw requiring comprehensive review rather than continued patching.

Does test-driven development work for fixing production incidents?

Test-driven development works for production incidents by enforcing the creation of a failing test that reproduces the incident before any fix is implemented. This ensures the diagnostic evidence confirms the root cause and validates the subsequent repair.

How do I find test polluters causing flaky test failures?

Find test polluters causing flaky failures by using a bisection script to isolate the specific test introducing the pollution. Combine this with condition-based waiting patterns and defense-in-depth validation to trace shared state contamination back to its source.