debugging-and-diagnosis

Enforce a four-phase root-cause investigation framework for software debugging.

28|1|Updated Aug 30, 2025
One-click install
npx skills add https://github.com/outfitter-dev/agents --skill debugging-and-diagnosis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debugging-and-diagnosis
Source: https://github.com/outfitter-dev/agents/tree/main/baselayer/skills/debugging-and-diagnosis
Command: npx skills add https://github.com/outfitter-dev/agents --skill debugging-and-diagnosis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Systematic debugging methodology to identify root causes before implementing fixes.

Core Features & Use Cases

  • Four-phase workflow: collect evidence, isolate variables, formulate hypotheses, test & verify
  • Iron Law: no fixes without root cause
  • Tools: guidance for logs, reproduction, and testing

Quick Start

Start by collecting evidence and reproducing the bug with precise steps.

Frequently Asked Questions about debugging-and-diagnosis

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

FAQPage Schema
How do I debug a software issue systematically to find the root cause?

Systematic debugging follows a four-phase framework: collect evidence by gathering logs and reproducing the bug with precise steps, isolate variables to narrow down what changed, formulate hypotheses about the cause, and test/verify each hypothesis. This evidence-based approach ensures you identify root cause before implementing any fix.

Why should I focus on root cause instead of applying a quick fix?

The iron law of debugging is: no fixes without root cause first. Quick fixes mask underlying problems and often resurface later. Root-cause investigation prevents recurring bugs, reduces technical debt, and ensures fixes address the actual issue rather than its symptoms.

What's the best way to reproduce a bug so I can debug it effectively?

Collect evidence by documenting exact reproduction steps, environment details, and logs. Reproducibility is critical—narrow the scenario to the minimal steps that trigger the bug consistently. This precision enables isolating variables and testing hypotheses systematically rather than guessing.

How do I isolate variables when debugging intermittent or performance issues?

After collecting evidence, isolate variables by testing individual components, changing one condition at a time, and reviewing logs for patterns. For intermittent issues, log contextual data to identify triggers. For performance problems, measure before and after each hypothesis test to confirm impact.

Can I use this debugging method for failing tests and integration issues?

Yes. The four-phase framework applies to bugs, errors, crashes, unexpected behavior, failing tests, and intermittent performance or integration issues. Collect evidence from test output and logs, isolate the failing component, formulate hypotheses about the interaction or state, and verify fixes with end-to-end testing.

What should I track during debugging to maintain traceability?

Track findings, hypotheses tested, test results, and evidence collected throughout each phase. Maintain end-to-end traceability so you can escalate findings if needed and document why a particular fix was chosen. This log supports reproducibility and helps others understand the investigation.