production-autopsy

production-autopsy is a skill for Claude Code from ByteStack-Labs/claude-plugins. It costs 258 tokens per session (3,088 once invoked), scanned A, original, MIT.

A diagnostic procedure for finding why a machine-learning, language-model, or agent system performs differently in production than in testing.

In plain words
What is it for?
It helps reproduce production failures, measure differences across user or data groups, check whether confidence scores remain reliable, and test possible causes by removing parts of the system.
Why use it?
It separates problems in the evaluation data from problems that appear after deployment, then supports the suspected cause with repeatable measurements.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agent-reliability plugin — 4 skills shipped together

Good fit It helps reproduce production failures, measure differences across user or data groups, check whether confidence scores remain reliable, and test possible causes by removing parts of the system.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bytestack-labs/claude-plugins/production-autopsy
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ByteStack-Labs/claude-plugins --skill production-autopsy
Clone the repo
git clone --depth 1 https://github.com/ByteStack-Labs/claude-plugins

Made for: Claude Code.

Or install agent-reliability, the plugin that ships this one along with the rest of its 4 skills.

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 production-autopsy

README.md
[![agentmods](https://agentmods.dev/badge/skills/bytestack-labs/claude-plugins/production-autopsy/github.svg)](https://agentmods.dev/skills/bytestack-labs/claude-plugins/production-autopsy)
Your own site
<a href="https://agentmods.dev/skills/bytestack-labs/claude-plugins/production-autopsy"><img src="https://agentmods.dev/badge/skills/bytestack-labs/claude-plugins/production-autopsy/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 production-autopsy

Your own site · 80×15
<a href="https://agentmods.dev/skills/bytestack-labs/claude-plugins/production-autopsy"><img src="https://agentmods.dev/badge/skills/bytestack-labs/claude-plugins/production-autopsy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 258 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,088 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.00258 $0.03088
Opus 5 $0.00129 $0.01544
Sonnet 5 $0.00052 $0.00618
Haiku 4.5 $0.00026 $0.00309

Measured 9d ago against content hash 4d145c22e78b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

production-autopsy 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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/finalize.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

agent-reliability/skills/production-autopsy/SKILL.md · 257 lines

How it starts

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

Production Autopsy

A system that scores 99.75% on evaluation can still be wrong 10% of the time in production. That is not a contradiction. It means the evaluation measured something other than what deployment requires. This skill exists to find what the model or agent actually learned, why it fails where it fails, and to prove both with numbers that anyone can reproduce.

The output is a diagnostic, not a fix. The goal is a defensible root cause, backed by measurement, that a team can act on. Resist the pull to jump to remediation before the failure is reproduced and explained.

How to run it

This is the start-here skill. Point your coding agent at the system and let it work the procedure:

Run production-autopsy on this system. Treat the eval set and the production behavior as separate distributions. Reproduce the failure on production-realistic inputs, quantify the gap by slice, test confidence calibration under the shift, and isolate root cause by ablation. Verify every number with runnable code, separate measured from inferred, and produce the prioritized report. Where a finding needs depth, use the matching skill in this plugin.

If you are new to this or inheriting a system you did not build, run the full audit. If you already know which failure you are chasing, skip to the matching deep skill listed under "Triage and hand-off" below.

Core commitments

These are non-negotiable and define the methodology:

  • Every number is verified, never asserted. Each quantitative claim in the report must trace to a specific measurement produced by runnable code. If a figure cannot be reproduced, it does not go in the report. No estimated, remembered, or "approximately" numbers.
  • Measure the gap, not the headline. A single aggregate score (accuracy, exact match, win rate, task success) is the thing that hid the failure in the first place. Always decompose: by input slice, by distribution, by confidence band, and for agents, by step in the trajectory.
  • Separate measured from inferred. State plainly which conclusions are directly measured and which are hypotheses still to be tested. Calibrate the confidence of the diagnosis itself.
  • Reproducibility is part of the deliverable. The diagnosis is only as good as the script that regenerates it. Seed everything. Report the compute envelope.
  • Never regenerate committed fixture data. If the target already ships a fixture (committed data/, results/, or equivalent), treat it as immutable ground truth and measure against it as-is. Synthesize new data only when none exists, and say so explicitly. Re-deriving committed numbers is the job; overwriting the inputs that produced them is never permitted.

Read the full file on GitHub · 257 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 257 lines · 258 tokens per session scan A 4d145c22e78b

Subscribe to this mod's changes

production-autopsy is a skill published in the GitHub repository ByteStack-Labs/claude-plugins (2 stars, last pushed 2mo ago), licensed MIT. It adds 258 tokens to every session and 3,088 once invoked, about $0.0013 per session on Opus 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-31.