analyze-dead-code

Find unused code, deprecated paths, and documentation drift. Use when cleaning up codebase, preparing for refactor, or auditing technical debt.

akashmeshram/claude-disco1 installsMITSynced Aug 22

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI

Agent Skills format with YAML frontmatter. Claude Code reads it as-is.

---
name: "analyze-dead-code"
description: "Find unused code, deprecated paths, and documentation drift. Use when cleaning up codebase, preparing for refactor, or auditing technical debt."
license: "MIT"
---

# Analyze Dead Code

Detect unused and deprecated code using the `dead-code-analyzer` agent.

## What It Finds

1. **Dead Code** - Functions, classes, modules, variables never used
2. **Deprecated Paths** - Code reachable but abandoned or marked for removal
3. **Documentation Drift** - Code that contradicts README, comments, or docstrings

## When to Use

- "Clean up unused code"
- "Is this function used anywhere?"
- "Audit before major refactor"
- "Check if docs match implementation"

## Output

```
### Dead Code Inventory
| Location | Type | Confidence | Notes |
|----------|------|------------|-------|

### Deprecated Paths
| Location | Pattern | Signal | Recommendation |

### Documentation Divergence
| Documented Claim | Actual State | Severity |

### Summary
- High confidence (safe to remove): X items
- Medium confidence (verify first): X items
- Priority actions: [list]
```

## Agent

Use `subagent_type: dead-code-analyzer`

More Refactoring skills

← All Refactoring skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY