rca-check

rca-check is a command for Claude Code from assafkip/kipi-system. It costs 13 tokens per session (269 once invoked), scanned A, original, MIT.

A command that checks a root-cause analysis (RCA) or premortem document against a required template. An RCA explains why a failure happened; a premortem examines how a planned effort might fail.

In plain words
What is it for?
Use it to lint one RCA or premortem file, or scan the project for all such documents.
Why use it?
It identifies missing sections, evidence, action items, tags, or blameless-writing requirements before the document is accepted.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the kipi-core plugin — 10 skills, 7 commands shipped together

Good fit Use it to lint one RCA or premortem file, or scan the project for all such documents.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add assafkip/kipi-system
Claude Code
/plugin install kipi-core

Made for: Claude Code.

Or install kipi-core, the plugin that ships this one along with the rest of its 10 skills, 7 commands.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/assafkip/kipi-system/rca-check.svg)](https://agentmods.dev/commands/assafkip/kipi-system/rca-check)
Your own site
<a href="https://agentmods.dev/commands/assafkip/kipi-system/rca-check"><img src="https://agentmods.dev/badge/commands/assafkip/kipi-system/rca-check.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 269 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.00013 $0.00269
Opus 5 $0.00006 $0.00134
Sonnet 5 $0.00003 $0.00054
Haiku 4.5 $0.00001 $0.00027

Measured 8d ago against content hash 7e43bd90e36f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

rca-check 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 8d 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.

plugins/kipi-core/commands/rca-check.md · 29 lines

What it actually says

Run the deterministic RCA lint on a document. The author passes a file path; if none is given, lint every RCA/premortem doc found.

Single file

python3 "${CLAUDE_PLUGIN_ROOT}/skills/rca/scripts/rca-lint.py" "$ARGUMENTS"

All RCA docs (when no path given)

found=0
for f in $(find . -type f \( -name 'rca-*.md' -o -name 'premortem-*.md' \) -not -path '*/.git/*' 2>/dev/null); do
  found=1
  python3 "${CLAUDE_PLUGIN_ROOT}/skills/rca/scripts/rca-lint.py" "$f" || true
done
[ "$found" = 0 ] && echo "no rca-*.md / premortem-*.md docs found"

Exit 0 means clean. Exit 2 lists exactly which required sections, cause-type tags, verification evidence, checkbox action items, or blameless rules are missing. Surface the report verbatim and fix per the template.

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. 8d ago First seen · 29 lines · 13 tokens per session scan A 7e43bd90e36f

Subscribe to this mod's changes

rca-check is a command published in the GitHub repository assafkip/kipi-system (110 stars, last pushed today), licensed MIT. It adds 13 tokens to every session and 269 once invoked, about $0.0001 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-30.