Analyze Dead Code

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

tomevault-io 75d193a 2 files · 2.0 KB Updated

File contents

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


Converted and distributed by TomeVault — claim your Tome and manage your conversions.

tomevault-io/skills-registry/tree/main/akashmeshram--claude-disco--analyze-dead-code commit 75d193acb1

Frequently asked questions

npx skillmds@latest add tomevault-io/analyze-dead-code