5why-root-cause

5why-root-cause is a skill for Claude Code, Codex from RBraga01/Quality-Engineering-Skills. It costs 77 tokens per session (1,889 once invoked), scanned A, original, MIT.

A step-by-step method that repeatedly asks why a problem happened until the underlying cause is identified and supported by evidence. It is best suited to problems with one main chain of causes.

In plain words
What is it for?
Use it for process failures, equipment failures, procedure violations, 8D D4 investigations, corrective actions, and FMEA cause analysis; use separate chains when several cause paths exist.
Why use it?
It turns a symptom into a cause that can be addressed, while checking that the reasoning is logical and not based only on guesses.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for process failures, equipment failures, procedure violations, 8D D4 investigations, corrective actions, and FMEA cause analysis; use separate chains when several cause paths exist.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rbraga01/quality-engineering-skills/5why-root-cause
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add RBraga01/Quality-Engineering-Skills --skill 5why-root-cause
Clone the repo
git clone --depth 1 https://github.com/RBraga01/Quality-Engineering-Skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for 5why-root-cause

README.md
[![agentmods](https://agentmods.dev/badge/skills/rbraga01/quality-engineering-skills/5why-root-cause/github.svg)](https://agentmods.dev/skills/rbraga01/quality-engineering-skills/5why-root-cause)
Your own site
<a href="https://agentmods.dev/skills/rbraga01/quality-engineering-skills/5why-root-cause"><img src="https://agentmods.dev/badge/skills/rbraga01/quality-engineering-skills/5why-root-cause/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for 5why-root-cause

Your own site · 80×15
<a href="https://agentmods.dev/skills/rbraga01/quality-engineering-skills/5why-root-cause"><img src="https://agentmods.dev/badge/skills/rbraga01/quality-engineering-skills/5why-root-cause.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,889 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00077 $0.01889
Opus 5 $0.00039 $0.00945
Sonnet 5 $0.00015 $0.00378
Haiku 4.5 $0.00008 $0.00189

Measured 9d ago against content hash 492a3f50c07e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

5why-root-cause scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/problem-solving/5why-root-cause/SKILL.md · 191 lines

How it starts

The opening of the file, as written. The whole thing — 191 lines — stays where its author put it; the contents beside it link to each section on GitHub.

5-Why Root Cause Analysis

Goal

Identify and validate a systemic root cause through a structured, evidence-based Why chain that can be directly linked to a corrective action.

Required Execution Checklist

  • Problem defined with measurable data (value vs. specification)
  • Linear Why chain built — one cause path at a time, no branching
  • Each Why supported by objective evidence (not opinion or "probably")
  • Logical consistency verified — reversal check passed
  • Systemic root cause identified (not "human error" or symptom)
  • Root cause validated: reproducibility test + elimination test
  • Output enables definition of corrective action (PCA or CAPA)

When to use

Use 5-Why for any quality problem with a single, linear cause chain. Works best for process failures, equipment failures, and procedural non-compliances. For complex problems with multiple contributing causes, use Fishbone first to identify candidate root causes, then use 5-Why to drill into each.

If multiple potential cause paths exist — do not combine them into one chain. Run separate 5-Why chains for each path and determine which is confirmed by evidence.

Prerequisites

  • Problem is clearly defined (use Is/Is-Not to scope if needed)
  • The investigation team has access to the process, machine, or system where the defect occurred
  • Physical evidence or production records are available

Use within 8D — Occurrence and Escape

When used for 8D D4, two separate Why chains are required:

Chain Starting question What it finds
Occurrence chain "Why did the defect happen?" Root Cause of Occurrence (RCO) — the process or design failure that created the defect
Escape chain "Why was the defect not detected before reaching the customer?" Root Cause of Escape (RCE) — the detection system failure

Run each chain independently. Do not mix occurrence and escape causes in the same chain — they have different corrective actions. The occurrence chain addresses prevention; the escape chain addresses detection.

Read the full file on GitHub · 191 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 191 lines · 77 tokens per session scan A 492a3f50c07e

Subscribe to this mod's changes

5why-root-cause is a skill published in the GitHub repository RBraga01/Quality-Engineering-Skills (28 stars, last pushed 5d ago), licensed MIT. It adds 77 tokens to every session and 1,889 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.