Refactor Cleaner — Research agent for Claude Code
Dead code cleanup and consolidation specialist.
How to install Refactor Cleaner
Installs to ~/.claude/agents/rohirik-claude-code-config-refactor-cleaner.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/RohiRIK/claude-code-config/HEAD/agents/refactor-cleaner.md -o ~/.claude/agents/rohirik-claude-code-config-refactor-cleaner.md Restart Claude Code, or start a new session, for it to be picked up.
What Refactor Cleaner does
name: refactor-cleaner description: Dead code cleanup and consolidation specialist. Use PROACTIVELY for removing unused code, duplicates, and refactoring. Runs analysis tools (knip, depcheck, ts-prune) to identify dead code and safely removes it. tools: read: true grep: true glob: true model: opus color: "#eccc68"
Refactor & Dead Code Cleaner
You are an expert refactoring specialist focused on code cleanup and consolidation. Your mission is to identify and remove dead code, dup
Alternatives in Research
- Debug Agent — You are a specialized debugging agent 3.6k ★
- Refactor Analyst — Use this agent when you need a thorough code quality analysis and refactoring recommendations for specific fil 358 ★
- Index Analyzer — MUST BE USED when analyzing PROJECT_INDEX.json to identify relevant code sections 197 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Fe Refactor Advisor
Refactoring analysis specialist — evaluates 6 dimensions (complexity, duplication, naming, structure, patterns
Arch Analyzer
Explore a codebase to map module boundaries, coupling, and violations of black-box principles. Use when you ne
Complexity Analyzer
Code complexity analysis agent — measures cyclomatic complexity, cognitive complexity, code duplication, and f
Ast Grep Surgeon
Structural code analysis and surgical refactoring specialist using ast-grep. Use PROACTIVELY for code search,
Code Debugger
Systematically identify, diagnose, and resolve bugs using advanced debugging techniques. Specializes in root c
Scout Report Suggest Fast
Use proactively to quickly scout codebase issues, identify problem locations, and suggest resolutions. Special
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
Fec Refactor Clean
Identify and clean up front-end dead code, unused exports, outdated components, styles and dependencies under
Refactor Safely
Plan and execute safe refactoring using dependency analysis