refactor-clean

Identify and clean dead code, unused imports, and code quality issues.

1|Updated Feb 1, 2026
One-click install
npx skills add https://github.com/eroslifestyle/Claude-Orchestrator-Plugin --skill refactor-clean-eroslifestyle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactor-clean
Source: https://github.com/eroslifestyle/Claude-Orchestrator-Plugin/tree/main/github-package/skills/refactor-clean
Command: npx skills add https://github.com/eroslifestyle/Claude-Orchestrator-Plugin --skill refactor-clean-eroslifestyle

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill tackles the common challenge of maintaining a clean and efficient codebase by automatically identifying and rectifying issues like dead code, unused imports, and overly complex functions.

Core Features & Use Cases

  • Automated Code Analysis: Scans code for unused imports, dead code, commented-out code, long functions, and duplication.
  • Intelligent Refactoring: Proposes specific, actionable changes to improve code quality.
  • Use Case: A developer can invoke this skill to clean up a legacy codebase, ensuring it's more maintainable and less prone to errors.

Quick Start

Use the refactor clean skill to automatically clean up the codebase in the src directory.

Frequently Asked Questions about refactor-clean

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

FAQPage Schema
How do I automate dead code removal and unused imports cleanup in my project?

Automate dead code removal by scanning your codebase to identify unused imports, commented-out code, and duplication, then applying specific modifications to improve overall code maintainability and reduce technical debt.

What is the best way to refactor a legacy codebase to reduce technical debt?

Refactoring a legacy codebase involves automatically analyzing files for long functions and code quality issues, proposing actionable changes to clean up inefficient logic, and ensuring the project remains maintainable and less prone to errors.

Can I use Bash and Grep to identify code quality issues across a project directory?

Yes, you can use Bash, Grep, Glob, Read, and Edit tools to perform comprehensive code quality analysis across a project directory, identifying dead code and unused imports for automated cleanup and organization.

What types of code quality issues can an automated refactoring tool detect?

An automated refactoring tool detects unused imports, dead code, commented-out code blocks, long functions, and code duplication, providing actionable proposals to rectify these complexities and improve codebase efficiency.

Does automated code cleanup modify files directly or just propose changes?

Automated code cleanup performs comprehensive analysis to identify quality issues and proposes specific, actionable changes to improve the codebase, using file editing tools to apply modifications across the project directory.