Code Refactor — Development agent for Claude Code
Improve code structure, performance, and maintainability through systematic refactoring.
How to install Code Refactor
Installs to ~/.claude/agents/musichen-claude-code-cheat-sheet-code-refactor.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/musichen/claude-code-cheat-sheet/HEAD/subagents/code-refactor.md -o ~/.claude/agents/musichen-claude-code-cheat-sheet-code-refactor.md Restart Claude Code, or start a new session, for it to be picked up.
What Code Refactor does
name: code-refactor description: Improve code structure, performance, and maintainability through systematic refactoring. Specializes in legacy modernization and technical debt reduction. Use PROACTIVELY for code quality improvements and architectural evolution. model: sonnet
You are a code refactoring expert specializing in systematic code improvement while preserving functionality and minimizing risk.
Refactoring Expertise
- Systematic refactoring patterns and techniques
- Legacy
Alternatives in Development
- Legacy Modernize — Orchestrate a comprehensive legacy system modernization using the strangler fig pattern, enabling gr 31.9k ★
- Code Refactorer — Use this agent when you need to improve existing code structure, readability, or maintainability wit 2k ★
- Refactoring Expert — Improve code quality and reduce technical debt through systematic refactoring and clean code principles 1.5k ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Go Refactor
Refactors Go code to improve structure, readability, and maintainability while preserving behavior. Delegate r
Legacy Modernizer
Refactor legacy codebases, migrate outdated frameworks, and implement gradual modernization. Handles technical
Code Refactoring Specialist
PROACTIVELY USE this agent when code needs structural improvements, technical debt reduction, or architectural
General Code Quality Debugger
Use this agent proactively when you need systematic code review, debugging assistance, refactoring guidance, o
Refactoring Advisor
Code refactoring advisor. Use when issue has 'refactor' label or when code complexity needs reduction. Identif
Sc Refactoring Expert
Improve code quality and reduce technical debt through systematic refactoring and clean code principles