cleanup-unused

Identify and remove unused code, exports, files, and dependencies from a codebase.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/raintree-technology/agent-starter --skill cleanup-unused-raintree-technology
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cleanup-unused
Source: https://github.com/raintree-technology/agent-starter/tree/main/templates/.claude/skills/cleanup-unused
Command: npx skills add https://github.com/raintree-technology/agent-starter --skill cleanup-unused-raintree-technology

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of identifying and removing unused code, exports, files, and dependencies, which helps maintain a clean and efficient codebase.

Core Features & Use Cases

  • Detect Unused Code: Scans your codebase for unused code, exports, files, and dependencies.
  • Confidence Ratings: Provides confidence ratings for suggested deletions.
  • Automated Removal: Applies HIGH-confidence deletions automatically.
  • Critical Assessment: Writes a detailed report with human-readable analysis and recommendations.
  • Use Case: When you want to clean up a codebase, remove dead code, or find unused exports and dependencies.

Quick Start

Run the cleanup-unused skill to automatically detect and remove unused code in your current project.

Frequently Asked Questions about cleanup-unused

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

FAQPage Schema
How do I automatically detect and remove unused code and dependencies?

To automatically detect and remove unused code, you can run this skill to scan your codebase for unused exports, files, and dependencies, applying HIGH-confidence deletions automatically while generating a detailed report.

Can I automatically delete dead code without manually reviewing every file?

Yes, automated dead code deletion applies HIGH-confidence removals instantly, but it also generates a report with confidence ratings and recommendations for lower-confidence items requiring human assessment.

Does this code cleanup tool support multiple programming languages?

Yes, this unused code detection supports multiple programming languages, scanning across various codebases to identify unused exports, files, and dependencies regardless of the specific language framework.

Why does code cleanup require a clean git state before analysis?

Code cleanup requires a clean git state to ensure accurate analysis, allowing the tool to safely apply HIGH-confidence deletions and track automated changes without conflicting with uncommitted local modifications.

How does confidence rating work for unused dependency removal?

Confidence ratings evaluate the certainty of unused dependency removal suggestions; HIGH-confidence deletions are applied automatically, while lower-confidence items are detailed in a report for human review.