session-postmortem
Cross-cutting (WORKFLOW.md §2), applied to a session rather than a product. It reports what happened,
with evidence; it does not fix, export or file anything.
Core rule: every finding cites path:line. No citation, no finding. Every number comes from the
transcript or from a command that was run, never from memory.
When
After a session that repeated work, ignored its plan, stalled, skipped an expected skill, or cost more
than expected, and someone wants the cause.
Steps
- Intake, one question at a time, until there is a statement naming the session, the turn range if
known, what was expected, what happened, and the observable that matters (wall-clock, tokens, a
repeated action). "It took too long" is a complaint, not a statement. Nothing below starts before the
operator has answered; if they are away, write the questions and stop.
- Locate the transcripts. Resolve each session to absolute paths. Confirm a past session by quoting
its first prompt and timestamp. List every candidate rejected, with the reason, or write "none".
Enumerate subagent transcripts too; in those, the "user" is the parent agent.
- Context safety, every file, every time. One record can be a megabyte.
- Measure first (
wc -lc, list lines over a size threshold).
- Never print a transcript to read it. Get line numbers and counts first, then small fields from named
lines, cut to a few hundred characters.
- Anything longer than that for one record means the slice was too wide.
- Analyse in seven dimensions, in parallel where the transcript is long, splitting by turn range:
- timeline of skills fired and not fired;
- adherence to the plan, compaction points first;
- repeated work;
- stumbles (errors, retries, dead ends);
- quality evidence (was success shown or asserted);
- conflicts between requests;
- cost and time.
Discard any returned finding without
path:line.
- Report: the verdict first, then findings in the order of the operator's complaint, each with its
citation, then what could not be determined.
Output / checkpoint
No pipeline checkpoint. A report with cited findings and an explicit coverage note (what was and was not
read).
Guardrails
- Read-only. Never modify, move or delete a session file.
- Operator words only. Hook output, system reminders and tool results are not the operator's prompts.
- Report, do not diagnose the framework. State what the transcript shows; whoever triages decides
whether a block changes. No advice unless asked.
- No bundle export, no issue drafting, no scrubbing: out of scope here by choice.
Origin
Mechanism rewritten from the diagnosing-superpowers skill of the superpowers collection (MIT), read
2026-10-02: the intake-before-analysis gate, rejected-candidate listing, the seven analysis dimensions, the
path:line rule and the transcript context-safety procedure. Left out: bundle export, scrubbing, issue
writing and similar-session search. Wording and structure are ours. Not run on real work.
1---2name: session-postmortem3description: "Use when a past or running agent session went wrong and the operator wants to know why (repeated work, ignored plan, a skill that did not fire, slow or costly): pin the problem down, read the transcripts read-only, report with path:line evidence."4metadata:5 source: https://skillmd.com/skills/techmefr/session-postmortem6---78# session-postmortem910Cross-cutting (`WORKFLOW.md` §2), applied to a session rather than a product. It reports what happened,11with evidence; it does not fix, export or file anything.1213**Core rule: every finding cites `path:line`. No citation, no finding.** Every number comes from the14transcript or from a command that was run, never from memory.1516## When17After a session that repeated work, ignored its plan, stalled, skipped an expected skill, or cost more18than expected, and someone wants the cause.1920## Steps21221. **Intake, one question at a time**, until there is a statement naming the session, the turn range if23 known, what was expected, what happened, and the observable that matters (wall-clock, tokens, a24 repeated action). "It took too long" is a complaint, not a statement. Nothing below starts before the25 operator has answered; if they are away, write the questions and stop.262. **Locate the transcripts.** Resolve each session to absolute paths. Confirm a past session by quoting27 its first prompt and timestamp. List every candidate rejected, with the reason, or write "none".28 Enumerate subagent transcripts too; in those, the "user" is the parent agent.293. **Context safety, every file, every time.** One record can be a megabyte.30 - Measure first (`wc -lc`, list lines over a size threshold).31 - Never print a transcript to read it. Get line numbers and counts first, then small fields from named32 lines, cut to a few hundred characters.33 - Anything longer than that for one record means the slice was too wide.344. **Analyse in seven dimensions**, in parallel where the transcript is long, splitting by turn range:35 1. timeline of skills fired and not fired;36 2. adherence to the plan, compaction points first;37 3. repeated work;38 4. stumbles (errors, retries, dead ends);39 5. quality evidence (was success shown or asserted);40 6. conflicts between requests;41 7. cost and time.42 Discard any returned finding without `path:line`.435. **Report**: the verdict first, then findings in the order of the operator's complaint, each with its44 citation, then what could not be determined.4546## Output / checkpoint47No pipeline checkpoint. A report with cited findings and an explicit coverage note (what was and was not48read).4950## Guardrails51- **Read-only.** Never modify, move or delete a session file.52- **Operator words only.** Hook output, system reminders and tool results are not the operator's prompts.53- **Report, do not diagnose the framework.** State what the transcript shows; whoever triages decides54 whether a block changes. No advice unless asked.55- No bundle export, no issue drafting, no scrubbing: out of scope here by choice.5657## Origin58Mechanism rewritten from the `diagnosing-superpowers` skill of the `superpowers` collection (MIT), read592026-10-02: the intake-before-analysis gate, rejected-candidate listing, the seven analysis dimensions, the60path:line rule and the transcript context-safety procedure. Left out: bundle export, scrubbing, issue61writing and similar-session search. Wording and structure are ours. Not run on real work.