rca-report
RCA Report
Produce post-mortems that are reproducible, layered, and operationally useful — not just narrative. A good RCA lets a future engineer (or future you) understand the incident, verify the fix held, and avoid repeating it. This skill covers both the investigation flow (what to gather while the incident is fresh) and the report itself.
Output location
First check whether the project already keeps incident write-ups somewhere (e.g. docs/incidents/, docs/postmortems/, postmortems/, incidents/, docs/rca/) and save there, following any naming convention you find. Otherwise save to the current working directory.
Default filename: <topic>-rca-<YYYY-MM-DD>.md, where:
<topic>is a short kebab-case identifier of the failing system (e.g.cdc-pipeline,auth-service,kafka-consumer-lag)<YYYY-MM-DD>is the incident date (when it occurred), not necessarily today
Example: cdc-pipeline-rca-2026-05-05.md, auth-500s-rca-2026-04-12.md
The two-phase workflow
Phase 1 — Investigation (gather evidence)
Before writing anything, walk through references/investigation-checklist.md with the user. The goal is to lock in concrete, reproducible facts — timestamps, version numbers, exact LSNs/IDs/error strings, command outputs — while the system state is still observable. Memory degrades fast; logs rotate; replication slots advance. Capture now, write later.