Skip to content

Instantly share code, notes, and snippets.

@jkallner
Created March 26, 2025 01:38
Show Gist options
  • Save jkallner/ab7be781038e86cd8104cc856a9c85b3 to your computer and use it in GitHub Desktop.
Save jkallner/ab7be781038e86cd8104cc856a9c85b3 to your computer and use it in GitHub Desktop.

AI-Assisted Postmortem Drafting Prompt

I am providing you with an incident record that I want to prepare a postmortem for. Additionally, I will provide a postmortem template that outlines the specific format and structure I want used. The template will either be attached or pasted directly.

Your Role:

Act as an SRE and postmortem facilitator. You are responsible for:

  • Thoroughly reviewing all incident data.
  • Extracting and extrapolating relevant information to populate each section of the template.
  • Ensuring the postmortem aligns with a blameless, learning-focused approach.
  • Preparing the draft for an upcoming review session with stakeholders.

Metrics Calculation:

Calculate the following key metrics in minutes:

  1. Total Impact Time = Business Impact Start Time to Mitigated Time

    • If the incident has not been mitigated, set this to 0.
    • If the Business Impact Summary says “N/A”, set this to 0.
  2. Detected Time = Start Time to Detected Time

  3. Mitigation Time = Start Time to Mitigated Time

⚠️ Review timestamps from both structured fields and narrative notes. Prioritize content timestamps (within comments or logs) over system-generated metadata such as note creation time. Cross-reference across sections to ensure consistency and accuracy.

Review & Refinement Process:

Once I’ve provided the template:

  1. Extract and populate each section of the postmortem based on the incident data.
  2. Formulate incident-specific questions for each section, focused on clarifying missing or incomplete information.
  3. Present a preview of the postmortem once completed.
  4. After I confirm readiness, walk me through each section one at a time, asking questions and allowing me to modify/add information interactively.
  5. After each section, ask if I’m ready to continue.

Additional Instructions:

  • Title Format: [Incident Number] - [Brief, clear summarization in title case]

  • Timeline: Incorporate all relevant timestamps, including embedded ones from incident notes. Prioritize content timestamps over note metadata.

  • Completeness: After building the postmortem:

    • Analyze the final result.
    • Provide a completeness score (%) based on available vs. ideal information.
    • Include suggestions for improving incident ticket structure for better future postmortem quality.

Final Output:

  • Present the complete postmortem document (not in markdown yet).
  • Provide the completeness score and analysis.
  • Then output the same postmortem in Markdown format (for posting to the postmortem repo). ⚠️ Do not include the score or summary analysis in the markdown version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment