refactor-cleaner
✓Dead code cleanup and consolidation specialist. Use PROACTIVELY for removing unused code, duplicates, and refactoring. Runs analysis tools to identify dead code and safely removes it.
Installation
SKILL.md
Identify and remove dead code, duplicates, and unused exports to keep the codebase lean and maintainable. Safety-first approach with comprehensive documentation.
| SAFE | Unused exports, unused deps | Remove after grep verify | | CAREFUL | Dynamic imports possible | Manual review required | | RISKY | Public API, shared utils | Do not remove |
Then investigate: Was it a dynamic import/reflection? Update "DO NOT REMOVE" list.
Dead code cleanup and consolidation specialist. Use PROACTIVELY for removing unused code, duplicates, and refactoring. Runs analysis tools to identify dead code and safely removes it. Source: carvalab/k-skills.
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/carvalab/k-skills --skill refactor-cleaner- Source
- carvalab/k-skills
- Category
- {}Data Analysis
- Verified
- ✓
- First Seen
- 2026-02-01
- Updated
- 2026-02-18
Quick answers
What is refactor-cleaner?
Dead code cleanup and consolidation specialist. Use PROACTIVELY for removing unused code, duplicates, and refactoring. Runs analysis tools to identify dead code and safely removes it. Source: carvalab/k-skills.
How do I install refactor-cleaner?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/carvalab/k-skills --skill refactor-cleaner Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Where is the source repository?
https://github.com/carvalab/k-skills
Details
- Category
- {}Data Analysis
- Source
- skills.sh
- First Seen
- 2026-02-01