pre-mortem

Generate structured incident reports identifying future fragilities in working code.

Updated Apr 24, 2026
One-click install
npx skills add https://github.com/SpencerGoss/agent-engineering --skill pre-mortem-spencergoss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pre-mortem
Source: https://github.com/SpencerGoss/agent-engineering/tree/main/pre-mortem
Command: npx skills add https://github.com/SpencerGoss/agent-engineering --skill pre-mortem-spencergoss

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Future fragility analyses for code that currently works, helping teams anticipate breakage from future edits and releases.

Core Features & Use Cases

  • Scope selection: File, Feature, or System analyses to focus investigations.
  • Fragility pattern scan: Check for common issues like implicit ordering, hidden invariants, and versioning pitfalls.
  • Incident reporting: Generate structured, causal-chain reports with prioritized risks and hardening guidance.

Quick Start

Provide a target scope (File, Feature, or System) and run a pre-mortem to produce prioritized fragility incidents.

Frequently Asked Questions about pre-mortem

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is a pre-mortem analysis for code and when do I need it?

A code pre-mortem identifies future fragilities in currently working code by generating concrete incident reports. You need it before deployment to anticipate breakage from future edits, releases, or hidden invariants in single-file modules, feature paths, or entire systems.

How do I run a pre-mortem risk analysis on my codebase?

To run a pre-mortem risk analysis, provide a target scope by selecting File, Feature, or System analysis. The process scans for fragility patterns like implicit ordering and versioning pitfalls, then generates structured incident reports with causal chains, risk scoring, and hardening suggestions.

Can I analyze fragility patterns across an entire system or just single files?

You can analyze fragility patterns across an entire system, a specific feature path, or a single-file module. The scope selection feature targets investigations appropriately, ensuring the generated incident reports reflect the correct scale of your codebase.

What's the best way to predict future bugs and hidden invariants in working code?

The best way to predict future bugs is running a pre-mortem fragility scan that checks for common issues like implicit ordering, hidden invariants, and versioning pitfalls. It produces prioritized incident reports with causal chains and hardening guidance to prevent breakage.

Does pre-mortem incident reporting provide actionable hardening suggestions?

Yes, pre-mortem incident reporting generates structured reports that include concrete hardening suggestions. Each report features causal chains tracing the fragility, risk scoring guidance for prioritization, and actionable steps to resolve the identified code vulnerabilities.

What limitations should I expect when scanning for code fragility before deployment?

When scanning for code fragility, expect a capped set of incidents per analysis run due to explicit governance constraints. The scan focuses on known fragility patterns like implicit ordering and hidden invariants, so novel or unprecedented failure modes may require additional review.