root-cause-analysis
Deep root cause analysis using the 5 Whys and Fishbone techniques. Use when systematic debugging hasn't found the cause, or for complex systemic issues…
от VoDaiLocz★ 28 звёзд на GitHub
Установить root-cause-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
🔬 Root Cause Analysis Skill
Philosophy: Don't stop at the first "why" — dig until you hit bedrock.
When to Use
Use this skill when:
- Systematic debugging found the bug but not WHY it exists
- Issue keeps recurring despite fixes
- Bug seems to have multiple contributing factors
- You need to prevent similar bugs in the future
- There's a systemic/architectural issue suspected
Do NOT use this skill when:
- Bug is simple and obvious
- Time is extremely limited (use quick-fix)
- Just need to patch, not understand
Prerequisites
Before starting:
- Bug has been identified (what is happening)
- Have access to relevant code and history
- Understand the system architecture (high level)
- Have time for thorough analysis (~30-60 mins)
Process
Phase 1: PROBLEM DEFINITION 📝
Goal: Clearly define what we're analyzing.
Steps:
State the Problem Precisely
Template: "When [condition], the system [actual behavior] instead of [expected behavior]." Example: "When a user submits a login form with special characters, the system returns a 500 error instead of validating input."Gather Impact Data
- How often does it occur?
- Who/what is affected?
- What's the business impact?
- How long has it been happening?
Document Timeline
- When did it first appear?
- Any recent changes before first occurrence?
- Has it gotten better/worse?
Output: Clear problem statement with context.
Phase 2: THE 5 WHYS ANALYSIS 🔍
Goal: Drill down to fundamental causes.
Method:
Start: Problem Statement
│
├─ Why? → First-level cause
│ │
│ ├─ Why? → Second-level cause
│ │ │
│ │ ├─ Why? → Third-level cause
│ │ │ │
│ │ │ ├─ Why? → Fourth-level cause
│ │ │ │ │
│ │ │ │ └─ Why? → ROOT CAUSE
Rules:
- Each answer must be factual, not speculative
- If multiple answers possible at a level, branch and explore all
- Stop when you reach something actionable
- "Human error" is NEVER a root cause — dig deeper
Example:
Problem: Login fails with special characters
Why #1: Server returns 500 error
→ Because: Unhandled exception in auth.service.ts
Why #2: Why is there an unhandled exception?
→ Because: SQL query fails with syntax error
Why #3: Why does SQL have syntax error?
→ Because: User input is concatenated directly into query
Why #4: Why is input concatenated directly?
→ Because: Developer didn't use parameterized queries
Why #5: Why didn't developer use parameterized queries?
→ Because: No code review caught it, and no security guidelines exist
ROOT CAUSE: Missing security coding standards and review process
Phase 3: FISHBONE DIAGRAM (ISHIKAWA) 📊
Goal: Explore contributing factors systematically.
Categories to Examine:
┌──────────┐
┌──────────────────►│ │
│ Environment │ │
│ │ │
┌─────────┴───┐ │ PROBLEM │
│ Methods ├──────────────►│ │
└─────────────┘ │ │
│ │
┌─────────────┐ │ │
│ Machines ├──────────────►│ │
│ (Systems) │ │ │
└─────────────┘ └─────┬────┘
│
┌───────────────────────────┘
│
┌────┴────┐ ┌──────────┐ ┌──────────┐
│ People │ │Materials │ │Measurement│
│(Process)│ │ (Data) │ │ (Metrics)│
└─────────┘ └──────────┘ └──────────┘
For Each Category, Ask:
| Category | Questions to Ask |
|---|---|
| Methods | Is the process correct? Is it followed? Is it documented? |
| Machines | Is the system configured correctly? Dependencies up to date? |
| Environment | Dev vs Prod differences? External factors? |
| People/Process | Training adequate? Communication clear? Handoffs smooth? |
| Materials/Data | Data quality? Input validation? Edge cases? |
| Measurement | Are we monitoring correctly? Are we measuring the right things? |
Phase 4: CONTRIBUTING FACTOR ANALYSIS 🧩
Goal: Weight and prioritize contributing factors.
Steps:
List All Contributing Factors Combine findings from 5 Whys and Fishbone
Score Each Factor
scoring: frequency: 1-5 (how often does this contribute?) detectability: 1-5 (how hard to detect? 5=very hidden) severity: 1-5 (how much impact when it contributes?) risk_score: frequency × detectability × severityCreate Priority Matrix
High Frequency + High Severity → Address immediately High Frequency + Low Severity → Address soon Low Frequency + High Severity → Create safeguards Low Frequency + Low Severity → Monitor only
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл root-cause-analysis?
Deep root cause analysis using the 5 Whys and Fishbone techniques. Use when systematic debugging hasn't found the cause, or for complex systemic issues. Keywords: root cause, why, underlying, fundamental, systemic, deep, origin
Как установить скилл root-cause-analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл root-cause-analysis запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…