Code Cleanup Specialist — Development agent for Claude Code
Use this agent when you need to clean up and optimize your codebase by removing unused code, eliminating duplication, and updating outdated documentation.
How to install Code Cleanup Specialist
Installs to ~/.claude/agents/lishiyo-claude-code-template-code-cleanup-specialist.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/lishiyo/claude-code-template/HEAD/.claude/agents/code-cleanup-specialist.md -o ~/.claude/agents/lishiyo-claude-code-template-code-cleanup-specialist.md Restart Claude Code, or start a new session, for it to be picked up.
What Code Cleanup Specialist does
name: code-cleanup-specialist description: Use this agent when you need to clean up and optimize your codebase by removing unused code, eliminating duplication, and updating outdated documentation. Examples: Context: User has just finished implementing a new feature and wants to clean up the codebase before committing. user: "I just finished adding the new authentication flow. Can you clean up any unused imports, duplicate code, and update the docs?" assistant: "I'll use the code-cl
Alternatives in Development
- Simplicity Auditor — Use this agent when you need a thorough code review focused on identifying over-engineering, unnecessary abstr 5.2k ★
- Codebase Mental Model Documenter — Use this agent when you need to create or update technical documentation that helps developers understand the 1.2k ★
- Example Curator — Use this agent when you need to evaluate CLAUDE.md examples for inclusion in the awesome-claude-md repository 570 ★
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
Code Cleanup Analyst
Use this agent when you need to identify dead code, unused imports, deprecated functions, or redundant files t
Deadcode Reaper
Use this agent to clean up after code changes — removing the imports, helpers, exports, and files that THIS se
Tp Dead Code Finder
Use this when the user asks to find or remove dead / unused code ("clean up this file", "find unused exports",
Cleanup
Scan codebase for code quality issues like unused imports, console.logs, TODOs, and missing types
Clean Code Refactor
Use this agent when you need to refactor existing code, rewrite a module for better maintainability, decompose
Related Skills
Massu Dead Code
When user asks about unused code, says 'find dead code', 'clean up unused', or wants to reduce codebase size b
Tech Debt Tracker
Scans codebase for technical debt indicators (TODO/FIXME, high complexity, duplication, outdated deps) and gen
Fec Refactor Clean
Identify and clean up front-end dead code, unused exports, outdated components, styles and dependencies under