postmortem
Skill17 starsChanged 9 months agoMITView on GitHub
Analyze Orchestrator/Worker/Reviewer transcripts for a given issue to detect problems and propose fixes
26 other projects use a version of this.
Adopted by
Most recently taken up by
- RachaelQuisel/skillsforyoutheir own version, first seen Sep 23, 2026
- SethGammon/Citadeltheir own version, first seen Sep 20, 2026
- zcf0508/skillstheir own version, first seen Sep 20, 2026
- EthanReedLabs/suldetheir own version, first seen Sep 13, 2026
- Dimon94/skillstheir own version, first seen Sep 10, 2026
- MichaelLeeHobbs/skillstheir own version, first seen Sep 3, 2026
Used with
Projects with it also use premortem, refactor and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
neurofooSkillpremortem
Pre-mortem analysis that imagines a plan has failed, then works backward to identify causes and preventions. Use before launches, major decisions, or risky initiatives to surface hidden risks.
Also in 3 projects that use this
GitHubSkillrefactor
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.
Also in 3 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 3 projects that use this
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 26
- SethGammon/Citadel★ 922same name
- boshu2/agentops★ 447same name
- neurofoo/agent-skills★ 119same name
- Dimon94/skills★ 107same name
- EthanReedLabs/sulde★ 99same name
- TSS-Blue-AI-Lab/ai-lab-agent-skills★ 25same name
- Hongyu-yu/matsci-ai-skills★ 19same name
- Hassaan146/claude-skills★ 18same name
- vshrinath/virtual-product-factory★ 16same name
- arch3rPro/dsh-skills★ 5same name
16 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- release-cekernelSkill
- atSkill
- cronSkill
- dispatchSkill
- orchctlSkill
- orchestrateSkill
- probeSkill
- setupSkill
- unix-architectSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 23 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Read skills/references/namespace-detection.md from the repository root ($(git rev-parse …
- Very specific: line 29
All transcript path resolution is centralized in transcript-locator.sh (ADR-0013).
- Very specific: line 55
Read ${CEKERNEL_SCRIPTS}/../skills/references/postmortem-patterns.md — it defines all detection categories, heuristics, and severities.
- Distinctive: line 117
Class 3 & 4: no issue creation — summarize each finding as a known constraint / needs-investigation note
“Common” is measured: kept by at least 6 in 10 of the 23 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/postmortem
Analyzes Claude Code conversation transcripts associated with given issues to detect structural problems, protocol deviations, and anti-patterns (ADR-0013). Each issue is analyzed independently; results are compiled into a single report. Opt-in by design — runs only on explicit user request.
/postmortem <issue-number> [issue-number...]Note: In plugin mode, /cekernel:postmortem also works.
Workflow
Step 0: Detect Namespace and Resolve Paths
- Read
skills/references/namespace-detection.mdfrom the repository root ($(git rev-parse --show-toplevel)/skills/references/namespace-detection.md). If the Read fails (file not found), you are in plugin mode. - Execute the detection Bash snippet from the reference file.
- Set the script path:
CEKERNEL_NS=local→CEKERNEL_SCRIPTS="$(git rev-parse --show-toplevel)/scripts"CEKERNEL_NS=plugin→CEKERNEL_SCRIPTS="$(dirname "$(which spawn-worker.sh 2>/dev/null)")/../.."/scripts
Step 1: Discover Transcripts
All transcript path resolution is centralized in transcript-locator.sh (ADR-0013). Loop over each issue number:
source "${CEKERNEL_SCRIPTS}/shared/load-env.sh"
source "${CEKERNEL_SCRIPTS}/shared/transcript-locator.sh"
WORKER_TRANSCRIPTS=""
ORCHESTRATOR_TRANSCRIPTS=""
for ISSUE in <issue-numbers...>; do
FOUND=$(transcript_locate_worker "$ISSUE" 2>/dev/null) || true
WORKER_TRANSCRIPTS="${WORKER_TRANSCRIPTS:+${WORKER_TRANSCRIPTS}$'\n'}${FOUND}"
FOUND=$(transcript_locate_orchestrator_by_issue "$ISSUE" 2>/dev/null) || true
ORCHESTRATOR_TRANSCRIPTS="${ORCHESTRATOR_TRANSCRIPTS:+${ORCHESTRATOR_TRANSCRIPTS}$'\n'}${FOUND}"
doneIdentify each transcript's type:
- Found via
transcript_locate_orchestrator_by_issue→ Orchestrator (session reverse-lookup via IPC.spawnedfiles; no inspection needed) transcript_locate_workerreturns both Worker and Reviewer transcripts (shared worktree) — distinguish by the first JSONL line'sagentSettingfield: containsworker→ Worker; containsreviewer→ Reviewer (matches namespaced forms too); missing/no match → unknown (still analyze, labeled as unknown)
Report the discovery (issues, per-type counts, total, and any missing transcripts with reasons). If no transcripts are found at all, report the failure and stop.
Step 2: Read Detection Patterns
Read ${CEKERNEL_SCRIPTS}/../skills/references/postmortem-patterns.md — it defines all detection categories, heuristics, and severities. Its full content goes into each analysis subagent's prompt.
Step 3: Analyze Transcripts via Subagents
Launch one analysis subagent per transcript with the Agent tool (transcripts routinely exceed 100K tokens — one per transcript is the default, not a fallback). Launch in parallel when multiple transcripts exist.
- Description:
"postmortem: analyze <transcript-basename>" - Prompt (include all of the following):
You are analyzing a Claude Code conversation transcript for post-mortem analysis.
## Transcript
Read this file: <absolute-path-to-transcript.jsonl>
The file is a JSONL (one JSON object per line) of conversation messages.
Read in chunks (Read offset/limit) if it is too large for a single call.
## Detection Patterns
<paste the full content of postmortem-patterns.md here>
## Instructions
1. Read through the transcript systematically
2. For each detection pattern, check whether the transcript contains matching evidence
3. If you find a problem matching no existing pattern, still report it — infer the most appropriate Class (1-4) from the root cause
4. Report ALL matches found, not just the first
## Output Format
Report findings as a structured list ("No issues detected." if none). For each finding:
- **Category** / **Pattern** / **Severity** (critical/warning/info) / **Class** (1-4)
- **Evidence**: excerpt or description from the transcript
- **Location**: approximate position (e.g., "during CI retry phase")
- **Recommendation**: suggested action or fixStep 4: Compile Results
Compile all subagent findings into a unified report grouped by Class, and present it to the user. Omit sections for classes with no findings:
## Post-Mortem Report: Issue #<number> [, ...]
### Summary
- Transcripts analyzed: N
- Issues found: N (X critical, Y warning, Z info), broken down by Class 1-4
### Class 1: cekernel defects / configuration issues
> Action: consider creating issue(s) in cekernel repository
### Class 2: project CLAUDE.md / rule gaps
> Action: recommend creating issue(s) in target repository
### Class 3: external constraints (GitHub API / Anthropic API etc.)
### Class 4: Claude Code defects
> Class 3/4 Action: investigate whether this is a known constraint
<each section: findings with severity, evidence, recommendation>Step 5: Propose Actions by Class (User Approval Required)
Do not create any issues without explicit user approval.
- Class 1 (actionable critical/warning): propose GitHub issues in cekernel (title + body with evidence and suggested fix); create approved ones with
gh issue create - Class 2: same, targeting the target repository (
gh issue create --repo <owner>/<repo> ...) - Class 3 & 4: no issue creation — summarize each finding as a known constraint / needs-investigation note
Report created issue numbers back to the user.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

