Forensic codebase analysis. 16 diagnostics, health score, architecture map, complexity heatmap, risk matrix — interactive HTML reports.
npx claudepluginhub onespiral/code-autopsyForensic codebase analysis with 16 diagnostics and interactive HTML reports
Forensic codebase analysis. Find what's really wrong.
Point code-autopsy at any codebase and get a full diagnostic report — architecture map, tech debt score, complexity heatmap, security risks, and 12 more diagnostics. The output is an interactive HTML report you can share with your team, attach to a PR, or use in a technical review.
Like getting a full-body MRI for your code. It finds what you knew was wrong, what you suspected was wrong, and what you had no idea was wrong.
Each codebase gets a health score (0–100) broken into four categories, each scored independently:
| Category | What it measures |
|---|---|
| 🏗️ Architecture | Dependency graph, circular deps, layer violations, module cohesion |
| 🔬 Code Quality | Complexity heatmap, dead code, naming consistency, error handling |
| 🔧 Maintenance | Dependency health, test coverage, documentation, git health |
| ⚠️ Risk | Security surface, performance red flags, scalability bottlenecks, migration difficulty |
Visual dependency graph showing module relationships, circular dependencies, and "god modules" that everything imports.
Every file colored by composite complexity: nesting depth × function length × cyclomatic complexity × parameter count. Red = needs attention. Green = clean.
Each diagnostic produces a score (0–100), concrete evidence, and a specific recommendation. No vague warnings — every finding is backed by file names, line numbers, and counts.
| # | Diagnostic | What it catches |
|---|---|---|
| D1 | Dependency Graph | Circular deps, god modules, coupling score |
| D2 | Layer Violations | UI importing data layer, reverse dependencies |
| D3 | Module Cohesion | Directories with unrelated files |
| D4 | Entry Points | Duplicated initialization, spaghetti startup |
| D5 | Complexity | Functions with 12 nesting levels, 200-line methods |
| D6 | Dead Code | Unused exports, unreachable files, stale TODOs |
| D7 | Naming | snake_case in a camelCase codebase |
| D8 | Error Handling | Empty catch blocks, unprotected API endpoints |
| D9 | Dependencies | Deprecated packages, dependency bloat |
| D10 | Test Coverage | Untested controllers, missing integration tests |
| D11 | Documentation | README quality, JSDoc coverage, architecture docs |
| D12 | Git Health | Commit frequency, bus factor, contributor spread |
| D13 | Security | Hardcoded secrets, SQL injection, XSS vectors |
| D14 | Performance | N+1 queries, missing pagination, bundle bloat |
| D15 | Scalability | Missing connection pools, synchronous I/O in async |
| D16 | Migration | Framework coupling, version lock-in, upgrade effort |
2×2 grid plotting each risk by likelihood × impact. Instantly shows where the real danger is.
Prioritized by impact ÷ effort — not severity alone. A critical fix that takes 15 minutes ranks above a medium fix that takes a week.
Commit frequency chart showing team velocity over the last 6 months.
curl -fsSL https://raw.githubusercontent.com/OneSpiral/code-autopsy/main/install.sh | bash
/plugin marketplace add OneSpiral/code-autopsy
# Claude Code
git clone https://github.com/OneSpiral/code-autopsy.git ~/.claude/skills/code-autopsy
# Codex CLI
git clone https://github.com/OneSpiral/code-autopsy.git ~/.codex/skills/code-autopsy
# Pi
git clone https://github.com/OneSpiral/code-autopsy.git ~/.pi/agent/skills/code-autopsy
# OpenCode
git clone https://github.com/OneSpiral/code-autopsy.git ~/.opencode/skills/code-autopsy
Copy SKILL.md into your agent's skills directory. Single file, no dependencies.
> Run a code autopsy on this project
or