postmortem-aggregator — скилл для Claude Code: разбор инцидентов
Скилл postmortem-aggregator для Claude Code разбирает Post Mortem в папке, рассчитывает показатели сбоев и обновляет POMO_AGGREGATED.md. Помогает находить повторяющиеся причины инцидентов.
Apache-2.0 ★ 151 обновлён 2026-10-12
/plugin marketplace add gemini-cli-extensions/sre
/plugin install sre-extension@sreЧто делает postmortem-aggregator
Скилл разбирает Post Mortem в выбранной папке и формирует pomo_stats.csv: по одной строке на инцидент, с началом и концом сбоя, обнаружением, митигацией, причиной и размером воздействия. Затем рассчитывает длительность сбоя, время до обнаружения и митигации, а также долю времени до обнаружения в общей длительности.
Результаты он собирает в POMO_AGGREGATED.md, с разбивкой по годам и продуктам. Скилл также предлагает описать повторяющиеся закономерности и выводы; для графиков можно использовать скрипты генерации изображений. Один Post Mortem недостаточен: скилл откажется работать, а для двух-трёх предложит взять больше документов.
Среди учитываемых полей — временные отметки, продукт, класс причины и размер сбоя, например HUMAN_ERROR или CATASTROPHIC. Времена обнаружения и митигации могут отсутствовать в отдельных документах; для внешних Post Mortem инструкция предлагает скопировать Markdown в новую локальную папку, но предупреждает о возможной потере данных.
Какие задачи решает
- свести данные из нескольких Post Mortem в CSV
- рассчитать длительность сбоев и время до обнаружения
- сравнить инциденты по годам и продуктам
- найти повторяющиеся причины сбоев
- собрать выводы в
POMO_AGGREGATED.md
Примеры запросов агенту
- Разбери Post Mortem в папке
incidents/и обновиPOMO_AGGREGATED.md. - Собери
pomo_stats.csvпо этим отчётам и сравни сбои по годам и продуктам. - Найди повторяющиеся причины инцидентов в папке
postmortems/и добавь выводы в агрегированный отчёт.
Как установить postmortem-aggregator
1Через маркетплейс плагинов
/plugin marketplace add gemini-cli-extensions/sre/plugin install sre-extension@sreКоманда ставит плагин sre-extension целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add gemini-cli-extensions/sre --skill postmortem-aggregator -a claude-code3Вручную: положить файлы
~/.claude/skills/postmortem-aggregator/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/postmortem-aggregator/
1Через Skills CLI (Vercel)
npx skills add gemini-cli-extensions/sre --skill postmortem-aggregator -a codex2Вручную: положить файлы
.agents/skills/postmortem-aggregator/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add gemini-cli-extensions/sre --skill postmortem-aggregator -a cursor2Вручную: положить файлы
.cursor/skills/postmortem-aggregator/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install gemini-cli-extensions/sre skills/postmortem-aggregator2Вручную: положить файлы
.github/skills/postmortem-aggregator/SKILL.md1Через Skills CLI (Vercel)
npx skills add gemini-cli-extensions/sre --skill postmortem-aggregator -a gemini-cli2Командой платформы
gemini skills install https://github.com/gemini-cli-extensions/sre --path skills/postmortem-aggregatorВручную: положить файлы
.devin/skills/postmortem-aggregator/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о postmortem-aggregator
Как установить postmortem-aggregator в Claude Code?
Добавьте маркетплейс командой /plugin marketplace add gemini-cli-extensions/sre, затем установите скилл: /plugin install sre-extension@sre.
Что делает postmortem-aggregator?
Он извлекает сведения об инцидентах из Post Mortem, создаёт pomo_stats.csv и обновляет POMO_AGGREGATED.md с расчётами и анализом закономерностей.
Сколько Post Mortem нужно для запуска?
С одним документом скилл откажется работать. Если документов два или три, он предложит добавить ещё.
Исходный текст
SKILL.md · Apache-2.0
--- name: postmortem-aggregator description: 🐉 To be used when you have a folder containing N Post Mortem files. This will help crunch data and maintain/update a POMO_AGGREGATED.md file. metadata: author: Riccardo Carlesso version: 0.0.1 status: draft # CHANGELOG # 10mar26 v0.0.1 Initial idea dump # /CHANGELOG # TODO -> refine this base idea # The base idea is to do what I've done with numerous customers # 1. Enforce a JSON/FrontMatter schema for the PostMortem, with at least date started, date ended, datetime detected, product area, and # 2. This skill must have in input a folder with 3+ PoMos # 3. => Crates a small graph / statistics of "How many bad minutes you had this year" and create a few graphs, and tables and document in a `pomo-statistics.md` # TODO(ricc): ensure to patch the PoMo creator to also add a FrontMatter to make life easier here. Also add a PoMoGenerator version like 1.1 to be used later on. Damn I didn't envision cross-markdown-version-dependencies until today! :) # TODO(ricc/Gemini): add scripts to create the CSV here, and also to create graphs with the numbers given. Script should be able to work on test data. --- # Identify the PoMos * If the pomos are local in a folder, use those. * If they're external, create a new folder called `YYYYMMDD_POSTMORTEMS/` and copy their MD version there. This might lose information, but ensure the relevant info is transported here, locally. You could run the "postmortem generator" skill on a locally curled page. * If there is ONE, refuse to run this. * If there is 2-3, suggest the user it's worth using a plurality of these. ## Action Check all the Post Mortems in the folder and identify these informations: 1. Timestamp of outage start. 1. Timestamp of outage identified by human and being worked on (if available). 1. Timestamp of first Mitigation going into place (if available) 1. Timestamp of outage end. 1. Product used (eg Cloud, Youtube). Products could have a taxonomy (eg `Cloud::GCE::PersistentDisk`, `Youtube::Playlists`) 1. RootCause class (HUMAN_ERROR, CONFIG_CHANGE, EXTERNAL_CAUSE, ..). 1. Outage size, how bad it was (TEST, NEGLIGIBLE, SMALL, MEDIUM, BIG, CATASTROPHIC). Build a `pomo_stats.csv` with this data, one line per incident ``` filename,title,outage_start,outage_detected,outage_mitigated,outage_ended,root_cause,size folder/20260101-millennium-bug.md,Millennium Bug hit us!,20260101-09:00:00,,,20260101-12:42:00,HUMAN_ERROR,NEGLIGIBLE ``` ## Crunching the data Once you have the CSV with raw data, you can write some simple code which does the following: 1. Decide what YOUR_DESIGNATED_FOLDER is. 1. Create or Update `POMO_AGGREGATED.md` under YOUR_DESIGNATED_FOLDER/. 1. Caculate for every incident: * `outage_duration` (end - start) * `time_to_detect` (detect - start) * `time_to_mitigate` (mitigate - detect). * `detection_rate` (ratio between time_to_detect / outage_duration ). This is indicative of how fast we're to OBSERVE an outage vs FIX it and tells us a lot about our organization. 1. Do an aggregation of all stats except detection_rate (its a percentage on varying numbers, so it's comparing watermellons to cherries). 1. Do a subjective analysis of the detection_rate. 1. Create breakdown by YEAR and PRODUCT. 1. Consider using image generation scripts to create simple graphs. ## Lessons learnt * See recurring patterns and add a H2 paragraph on `## recurring patterns`: Is there anything we can learn from this aggregation? Is this a mistake we keep on doing? Is there a bug which looks like we're not prioritizing? Is there a number of bugs who all look like the same? This is the step where we can actually identify schemas in this plurality. * Is there some other lesson we learn from this plurality? Write about it in the `## Conclusions`.
© Riccardo Carlesso · Apache-2.0 · gemini-cli-extensions/sre