Skip to content

docs(debugging): add production incident response & blameless postmortems - #312

Closed
HMAKT99 wants to merge 2 commits into
addyosmani:mainfrom
HMAKT99:feat/incident-response
Closed

HMAKT99 wants to merge 2 commits into
addyosmani:mainfrom
HMAKT99:feat/incident-response

Conversation

@HMAKT99

@HMAKT99 HMAKT99 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

TL;DR

A single purely additive section added to skills/debugging-and-error-recovery/SKILL.md — Production Incident Response & Blameless Postmortems. No new directory, no README/manifest/count changes, revert-safe. node scripts/validate-skills.js → 0 errors, 0 warnings.

The gap this fills

debugging-and-error-recovery is a dev-time triage workflow (reproduce → localize → reduce → fix → guard). It explicitly lists "production incidents" in scope but has no workflow for one — and a live incident inverts the order: you stabilize first and diagnose second. Nothing in the pack covers declare/severity, stabilize-before-diagnose, incident roles, or the blameless postmortem that turns an incident into prevention.

What's added

  • Severity-first response (SEV1/2/3 → response level)
  • Stabilize before you diagnose — the production sibling of the skill's existing Stop-the-Line Rule (rollback / flip the flag / failover, then root-cause)
  • Coordination — incident driver + scribe + running log
  • Blameless postmortem — telemetry-based timeline (by correlation ID), contributing factors not a culprit, action items with owners
  • Close the loop — every incident yields a regression test (and an eval case for LLM-backed features) + a detection-gap fix

Why this isn't a duplicate (per CONTRIBUTING)

It references rather than re-teaches adjacent skills:

  • Rollback/feature-flag mechanics → shipping-and-launch
  • Regression/eval cases → test-driven-development
  • Timeline reconstruction relies on signals from observability-and-instrumentation

It's a focused edit to an existing skill (the refinement form CONTRIBUTING prefers), not a new directory.

Validation

  • node scripts/validate-skills.js → PASSED (0 errors, 0 warnings); all required sections intact
  • Cross-references resolve to existing skills (no dead refs)
  • Diff touches only the one SKILL.md

@nucliweb

Copy link
Copy Markdown
Collaborator

Reviewed this, and it's a solid, well-scoped addition. Sharing two notes: one confirming the sizing call, one optional.

Size / shape is right. The change is 67 lines added (~5K chars), purely additive, leaving the file at 367 lines, comfortably within the pack's range (security-and-hardening is 461, ci-cd-and-automation 390, test-driven-development 383). It's under the 100-line threshold that the contributing conventions use to decide when content should move into a supporting file, so keeping it inline is the correct call rather than spinning out a new file. node scripts/validate-skills.js passes clean here too (0 errors, 0 warnings), and all three cross-skill refs resolve.

Why inline beats a references/ file (in case it comes up). I considered whether this belongs in references/ instead, and I think inline is right:

  • The references/ files in this repo are quick-reference checklists and pattern catalogs. This is a workflow (DETECT -> DECLARE -> STABILIZE -> ... -> PREVENT), and workflows belong in skills.
  • The section leans on the host skill by name, the Stop-the-Line Rule, "the Triage Checklist above", and "the Guard-Against-Recurrence test from Step 5 above". That in-context coupling is a feature; extracting it would break those back-references.

One optional follow-up: close the discovery loop in the other direction. The section already links outward to shipping-and-launch, observability-and-instrumentation, and test-driven-development, but those skills don't point back. A couple of short pointers would make incident response reachable from where people actually are when they need it:

  • From observability-and-instrumentation: a note that the telemetry-based postmortem timeline is driven from this section.
  • From shipping-and-launch: from the rollback / feature-flag mechanics, point to "Stabilize before you diagnose".

Not blocking. Nice work, the stabilize-before-diagnose framing and the blameless-postmortem distinction are the genuinely valuable parts.

HMAKT99 added a commit to HMAKT99/agent-skills that referenced this pull request Jun 25, 2026
…ty & shipping

Closes the discovery loop the other direction (per review on addyosmani#312): observability's
correlation-ID guidance and shipping's rollback section now point to the Production
Incident Response section in debugging-and-error-recovery. Two additive one-liners.
@HMAKT99

HMAKT99 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the careful review — and for spelling out the inline-vs-references/ reasoning; that matches the intent exactly (it's a workflow with in-context back-references to the host skill, so extracting it would break them).

Good call on closing the discovery loop both ways. I've pushed the two back-pointers:

  • observability-and-instrumentation (correlation IDs → the postmortem timeline is reconstructed from this telemetry)
  • shipping-and-launch ("When to Roll Back" → "Stabilize before you diagnose")

Both are one-liners, fully additive; validate-skills.js still passes 0/0 and all cross-refs resolve. Appreciate the thoughtful feedback.

HMAKT99 added a commit to HMAKT99/agent-skills that referenced this pull request Jul 5, 2026
…ty & shipping

Closes the discovery loop the other direction (per review on addyosmani#312): observability's
correlation-ID guidance and shipping's rollback section now point to the Production
Incident Response section in debugging-and-error-recovery. Two additive one-liners.
@HMAKT99
HMAKT99 force-pushed the feat/incident-response branch from 072db54 to a87a38f Compare July 5, 2026 14:01
@addyosmani

Copy link
Copy Markdown
Owner

Blameless incident response is a good addition to the debugging skill and the content reads well. Quick check before merge: make sure it doesn't overlap shipping-and-launch and observability, which already touch on-call and rollback, so the skills point at each other rather than repeat. If the boundaries are clean, I'm happy to take it.

@HMAKT99

HMAKT99 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

The boundaries are clean — here's where each skill starts and stops:

  • debugging-and-error-recovery (this PR): declare severity, stabilize vs diagnose, reconstruct timeline, blameless postmortem, close-the-loop test. The process of handling a live incident.
  • observability-and-instrumentation: the telemetry that makes the timeline reconstructable. The back-pointer I added after nucliweb's review names that dependency explicitly: correlation IDs → postmortem timeline.
  • shipping-and-launch: rollback mechanics and feature-flag controls. The back-pointer there reads: after you've rolled back, go to debugging-and-error-recovery to stabilize before diagnosing.

None of the three skills teach the same step. They call each other by name rather than repeating the content — which is what the validator checks (all cross-refs still resolve 0/0).

HMAKT99 added 2 commits August 2, 2026 07:55
…tems

Adds an incident-response section to debugging-and-error-recovery covering
declare/severity, stabilize-before-diagnose, coordination roles, blameless
postmortems with telemetry-based timelines, and closing the loop into
regression/eval cases. References shipping-and-launch, test-driven-development,
and observability-and-instrumentation rather than duplicating them.
…ty & shipping

Closes the discovery loop the other direction (per review on addyosmani#312): observability's
correlation-ID guidance and shipping's rollback section now point to the Production
Incident Response section in debugging-and-error-recovery. Two additive one-liners.
@HMAKT99
HMAKT99 force-pushed the feat/incident-response branch from a87a38f to b2d56e2 Compare August 2, 2026 02:27

@nucliweb nucliweb left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boundaries check out, this is ready to merge from my side. I re-verified the three-skill split against the current diff: debugging-and-error-recovery owns the incident process (declare/severity, stabilize-before-diagnose, timeline, blameless postmortem, close-the-loop), observability-and-instrumentation owns the telemetry the timeline is reconstructed from, and shipping-and-launch owns the rollback/flag mechanics. No step is taught twice; they reference each other by name.

The two back-pointers from my earlier review are in and resolve, and the in-section anchors all land where they should: "Stop-the-Line Rule", "the Triage Checklist above", and "the Guard-Against-Recurrence test from Step 5 above" all point at the right existing headings. validate-skills.js stays 0/0 and CI is green.

One tiny non-blocking note: the header flow diagram lists seven stages (DETECT…PREVENT) while the body has five numbered steps, since DETECT is the trigger and POSTMORTEM/PREVENT fold into steps 4–5. Reads fine, just a count mismatch a careful reader might pause on. Not worth holding the PR for.

@addyosmani

Copy link
Copy Markdown
Owner

Thanks for this. Incident response and postmortems fit observability-and-instrumentation and shipping-and-launch; closing as overlap, a targeted addition there is welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants