К основному содержанию
скилл CX Codex

writing-postmortems — скилл для Claude Code: разбор инцидентов

Скилл для написания постмортемов и разборов причин сбоя: хронология только по фактам, блиameless-рамка, задачи с владельцами.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add riekelt/technical-writer --skill writing-postmortems -a claude-code
Открыть на GitHub

Что делает writing-postmortems

Скилл включается, когда инцидент уже закрыт или дошёл до устойчивой точки. Поводом считается и дефект, добравшийся до пользователей, и near miss, который поймал guard там, где не справилось ревью. Во время живого инцидента скилл не нужен: там работает runbook.

Внутри — скелет документа: шапка с датой, длительностью, severity и статусом, затем Summary, Impact с числами, Timeline, Root cause и contributing factors, раздел про неверные ходы во время реакции, action items и sign-off. Хронология строится только на проверяемом: алерт, строка лога, коммит, сообщение. Где единственный источник — память, это отмечается прямо.

Блиameless здесь структурный: называется роль, гейт, зависимость, отсутствующий guard, а не человек. Владелец у action item — это назначение, не обвинение. После ревью документ неизменяем, новые находки идут датированными дополнениями. Скилл требует фонового technical-writing и опирается на writing-issues для задач и recording-decisions для решений, которые из разбора вытекают.

Какие задачи решает

  • собрать хронологию сбоя из алертов и логов
  • описать влияние на пользователей с числами
  • разделить корневую причину и сопутствующие факторы
  • зафиксировать неудачные попытки починки во время реакции
  • оформить action items с владельцем и проверкой приёмки

Примеры запросов агенту

  • Напиши постмортем по этому инциденту, хронологию собери из логов и треда в канале
  • Оформи near miss: guard поймал то, что пропустило ревью
  • Разбери этот сбой: корневая причина, contributing factors, action items с владельцами

Как установить writing-postmortems

1Через Skills CLI (Vercel)

npx skills add riekelt/technical-writer --skill writing-postmortems -a claude-code

2Вручную: положить файлы

~/.claude/skills/writing-postmortems/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/writing-postmortems/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Из того же набора10

writing-design-docs Шаблон и правила подготовки дизайн-документов, RFC и миграционных планов. Задаёт скелет документа, карточки обоснований Why & What и проверку на неопределённости. CX Codex +1 18 200установок writing-changelogs Готовит записи журнала изменений, релизные заметки и сводки о выпущенной работе. Нужен после заметных изменений, исправлений или удалений. CX Codex +1 18 100установок writing-runbooks Скилл для написания ранбуков, инструкций по установке и миграции, где читатель выполняет шаги под давлением времени. CX Codex +1 18 100установок documenting-legacy-codebases Скилл восстанавливает документацию по коду, когда старые доки устарели или врут. Сначала инвентаризация системы, потом текст. CX Codex +1 17 900установок writing-issues Задаёт структуру задач, баг-репортов и спайков в трекере. Помогает превратить обсуждение или сырые заметки в понятный тикет с проверяемыми критериями приёмки. CX Codex +1 18 000установок recording-decisions Скилл записывает принятые решения в формате ADR или короткой записи журнала, пока они не остались только в чате. CX Codex +1 18 000установок diagramming-processes Скилл для ИИ-кодинга, который заставляет агента рисовать процессы, состояния и обмен сообщениями в виде диаграмм с исходником в git, а не картинок. CX Codex +1 17 800установок documenting-contracts Скилл задаёт правила описания API, очередей сообщений, DTO и вебхуков без дублирования схемы. Помогает составить контракт по реальному поведению сериализатора. CX Codex +1 17 700установок

Похожие

postmortem-writing Seth Hobson Скилл помогает разбирать инциденты без поиска виноватых: собрать таймлайн, найти корневые причины и оформить задачи для исправления. CX Codex 10 800установок technical-writing backnotprop Задаёт четыре слоя стандартов для технического текста: архитектуру Diátaxis, стиль Google, правила STE и Global English. Нужен при оформлении ридми, RFC и PR. CX Codex +1 5 500установок adev-writing-guide angular Скилл задаёт правила технического писательства Google и разметку для документации Angular в adev/. Он нужен при создании, правке и ревью страниц в каталоге adev/src/content. CX Codex +1 912установок writing-documentation-with-diataxis sammcj Скилл раскладывает техническую документацию на четыре типа по фреймворку Diataxis и помогает писать или проверять каждый из них. CX Codex +1 615установок grounded-writing chrisbanes Скилл убирает выдуманные факты, рекламный тон и лишние детали реализации из публичной документации и технических отчётов. CX Codex +1 448установок incident-postmortem официальный github Ведёт команду через разбор аварии без поиска виноватых: таймлайн, пять «почему», оценка влияния и план действий с владельцами и сроками. 81установок

Рядом в теме «Тексты и документация»

Всё по теме «Тексты и документация» →

Вопросы о writing-postmortems

Как установить writing-postmortems в Claude?

Выполните npx skills add riekelt/technical-writer --skill writing-postmortems -a claude-code. Скилл окажется в ~/.claude/skills/writing-postmortems/SKILL.md.

Что делает writing-postmortems?

Задаёт структуру постмортема и правила его написания: блиameless-рамка, хронология только по свидетельствам, contributing factors, action items с владельцами. Работает и для near miss.

Что нужно для работы скилла?

Фоновый скилл technical-writing с его правилами стиля и правды. Задачи оформляются по writing-issues, решения — через recording-decisions.

Исходный текст

SKILL.md · MIT
---
name: writing-postmortems
description: Use when writing a postmortem, incident report, or root-cause analysis after an outage, a defect that reached users, a data issue, or a near miss - or when turning an incident channel, alert log, or war-room thread into a durable document. Encodes the blameless framing, the evidence-only timeline, contributing factors, and owned action items. Use whenever something broke and the write-up must outlive the incident.
---

# Writing postmortems

**REQUIRED BACKGROUND:** the `technical-writing` skill (hard rules, truth rules, style).

## Overview

Audience: the engineer who hits something similar in a year, not the people in the room. Core principle: **facts from evidence, causes from mechanisms, lessons from both, and no names.** Classification: historical; once reviewed it is immutable, and corrections are dated addenda.

## When to invoke, and not

Invoke after an incident is resolved, or at a stable milestone of a long one. A defect that reached users and a near miss (a guard caught what review missed) earn the same write-up. Do NOT invoke during the live incident: the runbook governs that. Not for assigning accountability: a postmortem that needs a person's name to make sense is describing a process hole. Not for a status update to stakeholders, which is a report.

## Skeleton

```markdown
# [System]: [the failure, as its symptom, one line]

| | |
|---|---|
| **Incident date** | YYYY-MM-DD |
| **Duration** | detection to resolution |
| **Severity** | [per the org taxonomy, defined where used] |
| **Status** | Draft / Reviewed |

## Summary
[User-visible impact with numbers, the root cause in one sentence, current state.
The reader who stops here still knows what happened.]

## Impact
[Who and what, quantified: requests failed, records affected, money or time lost.
Estimates labeled as estimates; "no evidence of data loss" only if actually checked,
and say what was checked.]

## Timeline
[Timestamped entries, facts only, each traceable to evidence: an alert, a log line,
a commit, a message. Interpretation lives in the sections below, never here.]

## Root cause and contributing factors
[The mechanism, grounded in code and commits. Contributing factors as a list;
"every component was correct and the defect lived between them" is a valid root
cause. Name which layer of checking missed it and which caught it.]

## Wrong turns during the response
[The wrong first fix, the misleading signal followed, the theory that cost an hour.]

## Action items
[Each with an owner and an acceptance check, filed as tracker issues and linked.
"Investigate X" without an owner is banned here as everywhere.]

## Sign-off
[- YYYY-MM-DD <reviewer>: approved <scope>, one line per review event.]
```

## Rules

- **Blameless means structural.** Name the role, the gate, the dependency, the missing guard; never the person. Blaming a person stops at "be more careful"; blaming a structure produces an action item. This governs the narrative (timeline, causes, response); action-item ownership is assignment, not blame: a role in this document, an individual in the linked tracker issue.
- **The timeline is evidence, not narrative.** Every entry traces to something checkable, timestamps from the systems rather than memory. Where memory is the only source, say so.
- **Wrong fixes are content.** The fix that made sense and did not work belongs in the document with the reasoning that made it plausible; embarrassment is not a retention policy.
- **Severity comes from the org taxonomy**, defined where used, not assumed. When no taxonomy exists, leave the field explicitly unassigned rather than inventing one.
- **Action items follow `writing-issues`**: outcome, owner, acceptance check, filed and linked, never left as prose intentions in the postmortem. When filing is not possible from where you sit, mark each item `[to file: <who files it>]`; the postmortem stays Draft until the links exist.
- **Immutable once reviewed.** New findings are dated addenda; a rewritten postmortem is a falsified record. The review itself goes in a sign-off line (see `references/truth.md` in the core skill).
- **Near misses use the same skeleton**, with Impact describing what would have happened, labeled as the counterfactual it is.

The decision that often follows a postmortem (a new invariant, a policy change) is recorded via `recording-decisions` and linked, not embedded. Runbook updates the incident exposed go through `writing-runbooks` in the same change as the fix; documentation is part of done, not a follow-up ticket.

© riekelt · MIT · riekelt/technical-writer

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой