dead-code-detector
by Timoranjes
Scan multi-language codebases for unused variables, orphaned functions, and unreachable code with severity ranking.
- Reduce bundle size and build times by removing unused exports and imports
- Clean up orphaned functions and variables after a large-scale refactoring
- Audit codebases for accidental debug statements or log leaks before release
$10
· or 50 creditsSecure checkout via Stripe
Included in download
- Clean up orphaned functions and variables after a large-scale refactoring
- Audit codebases for accidental debug statements or log leaks before release
- terminal automation included
- Ready for Claude Code
Sample input
Scan the src directory for dead code, unused imports, and debug logs. Provide a prioritized report of what I can safely delete.
Sample output
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)
dead-code-detector
by Timoranjes
Scan multi-language codebases for unused variables, orphaned functions, and unreachable code with severity ranking.
$10
· or 50 creditsSecure checkout via Stripe
Included in download
- Clean up orphaned functions and variables after a large-scale refactoring
- Audit codebases for accidental debug statements or log leaks before release
- terminal automation included
- Ready for Claude Code
- Instant install
Sample input
Scan the src directory for dead code, unused imports, and debug logs. Provide a prioritized report of what I can safely delete.
Sample output
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)
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.
Use Cases
- Reduce bundle size and build times by removing unused exports and imports
- Clean up orphaned functions and variables after a large-scale refactoring
- Audit codebases for accidental debug statements or log leaks before release
- Identify unreachable logic blocks and commented-out code to improve readability
Known Limitations
- May flag dynamic calls (reflection) as unused.
- Not 100% accurate for public APIs in library projects.
- Large codebases require multiple passes for full symbol resolution.
How to Install
mkdir -p ~/.claude/skills && curl -sL https://www.agensi.io/api/install/dead-code-detector -o /tmp/dead-code-detector.zip && unzip -o /tmp/dead-code-detector.zip -d ~/.claude/skills && rm /tmp/dead-code-detector.zipFree skills install directly. Paid skills require purchase - use the download button above after buying.
Reviews
No reviews yet - be the first to share your experience.
Only users who have downloaded or purchased this skill can leave a review.
Early access skill
Be the first to review this skill.
Only users who have downloaded or purchased this skill can leave a review.
Security Scanned
Passed automated security review
Permissions
File Scopes
Claude Code, Cursor, Windsurf, and other SKILL.md-compatible agents.
Creator
Frequently Asked Questions
Learn More About AI Agent Skills
More Premium Skills
Multi-Agent Orchestration Master Library
Transform Claude Code into a coordinated multi-agent system. Battle-tested tmux orchestration patterns, YAML task queues, event-driven communication, and parallel worker management for 8+ agents.
designing-hybrid-context-layers
Architects the right retrieval strategy for every query — teaching your agent when to use RAG, a knowledge graph, or a temporal index instead of defaulting to vector search for everything.
ai-automation-qa-pack
Professional QA & UAT documentation generator for AI automation agencies and complex agent deployments.
Bounty Security Pattern Master Library — 399 Vulnerability Patterns
A premium library of 399 vulnerability patterns and DeFi attack vectors for AI-driven bug hunting and security audits.