detect-unused-code
CommunityFind and flag dead code, keep it lean.
Authorfoolishimp
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Unused imports, dead functions, and commented-out code clutter the codebase, making it harder to understand, increasing maintenance burden, and violating the "No Legacy Baggage" principle.
Core Features & Use Cases
- Unused Code Detection: Identifies unused imports, functions/methods with zero callers, and commented-out code blocks.
- Detailed Reporting: Generates a report with locations, reasons for flagging, and suggestions for removal.
- Tech Debt Measurement: Provides a clear, quantifiable metric for technical debt related to code bloat.
- Use Case: Integrate this skill into your CI pipeline to automatically detect and report any newly introduced unused code, preventing the accumulation of technical debt over time.
Quick Start
Detect unused imports, dead code, and commented-out code in the 'auth_service.py' file.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: detect-unused-code Download link: https://github.com/foolishimp/ai_sdlc_method/archive/main.zip#detect-unused-code Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.