root-cause-analysis

root-cause-analysis is a skill for Claude Code, Codex from wsauret/flywheel. It costs 16 tokens per session (491 once invoked), scanned A, original, Apache-2.0.

A method for tracing a reported problem from its observed symptom to its confirmed cause using code, tests, logs, traces, and other runtime evidence.

In plain words
What is it for?
Use it to clarify expected versus actual behavior, reproduce or confirm a failure, identify the responsible code or event, and document missing evidence or blockers.
Why use it?
It reduces guesswork and avoids editing before establishing what actually happened and whether the behavior is a defect.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to clarify expected versus actual behavior, reproduce or confirm a failure, identify the responsible code or event, and document missing evidence or blockers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wsauret/flywheel/root-cause-analysis
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 wsauret/flywheel --skill root-cause-analysis
Clone the repo
git clone --depth 1 https://github.com/wsauret/flywheel

Made for: Claude Code, Codex.

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 root-cause-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/wsauret/flywheel/root-cause-analysis/github.svg)](https://agentmods.dev/skills/wsauret/flywheel/root-cause-analysis)
Your own site
<a href="https://agentmods.dev/skills/wsauret/flywheel/root-cause-analysis"><img src="https://agentmods.dev/badge/skills/wsauret/flywheel/root-cause-analysis/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 root-cause-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/wsauret/flywheel/root-cause-analysis"><img src="https://agentmods.dev/badge/skills/wsauret/flywheel/root-cause-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 491 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.00016 $0.00491
Opus 5.5 $0.00006 $0.00196
Sonnet 5.5 $0.00003 $0.00098
Haiku 4.5 $0.00002 $0.00049

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

Security

Grade A, and why

root-cause-analysis 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 13d 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.

src/agent-skills/root-cause-analysis/SKILL.md · 22 lines

What it actually says

Root-Cause Analysis

Start with the reported symptom, expected behavior, available runtime evidence, and reproduction constraints. Treat the report as the investigation request: extract the actual behavior, expected behavior, scope, supplied identifiers, constraints, and prior attempts from it, and do not ask the user to restate information that is already present. Do not ask the user for a reproduction or verification command. Running a command is optional evidence the investigator chooses; it is not an entry requirement and never a user responsibility. Research the repository and available runtime evidence first. Ask a question only when the expected behavior is materially ambiguous, when inaccessible external evidence is required to decide whether the behavior is a defect, or when the missing answer prevents a safe next action or risks repeating costly or destructive work.

Read focused tests and nearby examples to learn the intended contract. Supplied session, run, request, trace, or error identifiers point at the owning event store, trace store, or logs; persisted runtime evidence is a valid confirmation source.

When the report names several defects, list all symptoms first, then diagnose each. Confirm each symptom with the strongest safe evidence. Where a cause is not yet clear, trace backward from symptom to trigger across every causal edge. List assumptions at external and state boundaries, rank falsifiable hypotheses, test one prediction at a time, and update the causal chain only from observed evidence. Require a gap-free explanation before recommending a fix.

Use fresh observations from the current investigation to decide each hypothesis. Past observations guide hypotheses only, never current acceptance; do not assume they remain valid. Run the smallest fresh deciding experiment or inspection, including when the predicted result is that no change is needed.

Stop with one result:

  • confirmed: trigger-to-symptom chain with evidence for every edge of each defect.
  • no-defect: decisive evidence that the reported defect does not exist or that the requested behavior is already satisfied, including the inspected paths, observations, and why they settle the report.
  • blocked: the exact missing evidence when the report cannot be confirmed.
  • exhausted: hypotheses tested, observations, remaining uncertainty, and the next discriminating trace when further tests yield no new information.

Never edit code, claim a fix, or require a numeric retry quota. Do not use no-defect for inconclusive or inaccessible investigation.

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. 13d ago Changed · +4 tokens per session 3a9b6b2c07fa
  2. 28d ago First seen · 22 lines · 12 tokens per session scan A 44caba2b0fdb

Subscribe to this mod's changes

root-cause-analysis is a skill published in the GitHub repository wsauret/flywheel (19 stars, last pushed today), licensed Apache-2.0. It adds 16 tokens to every session and 491 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-11-03.

Related

root-cause-analysis compared with skills from other repositories

root-cause-analysis next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
root-cause-analysiswsauret/flywheelSkill19todayApache-2.0A16Claude Code, Codex
rust-checkHmbown/CodeWhaleSkill41k2d agoMITA15Claude Code, Codex
debugHmbown/CodeWhaleSkill41k2d agoMITA30Claude Code, Codex
feedbackHmbown/CodewhaleSkill41k1mo agoMITA0Claude Code, Codex
test-fixpatriceckhart/zotSkill373yesterdayMITA17Claude Code
investigateAbyssCN/oh-my-dagSkill441mo agoMITA77Claude Code, Codex
bugfix-triageAbyssCN/oh-my-dagSkill441mo agoMITA37Claude Code, Codex