quality-dead-code-analyzer

Analyze software projects for dead code, duplicates, and circular dependencies.

7|Updated May 28, 2026
One-click install
npx skills add https://github.com/zcaceres/skills --skill quality-dead-code-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: quality-dead-code-analyzer
Source: https://github.com/zcaceres/skills/tree/main/skills/quality-dead-code-analyzer
Command: npx skills add https://github.com/zcaceres/skills --skill quality-dead-code-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill eliminates technical debt by identifying unused code, duplicate logic, and circular dependencies that clutter your project and complicate maintenance.

Core Features & Use Cases

  • Dead Code Detection: Uses knip to find unused exports, files, and dependencies.
  • Duplicate Analysis: Uses jscpd to identify redundant code blocks that should be refactored.
  • Dependency Health: Uses madge to map and detect circular dependency chains.
  • Use Case: Run this before a major refactor to safely identify and remove legacy modules that are no longer imported or used by the application.

Quick Start

Ask the agent to analyze the current repository for dead code and duplicate files using the quality-dead-code-analyzer skill.

Frequently Asked Questions about quality-dead-code-analyzer

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

FAQPage Schema
How do I find unused exports and dead code in my repository?

To detect duplicate code blocks for refactoring, static analysis tools like jscpd scan your project to identify redundant logic, enabling you to consolidate duplicated blocks and reduce technical debt during repository maintenance.

What is the best way to detect circular dependencies before a major refactor?

You need npx or bunx available in your environment, as these runners execute the required static analysis tools—knip, jscpd, and madge—while validating their results against your project configuration files.

How do I detect duplicate code blocks for refactoring?

To detect duplicate code blocks for refactoring, static analysis tools like jscpd scan your project to identify redundant logic, enabling you to consolidate duplicated blocks and reduce technical debt during repository maintenance.

Do I need npx or bunx to run static analysis for dead code?

You need npx or bunx available in your environment, as these runners execute the required static analysis tools—knip, jscpd, and madge—while validating their results against your project configuration files.

Can static analysis tools validate dead code results against my project configuration?

Yes, static analysis tools like knip validate detected unused exports and dead code against your project configuration files, ensuring that identified legacy modules are genuinely safe to remove during cleanup.