root-cause-analysis
Structured root cause analysis for software, data quality, AI/ML, and legal/compliance incidents. Use when investigating failures, writing postmortems, analysing breaches, or building corrective action plans. Triggers on: RCA, root cause, postmortem, incident, failure analysis, breach investigation, corrective action, CAPA, 5 whys.
npx skills add majiayu000/claude-skill-registry --skill root-cause-analysis-45black-uk-legal-plugins --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
What it does
Structured methodology for investigating failures across software engineering, data quality, AI/ML systems, and UK legal/regulatory compliance. Combines blameless postmortem culture, regulatory expectations, ISO standards, and CAPA into a single executable framework.
How it works
- Triggers when a failure or incident is identified (RCA, root cause, postmortem, incident, breach, CAPA, 5 whys).
- Step 0: Classify the incident by type and severity to select methodology path.
- Step 1: Gather evidence and build a timeline from data sources (logs, deployment/config, communications, pipeline, review queue, user reports) and capture seven key timestamps (deployment, incident start, detection, first responder, root cause identified, mitigation, resolution).
- Step 2: Analyze contributing factors using Ishikawa categories (Software/DevOps and Legal/Compliance) and apply the Five Whys to drill to root causes. Classify factors as Root Cause, Contributing Factor, or Mitigator, and rank by impact, recurrence, and remediation cost.
- Step 3: Determine Corrective and Preventive Actions (CAPA) with action item types: Detect, Prevent, Mitigate, Process, Document. Each item must include fields for id, description, type, owner, due_date, urgency, tracker, and acceptance criteria, with defined SLAs.
- Step 4: Produce the RCA Report using a structured template covering summary, impact, timeline, contributing factors with Five Whys, lessons, action items, audit trail, and sign-off. Includes an incident-specific Section A (Software), Section B (Data Quality), Section C (AI/ML), etc., with diagnostic questions.
When to use it
Use when there is a system failure, data quality issue, AI/ML misbehavior, or regulatory/nonconformity. Trigger conditions include outages, data issues, hallucinations, breaches, or postmortem requests. Severity guidance applies when the incident could recur or has regulatory implications.
What it can touch
Relies on tools and artifacts such as monitoring logs, deployment/config data, communication records, pipeline audit logs, review queues, and user reports. Action items reference external trackers (e.g., JIRA/Linear/GitHub URL) and require owners and due dates.
Caveats
Blameless analysis and regulatory alignment are emphasized; outcomes depend on collected evidence. The framework prescribes structure and documentation, including a tamper-evident record for posterity and compliance.
# Root Cause Analysis (RCA) Skill Structured methodology for investigating failures across software engineering, data quality, AI/ML systems, and UK legal/regulatory compliance. Combines Google SRE blameless postmortem culture, FCA/TPR regulatory expectations, ISO 37301/42001 standards, and CAPA discipline into a single executable framework. --- ## When To Use **Trigger conditions:** - A system failure, outage, or degraded service has occurred - Data quality issues discovered in a pipeline or knowledge graph - AI/ML system produced incorrect, hallucinated, or harmful output - A regulatory breach or compliance nonconformity is identified - User requests a postmortem, RCA, failure analysis, or incident review - Pipeline stage failure rate drops below threshold (e.g., 90%) - Action items from a previous RCA need tracking or review **Severity threshold:** Use for any incident beyond a trivial one-off bug fix. If the failure could recur, affected users/data, or has regulatory implications, an RCA is warranted. --- ## Core Principles 1. **Blameless by default.** Focus on systems, not individuals. When human error appears, investigate the systems that allowed it. Reference roles ("the on-
- When To Use
- Core Principles
- Step 0: Classify the Incident
- Incident Type
- Severity Classification
- Step 1: Gather Evidence and Build Timeline
- Data Sources
- Timeline Format
- Seven Key Timestamps (AWS pattern)
- Step 2: Analyse Contributing Factors
- 2a. Ishikawa Categories (adapted for software/legal)
- 2b. Five Whys Chain
- 2c. Classify Each Factor
- 2d. Rank Factors
What does the root-cause-analysis skill do?
Structured root cause analysis for software, data quality, AI/ML, and legal/compliance incidents. Use when investigating failures, writing postmortems, analysing breaches, or building corrective action plans. Triggers on: RCA, root cause, postmortem, incident, failure analysis, breach investigation, corrective action, CAPA, 5 whys.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill root-cause-analysis-45black-uk-legal-plugins --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
