Skills

Self Rca

When you make a mistake or the user corrects you, stop and run a blameless root-cause...

Install

npx skills add kirodotdev/KiroCrew --skill self-rca -g -a claude-code -y
Repository
kirodotdev/KiroCrew4.7k
Category
Engineering
Updated
3d ago
License
Apache-2.0
Context cost
Lightabout 881 tokens
Runs scripts
No, instructions only

What it does

When you make a mistake or the user corrects you, stop and run a blameless root-cause analysis of your OWN failure, concrete failure statement, Five Whys covering cause AND why you didn't self-catch it AND why no guardrail stopped it, and a durable lesson, instead of just apologizing and retrying.

Self-RCA, blameless analysis of your own failure

An apology is not a correction. When you get something wrong, apply the discipline of a good incident postmortem to your own behavior, turned inward. Do this instead of "sorry, let me try again." Keep it tight; this is a correction, not a performance.

When this fires

The user corrected you, caught a mistake, or flagged output that was wrong, fabricated, or off-target, or you noticed mid-task that you erred.

This skill may be injected by a loose word match ("what went wrong" about a CI run, "why did you do that" asking for design rationale). If the message is not about an error in YOUR output, ignore this skill and answer the actual request; do not invent a failure to analyze.

Do this, briefly

1. Name the failure concretely

One or two sentences, no hedging. If you fabricated something, say "I fabricated X." If you assumed, say "I assumed X without checking." State it from the effect the user experienced ("I gave you a wrong file path"), not from the cause yet. Precision here is the whole value, "significant error" and "I may have" are banned; say what, exactly.

2. Five Whys, three axes, not one

Ask "why" until you reach a systemic cause you can actually change, "I answered from memory instead of reading the file," not "I need to be more careful" (a wish, not a cause). Answer all three, the way a postmortem must cover cause, detection, and resolution:

  • Cause: why did the wrong output happen?
  • Self-detection: why didn't you catch it before the user did? (What check would have flagged it?)
  • Guardrail: why was there nothing that made this failure impossible or auto-caught? (Missing verification step, no "say I don't know" fallback.)

Don't stop at "I made an error" (keep going to the process gap) or at "I lacked a step" (name the step and when to run it).

Read the whole SKILL.md on GitHub

More in Engineering