rca

rca is a skill for Claude Code from grimoire-rs/grimoire. It costs 80 tokens per session (1,184 once invoked), scanned A, original, Apache-2.0.

A read-only workflow for investigating a bug report or error and finding its likely root cause before code is changed.

In plain words
What is it for?
Use it to decide whether a report is a bug, identify affected files and code paths, and produce evidence for a later fix plan.
Why use it?
It prevents fixes based only on an issue's claims or an early guess by requiring reproduction, evidence, checked versions, and ruled-out explanations.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to decide whether a report is a bug, identify affected files and code paths, and produce evidence for a later fix plan.

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

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 rca

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/grimoire-rs/grimoire/rca"><img src="https://agentmods.dev/badge/skills/grimoire-rs/grimoire/rca.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,184 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.00080 $0.01184
Opus 5.5 $0.00032 $0.00474
Sonnet 5.5 $0.00016 $0.00237
Haiku 4.5 $0.00008 $0.00118

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

Security

Grade A, and why

rca 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 18d 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.

.claude/skills/rca/SKILL.md · 85 lines

How it starts

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

RCA — root cause analysis of a ticket

Read-only. Never edit a tracked file, never commit, never comment on the issue. Output is the report in conversation.

Research behind the gates below: LLM RCA agents hallucinate data interpretation, stop exploring early, and reach right answers without a sound trail — and "be careful" prompting does not fix it. Structural gates do. Every gate is mandatory; a report missing one is incomplete, say so.

1. Intake

  • Issue: gh issue view <n> --json title,body,comments,labels,createdAt (URL → same). Text → use as given.
  • Restate as IS / IS NOT: expected vs actual, where (command, platform, version), when (since which change), extent. Issue text is a claim, not a fact — stack traces and versions get checked.
  • Duplicates: gh issue list --state all --search "<key terms>".
  • Already fixed: git log --oneline -S '<symbol or message>' and blame on the suspect lines vs the reported version.

2. Reproduce

Allowed only outside tracked files: the scratchpad, a freshly built binary (cargo build, then target/debug/grim with GRIM_HOME pointed at a scratchpad directory), an existing test run filtered to the area (task test:parallel --force -- tests/<file>, cargo test <filter> for a unit test; never hand-rolled uv run pytest). Record one of reproduced (command + output excerpt), not reproduced (what was tried), not attempted (why). A not-reproduced bug caps confidence at medium.

3. Hypotheses — at least two

Write ≥2 competing explanations, one of which is a not-a-bug verdict when plausible. Each gets a prediction and a disconfirming check.

Fan out one worker per hypothesis (≤3, parallel, subagent_type: Explore, model: sonnet, prompt carries Model rationale: read-only localization, sonnet default). Brief: the IS/IS-NOT block, the one hypothesis, the check to run. Localize in stages: file → function → line. Each claim returned must be graded:

  • observed — read at file:line or seen in command output (cite it)
  • inferred — follows from observed facts (name them)
  • assumed — neither; flag it

Read the full file on GitHub · 85 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. 18d ago First seen · 85 lines · 80 tokens per session scan A f78b85946cd2

Subscribe to this mod's changes

rca is a skill published in the GitHub repository grimoire-rs/grimoire (17 stars, last pushed today), licensed Apache-2.0. It adds 80 tokens to every session and 1,184 once invoked, about $0.0003 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-13.

Related

rca compared with skills from other repositories

rca next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rcagrimoire-rs/grimoireSkill17todayApache-2.0A80Claude Code
oraclesteipete/oracleSkill4.1k3d agoMITA18Claude Code, Codex
skill-repairaeonfun/aeonSkill800yesterdayMITA28Claude Code, Codex
self-improveaeonfun/aeonSkill800yesterdayMITA44Claude Code, Codex
posthog-errorsaeonfun/aeonSkill800yesterdayMITB74Claude Code, Codex
aeon-doctoraeonfun/aeonSkill800yesterdayMITB59Claude Code, Codex
monitoring-observabilitytravisjneuman/.claudeSkill1152d agoMITA48Claude Code