dead-code-analysis

Detect unused code components in JavaScript and other static-analysis languages.

2|Updated May 15, 2026
One-click install
npx skills add https://github.com/bdbch/ai-dotfiles --skill dead-code-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dead-code-analysis
Source: https://github.com/bdbch/ai-dotfiles/tree/main/skills/dead-code-analysis
Command: npx skills add https://github.com/bdbch/ai-dotfiles --skill dead-code-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps developers pinpoint unused code in their projects, such as orphaned files, unused exports, unreachable code, and stale comments, leading to improved application performance and maintenance.

Core Features & Use Cases

  • Dead Code Detection: Identifies unused code components, reducing application bloat.
  • Orphaned Files: Finds files that exist but are never imported.
  • Unused Exports: Discovers symbols exported but never imported elsewhere.
  • Use Case: For a large JavaScript project, use this Skill to uncover unused functions and variables, streamlining the application and reducing load times.

Quick Start

Run the dead-code-analysis skill to scan your project for unused code.

Frequently Asked Questions about dead-code-analysis

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

FAQPage Schema
How do I find unused code and orphaned files in a JavaScript project?

To find unused code in a JavaScript project, run a static analysis scan to detect orphaned files, unused exports, unreachable code blocks, and stale comments without requiring manual configuration.

What is dead code analysis and how does it improve application performance?

Dead code analysis is a static analysis technique that identifies unused code components like orphaned files and unused exports, reducing application bloat and improving load times and maintenance efficiency.

Does dead code detection work with languages other than JavaScript?

Dead code detection supports JavaScript and other languages with static analysis capabilities, allowing you to uncover unused functions and variables across various software application environments.

How do I detect unused exports and unreachable code without manual setup?

You can detect unused exports and unreachable code by running an automated static analysis script that requires no manual setup, directly scanning your project to pinpoint stale code components.

What's the best way to clean up stale comments and unused functions for code optimization?

The best way to clean up stale comments and unused functions is to perform a static code analysis scan, which automatically identifies and reports these unused components for removal to streamline your application.

When should I use static analysis for dead code cleanup instead of manual code reviews?

You should use static analysis for dead code cleanup when dealing with large JavaScript projects, as it automatically detects orphaned files and unused exports more reliably and efficiently than manual code reviews.