dead-code-reaper

Identify dead code in Python and TypeScript/JavaScript projects using static analysis.

1|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/snqb/my-skills --skill dead-code-reaper
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dead-code-reaper
Source: https://github.com/snqb/my-skills/tree/main/dead-code-reaper
Command: npx skills add https://github.com/snqb/my-skills --skill dead-code-reaper

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Dead code accumulates debt in codebases, causing confusion, bugs, and higher maintenance costs. This skill identifies unused functions, classes, and exports to help you safely remove them.

Core Features & Use Cases

  • Static analysis with Python's vulture to locate unused Python code.
  • TS/JS support with ts-prune to surface unused exports.
  • A verification workflow ("Double Check") to validate findings before removal.

Quick Start

Run a dead-code scan across your repository to surface candidates for removal.

Frequently Asked Questions about dead-code-reaper

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

FAQPage Schema
How do I find dead code in my Python and TypeScript projects?

To find dead code in Python and TypeScript projects, run static analysis using vulture and ts-prune. These tools identify unused functions, classes, and exports across your repository to surface candidates for safe removal.

Does vulture detect unused TypeScript exports?

No, vulture only analyzes Python code to locate unused functions and classes. To detect unused TypeScript or JavaScript exports, you need to use ts-prune within the same static analysis workflow.

How do I remove dead code without causing false positives?

To remove dead code without false positives, filter static analysis findings through an explicit verification workflow. This Double Check process validates unused functions and exports before reporting them for safe deletion.

What is the best way to reduce complexity by pruning unused functions?

The best way to reduce complexity by pruning unused functions is to run a dead-code scan using vulture for Python or ts-prune for TS/JS. This surfaces unused exports and classes for structured review and safe removal.

Can I use ts-prune to analyze JavaScript code?

Yes, ts-prune analyzes TypeScript and JavaScript projects to surface unused exports. It integrates with a verification workflow to validate findings before you remove the dead code from your repository.