dead-code

Identify unused exports, variables, functions, and dependencies in TypeScript, JavaScript, and Python codebases.

11|Updated Apr 16, 2026
One-click install
npx skills add https://github.com/berkcangumusisik/claude-code-practices --skill dead-code-berkcangumusisik
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dead-code
Source: https://github.com/berkcangumusisik/claude-code-practices/tree/main/skills/dead-code
Command: npx skills add https://github.com/berkcangumusisik/claude-code-practices --skill dead-code-berkcangumusisik

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyzes a codebase to identify unused exports, variables, functions, and dependencies, enabling safer cleanup and reduced maintenance burden.

Core Features & Use Cases

  • Detects unreferenced exports and symbols across files
  • Suggests safe removal plans with impact checks
  • Supports refactor workflows by pruning dead code without breaking behavior
  • Use Case: During a large cleanup, identify and remove unreachable or unused code paths to shrink the codebase and improve readability.

Quick Start

Run the dead-code analysis on your TypeScript or JavaScript project to enumerate unused exports and dead definitions.

Frequently Asked Questions about dead-code

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

FAQPage Schema
How do I find unused exports and dead code in a TypeScript project?

Run static analysis across your TypeScript source files to detect unreferenced variables, functions, and dependencies. This identifies unused exports and dead code for safe removal.

What is the best way to clean up dead code during a large refactor?

Perform cross-file usage checks to identify unreachable code paths and generate safe deletion plans. This prunes dead code during refactoring without breaking existing behavior.

Can I use static analysis to find unused JavaScript dependencies?

Yes, static analysis can find unused JavaScript dependencies by scanning your codebase for unimported modules and unreferenced symbols, which reduces maintenance burden and enables safer cleanup.

Does dead code detection work for Python projects as well as JavaScript?

Dead code detection is applicable to both large TypeScript/JavaScript and Python projects. It identifies unused exports, variables, functions, and dependencies across the entire codebase.

How do I prevent regressions when removing unreachable code paths?

Prevent regressions when removing unreachable code paths by following safe deletion guidance with impact checks. You can also verify changes via tests to ensure no broken behavior.

When should I run a dead code analysis on my codebase?

Run a dead code analysis during cleanup sprints, refactors, or onboarding to reduce technical debt. It identifies and removes unreachable or unimported code safely across your project.