Identify and analyze unused or redundant code including unused functions/methods, unused variables/imports, unreachable code, and redundant conditions. Use when cleaning up codebases, improving maintainability, reducing technical debt, or conducting code quality audits. Analyzes Python code using AST analysis and produces markdown reports listing dead code locations with line numbers, severity ratings, and recommendations. Triggers when users ask to find dead code, remove unused code, identify unused imports, find unreachable code, or clean up redundant logic.
81
75%
Does it follow best practices?
Impact
93%
2.06xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/dead-code-eliminator/SKILL.mdBundled script analysis
find_unused_functions.py used
0%
100%
find_unused_imports.py used
0%
100%
Correct unused functions identified
100%
100%
Private functions excluded
0%
100%
Test functions excluded
0%
100%
Directory exclusion used
0%
50%
Multi-tool report structure
Bundled script used
0%
100%
External tool used
0%
0%
Summary section present
100%
100%
Priority sections present
25%
100%
File and line numbers included
100%
100%
Unreachable code is high priority
60%
100%
Unused imports are high priority
0%
100%
Needs Verification section present
33%
100%
Recommendations with CI/CD prevention
100%
100%
Dynamic dispatch verification
Dynamic handlers not confirmed dead
100%
100%
Dynamic handlers flagged for verification
100%
100%
Genuinely unused functions identified
100%
100%
String reference check performed
0%
85%
Entry point checked
100%
100%
Grep verification used
0%
77%
0f00a4f
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.