postmortem-writing

postmortem-writing is a skill for Claude Code, Codex from Jessinra/Lorekeeper. It costs 30 tokens per session (1,257 once invoked), scanned A, original, Apache-2.0.

A template and process for writing incident reports, which document serious failures, their causes, corrective actions, and lessons for future work.

In plain words
What is it for?
Use it after a serious production failure, a broken main branch, or a bug whose cause requires changes to architecture, review rules, or team process.
Why use it?
It turns an incident into lasting improvements instead of recording only the immediate fix, helping prevent the same type of failure from returning.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it after a serious production failure, a broken main branch, or a bug whose cause requires changes to architecture, review rules, or team process.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jessinra/lorekeeper/postmortem-writing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Jessinra/Lorekeeper --skill postmortem-writing
Clone the repo
git clone --depth 1 https://github.com/Jessinra/Lorekeeper

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for postmortem-writing

README.md
[![agentmods](https://agentmods.dev/badge/skills/jessinra/lorekeeper/postmortem-writing/github.svg)](https://agentmods.dev/skills/jessinra/lorekeeper/postmortem-writing)
Your own site
<a href="https://agentmods.dev/skills/jessinra/lorekeeper/postmortem-writing"><img src="https://agentmods.dev/badge/skills/jessinra/lorekeeper/postmortem-writing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for postmortem-writing

Your own site · 80×15
<a href="https://agentmods.dev/skills/jessinra/lorekeeper/postmortem-writing"><img src="https://agentmods.dev/badge/skills/jessinra/lorekeeper/postmortem-writing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,257 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.01257
Opus 5.5 $0.00012 $0.00503
Sonnet 5.5 $0.00006 $0.00251
Haiku 4.5 $0.00003 $0.00126

Measured 3mo ago against content hash a64b6d64ecd1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

postmortem-writing scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

How the incident was first noticed (user report, alert, dashboard). Include evidence commands (e.g. `ps aux`, `curl` checks).
.hermes/skills/postmortem-writing/SKILL.md · 152 lines

How it starts

The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Postmortem Writing

Use this skill when authoring or reviewing an incident report (IR) for the Lorekeeper project. Every incident must produce durable process improvements — not just a fix but encoding the lesson into review patterns and checklists.

When to Use

  • A production incident occurs (P0/P1)
  • A CI pipeline breaks on main
  • A bug with systemic root cause (not a one-off typo)
  • The fix changes architecture patterns, not just code

Mandatory Deliverables

Every IR MUST deliver all of:

# Deliverable Location Why
1 docs/incidents/IR-NNN-description.md Repo docs/incidents/ Permanent record
2 BLOCKER pattern(s) added to lorekeeper-code-reviewer .hermes/skills/lorekeeper-code-reviewer/SKILL.md Prevents same bug class passing review
3 Checklist items added to github-code-review-checklist Skills directory Catches in general review too
4 Engineering docs (if the pattern needs explanation) docs/engineering/ Reference for future readers
5 Action items tracked to completion IR action items table Closure

IR Template

YAML Frontmatter

---
**Status:** [Resolved | In Progress | Monitoring]
**Severity:** [P0/P1/P2]
**Date:** YYYY-MM-DD
**Author:** [Name]
**Fix PR:** #[number]
---

Sections

1. Summary

One paragraph: what happened, why it was bad, what fixed it. Include the key insight in the first sentence.

2. Timeline

Table of events in chronological order: time + event. Include first symptom, investigation start, fix identified, fix merged, recovery confirmed.

Read the full file on GitHub · 152 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 152 lines · 30 tokens per session scan A a64b6d64ecd1

Subscribe to this mod's changes

postmortem-writing is a skill published in the GitHub repository Jessinra/Lorekeeper (5 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 30 tokens to every session and 1,257 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

postmortem-writing compared with skills from other repositories

postmortem-writing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
postmortem-writingJessinra/LorekeeperSkill54mo agoApache-2.0A30Claude Code, Codex
hindsight-coding-agentvectorize-io/hindsightSkill64k3d agoMITA74Claude Code, Codex
memory-retainvectorize-io/hindsightSkill64k3d agoMITA46Cursor
neural-memorynhadaututtheky/neural-memorySkill2463d agoMITA125Claude Code
memory-intakenhadaututtheky/neural-memorySkill2463d agoMITA44Claude Code
company-braincaura-ai/cauraSkill577yesterdayApache-2.0A108Claude Code
memory-audit-pattern-extractionDataojitori/nocturne_memorySkill1.4k1mo agoMITA48Claude Code