5why Root Cause logo

5why Root Cause

Community
RBraga01
5why-root-cause

Drill into root cause with a 5-Why why chain, why analysis, or structured root cause investigation. Builds a Why chain from symptom to systemic root cause, validates each step with evidence, and detects circular reasoning. Use for 8D D4, CAPA, FMEA cause analysis, or any quality investigation requiring confirmed root cause identification.

Overview

PublisherRBraga01
RepositoryQuality-Engineering-Skills
Skill name5why-root-cause
Stars
45
Forks
19
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by RBraga01 on GitHub. Read the source before you install it.

Installation

Install the 5why Root Cause AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/RBraga01/Quality-Engineering-Skills/tree/master/skills/problem-solving/5why-root-cause
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/RBraga01/Quality-Engineering-Skills.git /tmp/Quality-Engineering-Skills
mkdir -p .claude/skills
cp -r /tmp/Quality-Engineering-Skills/skills/problem-solving/5why-root-cause .claude/skills/5why-root-cause
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable 5why Root Cause in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads 5why Root Cause on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so 5why Root Cause is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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:

ChainStarting questionWhat 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.


Workflow

Step 1 — State the symptom precisely

Start with a factual, measurable problem statement. Not "the part was bad" but "dimension X measured 23.5mm; specification is 25.0 ± 0.5mm on part number Y, batch 2026-05-12."

The first Why answers: "Why did [specific symptom] occur?"


Step 2 — Build the Why chain

For each Why, follow these rules:

Rule 1: Each answer must be supported by evidence

  • Acceptable evidence: measurement data, production records, machine logs, direct observation, physical samples
  • Not acceptable: "probably," "maybe," "someone said"

Rule 2: Each answer must logically lead to the next Why

  • Test reversibility: "Because [Why N], therefore [Why N+1]"
  • If the sentence doesn't make logical sense, the chain is broken

Rule 3: Keep the chain focused

  • One Why chain = one cause path
  • If you reach a fork (two possible causes), investigate both separately

Rule 4: Stop at a systemic root cause

  • You have reached root cause when: fixing it would prevent the defect from ever recurring
  • Typical systemic root causes: missing procedure, inadequate training system, process design gap, absence of poka-yoke, measurement system failure

Step 3 — Validate the chain

Work backwards through the completed chain:

"Because [Why 5], therefore [Why 4]. Because [Why 4], therefore [Why 3]..."

If any step does not logically follow, revise that step.


Step 4 — Validate the root cause

The root cause is correct if:

  • Reproducibility test: can you deliberately create the defect by triggering the root cause? Yes → validated
  • Elimination test: if you fix the root cause, does the defect disappear? (trial run or logical test)

If neither test is possible, the root cause is not confirmed — it is a hypothesis. Do not close the investigation on a hypothesis. Either obtain evidence to confirm it, or investigate alternative cause paths.


Example

Problem: Connector pin bent at incoming inspection, 12/200 parts (6%).

#WhyEvidenceValidated?
1Why are pins bent?Pins deformed during insertion into housingMicroscopy confirmed deformation pattern
2Why during insertion?Insertion force exceeded pin yield strengthForce measurement: 48N, pin rated to 35N
3Why was force 48N?Operator used incorrect insertion tool (hand press vs. pneumatic jig)Tool log: jig under maintenance since 05-10
4Why was incorrect tool used?No instruction specifying which tool to use when jig is unavailableWork instruction reviewed — no contingency
5Why no contingency?Tool maintenance downtime not considered in work instruction designProcess FMEA missing this scenario

Root cause: Work instruction design does not cover tool substitution contingency; FMEA does not identify tool maintenance as a failure scenario.

Reversal check: "Because FMEA doesn't cover tool maintenance → therefore no contingency instruction → therefore wrong tool used → therefore excess force → therefore pins bent." ✓ Logical.


Common mistakes — reject these

"Human error" as a final answer → Ask: why was the error possible? What in the system allowed it?

"Operator didn't follow the procedure" → Ask: why didn't they follow it? Was it unclear? Not trained? Impossible to follow?

"Machine was out of calibration" → Ask: why? What is the calibration interval? Was it missed? Why?

Circular reasoning → "The part was defective because it didn't meet spec, because it was defective." → reframe the first Why as the physical mechanism.

Stopping at a symptom, not a cause → "The defect occurred because the part was wrong" — that IS the defect, not a cause.

Branching the chain prematurely → Each Why step should have one answer. If you have two, run two separate 5-Why chains.

Output content

A validated 5-Why must include:

  1. Problem statement (measured, quantified)
  2. Each Why with: the answer, the supporting evidence, and validated (Yes/No)
  3. Root cause statement
  4. Reversal check (one sentence confirming logical flow)
  5. Validation method (how the root cause was confirmed)
  6. Corrective action direction — what type of action addresses this root cause (used as direct input to 8D D5 or CAPA)

Output Format

At the start of each use, ask the user:

"How would you like to receive the output? A — Structured Markdown (formatted tables and sections, ready to copy) B — Plain tables (simplified structure for Excel or Word) C — Narrative report (flowing text for a formal document or email)

Default: A."

Adapt all output sections to the chosen format. If the platform or session context already defines a format preference, skip this question.

Reference files

Changelog

VersionDateAuthorChange
1.02026-06-01@RBraga01Initial release
1.12026-06-03@RBraga01Added dual-chain requirement (occurrence + escape), evidence status tracking

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the 5why Root Cause AI skill do?

Drill into root cause with a 5-Why why chain, why analysis, or structured root cause investigation. Builds a Why chain from symptom to systemic root cause, validates each step with evidence, and detects circular reasoning. Use for 8D D4, CAPA, FMEA cause analysis, or any quality investigation requiring confirmed root cause identification.

Why use 5why Root Cause on TypingMind?

Because you install it once and use it with any model. 5why Root Cause is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install 5why Root Cause in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/RBraga01/Quality-Engineering-Skills/tree/master/skills/problem-solving/5why-root-cause. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use 5why Root Cause?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with 5why Root Cause?

As many as you like. As long as a model supports skills, you can use 5why Root Cause with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the 5why Root Cause AI skill free?

Yes. It is published on GitHub by RBraga01 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇