claude-piv-skeleton: Command for Claude Code

.claude/commands/bug_fix/rca.md

rca is a command for Claude Code from plipowczan/claude-piv-skeleton. It costs 11 tokens per session (1,844 once invoked), scanned A, original, MIT.

A root-cause analysis command for investigating a GitHub issue or a bug description. It gathers the problem details, reproduction steps, expected and actual behaviour, impact, and other relevant context.

In plain words
What is it for?
Use it to examine a numbered GitHub issue or describe a bug directly. It produces a structured analysis with questions, evidence, and a proposed direction for fixing the problem.
Why use it?
It helps find why a bug happens before changing the code, reducing guesswork and fixes that address only the symptoms.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths.

This is plipowczan/claude-piv-skeleton's own configuration. It tells Claude Code how to work on claude-piv-skeleton itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-piv-skeleton configures →

Part of the piv-speckit plugin — 6 skills, 16 commands shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to plipowczan/claude-piv-skeleton. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/plipowczan/claude-piv-skeleton/main/.claude/commands/bug_fix/rca.md
Clone the repo
git clone --depth 1 https://github.com/plipowczan/claude-piv-skeleton

Made for: Claude Code.

Or install piv-speckit, the plugin that ships this one along with the rest of its 6 skills, 16 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

README.md
[![agentmods](https://agentmods.dev/badge/commands/plipowczan/claude-piv-skeleton/rca/github.svg)](https://agentmods.dev/commands/plipowczan/claude-piv-skeleton/rca)
Your own site
<a href="https://agentmods.dev/commands/plipowczan/claude-piv-skeleton/rca"><img src="https://agentmods.dev/badge/commands/plipowczan/claude-piv-skeleton/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/commands/plipowczan/claude-piv-skeleton/rca"><img src="https://agentmods.dev/badge/commands/plipowczan/claude-piv-skeleton/rca.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 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,844 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.00011 $0.01844
Opus 5 $0.00005 $0.00922
Sonnet 5 $0.00002 $0.00369
Haiku 4.5 $0.00001 $0.00184

Measured 8d ago against content hash 6f59cf06978b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 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.

.claude/commands/bug_fix/rca.md · 321 lines

How it starts

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

Root Cause Analysis (RCA)

Bug Source

Determine the source and analyze accordingly:

Option 1: GitHub Issue

$ARGUMENTS

Example: https://github.com/your-org/repo/issues/123 or just 123

Option 2: Direct Bug Description

direct:Bug description here

Example: direct:Properties with special characters in address cause geocoding to fail

Purpose

Create a comprehensive Root Cause Analysis document for a bug or issue.

Goal: Understand the problem deeply before implementing a fix.

RCA Process

1. Understand the Issue

If analyzing a GitHub Issue:

  • Issue title and number
  • Issue description
  • Steps to reproduce
  • Expected behavior
  • Actual behavior
  • Screenshots/logs if provided
  • Labels, milestones, assignee
  • Use gh issue view <number> to get full issue details

If analyzing a direct bug description:

  • Parse the bug description from user input
  • Ask clarifying questions if needed:
    • What is the expected behavior?
    • What is the actual behavior?
    • How can this be reproduced?
    • What is the impact (critical/high/medium/low)?
    • Which users or use cases are affected?
  • Gather additional context:
    • When did this start happening?
    • Was it working before?
    • Any recent changes that might have caused it?

Clarify Ambiguities:

  • If description is unclear, ask questions
  • Get reproduction steps if missing
  • Understand the impact (critical/high/medium/low)
  • Identify affected users or use cases

2. Reproduce the Issue

Can you reproduce it?

  • Yes - Successfully reproduced
  • No - Cannot reproduce
  • Partially - Can reproduce some scenarios

Reproduction Steps:

  1. Step 1: [Description]
  2. Step 2: [Description]
  3. Step 3: [Description]
  4. Step 4: [Issue occurs]

Environment:

  • Mode: LOCAL / PRODUCTION (as applicable)
  • Browser (if applicable):
  • Data: [Specific data that triggers issue]

3. Analyze the Code

Find Related Code:

# Search for relevant files
grep -r "keyword" backend/src/main/java/
grep -r "keyword" frontend/src/

# Find related controllers
find backend/src/main/java -name "*Controller.java"

# Find related services
find backend/src/main/java -name "*Service.java"

Read the full file on GitHub · 321 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. 8d ago First seen · 321 lines · 11 tokens per session scan A 6f59cf06978b

Subscribe to this mod's changes

rca is a command published in the GitHub repository plipowczan/claude-piv-skeleton (4 stars, last pushed 7mo ago), licensed MIT. It adds 11 tokens to every session and 1,844 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-31.