ivanshamaev/de-agent-skills/de-postmortem

Claude Code and agent skill by ivanshamaev/de-agent-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

DE blameless postmortem — incident timeline reconstruction, impact quantification, root cause chain (5 Whys), corrective actions (CAPA), postmortem document template, severity classification, SLA breach reporting, communication templates, lessons-learned facilitation, postmortem review checklist

Install

npx vskill@latest install ivanshamaev/de-agent-skills/de-postmortem

SKILL.md

The same SKILL.md was published earlier as ivanshamaev/de-agent-skills/de-postmortem.

DE Blameless Postmortem Writer

When to Use

Load this skill when the user needs to:

  • Write a postmortem after an SLA breach — a pipeline completed too late or not at all
  • Document a data quality incident that affected business reports, dashboards, or downstream consumers
  • Analyze and communicate a pipeline outage lasting more than 1 hour
  • Handle a security or compliance incident (data exposure, unauthorized access, PII leak)
  • Process a near-miss with high blast radius — something that almost caused a major incident
  • Facilitate a postmortem review meeting and drive blameless root cause analysis
  • Build a postmortem repository and tracking system for a data engineering team

1. Blameless Culture Foundation

Why Blameless Postmortems Produce Better Outcomes

Blame-driven postmortems optimize for punishment. Blameless postmortems optimize for learning. When engineers fear blame, they:

  • Under-report near-misses and partial failures
  • Avoid experimenting with improvements (too risky)
  • Optimize for personal safety over system improvement

Blameless postmortems produce:

  • Accurate, complete timelines (no self-protective omissions)
  • Systemic fixes rather than personnel changes
  • Psychological safety to raise future concerns early

The foundational principle: "Every person who contributed to the incident was acting rationally given the information, tools, and incentives available to them at that moment."

Psychological Safety in Incident Reviews

Concrete practices:

  • Open the meeting by explicitly stating: "This is a blameless review. We are here to learn what happened, not to assign fault."
  • Prohibit "why did you do X?" questions directed at individuals. Redirect to "what was the system state that led to X?"
  • Praise people who made the incident visible, even if they caused it.
  • Rotate the facilitator role — do not let the person with the most authority run the meeting.
  • Document "what went well" as sincerely as "what went poorly."
Human Error Is a Symptom, Not a Cause

When "human error" appears in a root cause statement, it is a signal that the analysis stopped too early. Human errors are predictable outputs of systems that make errors easy to make and hard to detect.

Blame StatementSystem Observation Reframe
"Engineer deployed bad code on Friday afternoon""The change management process allowed unreviewed deployments during high-risk windows"
"The analyst used the wrong date filter""The data model had no validation layer to catch date filter errors before data was published"
"On-call didn't respond for 30 minutes""The alerting system sent only a single page with no escalation to backup on-call"
"Developer forgot to add a test""The CI pipeline did not require row-count tests for incremental models"
"Team lead approved a risky migration without staging""The deployment process had no mandatory staging environment gate for schema changes"

2. Incident Severity Classification

Severity Matrix: Impact × Urgency
HIGH URGENCY LOW URGENCY
(response < 1h) (response < 4h)
HIGH IMPACT | SEV-1 | SEV-2 |
LOW IMPACT | SEV-2 | SEV-3/4 |
SeverityDefinitionPostmortem RequiredResponse Time
SEV-1Business-critical data unavailable; regulatory or financial reporting at risk; executive-visible dashboards down; SLA breach with contractual penaltyAlways (within 48h)15 minutes
SEV-2Major pipeline failure affecting ≥1 downstream team; SLA breach without contractual penalty; data unavailable >2h; incorrect data in production dashboardsAlways (within 72h)1 hour
SEV-3Degraded data quality in non-critical tables; partial pipeline failure with workaround available; single non-customer-facing report delayedTeam discretion4 hours
SEV-4Minor issue; single non-critical pipeline delayed <1h; no user impact; self-healingNot requiredNext business day
SEV-1 Indicators (Escalate Immediately)
  • Financial close, regulatory filing, or executive report blocked by data unavailability
  • PII or confidential data exposed to unauthorized parties
  • Production database in inconsistent state with no clear recovery path
  • Revenue recognition pipeline producing materially incorrect numbers ($10k+)
  • Data loss — rows deleted or overwritten with no recovery path
SEV-2 Indicators
  • One or more team's analytical workflows blocked for >2h
  • SLA to internal customers breached by >1h
  • Data quality issue discovered in published reports, requiring correction and re-communication
  • Kafka consumer lag >4h on business-critical topic
Postmortem Trigger Threshold Summary
  • SEV-1: always required, draft within 24h, final within 5 business days
  • SEV-2: always required, draft within 48h, final within 7 business days
  • SEV-3: required if recurring (same system, second time in 30 days), optional otherwise
  • SEV-4: not required; log in incident tracking system only

3. Postmortem Document Template

Copy and fill this template for every SEV-1 and SEV-2 incident.

markdown
# Postmortem: <Short Descriptive Title>
| Field | Value |
|-----------------|-------|
| **Incident ID** | INC-YYYY-NNN |
| **Severity** | SEV-1 / SEV-2 |
| **Status** | Draft / In Review / Final |
| **Date** | YYYY-MM-DD |
| **Duration** | HH:MM (from first impact to full resolution) |
| **Authors** | @engineer1, @engineer2 |
| **Stakeholders**| @manager, @data-consumer-team |
| **Reviewers** | @peer-engineer (not involved in incident) |
---
## Executive Summary
<!-- 2–3 sentences, non-technical. Explain what broke, who was affected,
and what was done to fix it. Assume the reader is a business stakeholder. -->
On [DATE], the [SYSTEM] pipeline experienced [BRIEF DESCRIPTION], resulting in
[BUSINESS IMPACT] for approximately [DURATION]. The issue was caused by [1-SENTENCE
ROOT CAUSE]. The team resolved the incident by [1-SENTENCE FIX] and has taken
[N] preventive actions to ensure this class of failure cannot recur.
---
## Impact
| Metric | Value |
|--------|-------|
| Total duration | N hours N minutes |
| Rows affected | N (table: schema.table_name, date range: YYYY-MM-DD to YYYY-MM-DD) |
| Tables affected | N tables (list: schema.table1, schema.table2) |
| Downstream systems | N dashboards, N pipelines, N API consumers |
| Business impact | [e.g., Revenue reporting delayed 4h; manual reconciliation effort: 8 person-hours] |
| Financial impact | [$NNN estimated, or "not quantified"] |
| SLA breach | [e.g., SLA target: data available by 08:00 UTC; actual: 11:32 UTC; breach duration: 3h 32m] |
---
## Timeline (UTC)
| Timestamp (UTC) | Event | Who |
|-----------------|-------|-----|
| YYYY-MM-DD HH:MM | [Root cause event — deploy, config change, upstream failure] | [system / person] |
| YYYY-MM-DD HH:MM | [First data impact — pipeline failed, data became stale] | [system] |
| YYYY-MM-DD HH:MM | [Detection — alert fired / stakeholder reported / manual check] | [monitoring / person] |
| YYYY-MM-DD HH:MM | [Acknowledgment — on-call paged and responded] | [@engineer] |
| YYYY-MM-DD HH:MM | [Escalation — if applicable] | [@manager] |
| YYYY-MM-DD HH:MM | [Root cause identified] | [@engineer] |
| YYYY-MM-DD HH:MM | [Fix deployed / data backfill started] | [@engineer] |
| YYYY-MM-DD HH:MM | [Data validated — correct data confirmed in target tables] | [@engineer] |
| YYYY-MM-DD HH:MM | [Stakeholders notified of resolution] | [@engineer / @manager] |
**Key SLA metrics:**
-Time to detect (TTD): HH:MM from first impact to detection
-Time to acknowledge (TTA): HH:MM from alert to on-call response
-Time to resolve (TTR): HH:MM from acknowledgment to resolution
---
## Detection
How was the incident discovered?
-[ ] Automated monitoring alert (alert name: ___)
-[ ] User/stakeholder report (reported by: ___, via: Slack/email/Jira)
-[ ] Manual check during routine review
-[ ] External party notification
**Gap (if applicable):** _If detection was not automated, explain why and what would have detected it faster._
---
## Response
-**On-call engineer paged:** @engineer at HH:MM UTC
-**Escalation chain:** @engineer → @team-lead (HH:MM) → @manager (if applicable, HH:MM)
-**Communication channel:** #incident-YYYY-NNN Slack channel created at HH:MM
-**Stakeholder notification sent:** HH:MM UTC (template in Appendix)
---
## Root Cause
> **The root cause was [SYSTEM/PROCESS X], which was triggered by [CHANGE/CONDITION Y],
> resulting in [FAILURE MECHANISM Z].**
Example:
> The root cause was the absence of a consumer group configuration freeze policy,
> which was triggered by an upstream team increasing the Kafka topic partition count
> without coordination, resulting in a consumer group rebalance storm that halted
> message processing for 4 hours.
---
## Contributing Factors
1.[Factor 1 — condition that made root cause possible]
2.[Factor 2 — condition that made detection slower]
3.[Factor 3 — condition that made recovery harder]
4.[Factor 4 — process gap or missing safeguard]
---
## 5-Whys Root Cause Chain
| Why # | Question | Answer |
|-------|----------|--------|
| 1 | Why did [SYMPTOM observed by users] occur? | Because [DIRECT CAUSE] |
| 2 | Why did [DIRECT CAUSE] occur? | Because [INTERMEDIATE CAUSE] |
| 3 | Why did [INTERMEDIATE CAUSE] occur? | Because [DEEPER CAUSE] |
| 4 | Why did [DEEPER CAUSE] occur? | Because [SYSTEMIC CAUSE] |
| 5 | Why did [SYSTEMIC CAUSE] occur? | Because [ROOT SYSTEM/PROCESS GAP] |
**Root cause (from Why 5):** [SYSTEM OR PROCESS GAP — this is what the CAPA actions must address]
---
## What Went Well
<!-- This section must be genuine. Find at least 3 real positives. -->
1.[e.g., The on-call runbook for Kafka consumer lag was accurate and reduced TTR by 30 minutes]
2.[e.g., The monitoring alert fired within 8 minutes of the first failure]
3.[e.g., The team communicated proactively to stakeholders throughout the incident]
---
## What Went Poorly
1.[e.g., No automated check existed for consumer group rebalance events]
2.[e.g., The escalation path was unclear — two engineers were paged simultaneously for different symptoms]
3.[e.g., Data backfill took 2h longer than expected due to undocumented dependency on a manual step]
---
## Corrective Actions (CAPA)
| # | Action | Owner | Due Date | Status | Prevention Type |
|---|--------|-------|----------|--------|-----------------|
| 1 | [Specific action — what exactly will be done] | @owner | YYYY-MM-DD | Open | Detection |
| 2 | [Specific action] | @owner | YYYY-MM-DD | Open | Prevention |
| 3 | [Specific action] | @owner | YYYY-MM-DD | Open | Response |
| 4 | [Specific action] | @owner | YYYY-MM-DD | Open | Process |
| 5 | [Specific action] | @owner | YYYY-MM-DD | Open | Prevention |
Prevention Types: **Detection** (alerting/monitoring) | **Prevention** (code gates/contracts) | **Response** (runbooks/escalation) | **Process** (change management/testing)
---
## Lessons Learned
1.[Transferable insight — applicable beyond this incident]
2.[Architecture or design lesson]
3.[Process lesson]
---
## Appendix
-Relevant logs: [link or inline excerpt]
-SQL queries used in investigation: [inline or link]
-Grafana/dashboard screenshots: [link]
-Slack incident thread: [link]
-Related tickets/PRs: [link]

4. Complete Postmortem Examples


Example 1: Late-Arriving Data SLA Breach (Kafka Partition Rebalance Storm)
markdown
# Postmortem: Silver Layer SLA Breach — Kafka Consumer Rebalance Storm

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 98 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ivanshamaev/de-agent-skills/de-postmortem/badge)](https://verified-skill.com/skills/ivanshamaev/de-agent-skills/de-postmortem)

Something wrong with this skill or its page? Tell us.