root-cause-analyzer
БесплатноБез исполняемых скриптовНе проверенSystematic root cause analysis skill with multiple investigation methodologies.
от a5c-ai★ 1 947 звёзд на GitHubОб этом скилле
root-cause-analyzer
You are root-cause-analyzer - a specialized skill for systematic problem investigation and root cause identification.
Overview
This skill enables AI-powered root cause analysis including:
- Is/Is Not analysis for problem definition
- 5 Whys facilitation and documentation
- Ishikawa (fishbone) diagram generation
- Fault tree analysis (FTA) construction
- Pareto chart generation
- Hypothesis testing for cause verification
- Corrective action development
- Effectiveness verification planning
Capabilities
1. Is/Is Not Problem Definition
from dataclasses import dataclass
from typing import List, Optional
@dataclass
class IsIsNotAnalysis:
"""
Structured problem definition using Is/Is Not
"""
# What
what_is: str # What is the problem/defect?
what_is_not: str # What similar problems are NOT occurring?
# Where
where_is: str # Where is the problem observed?
where_is_not: str # Where could it occur but doesn't?
# When
when_is: str # When does the problem occur?
when_is_not: str # When could it occur but doesn't?
# Extent
extent_is: str # How big, how many, how often?
extent_is_not: str # How big/many/often could it be but isn't?
distinctions: List[str] = None # What's unique about the IS vs IS NOT?
changes: List[str] = None # What changed around the time problem started?
def generate_problem_statement(self):
return f"""
PROBLEM STATEMENT:
{self.what_is} is occurring at {self.where_is}.
The problem was first observed {self.when_is}.
The extent is: {self.extent_is}.
DISTINCTIONS:
This occurs at {self.where_is} but NOT at {self.where_is_not}.
This happens {self.when_is} but NOT {self.when_is_not}.
KEY DISTINCTIONS: {', '.join(self.distinctions or [])}
RECENT CHANGES: {', '.join(self.changes or [])}
"""
2. 5 Whys Analysis
@dataclass
class WhyStep:
level: int
question: str
answer: str
evidence: str = ""
verified: bool = False
class FiveWhysAnalysis:
"""
5 Whys root cause analysis
"""
def __init__(self, problem_statement: str):
self.problem_statement = problem_statement
self.why_chain: List[WhyStep] = []
def add_why(self, answer: str, evidence: str = ""):
level = len(self.why_chain) + 1
if level == 1:
question = f"Why did {self.problem_statement} occur?"
else:
prev_answer = self.why_chain[-1].answer
question = f"Why did {prev_answer}?"
self.why_chain.append(WhyStep(
level=level,
question=question,
answer=answer,
evidence=evidence
))
def get_root_cause(self):
if self.why_chain:
return self.why_chain[-1].answer
return None
def validate_chain(self):
"""
Validate 5 Whys chain by reading backwards
Should make logical sense: "Therefore..."
"""
if len(self.why_chain) < 2:
return {"valid": True, "message": "Chain too short to validate"}
for i in range(len(self.why_chain) - 1, 0, -1):
cause = self.why_chain[i].answer
effect = self.why_chain[i-1].answer
# Logic check: cause should logically lead to effect
return {
"valid": True,
"root_cause": self.get_root_cause(),
"chain_length": len(self.why_chain)
}
def to_dict(self):
return {
"problem": self.problem_statement,
"why_chain": [
{
"level": w.level,
"question": w.question,
"answer": w.answer,
"evidence": w.evidence,
"verified": w.verified
}
for w in self.why_chain
],
"root_cause": self.get_root_cause()
}
3. Ishikawa (Fishbone) Diagram
class IshikawaDiagram:
"""
Cause and Effect (Fishbone) Diagram
"""
# Standard 6M categories for manufacturing
MANUFACTURING_6M = [
"Manpower", "Method", "Machine",
"Material", "Measurement", "Mother Nature (Environment)"
]
# Standard categories for service
SERVICE_CATEGORIES = [
"People", "Process", "Policy",
"Place", "Procedure", "Product"
]
def __init__(self, effect: str, categories: List[str] = None):
self.effect = effect
self.categories = categories or self.MANUFACTURING_6M
self.causes = {cat: [] for cat in self.categories}
def add_cause(self, category: str, cause: str, sub_causes: List[str] = None):
if category in self.causes:
self.causes[category].append({
"cause": cause,
"sub_causes": sub_causes or []
})
def render_text(self):
"""Generate text representation of fishbone"""
lines = []
lines.ap
Установить root-cause-analyzer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(*)ReadWriteEditGlobGrepWebFetchFAQ
Что делает скилл root-cause-analyzer?
Systematic root cause analysis skill with multiple investigation methodologies.
Как установить скилл root-cause-analyzer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл root-cause-analyzer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create 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…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic