systematic-debugging

Guide engineers through a four-phase root-cause debugging workflow.

8|Updated Sep 7, 2021
One-click install
npx skills add https://github.com/frap129/dotfiles --skill systematic-debugging-frap129
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: systematic-debugging
Source: https://github.com/frap129/dotfiles/tree/main/.config/opencode/skills/systematic-debugging
Command: npx skills add https://github.com/frap129/dotfiles --skill systematic-debugging-frap129

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Systematic Debugging provides a disciplined, four-phase approach to diagnosing bugs, ensuring root-cause investigation precedes fixes and preventing symptom-driven work.

Core Features & Use Cases

  • Four-phase workflow: Root Cause Investigation, Pattern Analysis, Hypothesis and Testing, Implementation
  • Anti-patterns and defense-in-depth to resist rushed, surface fixes
  • Guidance for tracing data flow, validating changes across layers, and documenting failures
  • Real-world impact: faster, quieter bug resolution with fewer regressions

Quick Start

Read the bug, reproduce it consistently, then complete Phase 1 before proposing any fixes.

Frequently Asked Questions about systematic-debugging

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

FAQPage Schema
What is a systematic approach to debugging software bugs instead of applying rushed fixes?

The systematic debugging workflow has four phases: root cause investigation, pattern analysis, hypothesis and testing, and implementation. You must complete Phase 1 before proposing any fixes to avoid symptom-driven patches.

How do I find the root cause of a production incident or test failure?

Trace data flow and complete root cause investigation before proposing any fixes. Reproduce the bug consistently, then investigate the underlying cause to avoid surface-level patches and reduce regressions in production incidents or test failures.

What are common debugging anti-patterns that cause regressions?

Rushed, surface-level fixes that address symptoms rather than the root cause are common debugging anti-patterns. The systematic approach identifies explicit failure modes and applies defense-in-depth validations to resist these problematic patterns.

Does this systematic debugging approach work for build failures and performance problems?

Yes, systematic debugging applies to build failures and performance problems. It provides guidance for operations issues such as test failures, production incidents, performance problems, and build or integration failures.

When should I not use a four-phase debugging workflow?

Avoid using a four-phase debugging workflow for trivial, isolated issues needing a quick fix. This approach is designed for complex bugs requiring root-cause investigation, pattern analysis, and defense-in-depth validation to prevent regressions.