Skip to content
Back to skills

Find Dead Code

ASecurity

Finds unused exports, files and dependencies and shows the evidence for each, so you can delete with confidence.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 15, 2026
ai-agentsgo

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill find-dead-code --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Find Dead Code?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Find Dead Code
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-find-dead-code-ai-agent-templates/badge)](https://www.skillsdirectory.com/skills/workspace-templates-find-dead-code-ai-agent-templates)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: find-dead-code
description: Finds unused exports, files and dependencies and shows the evidence for each, so you can delete with confidence.
disable-model-invocation: true
---

Find dead code in: $ARGUMENTS (whole project if empty).

1. Use the project's own tools first if present (knip, ts-prune, depcheck, vulture, deadcode, `go vet`). Otherwise search by hand.
2. For each candidate export, file or dependency, search the whole repository, including tests, scripts, config, templates and docs, for the name and its string forms.
3. Check dynamic use before calling anything dead: route or plugin auto-loading, dependency injection, reflection, `require(variable)`, framework conventions such as pages and migrations, and exports meant for outside consumers.
4. Rate each: **certain** (no reference anywhere), **likely** (referenced only by other dead code or tests), **unsure** (dynamic or public use possible).
5. Never delete anything in this step.

Report a table with item, location, evidence (the searches run and their results), and confidence. List unused dependencies separately with the file that last imported them. Then ask which group to remove, and run the tests after removal.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.