Premortem

From event4u-app/agent-config · View interactive version

Premortem is an AI agent skill from the GitHub repository event4u-app/agent-config. Use before committing to a heavy or irreversible plan — imagine it's 6 months later and this failed; enumerate why, score each mode, derive early-warning signals and preventive guardrails.

How to use this skill

Skill file

premortem

Forward-looking imagined-failure analysis. Sibling of

CODE0 (which

analyses what actually went wrong after the fact) and

CODE0 (which scores pre-commit

risks per likelihood × impact). This skill adds the prospective frame:

"Assume total failure at horizon H — reconstruct why."

When to use

Before committing to a plan that is:

infrastructure restructure, major dependency swap, architecture decision).

Trigger phrasing: "premortem this", "what if this fails?", "imagine it's 6

months later and this shipped badly", "help me stress-test this plan".

Do NOT use when:

CODE0.

use CODE0.

Procedure

1. State the plan and set the horizon

Summarise the plan in one sentence: *"We are doing X for outcome Y, touching

Z."* Set the prospective-failure frame explicitly: *"Assume total failure at

horizon H (e.g. 6 months post-launch). What went wrong?"*

If the plan cannot be summarised in one sentence, it is not reviewable — stop

and ask for scope clarification.

2. Enumerate failure stories

Generate failure scenarios across multiple angles (people, process, technical,

external, timing). Each scenario is a short narrative in past tense: *"We

shipped, but adoption collapsed because …"*

For each scenario:

plan's assumptions and surface hidden coupling or over-engineering.

× impact) scores to each failure mode.

Do NOT re-implement L × I scoring inline — delegate to risk-officer.

3. Derive early-warning signals and preventive guardrails

For each top failure mode (sorted by L × I from risk-officer):

  1. Early-warning signal — what would you observe first if this failure

mode were activating? Name a concrete, observable indicator (metric, alert,

user behaviour, team signal). This is the load-bearing output.

  1. Preventive guardrail — one specific change to the plan, process, or

rollout strategy that reduces the likelihood of this failure mode. Keep it

executable; flag as accept if no practical guardrail exists.

3b. Compress into the four-part failure register

When the pre-mortem accompanies a plan artefact (a roadmap, an ADR, a design

doc), compress the analysis into the four-part failure register — the

fixed, comparable shape the roadmap template's optional ## Pre-mortem

section consumes:

  1. Three most probable causes of death, ranked — one paragraph each,

naming the concrete mechanism by which the plan most plausibly dies.

Mechanisms, not topics: "the gate's two inputs are unmeasurable from this

corpus" is a cause; "measurement risk" is not.

  1. One untested hidden dependency — the assumption the plan relies on but

never tests.

  1. One modification that makes failure survivable — a concrete plan change

that converts a fatal outcome into a recoverable one.

  1. One tripwire metric with a horizon — a measurable signal plus a

threshold and deadline that says early that cause #1 is materializing.

The register was validated blind against this repo's own closed nulls

(3 of 4 registers named the actual failure cause at rank 1 —

agents/evidence/analysis/premortem-blind-retro-validation.md). The hits were

all failures of measurability; the miss was a mechanism that worked but

added nothing — weight the register toward "can this experiment answer its

question" and state redundancy risks explicitly.

4. Optional memory write-back

If the analysis surfaces a pattern worth preserving for future decisions:

  1. Run a dedup pre-check: call retrieve() over the same key-space (plan type,

affected paths, decision area). If a match is found, propose a

frequency/supersedes update to the existing entry rather than a new one.

  1. Draft a historical-patterns candidate and send it to /memory propose per

CODE0.

  1. Never auto-promote. Human action drives /memory promote.

Output format

  1. Ranked prospective failure modes — L × I ordered list (from risk-officer)
  2. Early-warning signal per failure mode — concrete, observable indicator
  3. Preventive guardrails — one per failure mode (or accept with rationale)
  4. Four-part failure register (when accompanying a plan artefact) — three

ranked causes of death · one untested hidden dependency · one

survivable-failure modification · one tripwire metric with a horizon

(step 3b; feeds the roadmap template's optional ## Pre-mortem section)

  1. Optional memory candidate — drafted to /memory propose if the pattern

clears the admission gate (≥ 2 distinct file paths OR ≥ 3 future decisions)

Do NOT

plan's structure, assumptions, or dependencies.

its five-lens framework inline.

not a prediction; label scenarios as prospective.

/memory promote requires explicit human action and passes

check_memory_proposal.ts.

Gotchas

the present plan. blameless-post-mortem is backward-looking — it analyses

a past failure. Do not conflate them.

A failure mode without a detectable signal cannot be caught in time — flag

it explicitly.

generative than abstract risk statements. Force the past-tense narrative.

See also

Step 2. Not duplicated here.

invoked in Step 2. Not duplicated here.

analysis of an actual failure; backward-looking counterpart to this skill.

(surface the premortem step as optional before committing to a plan).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.