cleanup

Remove unused imports, variables, and dependencies from TypeScript and JavaScript frontend projects.

1|Updated Jul 15, 2026
One-click install
npx skills add https://github.com/Dzakiamriz22/frontend-pack --skill cleanup-dzakiamriz22
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cleanup
Source: https://github.com/Dzakiamriz22/frontend-pack/tree/main/skills/cleanup
Command: npx skills add https://github.com/Dzakiamriz22/frontend-pack --skill cleanup-dzakiamriz22

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ts-prune, depcheck, unimported.

What problem does it solve?

This skill addresses technical debt by identifying and removing unused code, dependencies, and assets that bloat your project and hinder maintainability.

Core Features & Use Cases

  • Dead Code Elimination: Automatically detects and removes unused imports, variables, and commented-out code.
  • Dependency Pruning: Identifies unused packages in package.json to reduce bundle size.
  • Code Quality Audit: Consolidates duplicate logic and removes debug statements like console.log to ensure a production-ready codebase.

Quick Start

Run the cleanup skill on the current directory to remove all unused imports and dead code.

Frequently Asked Questions about cleanup

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

FAQPage Schema
How do I find and remove dead code in a TypeScript frontend project?

You can identify unused npm packages by running dependency analysis tools that scan your package.json and codebase. Dependency pruning removes bloated packages to reduce bundle size and ensure a production-ready environment.

Can I safely remove unused imports and variables without breaking application functionality?

Yes, you can safely remove unused imports and variables by integrating with static analysis tools like ts-prune, depcheck, and unimported. These tools map code usage to ensure safe removal of dead code without breaking functionality.

What's the best way to audit frontend code for redundant logic and debug statements?

The best way to audit frontend code is to run a cleanup skill that consolidates duplicate logic and removes debug statements like console.log. This code quality audit ensures your codebase remains production-ready and maintainable.

Does dead code elimination work with both JavaScript and TypeScript files?

Dead code elimination works across both JavaScript and TypeScript files to detect and remove unused imports, variables, and commented-out code. It operates throughout the frontend project to prune redundant logic effectively.

Do I need specific static analysis tools to run a code quality audit?

Yes, you need static analysis tools such as ts-prune, depcheck, or unimported to execute a code quality audit. Integration with these dependencies is required to ensure safe removal of dead code and unused assets.