05 Cleanup — Development skill for Claude Code
Safe dead code cleanup - detect and remove unused imports and dead files with auto-apply for Low/Medium risk.
How to install 05 Cleanup
Installs to ~/.claude/commands/changoo89-claude-pilot-05_cleanup.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/changoo89/claude-pilot/HEAD/.claude/commands/05_cleanup.md -o ~/.claude/commands/changoo89-claude-pilot-05_cleanup.md Restart Claude Code, or start a new session, for it to be picked up.
What 05 Cleanup does
description: Safe dead code cleanup - detect and remove unused imports and dead files with auto-apply for Low/Medium risk argument-hint: "[mode=imports|files|all] [scope=repo|path=...] [--dry-run] [--apply]" allowed-tools: Read, Glob, Grep, Edit, Write, Bash(*), AskUserQuestion disable-model-invocation: true
/05_cleanup
Invoke the code-cleanup skill and follow it exactly as presented to you.
Pass arguments: $ARGUMENTS
Alternatives in Development
- Worktree Cleanup — Remove worktrees and branches that have been merged: $ARGUMENTS 23.4k ★
- Cut Video — Claude Code skill: tighten long recordings — remove silences, ums, dead air 92 ★
- Deps — Detect unused and outdated dependencies 63 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Massu Cleanup
Dead code removal — unused imports, orphaned files, dead exports, and stale references
Clean Imports
Remove unused imports and organise import ordering across changed files
All Recommendations
Launch a team of implementation agents to apply ALL recommended changes from the most recent review — every se
Remove Deadcode
Find and remove dead code — unused exports, unreachable functions, orphaned files, and stale feature flags. Fi
Coder Effort
Set the Codex coder's thinking effort for new jobs (low, medium, high, xhigh), or auto to follow Purser's rout
Sc Cleanup
Systematically clean up code, remove dead code, and optimize project structure
Related Agents
Fec Refactor Cleaner
Front-end Dead Code & Technical Debt Cleanup Subagent: Identifies unused components, exports, styles, routes,
Tp Dead Code Finder
Use this when the user asks to find or remove dead / unused code ("clean up this file", "find unused exports",
Code Cleanup Analyst
Use this agent when you need to identify dead code, unused imports, deprecated functions, or redundant files t