root-cause-analyzer

Reproduce bugs and trace state flows to produce evidence-backed root cause reports.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/yuridefranca/ai-prompts --skill root-cause-analyzer-yuridefranca
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: root-cause-analyzer
Source: https://github.com/yuridefranca/ai-prompts/tree/main/src/skills/root-cause-analyzer
Command: npx skills add https://github.com/yuridefranca/ai-prompts --skill root-cause-analyzer-yuridefranca

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps engineers accurately identify the underlying root cause of software bugs by driving an evidence-first investigation that reproduces issues, traces execution and data flows, checks timing and concurrency, reviews recent changes, and validates assumptions while explicitly avoiding proposing fixes.

Core Features & Use Cases

  • Reproduce reliably: Create minimal, repeatable reproduction steps with exact inputs, expected vs actual behavior, and frequency notes.
  • Trace state and data: Capture variable values, call sequences, and transformation points to locate where data becomes incorrect.
  • Concurrency and history checks: Test for race conditions, add delays or stress tests, and inspect git history/blame to link regressions to commits.
  • Use Case: When a payment flow intermittently fails in production, use this Skill to reproduce the failure, collect logs and traces, identify the faulty state transition, and produce an evidence-backed root cause report.

Quick Start

Use root-cause-analyzer to produce an evidence-backed root cause report for the failing checkout payment flow.

Frequently Asked Questions about root-cause-analyzer

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

FAQPage Schema
How do I find the root cause of a software bug using evidence-based reproduction?

Root cause analysis uses evidence-based reproduction to trace state and data flows, identify faulty transitions, and validate assumptions. It produces an evidence-backed report containing reproduction steps, execution traces, and confidence levels without proposing fixes.

How do I trace state and data flows to locate where a bug occurs?

Tracing state and data flows captures variable values, call sequences, and transformation points to locate where data becomes incorrect. This process identifies faulty state transitions by comparing expected versus actual behavior during systematic reproduction.

How do I check for race conditions during debugging workflows?

Checking for race conditions involves adding delays, running stress tests, and testing concurrency timing during reproduction. This detects intermittent failures by exposing timing vulnerabilities in state transitions and data access patterns.

Can I use git history and blame to link regressions to specific commits?

Git history inspection links regressions to specific commits by reviewing recent changes and using blame analysis. This identifies when faulty behavior was introduced by tracing modifications to state transitions and data flow logic.

What's the best way to reproduce intermittent production failures reliably?

Reliable reproduction creates minimal, repeatable steps with exact inputs, expected versus actual behavior, and frequency notes. This captures intermittent failures by documenting precise conditions and executing systematic stress tests to trigger race conditions.

What should a root cause report include when analyzing software bugs?

A root cause report includes reproduction steps, state and data traces, alternative explanations, confidence level, and missing information. It validates assumptions through evidence-backed analysis without proposing fixes or implementation changes.