analyze-root-cause

analyze-root-cause is a skill for Claude Code from leifericf/agentic-sdk. It costs 14 tokens per session (442 once invoked), scanned A, original, MIT.

A method for tracing one software failure from its triggering event through each contributing cause to the underlying systemic problem.

In plain words
What is it for?
Use it to write a precise incident analysis, document impact and reproduction steps, explain the causal chain, assess remaining risk, and define preventive tests, monitoring, process changes, or architecture fixes.
Why use it?
It helps explain not only what broke, but why tests, monitoring, or processes failed to prevent or detect it.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to write a precise incident analysis, document impact and reproduction steps, explain the causal chain, assess remaining risk, and define preventive tests, monitoring, process changes, or architecture fixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/leifericf/agentic-sdk/analyze-root-cause
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add leifericf/agentic-sdk --skill analyze-root-cause
Clone the repo
git clone --depth 1 https://github.com/leifericf/agentic-sdk

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analyze-root-cause

README.md
[![agentmods](https://agentmods.dev/badge/skills/leifericf/agentic-sdk/analyze-root-cause/github.svg)](https://agentmods.dev/skills/leifericf/agentic-sdk/analyze-root-cause)
Your own site
<a href="https://agentmods.dev/skills/leifericf/agentic-sdk/analyze-root-cause"><img src="https://agentmods.dev/badge/skills/leifericf/agentic-sdk/analyze-root-cause/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for analyze-root-cause

Your own site · 80×15
<a href="https://agentmods.dev/skills/leifericf/agentic-sdk/analyze-root-cause"><img src="https://agentmods.dev/badge/skills/leifericf/agentic-sdk/analyze-root-cause.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 442 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00014 $0.00442
Opus 5.5 $0.00006 $0.00177
Sonnet 5.5 $0.00003 $0.00088
Haiku 4.5 $0.00001 $0.00044

Measured 3mo ago against content hash c15f9a94d510, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

analyze-root-cause scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/analyze-root-cause/SKILL.md · 47 lines

What it actually says

analyze-root-cause

Trace the full causal chain from trigger to failure, identify defense gaps, and define preventative controls. Anchor on one precise, falsifiable failure mode.

Procedure

  1. Anchor on one primary failure mode and a minimal, falsifiable problem statement; link secondary failures to it.
  2. Gather context, at most three questions, preferring binary (validate each causal link) and pick-one (select the most plausible chain branch).
  3. Write a one- to three-sentence precise problem statement.
  4. Document customer impact: what users experienced, duration, blast radius.
  5. Trace the causal chain backward from failure to root trigger; number each step.
  6. Apply Five Whys if the chain has not reached a systemic root.
  7. Technical deep dive: components involved, data shapes, the exact breakage, and why tests, monitoring, and process did not catch it.
  8. Document reproduction: preconditions, steps, expected versus actual.
  9. Summarize the fix applied and the follow-up hardening needed.
  10. Define preventative controls, each with type (test, monitoring, process, architecture), what it prevents, how to verify it, and owner.
  11. Assess residual risk and why it is acceptable.
  12. Write ~/.agentic-sdk/<project>/artifacts/ops/YYYY-MM-DD_rca_<incident_slug>.md with: Metadata, Problem Statement, Customer Impact, Causal Chain, Five Whys (optional), Technical Deep Dive, Reproduction Notes, Fix Summary, Preventative Controls, Residual Risk, Open Questions. Slug: lowercase, hyphens, descriptive.

Boundaries

Owns the causal chain and preventative controls. review-incident owns the blameless incident review; assess-risk owns pre-deployment release risk. Reached by investigate.

Return

One line: the artifact written, the root cause, and the top preventative control, or blocked: <reason>.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 47 lines · 14 tokens per session scan A c15f9a94d510

Subscribe to this mod's changes

analyze-root-cause is a skill published in the GitHub repository leifericf/agentic-sdk (5 stars, last pushed 2mo ago), licensed MIT. It adds 14 tokens to every session and 442 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

analyze-root-cause compared with skills from other repositories

analyze-root-cause next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
analyze-root-causeleifericf/agentic-sdkSkill52mo agoMITA14Claude Code
upstream-trackervoxpelli/claude-beadsSkill31mo agoMITA186Claude Code
systematic-debuggingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7ktodayMITA71Claude Code, Codex
observability-audit-sessionsIBM/mcp-context-forgeSkill4.9ktodayApache-2.0A64Claude Code, Codex
cwv-optimizeradobe/skillsSkill342todayApache-2.0A112Claude Code
ci-fixersipyourdrink-ltd/bernsteinSkill1.2ktodayApache-2.0A15Claude Code, Codex