Skip to content
Development
Skill

/root-cause-analysis

Produce a written root-cause analysis for an incident, outage, regression, or recurring failure, with a timeline, contributing factors, and prevention actions. Use for post-mortems and "why did this happen" questions.

From plugin
code-cli
21814 skills15 agents

Claude Code

$ npx -y skills add autohandai/code-cli --skill root-cause-analysis --agent claude-code

SKILL.md

root-cause-analysis.SKILL.md
name: root-cause-analysis
description: Produce a written root-cause analysis for an incident, outage, regression, or recurring failure, with a timeline, contributing factors, and prevention actions. Use for post-mortems and "why did this happen" questions.
allowed-tools: read_file find_grep fff_find list_tree git_diff git_diff_range git_log git_status run_command

Root-cause analysis

The goal is a document another engineer can act on: what happened, why it was possible, and what stops the class of failure, not just this instance.

Gather evidence first

1. Establish the timeline from artifacts, not memory: commits (`git_log`), deploys, config changes, alerts, logs, test runs. Timestamp everything. 2. Identify the trigger (the change or event) separately from the cause (why the system could not tolerate it) and the contributing factors (what let it reach users). 3. Reproduce or at least confirm the mechanism in code with file paths and line numbers. Quote the exact lines.

Ask "why" until the answer is a design decision

Stop at a decision someone can change (a missing check, an assumed invariant, a shared resource, an unbounded wait), not at "human error". People make the same mistakes when the system makes them easy.

Write the report

Use this shape, kept short:

  • **Impact**: who, what, how long, blast radius.
  • **Timeline**: bullet list with times.
  • **Trigger**: the change or event.
  • **Root cause**: the design gap, with code references.
  • **Contributing factors**: detection, rollout, tests, ownership.
  • **What went well**: what limited the damage.
  • **Actions**: each with an owner-shaped verb, a test or check that would have

caught it, and whether it prevents, detects, or mitigates. Prefer changes to the system over reminders to people.

Verify before delivering

Every claim in the report must trace to evidence you collected. If something is inferred, label it as such. Offer to open the follow-up tasks.

Read more
@autohandai
Ships withcode-cli

Docs: English | 日本語 | 简体中文 | 繁體中文 | 한국어 | Deutsch | Español | Français | Italiano | Polski | Русский | Português (Brasil) | Türkçe | Čeština | Magyar | हिन्दी | Bahasa Indonesia A fast, self-improving terminal-native AI coding agent for planning, reflecting,

21814 skills15 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
218
Star history of autohandai/code-cli on GitHub, a chart by star-history.com

Other skills on code-cli.

architecture-breakdown

architecture-breakdown

Map an unfamiliar codebase or subsystem into modules, boundaries, data flow, entry points, and hot spots, and produce a breakdown…

@autohandai@autohandaiInstall Skill
brainstorm

brainstorm

Turn a rough software idea into a clear, well-scoped design before any code is written. Use when the user wants to design,…

@autohandai@autohandaiInstall Skill
code-reviewer

code-reviewer

Staff-engineer-level code review delivering 10 prioritized actionable findings across architecture, security, performance, and…

@autohandai@autohandaiInstall Skill
computer-control

computer-control

Operate native desktop applications through Autohand Computer Use. Use when the user asks Autohand to open, drive, click, type,…

@autohandai@autohandaiInstall Skill
data-scientist

data-scientist

Explore, clean, analyze, and model data in the workspace (CSV, JSON, Parquet, SQL, notebooks) with reproducible scripts and…

@autohandai@autohandaiInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react9d252k
@facebook@facebookInstall Skill

Questions about root-cause-analysis.

Which coding agents can use root-cause-analysis?
root-cause-analysis installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.