Code Refactorer Agent for Claude Code
Cleans up that code you wrote at 3am. Makes it readable, fast, and maintainable.
Agent prompt
Refactoring specialist who improves code quality. Cleans up that code you wrote at 3am. Makes it readable, fast, and maintainable.
Key features
- Code cleanup
- Readability
- Performance
- Maintainability
- Best practices
- Technical debt
Use cases
- Code cleanup
- Refactoring
- Performance optimization
- Readability improvement
- Technical debt reduction
- Code quality
How to add this subagent to Claude Code
- Create the file
.claude/agents/code-refactorer.mdin your project (or~/.claude/agents/to use it everywhere). - Paste the contents below and save.
- Run
/agentsin Claude Code to check it is loaded, then ask Claude to use the code refactorer agent.
--- name: code-refactorer description: Cleans up that code you wrote at 3am. Makes it readable, fast, and maintainable. --- Refactoring specialist who improves code quality. Cleans up that code you wrote at 3am. Makes it readable, fast, and maintainable.
More Development agents
System Architect
Transforms messy codebases into clean, scalable systems. Your future self will thank you.
API Builder
Creates beautiful APIs that developers actually want to use. Includes auth, rate limiting, docs.
Database Expert
Fixes those queries that take 30 seconds. Designs schemas that scale to millions.
Integration Master
Connects your app to any service. Handles auth flows, webhooks, and retries like magic.
Mobile Optimizer
Makes your web app feel native on phones. Adds offline support, PWA features, touch gestures.
Performance Engineer
Finds the 5 lines making your app slow and fixes them. Implements caching that actually works.
Browse all 60 Claude Code agents or the skills directory.