/code-craft:postmortemfrom code-craft
Writes an incident or bug post-mortem once the root cause is known: evidence-anchored timeline, mechanism, why every safety net missed it, guardrails. Use when the user says "write a post-mortem for this outage", "do an RCA on this bug", or wants a found root cause documented. Not for finding the cause (diagnose-bugs), what could fail (failure-mode-analysis), or tickets (define-work-items).
Ships in code-craft. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Adapted from deepseek-ai/deepseek-harness — docs/postmortem (MIT); see repo-root NOTICES.md.
Document an incident's established mechanism, impact, detection gaps, and practical prevention. Honor an explicit request for a postmortem; scale its length to the incident instead of requiring a minimum degree of complexity.
Collect relevant logs, timestamps, commits, reproduction commands, tests, and known impact. Separate the user-visible symptom, causal mechanism, and why existing checks failed to catch it. Distinguish containment from a permanent fix. Missing evidence stays missing; do not fabricate a complete timeline or infer a person's internal state from their actions.
If the mechanism remains unsettled, write the supported incident account and mark the root cause unresolved. Use diagnose-bugs for requested investigation. A useful preliminary record is possible without inventing a finished RCA.
Trace the cause and contributing conditions. For relevant tests, reviews, and monitors, state what each actually established and which failure it missed. A passing health endpoint, for example, may demonstrate process availability without demonstrating that a user can complete checkout.
Keep the account factual and blameless. Explain system and process conditions rather than assigning motives or replacing causal detail with “human error.”
Use references/postmortem-template.md when a full report is useful. Include a concise outcome, impact and its evidence, timeline, mechanism, detection gaps, and corrective actions with owners or open assignments. Separate implemented guardrails from proposed follow-up work.
For each important guardrail, explain the condition it detects and how to verify it against the failure. Do not claim it was tested unless it was. Use doc-visuals for the timeline if available, or a simple source-anchored table. Link requested architecture-spec, define-work-items, handoff, or research-note artifacts rather than duplicating their jobs or creating external tickets.
A reader can understand what happened, what is established, what changed, and what remains unresolved. Each consequential claim has evidence, and actions address the mechanism or detection gap rather than merely restating the fix.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/codebase-surveyMaps an unfamiliar repository fast: inventory scripts plus parallel subagent scans, synthesized into a path-anchored survey document. Use when the user says "survey this codebase", "help me get oriented in this repo", "map out this project", or has inherited a codebase. Not for judging its structure (architecture-review), a new design (architecture-spec), one bug (diagnose-bugs), or one function./diagnose-bugsFinds the root cause of a bug, flaky test, or regression: reproduce, read the evidence, one hypothesis at a time until the mechanism is proven. Use when the user says "why is this failing", "this test is flaky", "it works on my machine", or hands over a stack trace. Not for writing up a found cause (postmortem), what could fail (failure-mode-analysis), or diff security (security-diff-review)./npx claudepluginhub smithdak/skillsmith --plugin code-craft