thinking-pre-mortem

thinking-pre-mortem is a skill for Claude Code from tjboudreaux/cc-thinking-skills. It costs 38 tokens per session (819 once invoked), scanned A, original, MIT.

A planning review that assumes a proposed project or launch has already failed, then works backward to identify specific causes and safeguards.

In plain words
What is it for?
Use it before major technical work, launches, releases, or other decisions that would be costly to undo.
Why use it?
It exposes likely failure paths before work begins and turns them into checks, mitigations, and points where the plan should stop.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the cc-thinking-skills plugin — 28 skills shipped together

not rated 1.3krepo +8 1mo ago A scan Socket: passSnyk: passSkillSpector: warn 38 tokens original MIT

Good fit Use it before major technical work, launches, releases, or other decisions that would be costly to undo.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tjboudreaux/cc-thinking-skills/thinking-pre-mortem
About the project

Claude Code Thinking Skills is a catalogue of 28 portable skills that give coding agents structured procedures for reasoning about decisions, diagnosis, risk, strategy, and related problems. It is intended for Claude Code, GitHub Copilot, Codex, Cursor, and other tools that support Agent Skills.

tjboudreaux/cc-thinking-skills · 1,293 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-pre-mortem
Clone the repo
git clone --depth 1 https://github.com/tjboudreaux/cc-thinking-skills

Made for: Claude Code.

Or install cc-thinking-skills, the plugin that ships this one along with the rest of its 28 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for thinking-pre-mortem

README.md
[![agentmods](https://agentmods.dev/badge/skills/tjboudreaux/cc-thinking-skills/thinking-pre-mortem/github.svg)](https://agentmods.dev/skills/tjboudreaux/cc-thinking-skills/thinking-pre-mortem)
Your own site
<a href="https://agentmods.dev/skills/tjboudreaux/cc-thinking-skills/thinking-pre-mortem"><img src="https://agentmods.dev/badge/skills/tjboudreaux/cc-thinking-skills/thinking-pre-mortem/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for thinking-pre-mortem

Your own site · 80×15
<a href="https://agentmods.dev/skills/tjboudreaux/cc-thinking-skills/thinking-pre-mortem"><img src="https://agentmods.dev/badge/skills/tjboudreaux/cc-thinking-skills/thinking-pre-mortem.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 819 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 12 Mar 2026
  • Snyk pass 12 Mar 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 44
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.00819
Opus 5 $0.00019 $0.00409
Sonnet 5 $0.00008 $0.00164
Haiku 4.5 $0.00004 $0.00082

Measured 10d ago against content hash a38aff195dcd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

thinking-pre-mortem scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/thinking-pre-mortem/SKILL.md · 46 lines

How it starts

The opening of the file, as written. The whole thing — 46 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pre-Mortem Analysis

Core rule: Prospective hindsight beats "what could go wrong?" Assume the plan has already failed (past tense), generate concrete failure paths, reverse them into prevention requirements, and bind each top path to a verifiable plan change.

When to Use

  • Before kickoff, major technical commitment, high-risk sprint work, launch, or release.
  • After a plan looks solid but before execution, especially when optimism or overconfidence is likely.
  • When a decision is costly to reverse and risks are still implicit rather than enforced.

When NOT to Use

  • Work is small, local, and cheaply reversible — skip the ceremony.
  • You are mid-incident under time pressure — act now (OODA / scientific method); pre-mortem is pre-execution.
  • You would only emit generic risks ("scope creep", "requirements unclear") that do not bind to this plan.
  • Risks are already enforced by live gates (CI, canary, rollback, alerts) with no residual unlisted path.
  • A mature risk register already covers the same specific failure paths with owners and checks.

Procedure

  1. Set the failure frame in past tense: "It is [post-deadline date]. The plan failed: [rollback / data loss / no adoption / SLA breach]." Explaining a happened failure is required; predicting one is not enough.
  2. Generate failure reasons before filtering: sweep technical, process, assumptions, dependencies/external, and people. Force a second pass: "What did the plan most need to be true that was not?" Collect breadth first (aim for many distinct reasons); do not rank mid-sweep.
  3. Prioritize: group by theme; score likelihood × impact; keep the top 3–5 concrete risks (drop generics that do not bind).
  4. Failure-first reverse analysis (absorbed reverse path): for each top risk, (a) restate the failed outcome in past tense, (b) list necessary/enabling conditions that had to be true for that failure, (c) invert each condition into a verifiable prevention requirement (avoid/require rule + check), (d) bind owner, verification checkpoint, and ship/stage gate.
  5. Mitigate and update the plan: for each top risk, attach mitigation steps, spike/contingency if needed, and the reverse-analysis prevention requirements as explicit plan gates. A pre-mortem with no plan change is incomplete.
  6. Stop when top risks each have a bound mitigation or prevention gate, or when further reasons are only generic restatements — then ship the updated plan, do not keep brainstorming.

Read the full file on GitHub · 46 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 46 lines · 38 tokens per session scan A a38aff195dcd

Subscribe to this mod's changes

thinking-pre-mortem is a skill published in the GitHub repository tjboudreaux/cc-thinking-skills (1,293 stars, last pushed 1mo ago), licensed MIT. It adds 38 tokens to every session and 819 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

forensic-read

Read any document the way a detective reads a witness statement — surface what it is NOT saying. Unlike a summarizer (which tells you what a text says), this skill exposes the subtext: hedging and weasel words, conspicuous omissions, buried leads, frequency tells, tone shifts, and non-answers. Use it on earnings…

3243dwon/clear-eye · 170 tokens

pre-mortem

Find what will kill a plan before it's committed to — by assuming it already failed and working backwards to the causes. Based on Gary Klein's pre-mortem technique. Unlike generic "what are the risks?" brainstorming, this skill imagines a specific, vivid failure six months out, reasons back to the most likely causes…

3243dwon/clear-eye · 162 tokens

second-order

Reason past the obvious, first-order consequence to the second-, third-, and long-tail effects everyone else stops short of. Where most analysis says "X causes Y", this skill asks "and then what?" — mapping the cascade, surfacing the non-obvious winners and losers, the reflexive responses, and the effects that only…

3243dwon/clear-eye · 157 tokens

foundation-models

On-device LLM integration using Apple's Foundation Models framework. Use when implementing AI text generation, structured output, or tool calling.

rshankras/claude-code-apple-skills · 29 tokens

analytics-interpretation

Interpret app metrics and make data-driven decisions. Covers DAU/MAU, retention, LTV, ARPU, App Store Connect analytics, AARRR funnel analysis, cohort analysis, and diagnostic decision trees. Use when user wants to understand their metrics, diagnose problems, or build a data-driven growth plan.

rshankras/claude-code-apple-skills · 68 tokens

app-namer

Turn an app idea into validated, App-Store-ready name candidates. Use when the user says "name my app", "what should I call it", "app name ideas", "help me name this app", "is this name available", or needs to pick a brandable, ownable name before reserving it in App Store Connect.

rshankras/claude-code-apple-skills · 73 tokens