Logo de Incident Postmortem Generator

Incident Postmortem Generator

Comunidade
ricmmartins
incident-postmortem-generator

Generate a blameless incident postmortem from the current or recent SRE Agent investigation. Use after an incident is resolved, when asked for a postmortem, RCA report, incident review, or lessons learned document.

Visão geral

Publicado porricmmartins
Repositórioazure-sre-agent-skills
Nome da habilidadeincident-postmortem-generator
Estrelas
70
Forks
14
Arquivos incluídos
Somente instruções
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por ricmmartins no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Incident Postmortem Generator no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/ricmmartins/azure-sre-agent-skills/tree/main/skills/05-incident-postmortem
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ricmmartins/azure-sre-agent-skills.git /tmp/azure-sre-agent-skills
mkdir -p .claude/skills
cp -r /tmp/azure-sre-agent-skills/skills/05-incident-postmortem .claude/skills/incident-postmortem-generator
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Incident Postmortem Generator em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Incident Postmortem Generator automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Incident Postmortem Generator não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Incident Postmortem Generator

Purpose

Automatically generate a structured, blameless postmortem document from the context of a resolved incident investigation. Leverages the timeline, root cause analysis, and mitigations already gathered by the SRE Agent.

When to use this skill

  • User asks for a postmortem after an incident is resolved
  • User asks for an RCA report, incident review, or lessons learned
  • Automated trigger after incident resolution (via agent hook)
  • User asks "write up what just happened"

Postmortem principles

  • Blameless: Focus on systems and processes, never individuals
  • Evidence-based: Every claim backed by data (logs, metrics, timeline)
  • Action-oriented: Every finding leads to a concrete action item
  • Learning-focused: What can we improve systemically?

Generation procedure

Step 1: Gather incident context

From the current conversation and agent memory, extract:

  1. Incident metadata:

    • Incident ID (from PagerDuty/ServiceNow if connected)
    • Severity level
    • Duration (detection to resolution)
    • Affected services and resources
    • Impacted users/customers (if known)
  2. Timeline: Reconstruct from the investigation:

    • When did the issue start? (first anomaly in metrics)
    • When was it detected? (alert fired)
    • When was it acknowledged? (engineer engaged)
    • Key investigation milestones
    • When was mitigation applied?
    • When was full resolution confirmed?
  3. Root cause: From the agent's RCA:

    • What failed?
    • Why did it fail?
    • Contributing factors
  4. Mitigation applied: What was done to resolve it?

Step 2: Assess detection and response

Analyze the incident response quality:

  1. Time to detect (TTD): From issue start to alert firing

    • Was this acceptable? Could monitoring have caught it earlier?
  2. Time to acknowledge (TTA): From alert to human engagement

    • Were on-call rotations effective?
  3. Time to mitigate (TTM): From engagement to mitigation

    • Was the runbook adequate? Did the team have the right access?
  4. Time to resolve (TTR): Total duration

    • Compare with SLA/SLO targets

Step 3: Five Whys analysis

Apply the 5 Whys technique to the root cause:

1. Why did the service return 500 errors?
   → The application pod was OOM-killed
2. Why was the pod OOM-killed?
   → Memory usage exceeded the 512Mi limit
3. Why did memory usage spike?
   → A new dependency introduced a memory leak in the connection pool
4. Why wasn't the leak caught before production?
   → Load testing doesn't cover the connection pool under sustained load
5. Why doesn't load testing cover this scenario?
   → Load test profiles haven't been updated since the architecture change

Step 4: Generate action items

For each finding, create a SMART action item:

IDActionOwnerPriorityDue dateStatus
AI-1Add memory-based autoscaling to payment-servicePlatform teamHigh+7 daysOpen
AI-2Update load test to include sustained connection pool scenariosQA teamHigh+14 daysOpen
AI-3Add memory utilization alert at 80% thresholdSRE teamMedium+3 daysOpen
AI-4Review connection pool settings across all servicesDev teamMedium+14 daysOpen

Categories:

  • Prevent recurrence: Fix the root cause
  • Improve detection: Better monitoring/alerting
  • Improve response: Better runbooks/automation
  • Improve resilience: Architectural improvements

Step 5: Compile the postmortem document

Accepted exceptions (optional)

If the user provides a list of accepted exceptions, do not flag those items. Instead, note them in the report as Accepted Exception with the reason provided.

Example format the user may provide:

CheckReason
Time to detectAlert delay was due to a known monitoring gap being addressed in AI-3
Five Whys depthRoot cause was an external provider outage, further analysis not applicable
Missing runbookService is new, runbook creation is tracked in AI-5

When exceptions are provided:

  • Skip the flagged checks in scoring
  • List them in a separate "Accepted Exceptions" section at the end of the report
  • Recalculate the overall score excluding excepted checks

Expected output

Report header (mandatory — use this exact format)

Incident Postmortem Report

FieldValue
Subscription(name + ID)
Incident DateYYYY-MM-DD
SeveritySev-X
DurationXh Ym
StatusDraft — pending team review

Postmortem document structure

markdown
# Incident Postmortem: [Title]

## Executive summary
[2-3 sentences: what happened, impact, resolution]

## Impact
- **Services affected**: [list]
- **User impact**: [description and scope]
- **SLA/SLO impact**: [metrics affected]
- **Business impact**: [revenue, reputation, etc. if known]

## Timeline (all times UTC)

| Time | Event |
|------|-------|
| HH:MM | First anomaly detected in metrics |
| HH:MM | Alert fired: [alert name] |
| HH:MM | On-call engineer acknowledged |
| HH:MM | Investigation started |
| HH:MM | Root cause identified |
| HH:MM | Mitigation applied |
| HH:MM | Service fully recovered |

## Root cause
[Detailed technical explanation]

## Five Whys
[Analysis chain]

## Detection & response assessment

| Metric | Value | Target | Assessment |
|--------|-------|--------|------------|
| Time to detect | Xm | <5m | ✅/⚠️/❌ |
| Time to acknowledge | Xm | <15m | ✅/⚠️/❌ |
| Time to mitigate | Xm | <30m | ✅/⚠️/❌ |
| Time to resolve | Xm | <2h | ✅/⚠️/❌ |

## What went well
- [Positive aspects of the response]

## What could be improved
- [Areas for improvement]

## Action items
[Table from Step 4]

## Lessons learned
- [Key takeaways for the team]

---
*This postmortem was auto-generated by Azure SRE Agent and should be reviewed by the incident team before publishing.*

Delivery

  • Output the full document in the chat
  • If Teams connector is available, offer to post to the incident channel
  • If ServiceNow/PagerDuty is connected, offer to attach to the incident record
  • Suggest scheduling a postmortem review meeting

References

Sample output

The following is a redacted example of what the report looks like after an incident is resolved.

Incident Postmortem Report

FieldValue
Subscriptioncontoso-prod-001 (a1b2c3d4-e5f6-7890-abcd-ef1234567890)
Incident Date2026-07-10
SeveritySev-2
Duration1h 23m
StatusDraft — pending team review

Executive summary

The payment-service API returned HTTP 500 errors for 1h 23m due to an OOM-killed pod in AKS cluster aks-app-prod. Root cause was a memory leak in the connection pool introduced in release v2.14.0. Impact: ~340 failed transactions affecting 120 customers.

Timeline (all times UTC)

TimeEvent
14:12Memory usage spike detected on payment-service pod
14:18Alert fired: "Pod OOM-killed in aks-app-prod"
14:22On-call engineer acknowledged
14:35Root cause identified: connection pool memory leak
14:50Mitigation applied: rolled back to v2.13.2
15:35Service fully recovered, error rate at 0%

Detection & response assessment

MetricValueTargetAssessment
Time to detect6m<5m⚠️
Time to acknowledge4m<15m✅
Time to mitigate28m<30m✅
Time to resolve1h 23m<2h✅

Action items (sample)

IDActionOwnerPriorityDue
AI-1Add memory-based HPA to payment-servicePlatform teamHigh+7 days
AI-2Update load test for sustained connection pool scenariosQA teamHigh+14 days
AI-3Add memory utilization alert at 80% thresholdSRE teamMedium+3 days

Perguntas frequentes

O que a habilidade de IA Incident Postmortem Generator faz?

Generate a blameless incident postmortem from the current or recent SRE Agent investigation. Use after an incident is resolved, when asked for a postmortem, RCA report, incident review, or lessons learned document.

Por que usar Incident Postmortem Generator no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Incident Postmortem Generator é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Incident Postmortem Generator no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/ricmmartins/azure-sre-agent-skills/tree/main/skills/05-incident-postmortem. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Incident Postmortem Generator?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Incident Postmortem Generator?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Incident Postmortem Generator com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Incident Postmortem Generator é gratuita?

Sim. A habilidade é publicada no GitHub por ricmmartins sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇