thinking-pre-mortem — скилл для Claude Code: суть и установка
Разбирает план релиза или задачи от обратного: объявляет провал свершившимся фактом, ищет реальные причины и превращает их в проверки до старта.
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-pre-mortem -a claude-codeЧто делает thinking-pre-mortem
Скилл заставляет агента смотреть на проект через ретроспективный анализ будущих сбоев. Вместо абстрактного вопроса «что может пойти не так» модель задаёт сценарий катастрофы в прошедшем времени с конкретной датой и последствиями: откат, потеря данных или простой сервиса. Затем собираются причины отказа по пяти направлениям: техническая часть, процессы, неявные допущения, внешние зависимости и люди.
Главный фильтр отсекает размытые риски вроде неясных требований. Из общего списка отбираются 3–5 критических точек по формуле «вероятность × ущерб». Для каждой точки скилл находит условия, сделавшие сбой возможным, инвертирует их в правила предотвращения и привязывает к плану ответственного, контрольную точку и этап проверки перед выкаткой.
Если процедура не меняет исходный план конкретными задачами или проверками, она превращается в бесполезный ритуал. Не применяйте этот скилл во время аварий или для мелких легко обратимых правок: он рассчитан строго на этап до начала работ и требует пересмотра задач.
Какие задачи решает
- найти слабые места плана до старта разработки
- отсечь абстрактные риски и оставить 3–5 критических точек
- перевести причины гипотетического сбоя в контрольные проверки
- назначить ответственных и гейты на пути к релизу
- дополнить технический план спайками и планами отката
Примеры запросов агенту
- Проведи pre-mortem для нашего плана миграции базы данных на следующей неделе
- Примени thinking-pre-mortem к архитектурному плану нового платежного шлюза
- Представь, что релиз новой фичи провалился через месяц, и обнови план проверок
Как установить thinking-pre-mortem
1Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-pre-mortem -a claude-code2Вручную: положить файлы
~/.claude/skills/thinking-pre-mortem/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/thinking-pre-mortem/
1Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-pre-mortem -a codex2Вручную: положить файлы
.agents/skills/thinking-pre-mortem/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-pre-mortem -a cursor2Вручную: положить файлы
.cursor/skills/thinking-pre-mortem/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install tjboudreaux/cc-thinking-skills thinking-pre-mortem2Вручную: положить файлы
.github/skills/thinking-pre-mortem/SKILL.md1Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-pre-mortem -a gemini-cli2Командой платформы
gemini skills install https://github.com/tjboudreaux/cc-thinking-skills --path skills/thinking-pre-mortemВручную: положить файлы
.devin/skills/thinking-pre-mortem/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-pre-mortem -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора27
Похожие
Рядом в теме «Заметки, задачи и проекты»
Всё по теме «Заметки, задачи и проекты» →Вопросы о thinking-pre-mortem
Как установить thinking-pre-mortem в Claude Code?
Выполните команду npx skills add tjboudreaux/cc-thinking-skills --skill thinking-pre-mortem -a claude-code. Конфигурация запишется в ~/.claude/skills/thinking-pre-mortem/SKILL.md.
Что делает скилл thinking-pre-mortem?
Он моделирует сценарий, в котором проект уже потерпел крах, выявляет необходимые для этого условия и переводит их в конкретные задачи, гейты и проверки внутри плана.
Когда не стоит запускать pre-mortem анализ?
Анализ избыточен для мелких легко обратимых правок, во время устранения живых инцидентов и для систем, где риски уже закрыты алертами, канареечными релизами или CI.
Исходный текст
SKILL.md · MIT
---
name: thinking-pre-mortem
description: Before committing to a plan or launch, assume it already failed and reason backward through concrete causes — convert failure paths into mitigations, gates, and stop checks.
disable-model-invocation: true
---
# 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.
## Output
1. **Failure scenario** — past-tense disaster frame with date and failed outcome.
2. **Failure reasons** — unfiltered list, then prioritized top 3–5 with likelihood × impact.
3. **Reverse paths** — for each top risk: necessary conditions → inverted prevention requirements.
4. **Mitigations** — owner, verification checkpoint, ship/stage gate per top risk.
5. **Plan deltas** — concrete tasks, spikes, contingencies, and gates added to the plan.
## Verification
- **Falsify/stop:** if no plan-specific failure path can be stated in past tense with necessary conditions, stop — you are generating theater, not risk. If a "mitigation" has no verification checkpoint, it is not done.
- **Over-application guard:** do not pre-mortem reversible chores, mid-incident firefighting, or systems that already enforce the same paths. Do not leave abstract risks as "mitigate later"; either invert them into gates or drop them as non-actionable.
© tjboudreaux · MIT · tjboudreaux/cc-thinking-skills