一键导入
postmortem
Recall or record confirmed reusable failure lessons. Use after a verified recurrence, review escape, failed gate, or explicit user request.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Recall or record confirmed reusable failure lessons. Use after a verified recurrence, review escape, failed gate, or explicit user request.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Review and land one authenticated provider-native review item. Use when current-head review, landing, closeout, and remote-main parity are in scope.
Submit a named verified source for remote review. Use when explicit authority covers push and one review item, but not approval or landing.
Simplify verified changes before remote submission. Use for deletion-first, YAGNI, native-library, structural, and test-seam review.
Create narrow auditable local commits. Use when verified Dverity work must be staged and committed without absorbing unrelated changes.
Resolve an in-progress merge or rebase conflict from proven product intent. Use only when Git reports an actual conflict.
Find and reuse the nearest correct mechanism before adding another. Use when a Dverity change would add reusable code, policy, or workflow meaning.
| name | postmortem |
| description | Recall or record confirmed reusable failure lessons. Use after a verified recurrence, review escape, failed gate, or explicit user request. |
| metadata | {"dverity_class":"reusable-dependency","reads":[],"resources":["scripts/postmortem-contract.js"]} |
postmortem owns reusable failure memory. It does not own workflow state,
review findings, remote delivery, or ordinary failure logs.
Use exactly one mode:
recall: a recurrence, failed verification, or review escape may match a
prior lesson;interrogate: evidence is too thin to classify the lesson;record: a confirmed reusable lesson, review escape, or explicit user
request needs durable memory.Use scripts/postmortem-contract.js#decidePostmortem before any filesystem
write. Ordinary failures and unconfirmed lessons do not record. Recall does not
make historical evidence current; revalidate it against the present repro and
code.
When recall is needed, search docs/postmortems/ only if it exists. Search by
module, exact error, violated contract, failure class, and stable recurrence
signature. A recurring pattern applies broadly; a special case applies only
when its narrow recall condition matches.
Before recording, require the symptom, evidence, root-cause status, lesson type, recall condition, and stable recurrence key. A suspected or unknown cause must never be written as confirmed. Update an existing matching recurrence rather than create a competing lesson.
Durable records live under:
docs/postmortems/<lowercase-kebab-slug>.md
Call scripts/postmortem-contract.js#recordPostmortem only after the decision
says record: true. The function creates the directory at that moment. The
normal Repair path neither depends on nor eagerly creates docs/postmortems/.