root-cause-diagnosis

Diagnose software failures through a four-phase investigation process.

Updated Aug 2, 2026
One-click install
npx skills add https://github.com/bankielewicz/DevForgeAI --skill root-cause-diagnosis-bankielewicz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: root-cause-diagnosis
Source: https://github.com/bankielewicz/DevForgeAI/tree/main/.claude/skills/root-cause-diagnosis
Command: npx skills add https://github.com/bankielewicz/DevForgeAI --skill root-cause-diagnosis-bankielewicz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents "shotgun debugging" by enforcing a structured, evidence-based investigation process before any fixes are attempted, ensuring the root cause is identified and addressed.

Core Features & Use Cases

  • Systematic Investigation: Guides through 4 mandatory phases: Capture, Investigate, Hypothesize, and Prescribe.
  • Evidence-Based Fixes: Requires cross-referencing with constitutional context files and code tracing before proposing solutions.
  • Use Case: When a critical integration test fails repeatedly, this Skill will meticulously gather all error outputs, trace the code execution, identify spec violations, generate hypotheses for the root cause, and prescribe specific, actionable fixes.

Quick Start

Use the root-cause-diagnosis skill to investigate the persistent test failure in the current story.

Frequently Asked Questions about root-cause-diagnosis

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

FAQPage Schema
How do I stop shotgun debugging and find the actual cause of software failures?

To stop shotgun debugging, you need a systematic root cause analysis process that enforces evidence gathering and code tracing before proposing fixes. This ensures the actual problem is identified and resolved rather than just treating symptoms.

What is the best way to investigate a persistent integration test failure?

The best way to investigate a persistent integration test failure is to follow a structured four-phase process: Capture error outputs, Investigate code execution, Hypothesize spec violations, and Prescribe actionable fixes to prevent regressions.

How do I identify spec drift when troubleshooting an error?

You can identify spec drift during troubleshooting by cross-referencing error outputs and code execution paths against constitutional context files. This highlights where the implementation violates the original specification.

What are the mandatory phases for systematic root cause analysis?

The mandatory phases for systematic root cause analysis are Capture, Investigate, Hypothesize, and Prescribe. This structured approach ensures fixes are evidence-based and actionable rather than speculative guesses.

Why does my integration test keep failing even after applying fixes?

An integration test keeps failing after fixes because the root cause was likely never addressed. Without evidence-based investigation and code tracing to identify spec violations, shotgun debugging only masks the underlying software failure.