rca-investigator

rca-investigator is an agent for Claude Code from mthines/agent-skills. It costs 193 tokens per session (1,688 once invoked), scanned A, original, MIT.

An isolated investigator that examines why a software problem happened and returns a compact root-cause report. Root-cause analysis traces the chain of events that led to a failure instead of only describing its symptoms.

In plain words
What is it for?
Use it to analyze execution paths, system boundaries, evidence, alternative explanations, confidence, and a suggested direction for fixing the problem.
Why use it?
It keeps lengthy investigation details out of the main agent's context and avoids guessing when the available evidence is insufficient.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents.

Part of the mthines-agent-skills plugin — 55 skills, 4 agents shipped together

Good fit Use it to analyze execution paths, system boundaries, evidence, alternative explanations, confidence, and a suggested direction for fixing the problem.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/mthines/agent-skills/rca-investigator
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.

Clone the repo
git clone --depth 1 https://github.com/mthines/agent-skills

Made for: Claude Code.

Or install mthines-agent-skills, the plugin that ships this one along with the rest of its 55 skills, 4 agents.

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-investigator

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/mthines/agent-skills/rca-investigator"><img src="https://agentmods.dev/badge/agents/mthines/agent-skills/rca-investigator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 193 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,688 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.00193 $0.01688
Opus 5 $0.00097 $0.00844
Sonnet 5 $0.00039 $0.00338
Haiku 4.5 $0.00019 $0.00169

Measured 11d ago against content hash 680ac64ea3da, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

rca-investigator 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 11d 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.

agents/rca-investigator.md · 165 lines

How it starts

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

RCA Investigator Agent

You perform root-cause analysis in an isolated context and return a distilled Root-Cause Record.

You are a thin wrapper, not a reimplementation. The RCA protocol — execution-path walkthrough, contract-boundary analysis, structured hypotheses, step-back, metacognitive challenge — lives in the holistic-analysis skill. The confidence gate lives in the confidence skill. You run both, absorb their full verbose output into your own context, and hand the caller back only the distilled record. That isolation is your entire reason to exist: an orchestrator that dispatches you via Task() gets the conclusion without the multi-page reasoning dump landing in its window.

You are read-only. You never edit code, write tests, create branches, or open PRs. You analyze and report.


Core Rules

Honesty Guardrail (CRITICAL)

NEVER hallucinate, guess, or fabricate a root cause. This rule overrides everything else.

  • If the evidence does not support a confident root cause — say so, and return the strongest hypotheses with their gaps instead of inventing certainty.
  • If you cannot reproduce the causal chain in the code you read — report it as an Information Gap, do not paper over it.
  • A clear "the evidence points two ways, here is what would disambiguate" is infinitely more valuable than a fabricated single cause.
  • Only cite file:line locations you actually opened and read. Do not cite a path you only grepped.

Single source of truth

Do not re-derive the RCA steps from memory or improvise your own protocol. Invoke holistic-analysis and let it drive. If holistic-analysis is not available in the host project's skill list, say so explicitly in your output and fall back to a clearly-labelled lightweight analysis — never silently substitute a hand-rolled protocol while implying it was the real thing.

Scope discipline

You produce analysis, not fixes. You may describe the direction of a fix (what must change and where) but you never write the patch. Patch authoring belongs to the caller's executor.

Read the full file on GitHub · 165 lines

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. 11d ago First seen · 165 lines · 193 tokens per session scan A 680ac64ea3da

Subscribe to this mod's changes

rca-investigator is an agent published in the GitHub repository mthines/agent-skills (13 stars, last pushed yesterday), licensed MIT. It adds 193 tokens to every session and 1,688 once invoked, about $0.0010 per session on Opus 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

Other agents, from other repositories

ralph-replanner

Triage a stuck Ralph loop and propose either a revised fix plan, a specific question to ask the user, or a recommendation that the task is infeasible. Invoke when the Ralph circuit breaker has opened — repeated identical errors, no progress for several iterations, max iterations approaching, or a destructive action is…

javi22020/ralph · 72 tokens

project-analyzer

Performs deep codebase analysis for the Spec-Driven Develop workflow. Traces architecture, maps modules, identifies dependencies, and assesses transformation risks. Returns structured analysis data for document generation.

zhu1090093659/spec_driven_develop · 41 tokens

citizen-entomologist

Curiosity-driven insect guide that celebrates discovery, uses common names alongside scientific names, and channels observations into citizen science platforms like iNaturalist and BugGuide.

pjt222/agent-almanac · 36 tokens

git-investigator

Code archaeology expert. Tracks code history, identifies where issues were introduced, and analyzes root causes.

sd0xdev/sd0x-harness · 23 tokens

empirical-investigator

Empirical CLI and binary investigation specialist for wire capture, feature flag probing, version baseline monitoring, and responsible disclosure of reverse-engineering findings.

pjt222/agent-almanac · 32 tokens

hallucination-guard

Post-generation validation — catches hallucinated imports, phantom functions, non-existent packages, typosquatting. Use after code generation, before commit.

Rune-kit/rune · 35 tokens