AI prompts for Developers

Prompt to write an incident postmortem

Turns an incident log and team notes into a blameless report: timeline, impact, root cause, and actions.

When to use it After an outage or bug that affected users, within days of the incident.

The prompt, ready to copy

Role: reliability engineer writing a blameless report.
Task: write the incident postmortem.
Context:
- Affected service: [name]
- Audience: [engineering team / management / both]
Source:
<source>
[Timeline from the incident channel, log excerpts without user data, team notes]
</source>
Constraints:
- No blame on individuals; describe systems, decisions, and conditions
- Times and figures only as given in the source; otherwise write: not stated
- Separate confirmed root cause from hypotheses
- Do not name people; use roles
Output:
1. Summary in three lines
2. Impact (duration, who was affected, with stated figures)
3. Timeline: time | what happened
4. Root cause and contributing factors
5. What went well and what did not in the response
6. Actions: action | owner (role) | due date

Example of filled brackets

Service: payment gateway in the delivery app
Audience: engineering and management
Source: two hours of incident channel log and notes from the follow-up meeting

Check these before you use it

  • Have everyone involved review the timeline
  • Make sure every action has a real owner and date

How to use this prompt

  1. Copy the prompt: Press the copy button or select the whole text.
  2. Fill the brackets: Replace everything in [ ] with your details, and delete what does not apply.
  3. Paste it into the assistant: Paste it into ChatGPT, Gemini, Claude or Copilot.
  4. Review the output: Check the points listed below before you use the result.

All Developers prompts