dead-code-cleanup

Official

Safely prune dead code for a cleaner codebase.

Authorspecvital
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps teams identify and safely remove dead code, deprecated code, and unused exports from a codebase, reducing maintenance costs and preventing legacy bloat.

Core Features & Use Cases

  • Detect unused exports, functions, and classes with no references.
  • Identify deprecated code (with TODO/FIXME markers) and orphaned files that are no longer imported or referenced.
  • Enforce preservation rules to protect public APIs, tests, and critical build assets during cleanup.
  • Use case: clean up a large monorepo without breaking builds by running a dry-run first, then applying safe deletions.

Quick Start

Run the cleanup against your repository:

  • dead-code-cleanup --dry-run
  • dead-code-cleanup path/to/target
  • dead-code-cleanup --auto After each batch, run your standard build and tests to verify integrity.

Dependency Matrix

Required Modules

None required

Components

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: dead-code-cleanup
Download link: https://github.com/specvital/infra/archive/main.zip#dead-code-cleanup

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.