autopsy

autopsy is a skill for Claude Code from Rune-kit/rune. It costs 68 tokens per session (3,994 once invoked), scanned A, original, MIT.

A codebase health assessment for older or difficult projects. It examines complexity, dependencies, unused code, technical debt, and Git change hotspots, where hotspots are files that change often.

In plain words
What is it for?
It is for diagnosing legacy code, assessing an external GitHub repository, and finding areas that need refactoring or further investigation.
Why use it?
It helps explain why a project is hard to maintain before you start repairing or refactoring it. It turns scattered technical problems into a module-by-module health view and rescue plan.

Skill for Claude Code

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

Part of the rune plugin — 66 skills, 1 command, 66 agents, 6 hooks shipped together

Good fit It is for diagnosing legacy code, assessing an external GitHub repository, and finding areas that need refactoring or further investigation.

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

Made for: Claude Code.

Or install rune, the plugin that ships this one along with the rest of its 66 skills, 1 command, 66 agents, 6 hooks.

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 autopsy

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rune-kit/rune/autopsy"><img src="https://agentmods.dev/badge/skills/rune-kit/rune/autopsy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,994 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00068 $0.03994
Opus 5.5 $0.00027 $0.01598
Sonnet 5.5 $0.00014 $0.00799
Haiku 4.5 $0.00007 $0.00399

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

Security

Grade A, and why

autopsy scanned grade A with 1 finding 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 8d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

# Fetch via GitHub API (requires gh CLI or curl + GITHUB_TOKEN)
skills/autopsy/SKILL.md · 381 lines

How it starts

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

autopsy

Purpose

Full codebase health assessment for legacy projects. Autopsy analyzes complexity, dependency coupling, dead code, tech debt, and git hotspots to produce a health score per module and a prioritized rescue plan. Uses opus for deep analysis quality.

Called By (inbound)

  • rescue (L1): Phase 0 RECON — assess damage before refactoring
  • onboard (L2): when project appears messy during onboarding
  • audit (L2): Phase 3 code quality and complexity assessment
  • incident (L2): root cause analysis after containment

Calls (outbound)

  • scout (L2): deep structural scan — files, LOC, entry points, imports
  • research (L3): identify if tech stack is outdated
  • trend-scout (L3): compare against current best practices
  • journal (L3): record health assessment findings

Execution Steps

Step 0 — Repo intelligence (if GitHub-hosted)

If the project is a GitHub repository, gather repo-level metrics before diving into code:

# Fetch via GitHub API (requires gh CLI or curl + GITHUB_TOKEN)
gh api repos/{owner}/{repo} --jq '{stars: .stargazers_count, forks: .forks_count, open_issues: .open_issues_count, license: .license.spdx_id, language: .language, topics: .topics, created: .created_at, pushed: .pushed_at}'

# Contributor count and top contributors
gh api repos/{owner}/{repo}/contributors --jq 'length' 
gh api repos/{owner}/{repo}/contributors --jq '.[0:5] | .[] | "\(.login): \(.contributions)"'

# Commit frequency (last 52 weeks)
gh api repos/{owner}/{repo}/stats/commit_activity --jq '[.[] | .total] | add'

# Language byte distribution
gh api repos/{owner}/{repo}/languages

Record in working notes:

  • Activity signal: commits/week (>5 = active, 1-5 = maintained, <1 = stale)
  • Bus factor: contributor count (1 = critical risk, 2-3 = low, >5 = healthy)
  • Community signal: stars/forks ratio, open issue count, staleness of latest push

Skip this step for local-only projects with no remote.

Step 1 — Structure scan

Read the full file on GitHub · 381 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. 8d ago First seen · 381 lines · 68 tokens per session scan A 27f283dcf1a9

Subscribe to this mod's changes

autopsy is a skill published in the GitHub repository Rune-kit/rune (96 stars, last pushed yesterday), licensed MIT. It adds 68 tokens to every session and 3,994 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-22.

Related

autopsy compared with skills from other repositories

autopsy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
autopsyRune-kit/runeSkill96yesterdayMITA68Claude Code
checktw93/WazaSkill7.7k12d agoMITA41Claude Code
autonomous-tdd-debuggerroedyrustam/vibes-plugSkill1293d agoMITA43Cursor
fix-pr-review-looprichkuo/rk-skillsSkill50todayMITA90Claude Code
create-releaserichkuo/rk-skillsSkill50todayMITA45Claude Code
new-issuerichkuo/rk-skillsSkill50todayMITA70Claude Code
doris-debug-importapache/doris-skillsSkill524d agoApache-2.0A58Claude Code, Codex