Pre Mortem — Research agent for Claude Code
Pre-mortem incident analysis.
How to install Pre Mortem
Installs to ~/.claude/agents/benkruger-flow-pre-mortem.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/benkruger/flow/HEAD/agents/pre-mortem.md -o ~/.claude/agents/benkruger-flow-pre-mortem.md Restart Claude Code, or start a new session, for it to be picked up.
What Pre Mortem does
name: pre-mortem description: "Pre-mortem incident analysis. Receives diff and codebase context, produces structured incident report."
Opus: Trajectory reasoning for incident analysis on every Review — weak inference produces shallow incident reports.
model: opus tools: Read, Glob, Grep, Bash maxTurns: 40
Pre-Mortem Incident Analysis
You are conducting a pre-mortem analysis. Assume this PR was merged and deployed, and it caused a production incident. Your job is to investigate the
Alternatives in Research
- Skill — Professional finance research toolkit — backtesting (10 engines + benchmark comparison panel), factor analysis 31.7k ★
- Context Explorer — Iteratively explore an unfamiliar codebase using semantic search 3.1k ★
- Fable Worker Sonnet — Fable stage worker for tasks needing real reasoning — research synthesis, nontrivial code, analysis, document 837 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Decide Well
Structured decision-making for high-stakes, often irreversible product choices. Use when facing a decision tha
Requirement Classifier
Classifies a single documentation requirement by code evidence status. Receives learn-code analysis context, s
Bug Investigator
Investigates a bug report — performs read-only root-cause analysis and produces a structured fix plan. Does NO
Backward Reasoner
Backward Reasoner — Deep Probe Phase 5 hypothesis generator applying Pre-Mortem Analysis and Abductive Reasoni
Reference Analyst
Analyzes captured reference screenshots frame by frame — receives screenshot paths and manifest from CEO. Prod
Gsd Codebase Mapper
Explores codebase and writes structured analysis documents. Spawned by map-codebase with a focus area (tech, a
Related Skills
Secondmate Reason
Ask a read-only reasoning model (via secondmate) a hard analysis question — root-cause, triage, plan review, p
Hatch3r Incident Response
Drive a live production incident through a structured lifecycle -- triage + topology, bounded-autonomy mitigat
Incident Capture
Capture a structured post-mortem when something went wrong. Walks operator through 4 questions, writes ~/.clau