root-cause

Analyze scored findings with compressed 5-why root-cause analysis and merge results.

Updated Sep 9, 2024
One-click install
npx skills add https://github.com/axel-kaliff/dotfiles --skill root-cause-axel-kaliff
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: root-cause
Source: https://github.com/axel-kaliff/dotfiles/tree/main/claude/.claude/skills/root-cause
Command: npx skills add https://github.com/axel-kaliff/dotfiles --skill root-cause-axel-kaliff

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill challenges proposed fixes to determine whether they address the underlying root cause or only patch symptoms, helping teams avoid repeated regressions and misguided fixes by applying a compressed 5-why analysis to scored findings.

Core Features & Use Cases

  • Confidence-filtered analysis: Automatically selects High and Medium confidence findings from scored results to avoid wasting effort on likely false positives.
  • Source-aware batching: Groups findings by file and containing function, pre-reads functions with surrounding context, and pre-greps caller chains to give agents the necessary code context.
  • Parallel agent execution and merge: Spawns parallel root-cause agents per batch, enforces a strict structured output format per finding, validates batch writes, and merges results into a single ROOT_CAUSE_ANALYSIS.md.
  • Use case: Run as a Phase 2b after automated scoring to convert scored findings into actionable, minimally invasive fixes or identify deeper upstream fixes.

Quick Start

Run root-cause analysis on SCORED_FINDINGS.md and produce a merged ROOT_CAUSE_ANALYSIS.md in claude_session/.

Frequently Asked Questions about root-cause

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

FAQPage Schema
How do I perform root cause analysis on code review findings to avoid patching symptoms?

Root cause analysis on code review findings uses a compressed 5-why technique to challenge proposed fixes, classifying whether they address underlying causes or merely patch symptoms. It filters for high and medium confidence scored findings to prevent wasted effort on false positives.

How do I group and batch code review findings for parallel analysis?

Batching code review findings groups them by file and containing function, pre-reads functions with surrounding context, and pre-greps caller chains. This source-aware grouping provides necessary code context before spawning parallel root-cause analysis agents per batch.

What is compressed 5-why root-cause analysis in software engineering?

Compressed 5-why root-cause analysis in software engineering is a technique that challenges proposed fixes to determine if they address the underlying root cause. It helps teams avoid repeated regressions and misguided fixes by applying structured questioning to scored findings.

Do I need a SCORED_FINDINGS.md file before running root-cause analysis?

Yes, root-cause analysis requires read access to a SCORED_FINDINGS.md file containing previously scored findings. It automatically selects high and medium confidence findings from this file to focus analysis effort on likely real issues rather than false positives.

How do I merge parallel root-cause analysis results into a single report?

Merging parallel root-cause analysis results validates batch writes and combines them into a single ROOT_CAUSE_ANALYSIS.md file. The system enforces a strict structured output format per finding during parallel agent execution before merging the validated batch outputs.

When should I not use automated 5-why analysis for code fixes?

Automated 5-why analysis should not be used when you lack read access to repository source files or a SCORED_FINDINGS.md file. It also requires the ability to write batch files and a final ROOT_CAUSE_ANALYSIS.md, making it unsuitable for restricted environments.