root-cause

root-cause is a skill for Claude Code from hamr0/liteagents. It costs 56 tokens per session (2,206 once invoked), scanned A, original, Apache-2.0.

A troubleshooting method for finding the underlying cause of a failure before changing code. It uses error evidence, value tracing, comparison with a working case, and one testable explanation at a time.

In plain words
What is it for?
Reading complete errors and stack traces, tracing incorrect values to their source, testing hypotheses, and proving a cause before proposing a fix.
Why use it?
It reduces guesswork and avoids fixes that only hide the visible symptom. The same method applies to failed tests, bugs, slow behavior, broken builds, and integration problems.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Reading complete errors and stack traces, tracing incorrect values to their source, testing hypotheses, and proving a cause before proposing a fix.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamr0/liteagents/root-cause"><img src="https://agentmods.dev/badge/skills/hamr0/liteagents/root-cause.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,206 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00056 $0.02206
Opus 5.5 $0.00022 $0.00882
Sonnet 5.5 $0.00011 $0.00441
Haiku 4.5 $0.00006 $0.00221

Measured 20d ago against content hash bb7bc5103f5c, 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 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 20d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (find-polluter.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

packages/ampcode/skills/root-cause/SKILL.md · 237 lines

How it starts

The opening of the file, as written. The whole thing — 237 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Root Cause

Find the cause before you change any code.

The Law

NO FIX WITHOUT A CAUSE YOU CAN POINT AT

A fix at the place the error appeared is a symptom fix. It is a failure even when the symptom goes away, because the real cause is still there and will surface somewhere else, later, with less context.

You cannot propose a fix until Phase 1 is done.

When to Use

Any technical issue: a failing test, a production bug, unexpected behaviour, a performance problem, a broken build, an integration that will not talk.

Especially when it feels like overkill:

  • Under time pressure — emergencies are exactly when guessing is most tempting and most expensive
  • "Just one quick fix" looks obvious
  • You have already tried a fix and it did not work
  • You do not fully understand the issue

Simple bugs have root causes too, and finding one takes minutes. Guess-and-check takes hours and leaves damage behind.


Phase 1 — Gather Evidence

Do all of this before forming any opinion about the fix.

1. Read the error completely

Do not skim past it. Read the whole message, the whole stack trace, every warning above it. Note line numbers, file paths, error codes. The answer is often written there in full.

2. Reproduce it consistently

Can you trigger it on demand? What are the exact steps? Does it happen every time?

If it is not reproducible, gather more data. Do not start guessing — an intermittent bug you cannot trigger is a bug you cannot prove you fixed.

3. Check what changed

Recent commits, the working diff, new dependencies, config edits, environment differences between the place it works and the place it does not.

Be careful here: the most recent change is the most available suspect, not the most likely one. Recency is a lead to test, never a conclusion.

4. Instrument the boundaries (multi-component systems)

When the path crosses components — CI → build → sign, API → service → database, workflow → script → tool — do not reason about where it breaks. Measure it.

Read the full file on GitHub · 237 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 20d ago Changed · +16 lines bb7bc5103f5c
  2. 1mo ago First seen · 221 lines · 56 tokens per session scan A 1413fbc3e619

Subscribe to this mod's changes

root-cause is a skill published in the GitHub repository hamr0/liteagents (26 stars, last pushed today), licensed Apache-2.0. It adds 56 tokens to every session and 2,206 once invoked, about $0.0002 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-09-05.

Related

Other skills, from other repositories

windbg-diagnostic-method

Use with every WinDbg plugin investigation to apply evidence-first reasoning, confidence calibration, contrarian review, structured reporting, and deterministic validation. Not a bug-family-specific triage skill.

microsoft/win-dev-skills · 42 tokens

windbg-kernel-bugcheck-triage

Use when a kernel dump reports a Windows bugcheck; decode parameters and recover exception or trap context before investigating your driver. Not for user-mode process crashes or blaming a module from its name alone.

microsoft/win-dev-skills · 50 tokens

windbg-kernel-verifier-triage

Use when a kernel dump contains Driver Verifier violations; inspect flags, bugcheck subcodes, and available I/O shadow state. Not for Application Verifier user-mode stops or inferring a violation from enabled flags alone.

microsoft/win-dev-skills · 54 tokens

windbg-user-exception-triage

Use when a native C/C++ app, service, or user-mode driver host (including UMDF) crashes with a structured exception in a dump or WinDbg session, including native faults inside managed processes. Not for managed .NET exceptions, WinUI/XAML app errors, or kernel bugchecks.

microsoft/win-dev-skills · 69 tokens

windbg-user-heap-corruption-investigation

Use when an app, service, or user-mode driver host heap fails or Application Verifier detects corruption; inspect history and bounds. Not for kernel pool corruption or ordinary OOM.

microsoft/win-dev-skills · 46 tokens

windbg-user-ttd-reverse-debugging-triage

Use when an app, service, or user-mode driver host TTD recording is available and earlier calls, writes, or lifetimes matter. Not for kernel replay or history from a normal dump.

microsoft/win-dev-skills · 53 tokens