Engineering

Draft the postmortem for an incident

Ask Merlin in the incident channel once it's over. It drafts the postmortem in Notion from the channel and the merged pull requests, with the timeline, cause and follow-ups.

@Merlin from now on, when someone asks you for a postmortem in an incident channel, build a timeline from the channel's messages and the pull requests merged to acme/web around it. Write the timeline, the cause and the follow-ups in a new Notion page under Postmortems and post the link in the channel. Mark anything the channel doesn't confirm as unconfirmed, and don't name a person as the cause.

#inc-checkout-errors
Get started for free
  1. Starts whenSomeone asks @Merlin in the incident's Slack channel for the postmortem once it's resolved
  2. Merlin worksClaude Code or Codex builds the timeline from the channel and the pull requests merged around it, then writes up the cause and follow-ups
  3. You getA draft postmortem in Notion with the timeline, cause and follow-ups, linked in the channel

Tools

  • Slack
  • Notion
  • GitHub

Capabilities

  • Integrations
  • Your agent's MCP

How it works

From a resolved incident channel to a postmortem draft in Notion.

Once the incident is over, mention @Merlin in its Slack channel and ask for the postmortem.

Acme

Channels

general

eng

product

support-eng

data

inc-checkout-errors

Direct messages

Merlin

Dana

Leo

inc-checkout-errors

24

MessagesAdd canvasFiles

Today

Dana14:09

Checkout is returning 500s for EU cards. Looking now.

Leo14:38

The revert of #871 is out in #874. Error rate is back to normal.

Dana15:10

@Merlin we're resolved. Can you draft the postmortem?

Message #inc-checkout-errors

Before and after

The postmortem gets written while the incident is still fresh.

Without Merlin

Someone scrolls back through the channel and GitHub days later, lines up the times by hand and writes it all up.

  1. 01Scroll back through the channel
  2. 02Copy each timestamp
  3. 03Find what merged that afternoon
  4. 04Read the change and the revert
  5. 05Line up the times
  6. 06Ask when support first heard
  7. 07Write up the cause
  8. 08List the follow-ups
  9. 09Paste it into the template
  10. 10Share the link in the channel

With Merlin

One mention in the channel gets a draft the team only has to check and finish.

  1. @Merlin in the incident's channelAsked once the incident is resolved
  2. Builds the timeline on Dana's MacBookClaude Code reads the channel and the merges
  3. Postmortem draft in NotionLinked in the thread, gaps marked unconfirmed

Setup

Add Merlin to the incident channel and give your agent Notion.

Set these up once and anyone in an incident channel can ask for the draft. It stays a draft until your team edits it.

  1. 01Connect a machineRuntimeInstall the Merlin desktop app or CLI on a computer running Claude Code or Codex. You can also use a machine a teammate shares with your workspace.
  2. 02Add Merlin to SlackIntegrationsInstall the Slack app and add Merlin to the channel you work in. A private channel needs /invite @Merlin.
  3. 03Add Notion to your agentYour agent's MCPConnect the Notion MCP server to Claude Code or Codex on the machine that runs this. Its credentials stay on that machine.
  4. 04Install the GitHub appIntegrationsPick the repositories Merlin can access, so it can read and link the pull requests there. Pushes use the machine owner's own Git access.
  5. 05Add Merlin to each incident channelIntegrations

    Incident channels are new each time, so add Merlin when one opens: from the Slack integration page, or with /invite @Merlin in a private channel.

  6. 06Paste the setup promptGuidanceAn owner or admin sends the prompt below to @Merlin once, and it becomes workspace guidance for every future run.

Prompt

Tell Merlin how to draft a postmortem.

@Merlin from now on, when someone asks you for a postmortem in an incident channel, build a timeline from the channel's messages and the pull requests merged to acme/web around it. Write the timeline, the cause and the follow-ups in a new Notion page under Postmortems and post the link in the channel. Mark anything the channel doesn't confirm as unconfirmed, and don't name a person as the cause.

#inc-checkout-errors

Once, when you paste it

  1. PromptYou paste the prompt to @Merlin
  2. GuidanceMerlin saves your rules as workspace guidance

Every time someone mentions Merlin in Slack

  1. IntegrationThe Slack app spots the mention
  2. RuntimeMerlin picks an available machine
  3. ContextThe run gathers context
  4. WorkClaude Code or Codex builds the timeline and writes the draft
  5. SteeringYour team steers the work in the thread
  6. ResultMerlin links the Notion draft in the channel

Bring your coding agents into the tools your team already uses.

Let your whole team hand work to Claude Code and Codex today. Connect one machine and add Merlin to Slack, Linear or GitHub. 14-day free trial, no API keys, no card.