root-cause-analysis-and-postmortem
Skill1 starsChanged 2 months agoMITView on GitHub
Use when investigating non-trivial bugs, production regressions, or recurring failures. Enforces the 5 Whys and reproduction tests before fixing.
In this repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibility-and-inclusive-designSkill
- animateSkill
- api-contracts-and-backward-compatSkill
- appsec-code-reviewSkill
- architecture-decision-recordsSkill
- code-review-and-qualitySkill
- code-simplificationSkill
- concurrency-and-race-conditionsSkill
- database-and-migrations-architectSkill
- dependency-vulnerability-auditSkill
- design-taste-frontendSkill
- emil-design-engSkill
- graphifySkill
- headroomSkill
- impeccableSkill
- incremental-implementationSkill
- observability-and-structured-loggingSkill
- planning-and-task-breakdownSkill
- ponytail-auditSkill
- ponytail-reviewSkill
- refactoring-legacy-codeSkill
- root-cause-analysis-and-postmortemSkill
- secret-scanningSkill
- shipping-and-launchSkill
- spec-driven-developmentSkill
- test-driven-developmentSkill
- threat-modelingSkill
- accessibility-and-inclusive-designSkill
- animateSkill
- api-contracts-and-backward-compatSkill
- appsec-code-reviewSkill
- architecture-decision-recordsSkill
- code-review-and-qualitySkill
- code-simplificationSkill
- concurrency-and-race-conditionsSkill
- database-and-migrations-architectSkill
- dependency-vulnerability-auditSkill
- design-taste-frontendSkill
- emil-design-engSkill
- graphifySkill
- headroomSkill
- impeccableSkill
- incremental-implementationSkill
- observability-and-structured-loggingSkill
- planning-and-task-breakdownSkill
- ponytail-auditSkill
- ponytail-reviewSkill
- refactoring-legacy-codeSkill
- secret-scanningSkill
- shipping-and-launchSkill
- spec-driven-developmentSkill
- test-driven-developmentSkill
- threat-modelingSkill
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
- Distinctive: line 8
Do not patch symptoms. Eliminate the defect permanently at its source:
- Distinctive: line 19
Before modifying a single line of production code, write an automated test that fails by reproducing the bug.
- Distinctive: line 20
If the test doesn't fail before your fix, you haven't reproduced the true root cause.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Root Cause Analysis (5 Whys & Regression Reproduction)
Do not patch symptoms. Eliminate the defect permanently at its source:
1. The 5 Whys Ladder
- Symptom: What was observed? (e.g., Cannot read property 'id' of undefined)
- Why 1: Why was the variable undefined? (Service returned 204 instead of user object)
- Why 2: Why was 204 returned? (Query filter missed tenant boundary)
- Why 3: Why was the tenant boundary missing? (Middleware bypassed on internal RPC route)
- Why 4: Why was it bypassed? (Route registration order placed middleware after handler)
- Why 5 (Root Cause): Why was route registration order unprotected? (No automated test verified middleware execution order)
2. Mandatory Regression Test Reproduction
- Before modifying a single line of production code, write an automated test that fails by reproducing the bug.
- If the test doesn't fail before your fix, you haven't reproduced the true root cause.
3. Call-Site Audit
- Grep all callers of the touched function or API.
- Fix the shared contract once; never duplicate defensive checks across ten different caller files.
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
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.

