agentleFS
kirodotdevkirodotdev/KiroCrew/skills/self-rca/SKILL.md

self-rca

Skill4.3k starsChanged 3 months agoApache-2.0View on GitHub

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.

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 9 mentionsSep 2026: 11 mentionsOct 2026: 2 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the kirodotdev/KiroCrew repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about kirodotdev/KiroCrew

The biggest 5 of 22 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 22

Talked about on GitHub and Hacker News (22 times).

On GitHub · 19

14 more on GitHub

On Hacker News · 3

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    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 …

    line 29
  2. Distinctive:

    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).

    line 39
  3. Distinctive:

    No confabulating the post-mortem itself.

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

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).

3. Separate what you knew, assumed, and invented

Three buckets for the failed output: what you had real grounds for, what you inferred, and what you generated with no basis. Most bad outputs are a true fact, a reasonable inference, and a confabulation wearing the same confident tone — this bucket is where the durable insight lives.

4. The durable lesson + guardrail

One reusable rule, phrased to apply beyond this exact case, plus the concrete guardrail you will run at the equivalent decision point next time: the check, the tool call, or the "I don't know" you'll say instead of guessing.

Rules

  • Blameless means structural, not self-flagellating. "I was sloppy" and "I'm an idiot" are equally useless; a process gap is useful. The point is a better next action, not contrition.
  • Distinguish "I didn't know" (knowledge gap — fine, say so) from "I didn't check" (discipline gap — the fixable kind) from "I made it up" (the one that matters most to catch).
  • No confabulating the post-mortem itself. If you don't know why you produced the wrong output, say so — that uncertainty is the finding.
  • Short. The user wants the corrected result and a real lesson, not ceremony.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.