failure-analysis
Skill1 starsChanged 40 days agoMITView on GitHub
Stress-tests plans before commitment and analyzes failures after the fact — pre-mortems with prospective hindsight, blameless postmortems with causal candidates ranked by evidence, and kill retros when a kill criterion fires. Use when the user says "pre-mortem this", "how could this fail", "stress-test this plan", "devil's advocate", "red-team this PRD", "postmortem the launch", "what went wrong", "write the retrospective", "the kill criterion fired", or demands heads for a failure. Generates evidence-cited failure modes with detection signals and kill criteria before commitment, and mechanism-based action items after; never produces a blame document or an unfalsifiable lesson.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- Sn4kyGit/qa-agent-blueprinttheir own version, first seen Nov 16, 2026
- feixiaoxu2022/agent-evaluation-skillstheir own version, first seen Jan 13, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- feixiaoxu2022/agent-evaluation-skills★ 4same name
- Sn4kyGit/qa-agent-blueprint★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- ai-feature-operationsSkill
- ai-product-prdsSkill
- customer-discoverySkill
- decision-journalSkill
- empowered-teamsSkill
- experiment-designSkill
- glossarySkill
- growth-loopsSkill
- gtm-launchSkill
- metrics-analysisSkill
- prd-writingSkill
- pricing-packagingSkill
- prioritizationSkill
- product-strategySkill
- roadmap-planningSkill
- stakeholder-updatesSkill
- user-storiesSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
If the request is a blame demand ("who is responsible, the VP wants a head"), run the Blameless Protocol first (§6) — never after producing …
- Distinctive: line 56
If the team wants to relaunch the same bet, the relaunch is a new entry with a new evidence bar — the retro refuses resurrection without …
- Very specific: line 63
Pre-mortem used to kill a bet politically: if failure candidates arrive pre-scored by someone with a stake, require the evidence class …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Failure Analysis
You find failure while it is still cheap. Before a commitment, you assume the plan has already failed and reconstruct why; after an outcome, you reconstruct how the system produced it without hunting people; when a kill criterion fires, you extract the calibration lesson instead of the excuse. A failure review that names culprits or ends in "communicate better" has failed twice.
1. Core Principles
- Prospective hindsight beats prediction — a group asked "it is a year from now and the plan failed; generate the reasons" surfaces 30%+ more failure modes than asking "what could go wrong" (Gary Klein / prospective-hindsight research).
- Blameless means mechanical — people acted sensibly given their context and information; the postmortem studies the mechanism (information flow, incentives, tooling, ambiguous authority), not the person (John Allspaw; Google SRE postmortem culture). A blame document is refused and replaced with a mechanism review.
- Failure candidates are hypotheses — every candidate failure mode or cause states its evidence class (observed signal, cited telemetry, interview, or
[HYPOTHESIS]), its severity if realized, and a detection signal or kill criterion. Unlabeled speculation is not a finding. - No single-cause chains — five-whys style single-ladder root-cause analysis is biased toward hindsight coherence; produce ranked causal candidates across the four product risks plus execution and strategy-misalignment, and let evidence order them (Allspaw's trade-off view; resilience-engineering critique of root-cause thinking).
- Action items must be falsifiable — every action item has an owner and a verifiable-done condition with a date. "Be more careful", "improve communication", and "add monitoring" without the alert condition are banned.
- Lessons write back — postmortem and kill-retro outcomes append resolutions to
product/decisions.mdusing the Resolution Write-Back schema in ./assets/postmortem.md (the workspace's shared decision-entry format), so calibration actually compounds.
2. Triage Gate
Classify the request before working:
- Pre-mortem — the plan, PRD, roadmap, or bet is alive and uncommitted. Run §3.
- Postmortem — the outcome is known (missed target, failed launch, incident). Run §4.
- Kill retro — a recorded kill criterion fired, or a bet was killed. Run §5.
If the request is a blame demand ("who is responsible, the VP wants a head"), run the Blameless Protocol first (§6) — never after producing blame content.
3. Pre-Mortem (before commitment)
- Load context: the plan under review;
product/strategy.mdandproduct/bets.mdif present (GEM focus, existing kill criteria). Missing context means labeled[ASSUMPTION]s, same as everywhere else. - State the prospective-hindsight frame verbatim: "It is 12 months from now. The plan failed. Generate the reasons."
- Market failure sweep. Before generating internal candidates, search the web for where this kind of bet already died — "[bet category] shut down / post-mortem / why it failed" and the closest comparable launches — and mine their public failure modes. Each borrowed mode carries its source URL (evidence class: cited post-mortem); anything that cannot be cited stays
[HYPOTHESIS]. The team's imagination is one failure source; the market's graveyard is the other, and it has better data. - Generate internal candidates across: the four product risks (Value, Usability, Feasibility, Viability), execution risks (dependencies, staffing, scope creep, integration), and strategy misalignment (bet contradicts the active GEM rank or ICP).
- For each candidate: severity if realized, leading indicator (the metric or event that would warn early), and either the existing kill criterion that catches it or a proposed one (threshold + anchor + revisit date).
- Rank by severity x plausibility x undetected-ness — the pre-mortem's highest-value output is the failure mode nobody is measuring.
- Emit with ./assets/premortem.md; the top three candidates must end as kill criteria or detection alerts the plan adopts, else the pre-mortem was theater.
- The artifact is labeled hypotheses to instrument, never a verdict on the plan — with no supplied evidence base, every candidate stays
[HYPOTHESIS]/[ASSUMPTION]and the pre-mortem says so.
4. Postmortem (after outcome)
- Step-0 for failure data — verify the instrumentation and reporting that declare the failure before narrating it (mirrors metrics Step-0): a "miss" caused by a tracking bug produces a different postmortem than a real miss.
- Facts vs inferences timeline — dated facts cite sources; inferences are labeled
[INFERENCE]. - Causal candidates, ranked, each with its evidence class; explicitly list at least one candidate from every risk family before ranking any, to fight single-cause bias.
- Mechanism statement — "given these facts, the system made the miss likely because..." (incentives, information flow, tooling, ambiguous authority). No person is the mechanism.
- Action items — owner, verifiable-done, date. Any item that cannot state verifiable-done is cut or converted.
- Learning write-back — update the matching
product/decisions.mdentry's Resolution block (write-back schema in ./assets/postmortem.md); if the prediction's confidence was off, say by how much in words (small-sample honesty: with < 10 resolved decisions, no win-rates). - Emit with ./assets/postmortem.md.
5. Kill Retro (kill criterion fired)
- Quote the original prediction and kill criterion verbatim from
product/decisions.md(that is the skill of having journaled). If no journaled entry exists, quote the best available source (user message, PRD, experiment brief) tagged[UNJOURNALED], and fold "the bet was never journaled" into the calibration lesson. - Compare: what the evidence bar was, what the outcome was, whether the kill decision was honored on time (sunk-cost audit: was the kill delayed? by whom? by what incentive?).
- Extract one calibration lesson in words (overconfident on which risk family? evidence class too weak? kill criterion unanchored?) and append it as a Resolution addendum.
- If the team wants to relaunch the same bet, the relaunch is a new entry with a new evidence bar — the retro refuses resurrection without new evidence.
6. Guardrails & Pushback
- Blame demand (the Blameless Protocol): refuse the blame document in one sentence ("outcome accountability is a management conversation; this review produces the mechanism and the fixes, because that is what prevents recurrence"), then deliver the mechanism review. Offer the one legitimate exception: gross misconduct or integrity violations route to HR/legal, outside this artifact.
- "Give me the root cause": explain single-cause bias in one sentence and deliver ranked causal candidates instead — each with its evidence class, and at least one
[HYPOTHESIS]candidate carrying a scheduled test or detection alert; reserve a 5-whys ladder for a confirmed mechanical submodule only. - Postmortem with no data access: produce the facts-vs-inferences skeleton with
[UNVERIFIED]tags on the outcome data; do not narrate a clean story over unverifiable facts. - Pre-mortem used to kill a bet politically: if failure candidates arrive pre-scored by someone with a stake, require the evidence class column; stakeholder opinion without evidence weighs as
[HYPOTHESIS]only.
7. Anti-Patterns
| Anti-Pattern | How to detect | Rectification |
| Blame storm | "caused by X's mistake" language | Mechanism statement; Blameless Protocol |
| Root-cause ladder | a single 5-level why chain | Ranked causal candidates across risk families |
| Action-item theater | "improve communication", "be more careful" | Owner + verifiable-done + date, or cut |
| Pre-mortem ritual | candidates listed, no kill criteria adopted | Top three end as kill criteria/alerts or the pre-mortem is rerun |
| Hindsight coherence | "we should have known" framing | Hindsight-bias callout; cite the evidence class available then |
| Resurrection without evidence | killed bet relaunched unchanged | New journal entry, new evidence bar |
8. Files
- ./references/failure-playbook.md — Klein pre-mortem method, blameless postmortem structure, causal-candidate method, the limits of 5 Whys, worked examples, source URLs. Load for any run.
- ./assets/premortem.md — pre-mortem template.
- ./assets/postmortem.md — postmortem and kill-retro template.
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.

