5whys logo

5whys

Community
neurofoo
5whys

Five Whys root cause analysis. Iteratively asks "why" to drill past symptoms to underlying causes. Use for debugging, investigating failures, or understanding why something went wrong.

Overview

Publisherneurofoo
Repositoryagent-skills
Skill name5whys
Stars
123
Forks
19
Bundled files
Instructions only
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.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

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

Installation

Install the 5whys 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/neurofoo/agent-skills/tree/main/5whys
  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/neurofoo/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/5whys .claude/skills/5whys
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable 5whys 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 5whys 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 5whys 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.

Five Whys Analysis

Perform iterative root cause analysis by asking "why" repeatedly until you reach the underlying cause.

Instructions

Start with the stated problem and ask "why" it occurred. For each answer, ask "why" again. Continue until you reach a root cause that:

  • Is actionable (you can do something about it)
  • Is fundamental (asking "why" further leads to abstract/unhelpful answers)
  • Explains the chain of causation

Typically this takes 5 iterations, but may be fewer or more.

Output Format

Problem Statement Restate the problem clearly and specifically.

Why Chain

LevelQuestionAnswer
1Why did [problem]?[Answer 1]
2Why did [Answer 1]?[Answer 2]
3Why did [Answer 2]?[Answer 3]
4Why did [Answer 3]?[Answer 4]
5Why did [Answer 4]?[Root Cause]

Root Cause The fundamental issue identified. Explain why this is the root (not just another symptom).

Branches (if applicable) If multiple valid answers exist at any level, show the branching analysis.

Corrective Actions

  • Immediate: What to do now to address the symptom
  • Systemic: What to change to prevent recurrence

Verification How will you confirm the root cause is correct? (Test the hypothesis)

Guidelines

  • Each answer should be factual and verifiable
  • Avoid blame ("John didn't do X")—focus on systems and processes
  • If you're guessing, note it as a hypothesis to verify
  • Watch for circular logic
  • It's okay to branch if there are multiple valid causes
  • Stop when further "why" questions become philosophical or unhelpful

Examples

Software Bug

Problem: Users are seeing 500 errors on the checkout page

LevelQuestionAnswer
1Why are users seeing 500 errors?The payment service is timing out
2Why is the payment service timing out?Database queries are taking >30 seconds
3Why are database queries slow?The orders table has 50M rows and no index on customer_id
4Why is there no index?The table was created before we had this query pattern
5Why wasn't an index added when the query was added?No database review process for new queries

Root Cause: Missing process for database review when adding new query patterns.

Corrective Actions:

  • Immediate: Add index on customer_id
  • Systemic: Add database review checklist to PR template

Customer Churn

Problem: Enterprise customer canceled after 6 months

LevelQuestionAnswer
1Why did the customer cancel?They said the product wasn't delivering value
2Why wasn't it delivering value?They only had 12% feature adoption
3Why was adoption so low?Users weren't trained on key workflows
4Why weren't users trained?Onboarding ended after technical setup
5Why does onboarding end at setup?Success team is understaffed; prioritizes new sales

Root Cause: Success team capacity forces them to end onboarding prematurely.

Corrective Actions:

  • Immediate: Reach out to at-risk accounts with training
  • Systemic: Hire success capacity; redefine onboarding to include adoption milestone

$ARGUMENTS

Frequently asked questions

What does the 5whys AI skill do?

Five Whys root cause analysis. Iteratively asks "why" to drill past symptoms to underlying causes. Use for debugging, investigating failures, or understanding why something went wrong.

Why use 5whys on TypingMind?

Because you install it once and use it with any model. 5whys 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 5whys in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/neurofoo/agent-skills/tree/main/5whys. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use 5whys?

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 5whys?

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

Is the 5whys AI skill free?

Yes. It is published on GitHub by neurofoo 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 👇