agentleFS
mchittinenimchittineni/cloud-platform-skills/.cursor/rules/skills/incident-management-and-postmortem.mdc

cloud-platform-skills / skills

Cursor rule1 starsChanged 3 months agoMITView on GitHub

SRE incident command: ICS role assignment (IC, Ops, Comms, Scribe), severity matrix, live mitigation and comms protocol, and blameless post-mortem with tracked action items. Use when running or improving incident response, declaring severity, coordinating an active outage, or writing a post-mortem.

The file

We split this incident-management-and-postmortem.mdc into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    every state change ("error rate back under 1%"), not commentary.

    line 80
  2. Distinctive:

    every action taken and by whom, including the ones that did not work.

    line 81
  3. Distinctive:

    every hypothesis raised and how it was ruled in or out.

    line 82
  4. Distinctive:

    every decision the Incident Commander makes, and the time it was made.

    line 83

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
incident-management-and-postmortem.mdc
---
description: "SRE incident command: ICS role assignment (IC, Ops, Comms, Scribe), severity matrix, live mitigation and comms protocol, and blameless post-mortem with tracked action items. Use when running or improving incident response, declaring severity, coordinating an active outage, or writing a post-mortem."
globs:
alwaysApply: false
---

# SRE Incident Command & Blameless Post-Mortem Standard

## When to Use This Skill

**Triggers — load this skill when:**

- An active outage needs roles, comms cadence, and mitigation discipline
- A severity matrix or escalation policy must be defined or applied
- A blameless post-mortem and its action items need to be written and tracked

**Route elsewhere when:**

- Security compromise rather than availability failure -> `secops-incident-triage-forensics`
- Error-budget policy that triggers freezes -> `sli-slo-error-budget-design`
- DR failover execution -> `backup-and-disaster-recovery`

## 1. Incident Command System (ICS) Roles

```text
                   [Incident Commander (IC)]
                               |
            +------------------+------------------+
            |                                     |
    [Operations Lead]                      [Communications Lead]
  Executes diagnostic checks             Updates statuspage, executives,
  and deployment rollbacks               and customer support channels
```

---

## 2. Severity Classification Matrix

| Severity | Customer Impact | MTTD Target | MTTR Target | Action Required |
| --- | --- | --- | --- | --- |
| **SEV-1** | Critical system down (>25% users affected / financial loss) | < 5 mins | < 30 mins | Immediate all-hands bridge, executive notification every 30m |
| **SEV-2** | Significant degradation / core feature failing | < 15 mins | < 2 hours | Dedicated Slack channel + SRE bridge |
| **SEV-3** | Minor non-blocking issue or single customer affected | < 1 hour | < 1 business day | Standard ticket queue triage |

---

## 3. Blameless Post-Mortem Template

```markdown
# Incident Post-Mortem: [YYYY-MM-DD] [Incident Title]

## Executive Summary
- **Impact Duration**: 42 minutes (14:12 UTC to 14:54 UTC)
- **User Impact**: ~14,200 checkout attempts failed with HTTP 504.
- **Root Cause**: Database connection pool exhaustion caused by missing query index during peak traffic burst.

## Timeline (UTC)
- **14:12** - Latency alert fires for `checkout-service`.
- **14:15** - Incident declared SEV-1; Incident Commander appointed.
- **14:28** - Operations lead discovers 100% DB thread pool saturation.
- **14:38** - Hotfix index deployed to RDS reader/writer.
- **14:54** - Latency and error rates return to nominal SLO levels.

## Lessons Learned & Action Items
| Action Item | Type | Owner | Priority | Target Date |
|---|---|---|---|---|
| Implement query timeout limit on checkout repo | Preventative | @alice | P1 | Next Sprint |
| Add DB connection pool saturation SLO alert | Detection | @bob | P1 | 3 Days |
```

---

## 4. Scribe Discipline & Role Handoff

**The Scribe is not optional.** Without one, the timeline is reconstructed afterwards from
memory and Slack scroll-back, which is exactly when detail is lost and blame appears.

The Scribe records, in the incident channel, with timestamps in UTC:

- every state change ("error rate back under 1%"), not commentary;
- every action taken and by whom, including the ones that did not work;
- every hypothesis raised and how it was ruled in or out;
- every decision the Incident Commander makes, and the time it was made.

That log is the post-mortem's timeline section, written for free during the incident.

**Explicit handoff.** Fatigue causes second incidents. Every role hands over out loud and in
writing after ~2 hours or at a shift boundary:

```text
HANDOFF 14:05Z — Incident Commander: @alex -> @sam
Current state: SEV2, error rate 4% (was 18%), degraded checkout only.
Working theory: connection-pool exhaustion after the 12:40Z deploy.
In flight: @dana rolling back to build 4471 (ETA 14:15Z).
Ruled out: DNS, upstream provider, node pressure.
Next decision point: 14:20Z — if rollback does not clear it, escalate to SEV1 and page DBRE.
```

The outgoing IC states it, the incoming IC confirms in channel, and the Scribe logs both. No
silent handoffs, and never more than one Incident Commander at a time.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.