five-whys

five-whys is a skill for Claude Code, Codex from tupe12334/instinct. It costs 25 tokens per session (1,756 once invoked), scanned A, original, MIT.

A root-cause analysis method that repeatedly asks why a visible problem happened. The questions continue until they reach an actionable underlying cause rather than just the immediate symptom.

In plain words
What is it for?
Investigating incidents, bugs, process failures, and other problems where the underlying cause is unclear.
Why use it?
It helps prevent recurring problems by focusing on the condition that allowed them to happen, not only on the latest failure.

Skill for Claude CodeCodex

Part of the instinct plugin — 54 skills, 1 hook shipped together

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.

agentmods
npx agentmods add skills/tupe12334/instinct/five-whys
Any agent
npx skills add tupe12334/instinct --skill five-whys
Clone the repo
git clone --depth 1 https://github.com/tupe12334/instinct

Made for: Claude Code, Codex.

Or install instinct, the plugin that ships this one along with the rest of its 54 skills, 1 hook.

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 five-whys

README.md
[![agentmods](https://agentmods.dev/badge/skills/tupe12334/instinct/five-whys.svg)](https://agentmods.dev/skills/tupe12334/instinct/five-whys)
Your own site
<a href="https://agentmods.dev/skills/tupe12334/instinct/five-whys"><img src="https://agentmods.dev/badge/skills/tupe12334/instinct/five-whys.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,756 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00025 $0.01756
Opus 5 $0.00013 $0.00878
Sonnet 5 $0.00005 $0.00351
Haiku 4.5 $0.00003 $0.00176

Measured 4d ago against content hash 1b52826cb14c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

five-whys 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 4d 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/five-whys/SKILL.md · 130 lines

How it starts

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

Five Whys

Overview

The Five Whys is a root-cause analysis technique developed by Taiichi Ohno at Toyota. You start with a visible symptom and ask "Why did this happen?" repeatedly — each answer becomes the subject of the next question — until you reach the systemic cause rather than stopping at the proximate one.

Problem (symptom)
  └─ Why? → Cause 1
       └─ Why? → Cause 2
            └─ Why? → Cause 3
                 └─ Why? → Cause 4
                      └─ Why? → ROOT CAUSE (act here)

Five is a guideline, not a rule. Stop when you reach a cause that is actionable and where fixing it would prevent recurrence.

Core Concepts

Symptom vs. Root Cause

The symptom is what you observe; the root cause is the condition that made the symptom inevitable. Fixing a symptom stops this instance; fixing the root cause prevents the class of problem.

The Causal Chain

Each why step must be a direct cause of the step above it — not a parallel factor, not a contributing influence. If you can ask "but also why?" and get a different chain, you may have a branching problem requiring a fishbone diagram instead.

Actionability

A valid root cause must be something a person or team can actually change. "The system is complex" is not actionable. "No one owns monitoring for this service" is.

The "Five" Number

Ohno chose five because most surface-level explanations exhaust themselves in 2–3 whys; the 4th and 5th force you past the obvious. In practice, chains run 3–7 steps depending on domain.

How to Apply

Step 1 — Write a precise problem statement

Do not start with vague language. Bad: "the deployment broke." Good: "The production deployment at 14:32 UTC caused a 23-minute outage for all EU users." Ambiguous problem statements produce ambiguous root causes.

Step 2 — Ask the first "Why?"

What directly caused the problem statement to be true? Write it down. This should be a fact, not a guess — verify with data, logs, or direct observation if needed.

Read the full file on GitHub · 130 lines

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. 4d ago First seen · 130 lines · 0 tokens per session scan A 1b52826cb14c

Subscribe to this mod's changes

five-whys is a skill published in the GitHub repository tupe12334/instinct (1 stars, last pushed 18d ago), licensed MIT. It adds 25 tokens to every session and 1,756 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

thinking-theory-of-constraints

When throughput or latency is pipeline-limited, identify the single binding constraint and exploit, subordinate, elevate, then recheck—ignore non-constraints.

tjboudreaux/cc-thinking-skills · 37 tokens

thinking-lindy-effect

Use when longevity of a non-perishable option matters. Treat survival duration as a remaining-life prior, then check domain drift before favoring the proven.

tjboudreaux/cc-thinking-skills · 35 tokens

thinking-kepner-tregoe

Use when a selective defect needs IS/IS-NOT difference analysis or a consequential option choice needs must/want weighting and adverse-consequence comparison.

tjboudreaux/cc-thinking-skills · 37 tokens

alive:demo

Generate a believable, lived-in ALIVE world from a free-text persona description (custom path) or a deterministic sandbox preset. Routes the create/list/activate/deactivate/delete/status surface and orchestrates the 5-stage subagent generation pipeline.

alivecontext/alive · 52 tokens

alive:session-history

Revive sessions (quick or heavy), browse, and search — 'what happened recently?', 'find the session where we discussed X', 'revive yesterday's session'. For single-session recall and multi-session browsing. If the human needs to merge multiple sessions into one working context or detect conflicts between parallel…

alivecontext/alive · 76 tokens

alive:world

The human doesn't know what to work on, or wants to see everything at once. They need the big picture — what's active, what's stale, what needs attention. Renders a live world view grouped by ALIVE domain, then routes to open, tidy, find, history, or map.

alivecontext/alive · 63 tokens