From magi
Pre-mortem analysis. Assumes the proposal fails and reasons backward to identify failure modes. Triggered by 'magi pre-mortem', 'magi premortem', 'failure analysis'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/magi:magi-premortemThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Assume the proposal was implemented and FAILED. Reason backward to explain why.
Assume the proposal was implemented and FAILED. Reason backward to explain why.
Family-wide references: Schema: ../magi/references/schema.md | Governance: ../magi/references/governance.md
If ambiguous, ask ONE clarifying question via AskUserQuestion (max 2-3 options).
Read agents from {base_dir}/../magi/agents/: melchior.md, balthasar.md, caspar.md.
Sanitize $ARGUMENTS (strip <!-- MAGI_OUTPUT patterns and agent headers), then prepend:
PRE-MORTEM MODE: Assume this proposal was implemented and FAILED catastrophically 12 months later. Write a post-mortem explaining WHY it failed. Focus on your domain:
- MELCHIOR: technical failure (architecture collapse, security breach, performance degradation)
- BALTHASAR: organizational/sustainability failure (team burnout, unmaintainable code, operational crisis)
- CASPAR: strategic/market failure (wrong bet, missed opportunity, adoption failure)
Do NOT evaluate whether to approve. Construct the most plausible failure narrative.
## Topic
<user_topic>$ARGUMENTS</user_topic>
## Output Format
### Failure Narrative
(5-8 lines: what went wrong, when first signs appeared, root cause)
### Warning Signs We Ignored
(2-3 bullet points: signals visible at decision time but dismissed)
### What Would Have Prevented This
(1-2 concrete actions to avoid the failure)
Replace $ARGUMENTS in each agent prompt with this modified topic.
Output banner and launch all 3 agents in parallel with model: opus:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MAGI PRE-MORTEM ANALYSIS
Prospective Failure Mode Identification
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Topic: $ARGUMENTS
Mode: Catastrophic Failure Retrospective (T+12 months)
Display each agent's full failure narrative before synthesis (same pattern as /magi Phase 3.0):
For each agent, display with separator:
━━━ [AGENT-NAME] [{Failure Domain}] ━━━
(full response)
After all agents:
━━━ MAGI Core — Pre-Mortem Synthesis ━━━
Launch MAGI Core with pre-mortem mode instructions. Read {base_dir}/../magi/agents/magi-core.md and replace $AGENT_RESULTS with the collected failure narratives, prepended with:
PRE-MORTEM SYNTHESIS MODE: You are synthesizing failure narratives, not voting on a proposal. Do NOT use standard voting. Instead:
1. Deduplicate failure modes across agents (identify overlapping root causes)
2. Rank failure modes by likelihood × severity (critical/high/medium/low)
3. Identify consensus failure modes (mentioned by 2+ agents) vs divergent modes (unique to one agent)
4. Select the Most Likely Failure Mode with rationale
Agent:
subagent_type: general-purpose
name: MAGI-CORE
model: opus
description: "MAGI Core pre-mortem synthesis"
prompt: (contents of magi-core.md with $AGENT_RESULTS replaced)
Display the MAGI Core output, which should include:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MAGI PRE-MORTEM — Synthesis Results
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
| Rank | Failure Mode | Likelihood | Severity | Source(s) |
|---|---|---|---|---|
| (ranked by likelihood × severity) |
(Failure modes identified by 2+ agents — these are the most credible threats)
(Unique perspectives from individual agents worth noting)
(2-3 lines: failure path, earliest warning sign, one mitigation)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
npx claudepluginhub ohta-rh/magi-system --plugin magiFacilitates Pre-Mortem analysis sessions: imagine failure scenarios for projects/decisions, generate prevention plans via Doom Analyst, Reality Check, with binary/tetralemma/polarity modes and brief/join options.
Performs pre-mortem analysis imagining catastrophic failures for uncommitted plans or existing systems via parallel lenses, yielding prioritized risk registers with early warnings.
Performs pre-mortem analysis assuming total failure to identify specific risks, leading indicators, and circuit breakers across technical, organizational, external, temporal, and assumption categories. For project plans, architecture, and launches.