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

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.

agentmods
npx agentmods add skills/jessinra/lorekeeper/postmortem-writing
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00030 $0.01257
Opus 5 $0.00015 $0.00629
Sonnet 5 $0.00006 $0.00251
Haiku 4.5 $0.00003 $0.00126

Measured 4d ago against content hash a64b6d64ecd1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 (4 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 30 tokens to every session and 1,257 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

Effective Memory

The essential habits for an AI agent with memory — session bookends, learning triggers, verification, safety, and the operational discipline that turns raw recall into compounding intelligence. Pinned, always-injected.

plur-ai/plur · 44 tokens

honcho-integration

Integrate Honcho memory into existing Python or TypeScript codebases. Use when adding Honcho SDK, setting up peers, configuring sessions, and accessing Honcho's representation.

plastic-labs/honcho · 40 tokens

honcho-memory

Concepts and strategy for using a connected Honcho as persistent memory of the user — the recall/record loop and session and peer design. Start here to understand how Honcho memory works, then connect — via a first-class integration for your environment if one exists (preferred), or raw MCP tools (covered here) or the…

plastic-labs/honcho · 91 tokens

recall

Recall this repository's OwnMem local memory before changing code, and keep it healthy. Use when a repository contains .ownmem/, when past debugging lessons could apply ("have we hit this before", "why is it done this way"), or when the user mentions ownmem, project memory, or recalling across sessions.

grpcer/ownmem · 66 tokens

verify

Build, launch, and drive a local Honcho stack to verify a change at its runtime surface (the /v3 HTTP API and the deriver queue). Use when verifying a diff or confirming a change works in the running app.

plastic-labs/honcho · 49 tokens

mnemo-cortex

Installs and wires Mnemo Cortex (local-first persistent memory) into OpenClaw and other MCP-capable agents. Use for cross-session recall, decision history, or multi-agent shared memory.

GuyMannDude/mnemo-cortex · 44 tokens