systematic-debugging

Diagnose bugs and test failures by finding root causes.

Updated Sep 27, 2024
One-click install
npx skills add https://github.com/sheer-rey/PowerBash --skill systematic-debugging-sheer-rey
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: systematic-debugging
Source: https://github.com/sheer-rey/PowerBash/tree/main/.claude/skills/systematic-debugging
Command: npx skills add https://github.com/sheer-rey/PowerBash --skill systematic-debugging-sheer-rey

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents guesswork, symptom-fixing, and repeated failed patches when a bug, test failure, build break, or abnormal behavior appears. It keeps you focused on finding the root cause first, even under time pressure or social pressure.

Core Features & Use Cases

  • Four-phase process: root cause investigation, pattern analysis, hypothesis validation, and implementation.
  • Strong guardrails: insists on reproducing the issue, checking recent changes, tracing data flow, and stopping after failed fixes instead of stacking more patches.
  • Testing-first repair: creates a failing test before the fix, then verifies the solution and protects against regressions.
  • Best for: flaky tests, production incidents, performance problems, integration failures, and any case where a quick workaround feels tempting but risky.

Quick Start

Use the systematic-debugging skill to investigate the issue from symptoms to root cause before proposing any 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 instead of just treating symptoms?

Find the root cause of flaky tests by reproducing the failure, checking recent changes, tracing data flow, and validating single hypotheses before applying any fix. This systematic debugging process prevents repeated failed patches and symptom-fixing.

What is the best way to debug production incidents without guessing?

Debugging production incidents without guessing requires a four-phase process: root cause investigation, pattern analysis, hypothesis validation, and test-backed implementation. This approach insists on reproducing the issue and tracing data flow before proposing fixes.

How do I stop stacking patches when my bug fixes keep failing?

Stop stacking patches by validating a single hypothesis at a time and escalating after repeated fix failures. Systematic debugging enforces stopping after failed attempts rather than applying more patches, ensuring you trace data flow to the actual root cause.

Why do I need a failing test before fixing a bug?

A failing test before fixing a bug verifies you have reproduced the root cause and protects against regressions after the solution is implemented. This testing-first repair approach confirms the fix resolves the actual issue without introducing new problems.

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

Systematic debugging applies to performance regressions, build failures, integration failures, and any ambiguous technical issue that tempts quick fixes. It diagnoses abnormal behavior by finding root causes through careful error inspection and pattern comparison.

When should I not use a quick workaround for abnormal technical behavior?

Avoid quick workarounds when facing production incidents, flaky tests, or performance problems where a fix feels tempting but risky. Systematic debugging insists on root cause investigation through hypothesis testing and recent-change review before any implementation.