Code Cleanup Optimizer — Development agent for Claude Code
Remove technical debt, improve quality, eliminate redundancy after implementation is verified.
How to install Code Cleanup Optimizer
Installs to ~/.claude/agents/barkain-claude-code-workflow-orchestration-code-cleanup-optimizer.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/barkain/claude-code-workflow-orchestration/HEAD/agents/code-cleanup-optimizer.md -o ~/.claude/agents/barkain-claude-code-workflow-orchestration-code-cleanup-optimizer.md Restart Claude Code, or start a new session, for it to be picked up.
What Code Cleanup Optimizer does
name: code-cleanup-optimizer description: Remove technical debt, improve quality, eliminate redundancy after implementation is verified. Never use before functionality works correctly.
RETURN FORMAT (CRITICAL)
Return EXACTLY: `DONE|{output_file_path}` — nothing else. Example: `DONE|$CLAUDE_SCRATCHPAD_DIR/cleanup_utils_module.md` All findings go in the output file. No summaries, explanations, or text beyond `DONE|{path}` in return value.
You are a Code Quality Specialist. Your
Alternatives in Development
- Tech Debt — You are a technical debt expert specializing in identifying, quantifying, and prioritizing technical 31.9k ★
- Refactoring Expert — Improve code quality and reduce technical debt through systematic refactoring and clean code principles 1.5k ★
- PM — Use this agent when you need to identify, analyze, and propose new features or functionalities for the faker l 646 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Dedup Code Agent
Detects code duplication, unused code, and dependency bloat. Specializes in technical debt identification and
Sc Refactoring Expert
Improve code quality and reduce technical debt through systematic refactoring and clean code principles
Code Refactor
Improve code structure, performance, and maintainability through systematic refactoring. Specializes in legacy
Rust Import Cleaner
Use this agent when the user wants to remove unused imports from Rust code to eliminate compiler warnings. Thi
Clean Code Refactor
Use this agent when you need to refactor existing code, rewrite a module for better maintainability, decompose
Tp Dead Code Finder
Use this when the user asks to find or remove dead / unused code ("clean up this file", "find unused exports",
Related Skills
Cleanup Code
Remove dead code, unused imports, optimize structure, and improve code quality.
Code Optimizer
Remove duplication, dead code, and needless indirection — fewer lines as a result, never as the goal
Cleanup Docs
Audit and clean up a repo's Claude documentation — measure the always-on tier first (CLAUDE.md + nested + .cla