code-autopsy

code-autopsy is a skill for Claude Code, Codex from AlexZio00/sovereign-skills. It costs 126 tokens per session (7,006 once invoked), scanned A, original, MIT.

A structured code-review and security-audit workflow that examines source code through 12 questions, assigns severity scores, and gives a deployment verdict.

In plain words
What is it for?
Finding bugs and security issues, reviewing code changes, running audits, scoring risks, deciding whether code is ready to deploy, and suggesting fixes as diffs.
Why use it?
It makes findings traceable and limits conclusions to issues supported by the code, while highlighting critical problems and their likely fixes.

Skill for Claude CodeCodex

Written for Claude Code and Codex: user-invocable in frontmatter, but also agents/openai.yaml present. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Part of the code-autopsy plugin — 1 skill shipped together

Good fit Finding bugs and security issues, reviewing code changes, running audits, scoring risks, deciding whether code is ready to deploy, and suggesting fixes as diffs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alexzio00/sovereign-skills/code-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 AlexZio00/sovereign-skills --skill code-autopsy
Clone the repo
git clone --depth 1 https://github.com/AlexZio00/sovereign-skills

Made for: Claude Code, Codex.

Or install code-autopsy, the plugin that ships this one along with the rest of its 1 skill.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexzio00/sovereign-skills/code-autopsy"><img src="https://agentmods.dev/badge/skills/alexzio00/sovereign-skills/code-autopsy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,006 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00126 $0.07006
Opus 5.5 $0.00050 $0.02802
Sonnet 5.5 $0.00025 $0.01401
Haiku 4.5 $0.00013 $0.00701

Measured 6d ago against content hash b88857fbe73c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-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 6d 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.

code-autopsy/SKILL.md · 267 lines

How it starts

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

🔬 CODE AUTOPSY v7.3 "12 Questions + Quantified + Deployment Verdict + diff mode + CRITICAL hard cap + Factuality Gate"

Identity: Staff Security Engineer (20yr experience) Mission: Trust nothing. Find bugs, score severity, decide deployment. Identify the dominant variable early and design the evaluation around it. Language: Match the user's language. Technical terms in English.

[CONSTRAINTS — Allow-list] Allowed: 12Q code analysis, Severity scoring (Anchor Table), diff suggestions, audit tool execution, deployment verdict, composite score Forbidden: Speculation (unverified claims), empty praise ("looks clean"), CVE fabrication (audit-confirmed only), out-of-code judgment Default: anything not allowed is blocked (fail-closed) Read-only: never edit, create or delete files in the reviewed repository. Fixes appear only as diffs inside the report. Bash is for read-only inspection (git, grep, audit tools, scoring arithmetic).

[OPERATING RULES]

  • Every finding must cite filename:line_number.
  • Evidence tier required (one tag set, used everywhere in this file): tag every finding with exactly one of [doc-confirmed: file:line] (read and confirmed), [run-confirmed: the command actually run] (executed in this session and observed), [assumed] (rests on a premise you could not check, such as missing config or an unknown stack) or [unverifiable] (cannot be checked from the repository at all). Never tag run-confirmed on something you did not run. NEEDS-VALIDATION is a finding status, not an evidence tag: such a finding also carries [assumed]. End the full report with FACT_GATE doc=<n> run=<n> assumed=<n> unverifiable=<n>, counting every finding in the report once, pre-existing and NEEDS-VALIDATION ones included. Quick and Fast modes skip the labels and the count line.
  • Fix suggestions must be in diff format — except a finding whose verdict depends on a fact outside the code (deploy config, environment variables, an external service); see [INPUT FAILURE MODE].
  • Operational evidence is allowed (read-only): an implementer's claim is not evidence, but operational artifacts already in the repository (execution log counts, DB row counts, run-record JSON, documented flag states) may be read to judge Probability and reachability. Tag what you read [run-confirmed: command]; tag what you could not check [assumed]. Never read .env or other secret files — if a flag value decides the verdict and no artifact shows it, mark the finding NEEDS-VALIDATION.
  • Merge issues from the same root cause.
  • Factuality Gate: Self-verify before reporting — "Does this comment accurately describe the code?"
  • Neutralize question framing: when asked "does this code satisfy X", also search for counter-examples (inputs or paths where X fails) and report counter_examples_searched (what was searched, what was found). Do not answer only from confirming evidence.
  • Don't align to the expected conclusion: look for counter-evidence to the conclusion the requester seems to expect first, but do not raise skepticism across the board — a uniformly harsher review just rejects valid code.

[SILENT FAILURE RULES — Grep before reading code]

Pattern Severity Detection
Empty except / except pass CRITICAL grep -n "except.*pass"
Error logged, user not notified HIGH logger.error → return None
Broad catch swallowing exceptions HIGH except Exception + continue
Hidden fallback MEDIUM or default pattern

[INPUT FAILURE MODE]

  • Partial code: "Analysis scope: N files. Rest unexamined."
  • Missing config: [assumed] tag, proceed with general assumptions. But for a finding whose verdict depends on the missing fact, do not emit a Fix diff — write NEEDS-VALIDATION: <the one missing fact> instead and exclude it from the verdict counts, so an unconfirmed premise never gets correct code "fixed". If any NEEDS-VALIDATION item is a CRITICAL candidate or a security (Q5) item, the verdict cannot be SHIP IT (at best FIX FIRST, same cap as a confirmed NEW CRITICAL; see [VERDICT RULES]) until the fact is confirmed — excluding it from the counts must not bypass the cap.
  • No test files: "Test coverage unverifiable." Reflect in Robustness.
  • Unknown stack: Infer from extensions + patterns, [assumed] tag.

Read the full file on GitHub · 267 lines

Files

What ships with it

2 files 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. 6d ago Changed · +35 lines · +123 tokens per session b88857fbe73c
  2. 18d ago Changed · +8 lines 444bb61665c1
  3. 1mo ago Changed · +2 lines 209e95594054
  4. 1mo ago Changed · +2 lines aa86a08b0d77
  5. 1mo ago First seen · 220 lines · 3 tokens per session scan A 2df376624149

Subscribe to this mod's changes

code-autopsy is a skill published in the GitHub repository AlexZio00/sovereign-skills (149 stars, last pushed 7d ago), licensed MIT. It adds 126 tokens to every session and 7,006 once invoked, about $0.0005 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

nobrainer-review

Use when the owner says nb-review, deep-audit, deep-code-review, or deep-autoreview; explicitly requests an evidence-gated CLOSEOUT, adversarial BUGHUNT or RELEASEGATE; or needs final findings filtered to verified actionable defects. Use nobrainer-build for ordinary implementation and correction work.

nobrainer-tech/nobrainer-tech-skills · 67 tokens

review-work

Post-implementation gate review: run manual QA on the real surface yourself, then launch ONE gate reviewer (never a panel) to audit goal, constraints, code quality, security, missed context, and QA evidence. Use before a PR handoff or when the user explicitly asks to review completed work.

code-yeongyu/oh-my-openagent · 63 tokens

ijfw-cross-audit

Generate a cross-platform multi-model audit (Trident) on a diff, brief, or artifact. Trigger: 'cross audit', 'Trident', 'second opinion', 'check with other models', 'check with other AIs', 'cross-check this', 'get another perspective', /cross-audit.

FerroxLabs/ijfw · 67 tokens

doubt-driven-development

Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when correctness matters more than speed, when working in unfamiliar code, when stakes are high (production, security-sensitive logic, irreversible operations), or any time a confident output would be cheaper to verify now…

jcarlosrodicio/opencode-agent-orchestration-kit · 67 tokens

oak-adversarial-review

Use for every final review of a diff - an independent pass that assumes the change is wrong, accounts for every changed file, attacks it along fixed dimensions, fact-checks its own findings and ends in an explicit verdict. Use also when the user asks for a red-team or devil's-advocate review.

jcarlosrodicio/opencode-agent-orchestration-kit · 68 tokens

ap-juror

Report the compatibility redirect to ap-independent-checker; this retired role cannot perform new work.

Spielewoy/autoprompt-skill · 24 tokens