- Home
- Skills
- Code Quality & Review
- dead-code-detector
Dead Code Detector
Scan multi-language codebases for unused variables, orphaned functions, and unreachable code with severity ranking.
Free
Works with the AI tools you already use
dead-code-detector
Example session with this skill installed
Scan the src directory for dead code, unused imports, and debug logs. Provide a prioritized report of what I can safely delete.
- Read your context and instructions
- Compiled the dead-code-detector
Dead Code Report
CRITICAL (Safe to Remove):
- src/auth.py:12 [Unused import]
from collections import OrderedDict(Confidence: HIGH) - src/api/v1.py:45 [Unused function]
legacy_user_sync()(Confidence: HIGH)
INFO
- src/app.ts:89 [Debug statement]
console.log('User payload:', data)(Confidence: HIGH)
Connects securely to your tools. The creator never sees your data.
About this skill
Reduce Technical Debt and Codebase Bloat
As codebases evolve, unused functions, orphaned imports, and unreachable logic inevitably accumulate. This skill provides a comprehensive, multi-language engine to identify and help remove "dead" code that slows down developers and increases maintenance overhead.
What it does
The Dead Code Detector performs high-confidence static analysis across your entire project. It goes beyond simple linter rules by cross-referencing symbols across files to ensure a function or variable really isn't used anywhere in the codebase. It detects:
- Unused imports, variables, and private methods.
- Orphaned functions, classes, and exported symbols.
- Unreachable code paths after return or throw statements.
- Leftover debugging statements (console.log, debugger) and large commented-out code blocks.
Supported Languages & Frameworks
Developed for polyglot environments, it supports Python, JavaScript/TypeScript, Go, Rust, Java, and C/C++. It is framework-aware, meaning it understands that decorators in Flask/Django or components in React/Vue constitute "usage" even if they lack direct references in the source logic.
Why use this skill?
Unlike raw AI prompts that only see the current file, this skill applies a systematic multi-pass workflow. It validates findings against project-wide greps, handles framework-specific entry points, and recognizes dynamic usage patterns (like reflection or DI). The result is a severity-ranked report that distinguishes between "Safe to Remove" and "Verify Before Removal," giving you 100% confidence before hitting delete.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
2 installs
Downloaded by developers to date
Free forever
No account required to browse
Trust & safety
Security scanned
Verified clean 3 months ago
- Free to download with an account