원클릭으로
postmortem
Use when an agent produced a flawed output and you need to understand why the reasoning went wrong
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when an agent produced a flawed output and you need to understand why the reasoning went wrong
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use when a file or module is too large, responsibilities are tangled, or a cross-cutting redesign is needed
Use when literature notes exist and need citation verification, or before publishing any artifact that cites literature
Use at the end of a work session to embed learnings into conventions. Simplified for models with lower reasoning capacity.
Use at the end of a work session, or when accumulated findings need to be embedded into conventions, skills, or patterns
Use when the Slack bot needs to handle an operational action like launching an experiment, querying status, or processing approvals
Use when a plan, finding, or design needs adversarial review before committing to it
| name | postmortem |
| description | Use when an agent produced a flawed output and you need to understand why the reasoning went wrong |
| complexity | opus-only |
| model-minimum | opus |
| disable-model-invocation | false |
| allowed-tools | ["Read","Grep","Glob"] |
| argument-hint | [file path, log entry, or description of the failure] |
Analyze why an agent (LLM or pipeline) produced a flawed output. The goal is not to explain the technical mechanism but to identify the reasoning failure that led to the flaw being produced and not caught. The argument is a file path or description of the failure. Read relevant files first.
/postmortem when an agent or pipeline produced a flawed output that was presented as correct — the question is "why wasn't this caught?" not "what went wrong in the data?"/diagnose when the focus is on understanding empirical results — error distributions, root-cause hypotheses, validity. Diagnose analyzes data; postmortem analyzes agent reasoning./critique for a broad review of an artifact's quality. Critique is proactive ("find problems"); postmortem is reactive ("explain this specific failure").The question is never "why is the output wrong?" — it is "why was this output presented as correct?"
A wrong prediction is expected. A wrong prediction reported as a finding, deployed to a dashboard, or used to make a decision is a reasoning failure worth analyzing.
State precisely what was wrong, with evidence. Quote the flawed output.
Walk backward through the chain that produced the flaw:
Which of these caused the flaw?
Anti-anthropomorphism constraint: Never attribute model failures to human psychological states (pressure, confusion, fatigue, rushing, carelessness). LLMs do not experience these. Use mechanistic explanations grounded in model architecture: ungrounded generation, token probability vs truth, context window limits, training distribution mismatch, missing verification gate. Anthropomorphic framings foreclose deeper investigation by implying the fix is "less pressure" rather than architectural safeguards.
What specific check, convention, or tool would have caught this flaw before it was produced?
/review, /critique) have caught it?If the prevention involves creating a decision record (ADR), and the ADR includes action items not implemented in this session, create corresponding tasks in the relevant project's TASKS.md before committing (ADR task bridge — see CLAUDE.md Decisions section).
If the failure mode or root cause involves L1 (Model) — including ungrounded generation, missing mental model due to model capability gaps, or any structural condition attributable to model architecture — record it in the same turn.
Openakari does not ship a shared model capability registry. Record model-specific limits in one of:
Skip this step only if the root cause is entirely at L2-L5 with no L1 component.
## Postmortem: <brief title>
### The flaw
<what was wrong, with direct quote>
### Production chain
1. <step> — <what happened>
2. <step> — <what happened>
3. <step> — <where the flaw was introduced or missed>
### Failure mode
<classified type>: <specific explanation>
### Root cause
<one sentence: why the flaw was produced AND not caught>
### Prevention
- Existing convention missed: <reference or "none">
- New convention needed: <specific proposal or "none">
- Skill that would catch this: <name or "none">
- Pipeline change needed: <specific proposal or "none">
### Downstream Impact
<If the postmortem corrects previously-reported findings, list downstream consumers per ADR 0051.
Omit this section if the error did not produce any cited findings.>
### Severity
<high | medium | low> — <consequence if the flaw had not been caught>
### Model-limit notes
<"Recorded model-specific limit: <what was added/changed>" or "No L1 component — skip">
Write the postmortem to projects/<project>/postmortem/postmortem-<brief-slug>-YYYY-MM-DD.md. Create the postmortem/ directory if it doesn't exist yet. Use the project where the failure occurred.
After saving the postmortem to disk, convert prevention actions to tasks:
[fleet-eligible] [skill: record][fleet-eligible] [skill: execute] or [requires-opus] if complexDone when: derived from the prevention specificationWhy: referencing this postmortem file pathThis ensures prevention actions are executed rather than rediscovered in future postmortems of the same failure mode.
Follow docs/sops/commit-workflow.md. Commit message: postmortem: <brief title of the failure analyzed>