sc-cleanup

Remove dead code and unused imports while restructuring project files.

77|4|Updated Jun 20, 2022
One-click install
npx skills add https://github.com/htlin222/dotfiles --skill sc-cleanup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sc-cleanup
Source: https://github.com/htlin222/dotfiles/tree/main/claude.symlink/skills-archive/sc-cleanup
Command: npx skills add https://github.com/htlin222/dotfiles --skill sc-cleanup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines development by cleaning up code, removing unused elements, and optimizing project structure, reducing technical debt and improving maintainability.

Core Features & Use Cases

  • Code Cleanup: Identifies and removes dead code and unused imports.
  • Project Optimization: Restructures directories and files for better organization.
  • Use Case: When a project has grown complex and contains outdated or unnecessary code, this Skill can be used to refactor and clean it up, making it easier to manage and extend.

Quick Start

Use the sc-cleanup skill to clean the codebase in the current directory with aggressive settings.

Frequently Asked Questions about sc-cleanup

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

FAQPage Schema
How do I remove dead code and unused imports from my project?

To remove dead code and unused imports, you can use an automated refactoring tool that scans your codebase using Grep and Glob to detect unreachable code, then applies batch deletions with MultiEdit to clean up your project structure.

What is the best way to reduce technical debt in a complex codebase?

Reducing technical debt in a complex codebase involves identifying outdated code and restructuring project directories for better maintainability. This process clears unnecessary elements and optimizes the file organization to streamline future development.

How do I restructure project files for better maintainability?

Restructuring project files for better maintainability involves analyzing your directory structure and moving files to logically organized paths. The process uses Glob for file discovery and MultiEdit to apply batch structural changes with rollback capabilities.

Can I rollback code cleanup operations if something breaks?

Yes, you can rollback code cleanup operations because the process leverages MultiEdit for batch operations with built-in rollback capabilities. This ensures that any structural changes or dead code removal can be safely reversed if needed.

Does aggressive codebase cleanup affect existing software development workflows?

Aggressive codebase cleanup integrates directly into software development workflows by targeting technical debt reduction and improved project maintainability. It safely removes unused imports and dead code without disrupting active development cycles.

When should I not use automated dead code removal in my project?

You should avoid automated dead code removal when your project relies on dynamic imports or reflection patterns that static analysis tools like Grep cannot trace, as this may result in accidental deletion of actively used code.