openakari: Skill for Claude Code

.claude/skills/postmortem/SKILL.md

postmortem is a skill for Claude Code from victoriacity/openakari. It costs 22 tokens per session (1,710 once invoked), scanned A, original, MIT.

A method for examining why an AI agent or automated process presented a flawed result as correct. It focuses on failures in reasoning and checking, rather than only describing the incorrect result.

In plain words
What is it for?
It is for investigating a specific bad output from an agent or pipeline, finding the reasoning failure, and explaining which checks should have caught it.
Why use it?
It helps identify why an error was not caught before the result was reported, deployed, or used for a decision.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

This is victoriacity/openakari's own configuration. It tells Claude Code how to work on openakari itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything openakari configures →

Reuse

Borrowing it

Nothing to install: this file belongs to victoriacity/openakari. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/victoriacity/openakari/main/.claude/skills/postmortem/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/victoriacity/openakari

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for postmortem

README.md
[![agentmods](https://agentmods.dev/badge/skills/victoriacity/openakari/postmortem/github.svg)](https://agentmods.dev/skills/victoriacity/openakari/postmortem)
Your own site
<a href="https://agentmods.dev/skills/victoriacity/openakari/postmortem"><img src="https://agentmods.dev/badge/skills/victoriacity/openakari/postmortem/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for postmortem

Your own site · 80×15
<a href="https://agentmods.dev/skills/victoriacity/openakari/postmortem"><img src="https://agentmods.dev/badge/skills/victoriacity/openakari/postmortem.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,710 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.01710
Opus 5.5 $0.00009 $0.00684
Sonnet 5.5 $0.00004 $0.00342
Haiku 4.5 $0.00002 $0.00171

Measured 2mo ago against content hash 5cb1029e0b1f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

postmortem scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/postmortem/SKILL.md · 140 lines

How it starts

The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/postmortem

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.

When to use this vs alternatives

  • Use /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?"
  • Use /diagnose when the focus is on understanding empirical results — error distributions, root-cause hypotheses, validity. Diagnose analyzes data; postmortem analyzes agent reasoning.
  • Use /critique for a broad review of an artifact's quality. Critique is proactive ("find problems"); postmortem is reactive ("explain this specific failure").

Key distinction

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.

Procedure

1. Identify the flaw

State precisely what was wrong, with evidence. Quote the flawed output.

2. Trace the production chain

Walk backward through the chain that produced the flaw:

  • Who generated it? (which agent, script, or pipeline step)
  • What inputs did they have? (were the inputs sufficient to detect the flaw?)
  • What checks were skipped? (was there a review step that should have caught it?)
  • What structural condition enabled it? (missing verification gate, context window limits, anchoring on prior output, pattern-matching without verification, ungrounded generation beyond reliable recall)

3. Classify the failure mode

Which of these caused the flaw?

  • Design-as-discovery: A constraint of the experimental setup was reported as an empirical finding. The agent failed to ask "could this have been different?"
  • Layer misattribution: A property of one CI layer was attributed to another (e.g., L4 evaluation constraint reported as L1 model behavior)
  • Momentum override: The agent was executing a plan and did not pause to verify intermediate results. Production outpaced reflection.
  • Anchoring: The agent saw a number or pattern and built a narrative around it without checking the generating process.
  • Missing mental model: The agent lacked understanding of how the metric/system works and could not detect the flaw even in principle.
  • Context loss: The relevant information existed but was not in the agent's working context when the decision was made (e.g., schema defined in a different file than the analysis).
  • Social proof: The agent reported something because it looked like what a finding "should" look like, not because it was verified.
  • Ungrounded generation: The model produced plausible but factually false content because autoregressive generation cannot distinguish retrieval from novel generation. This is the default behavior of foundation models, not a situational failure — any generation task that exceeds reliably grounded knowledge will produce hallucinated output.

Read the full file on GitHub · 140 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 140 lines · 22 tokens per session scan A 5cb1029e0b1f

Subscribe to this mod's changes

postmortem is a skill published in the GitHub repository victoriacity/openakari (47 stars, last pushed 7mo ago), licensed MIT. It adds 22 tokens to every session and 1,710 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.

open-metadata/OpenMetadata · 37 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens

cwv-optimizer

Diagnose and fix Core Web Vitals issues on AEM Edge Delivery Services pages. Goes deeper than generic CWV advice by understanding EDS-specific performance patterns including the 100KB LCP budget, E-L-D loading phases, block rendering behavior, and third-party script impact. Produces specific fixes for LCP, CLS, and…

adobe/skills · 112 tokens

incident-response-incident-response

Coordinate production incident triage, mitigation, investigation, recovery, and follow-up. Use when responding to outages or other incidents that require structured operational coordination.

rmyndharis/antigravity-skills · 36 tokens

ci-fixer

CI failures - read error, minimal fix, verify.

sipyourdrink-ltd/bernstein · 15 tokens

diagnosing-missing-recordings

Diagnoses why a session recording is missing or was not captured. Use when a user asks why a session has no replay, why recordings aren't appearing, or wants to troubleshoot session replay capture issues for a specific session ID or across their project. Covers SDK diagnostic signals, project settings, sampling…

PostHog/posthog · 76 tokens