dead-code-detector
by Zicheng Liao
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
Secure 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
- Includes example output and usage patterns
See it in action
A real example of what this skill takes in and produces.
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 Zicheng Liao
Scan multi-language codebases for unused variables, orphaned functions, and unreachable code with severity ranking.
Secure 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
- Includes example output and usage patterns
- Instant install
See it in action
A real example of what this skill takes in and produces.
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
How to Install
mkdir -p ~/.claude/skills && curl -sL https://www.agensi.io/api/install/dead-code-detector | tar xz -C ~/.claude/skills/Free 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
Creator
Frequently Asked Questions
Learn More About AI Agent Skills
More Premium Skills
software-architect
A structured framework for planning, reviewing, and evolving complex software systems with explicit trade-offs.
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.
consumer-motivation-analyzer
Go beyond surface-level feedback to uncover the psychological drivers and hidden motivations behind buyer behavior.
keyword-research
Transform URLs or product lists into SEO keyword research packs with Google Ads data and intent-based clustering.