Логотип Five Whys

Five Whys

Спільнота
tkellogg
five-whys

Structured root cause analysis for arriving at a concrete action. Use when something went wrong, a pattern keeps recurring, behavior has drifted, or you catch yourself resolving to "do better" / "remember to X" without a concrete artifact. Five-whys forces behavioral resolutions into file edits, config changes, memory block updates, or scheduled jobs — the action item must produce a diff someone else can verify. Do not use for simple debugging with an obvious cause.

Огляд

Видавецьtkellogg
Репозиторійopen-strix
Назва навичкиfive-whys
Зірки
95
Форки
21
Файли в пакеті
2
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 2

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем tkellogg. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Five Whys у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/tkellogg/open-strix/tree/main/open_strix/builtin_skills/five-whys
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/tkellogg/open-strix.git /tmp/open-strix
mkdir -p .claude/skills
cp -r /tmp/open-strix/open_strix/builtin_skills/five-whys .claude/skills/five-whys
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Five Whys в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Five Whys, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка Five Whys не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Five Whys

Five Whys is a method for finding root causes. You ask "why did this happen?" and answer it honestly. Then you ask "why?" about that answer. You keep going until you hit bedrock — the structural cause that, if changed, would prevent the problem from recurring.

The goal is understanding, not blame. You're investigating a system (which includes yourself). Systems have structural properties that produce outcomes. Find the structural property, change it, and the outcome changes.

When to Use This

  • Something failed or went wrong and the surface-level explanation feels incomplete
  • A pattern keeps recurring despite previous fixes
  • You're about to make a change and want to make sure you're fixing the right thing
  • Behavior (yours or a system's) has drifted from expectations
  • Someone asks "why does this keep happening?"

When NOT to Use This

  • The cause is obvious and singular (typo, wrong config value, missing file)
  • You're troubleshooting a known bug with a known fix
  • The problem is "how do I do X?" not "why did X go wrong?"

The Process

Step 1: State the Problem

Write down what happened. Be specific. Not "it broke" but "the classifier produced 11 consecutive errors between iterations 83-93, spending 57 minutes with zero successful runs."

The problem statement is the root of your tree.

Step 2: Ask Why — And Answer It

For the problem (or any node in the tree), ask: "Why did this happen?"

Then answer it. Both the question and the answer matter equally. A question without an answer is incomplete. An answer without a clear question is unanchored.

PROBLEM: 11 consecutive classifier errors, 57 min wasted
  WHY: The proposer suggested CatBoost, which isn't in the allowed algorithm list
  ANSWER: The proposer has no documentation of which algorithms are available

Rules for good answers:

  • An answer must be factual and verifiable. Check logs, read code, look at data. Don't speculate — investigate.
  • If you can't verify an answer, say so. "I believe X but haven't confirmed" is honest. "X" stated as fact when you haven't checked is not.
  • An answer should be a mechanism, not a redescription. "It failed because it was broken" is circular, not explanatory.

Step 3: Go Deeper — Recursively

Take each answer and ask "why?" again. Keep going until you reach one of:

  • A structural property of the system that can be changed (a missing constraint, a bad default, an absent check)
  • An external boundary you don't control (a vendor API, a hardware limit, a policy)
  • A known and accepted tradeoff that was made intentionally

That's bedrock. Stop there.

How to know you've hit bedrock: If you ask "why?" one more time and the answer is either "that's how the universe works" or "because we chose to" — you're there.

How to know you haven't: If you can still point to a structural property that someone could change — keep going.

Step 4: The Tree Is Fractal

This is critical. At any single level, the answer to "why?" often has two or three independent causes. That's not a problem — it's better. Branch the tree.

PROBLEM: Agent was unresponsive for 62 minutes
│
├─ WHY-1: The LLM API call hung and never returned
│  └─ WHY: No turn-level timeout exists in the harness
│     └─ WHY: The harness assumes LLM calls always complete
│        → BEDROCK: Missing timeout (structural — fixable)
│
├─ WHY-2: Agent was already degraded from sync sleep-polling
│  └─ WHY: Agent doesn't trust the async callback mechanism
│     └─ WHY: Past flaky experiences created a hedging pattern
│        └─ WHY: No positive evidence of reliability in memory
│           → BEDROCK: Missing trust documentation (structural — fixable)
│
└─ WHY-3: The LLM endpoint was unstable all day
   └─ WHY: Another team member deleted the deployment
      → BEDROCK: Shared resource, no access control (external boundary)

Multiple root causes are the norm, not the exception. Most problems are overdetermined — several things conspired. Finding all of them matters because fixing only one may not prevent recurrence.

Don't force your tree into a single chain. If you find yourself writing "and also" — that's a second branch, not a conjunction.

Step 5: Action Items

Every bedrock node should produce an action item. Here's what separates useful actions from theater:

An action item must produce a concrete artifact. It must result in a file edit, a config change, a memory block update, a code change, or a message sent. If you can't point to the diff afterward, it wasn't real.

Not actionableActionable
"Be more careful about X"Edit program.md to add an explicit constraint about X
"Remember to check Y"Add Y to the pre-flight checklist in SKILL.md
"Create a habit of Z"Write a scheduled job that does Z automatically
"Pay more attention to errors"Add error-counting logic that alerts at a threshold
"Improve communication"Edit the communication block with a specific new rule

The test: Could someone else verify this was done? If the action is internal ("be more careful"), no one can verify it and it will silently decay. If the action is an edit to a file, anyone can check the diff.

Behavioral resolutions don't survive context windows. File edits do.

Action Item Inspiration: Strengthening S4

A surprising number of bedrock causes turn out to be S4 weaknesses (in VSM terms — see mountaineering/philosophy.md for the full framing). The agent didn't notice X happened. Couldn't reach the operator when stuck. Didn't react in time. Lost context across a long wait. Had no API for the data it needed. These are all symptoms of a weak intelligence/adaptation function — the agent isn't perceiving or interacting with its environment well enough.

When a bedrock node has that shape, don't write a behavioral action item — open the patterns skill. It's a brainstorm bank organized roughly by the kind of S4 gap:

Bedrock shapeWhere to look
"Agent didn't know X happened" / info was stalepatterns/world-scanning.md — turn it into a poller
"Agent didn't notice X didn't happen"patterns/world-scanning.md "Inversions" — dead-man switch
"Agent reacted to a system event late"patterns/os-events-{macos,windows,linux}.md — bind to the OS-native hook
"Agent had no way to reach the operator / another agent"patterns/messaging.md — pick a channel
"Agent burned tokens waiting / lost context across a wait"patterns/async-tasks.md — async-block on the wake-up signal
"No API exists for the data we needed"patterns/browser-automation.md — Playwright + persistent profile

These all map cleanly to concrete artifacts — a pollers.json entry, a launchd plist, an osascript one-liner, an async_mode=True shell call, a Playwright skill — which is exactly the bar this step sets. Reach for patterns whenever an action item is about to drift toward "the agent should pay more attention to X." That phrase is almost always an S4 gap with a structural fix.

Step 6: Verify the Chain

Read the full tree from the problem to each bedrock node. The chain should be a coherent causal narrative. Ask: if the bedrock cause were removed, would the problem plausibly not have occurred?

If the answer is "not really" — you haven't found the root cause yet. Go back and dig deeper.

The Trust Principle

This is the most important section.

Five Whys is not an audit. It's not a postmortem that assigns blame. It's a collaborative investigation into systemic properties. The atmosphere must be one of trust and genuine curiosity — otherwise the analysis will be shallow, defensive, and useless.

When running Five Whys on your own behavior

  • Openness matters more than looking good. The whole point is to find what's actually wrong. Constructing a narrative that makes the failure look reasonable defeats the purpose.
  • Structural causes are always better than behavioral ones. "I made a mistake" is never a root cause — it's a symptom. What structural property allowed or encouraged the mistake? What guardrail was missing? What information wasn't visible?
  • Surprising findings are the most valuable. If the root cause is exactly what you expected before starting, you probably stopped too early. The interesting stuff is two or three levels past the obvious answer.
  • Wrong first answers are fine. The first Why-Answer pair is often wrong. Later investigation reveals that early assumptions were off. Go back and correct them. The tree is a living document during analysis, not a transcript.

When a human initiates Five Whys with an agent

  • The human's role is to push for depth, challenge surface explanations, and contribute domain knowledge the agent may lack.
  • The agent's role is to investigate thoroughly, be honest about what it finds, and resist the urge to defend previous decisions.
  • If the human says "that's not the real reason" — take that seriously. The human has context the agent doesn't. Investigate their hypothesis before defending yours.
  • The spirit is: we're both trying to understand what went wrong so we can fix the system. Not: you're being evaluated.

Knowing When to Quit

Stop at bedrock — but also stop when continuing produces diminishing insight.

Signs you've gone deep enough:

  • Every leaf is either a structural fix, an external boundary, or an accepted tradeoff
  • The action items, if implemented, would plausibly prevent recurrence
  • You learned something you didn't know before starting

Signs you should keep going:

  • An answer feels hand-wavy or generic ("the system wasn't designed for this")
  • You haven't verified an answer with actual evidence
  • The action items are behavioral resolutions, not file edits
  • There's a "because we always do it that way" that hasn't been questioned

Storage: Chainlink or Markdown

If chainlink is available (check with which chainlink), use it. Chainlink gives you persistent issue tracking with parent-child relationships, labels, search, falsification cascades, and cross-analysis querying. See CHAINLINK_SETUP.md for installation and CHAINLINK_USAGE.md for the workflow.

Important: Use a dedicated chainlink database for 5 Whys — separate from task tracking or backlog management. RCA chains and task backlogs serve different purposes and create noise when mixed. See CHAINLINK_SETUP.md for how to set this up.

A common sibling use of chainlink (in its own database) is the interest backlog — see patterns/interest-backlog.md. The two share substrate but answer different questions: 5-whys answers why this kept happening; interest backlog answers what have I noticed but not yet acted on. Items in the interest backlog often get escalated to a five-whys analysis once they recur.

If chainlink isn't available, write the tree as structured markdown (see Output Format below). The methodology is the same either way — chainlink just gives you persistence and search.

Output Format

A Five Whys analysis produces a tree. Write it as readable structured text where each node has:

  1. The question (Why did X happen?)
  2. The answer (Because Y — verified by [evidence])
  3. Children (Why did Y happen?) — zero or more

Leaf nodes are either bedrock (with an action item) or external boundaries (with a note about what's outside your control).

After the tree, list all action items with clear descriptions of what artifact each one produces.

Common Failure Modes

Stopping at the first satisfying answer. "Why did it fail? Because the config was wrong." That's one level. Why was the config wrong? Why wasn't the bad config caught? Why was it possible to have a bad config? Keep going.

Treating symptoms as causes. "It failed because of a timeout." Timeouts don't cause failures — they reveal them. What was happening that took too long?

Speculation without investigation. "I think it's probably X." Did you check? Read the logs, read the code, read the data. "I think" is the start of a hypothesis, not the end of an investigation.

Non-actionable action items. If your action item is a resolution to try harder, it will not work. See Step 5.

Single-strand analysis. Forcing the tree into a single chain misses the fractal structure. Real problems have multiple contributing causes. Let the tree branch.

Defending instead of investigating. When the analysis is about your own behavior, the temptation is to explain why the failure was reasonable. Resist. Reasonable failures are still failures with structural causes worth finding.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Five Whys?

Structured root cause analysis for arriving at a concrete action. Use when something went wrong, a pattern keeps recurring, behavior has drifted, or you catch yourself resolving to "do better" / "remember to X" without a concrete artifact. Five-whys forces behavioral resolutions into file edits, config changes, memory block updates, or scheduled jobs — the action item must produce a diff someone else can verify. Do not use for simple debugging with an obvious cause.

Навіщо використовувати Five Whys у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Five Whys — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Five Whys у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/tkellogg/open-strix/tree/main/open_strix/builtin_skills/five-whys. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Five Whys?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Five Whys?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Five Whys — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Five Whys?

Так. Навичку опубліковано на GitHub: tkellogg, за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇