code-cleanup

Remove dead code, unused imports, and empty directories across multiple languages.

1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/wildbitca/ai-resources --skill code-cleanup-wildbitca
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-cleanup
Source: https://github.com/wildbitca/ai-resources/tree/main/skills/code-cleanup
Command: npx skills add https://github.com/wildbitca/ai-resources --skill code-cleanup-wildbitca

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Removes dead code, unused imports, and empty directories across multiple languages to reduce technical debt and improve maintainability.

Core Features & Use Cases

  • Deletes unused code paths and redundant imports without reformatting.
  • Prunes empty directories and irrelevant config noise to keep repositories clean.
  • Applies analyzer fixes and lint checks to reach a healthier codebase.

Quick Start

Apply the code cleanup rules to your project to remove dead code, unused imports, and empty directories while ensuring analyzer compliance.

Frequently Asked Questions about code-cleanup

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

FAQPage Schema
How do I remove dead code and unused imports across multiple programming languages?

To remove dead code and unused imports across multiple languages, apply cross-language cleanup rules that delete redundant code paths without reformatting your files. This skill handles Dart, Bash, Python, Java, Kotlin, Swift, and TypeScript projects to improve maintainability.

What is the best way to prune empty directories and clean up code without changing formatting?

The best way to prune empty directories and clean up code without changing formatting is to use a tool that enforces cleanup actions independently of code formatters. This ensures your repository stays clean while preserving your existing styling and layout conventions.

Does this code cleanup approach work with both Swift and Kotlin projects?

Yes, this code cleanup approach works with both Swift and Kotlin projects, alongside Dart, Bash, Python, Java, and TypeScript/JavaScript. It applies analyzer fixes and lint checks to remove dead code and unused imports across all these supported environments.

How do static analysis and linters integrate with dead code removal?

Static analysis and linters integrate with dead code removal by identifying unused imports and redundant code paths, then applying analyzer fixes to reach a healthier codebase. This skill relies on existing analyzers to enforce cleanup actions without applying code formatting.

Can I use this to clean up unused imports in TypeScript and JavaScript repositories?

Yes, you can use this to clean up unused imports in TypeScript and JavaScript repositories. It deletes unused code paths and redundant imports across your project while preserving behavior and ensuring analyzer compliance without reformatting your code.