Best for
- Systematic debugging found the bug but not WHY it exists
- Issue keeps recurring despite fixes
- Bug seems to have multiple contributing factors
VoDaiLocz/kilo-kit-mcp/skills/kilo-kit/debugging/root-cause/SKILL.md
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
Decision brief
Philosophy: Don't stop at the first "why" — dig until you hit bedrock.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/VoDaiLocz/kilo-kit-mcp --skill "skills/kilo-kit/debugging/root-cause"Inspect the Agent Skill "root-cause-analysis" from https://github.com/VoDaiLocz/kilo-kit-mcp/blob/29dff82378b9f298ecb7141d2dd59c6bd6bfb3ad/skills/kilo-kit/debugging/root-cause/SKILL.md at commit 29dff82378b9f298ecb7141d2dd59c6bd6bfb3ad. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Goal: Clearly define what we're analyzing.
Goal: Clearly define what we're analyzing.
Goal: Drill down to fundamental causes.
Goal: Explore contributing factors systematically.
Goal: Weight and prioritize contributing factors.
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 93/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 24 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Philosophy: Don't stop at the first "why" — dig until you hit bedrock.
Use this skill when:
Do NOT use this skill when:
Before starting:
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
Document Timeline
Output: Clear problem statement with context.
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:
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
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? |
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 × severity
Create 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
Goal: Confirm the root cause is correct.
Validation Questions:
Causation Test
Completeness Test
Actionability Test
Proportionality Test
Goal: Prevent recurrence.
Recommendation Types:
Immediate Fix
Root Cause Fix
Systemic Improvement
Detection Improvement
Example Recommendations:
for_the_sql_injection_example:
immediate:
- Fix the specific query to use parameters
- Add input sanitization
root_cause:
- Establish secure coding guidelines
- Require security review for auth code
systemic:
- Enable SQL injection detection in SAST tooling
- Add security-focused code review checklist
- Security training for developers
detection:
- Add SQL injection tests to CI pipeline
- Monitor for unusual database queries
# Root Cause Analysis Report
## Problem Statement
[Clear statement of the problem]
## Timeline
- First observed: [date]
- Recent changes: [list]
- Frequency: [how often]
## 5 Whys Analysis
1. Why? → [answer]
2. Why? → [answer]
3. Why? → [answer]
4. Why? → [answer]
5. Why? → [answer]
## Contributing Factors
| Factor | Category | Risk Score | Priority |
|--------|----------|------------|----------|
| [factor] | [cat] | [score] | [priority] |
## Root Cause
[Clear statement of root cause]
## Validation
- [ ] Causation confirmed
- [ ] Complete (no other causes)
- [ ] Actionable
- [ ] Proportional
## Recommendations
### Immediate
- [action]
### Root Cause Fix
- [action]
### Systemic
- [action]
### Detection
- [action]
Before claiming analysis complete:
skills/kilo-kit/debugging/systematic/ - For initial bug identificationskills/kilo-kit/debugging/verification/ - For validating fixesskills/kilo-kit/quality/code-review/ - For review improvementsRoot Cause Analysis Skill v1.0.0 — Dig until you hit bedrock
Frequently asked questions
Philosophy: Don't stop at the first "why" — dig until you hit bedrock.
The source record exposes this install command: npx skills add https://github.com/VoDaiLocz/kilo-kit-mcp --skill "skills/kilo-kit/debugging/root-cause". Inspect the command and pinned source before running it.
Alternatives
coreyhaines31/marketingskills
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program
coreyhaines31/marketingskills
When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions 'churn,' 'cancel flow,' 'offboarding,' 'save offer,' 'dunning,' 'failed payment recovery,' 'win-back,' 'retention,' 'exit survey,' 'pause subscription,' 'involuntary churn,' 'people keep canceling,' 'churn rate is too high,' 'how do I keep users,' or 'customers are leaving.' Use this whenever someone is losing subscribers o
alirezarezvani/claude-skills
App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist
wanshuiyin/Auto-claude-code-research-in-sleep
Use it for operations and research tasks; the detail page covers purpose, installation, and practical steps.