deadcode-scan

Scan project directories for dead and unused code with severity scoring.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/Objective-Arts/lens-dist --skill deadcode-scan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deadcode-scan
Source: https://github.com/Objective-Arts/lens-dist/tree/main/skills/deadcode-scan
Command: npx skills add https://github.com/Objective-Arts/lens-dist --skill deadcode-scan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill identifies and reports on dead and unused code within a project, helping to reduce maintenance overhead and improve code clarity without making any modifications.

Core Features & Use Cases

  • Comprehensive Dead Code Detection: Analyzes various forms of unused code, including orphaned files, unreachable logic, unused exports, dead branches, and unused variables.
  • Severity Scoring: Assigns a weighted score to different categories of dead code, providing a "Dead Code Index" to gauge the overall health of the codebase.
  • Use Case: Before undertaking a major refactoring effort, run this scan to understand the extent of dead code, allowing you to focus cleanup efforts effectively.

Quick Start

Run a read-only scan for dead and unused code in the current project directory.

Frequently Asked Questions about deadcode-scan

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is dead code detection and how does it improve code hygiene?

A dead code scan identifies unused exports, dead branches, and orphaned files to reduce maintenance overhead and improve code clarity without making any modifications to your project.

When should I run an unused code analysis before refactoring?

You assess severity using a weighted Dead Code Index that scores different categories of unused code, providing a clear metric to gauge overall codebase health and focus cleanup efforts.

How do I assess the severity of unused code in a codebase?

You should run an unused code analysis before major refactoring to understand the extent of dead code, allowing you to target cleanup efforts effectively and reduce maintenance overhead.

Can static analysis detect orphaned files and unreachable code without modifying my project?

Yes, static analysis can safely detect orphaned files and unreachable code through a read-only scan that reports findings without making any modifications to your project files.