Code Refactor Master — Development agent for Claude Code
Execute refactoring tasks — reorganize files, extract components, update imports, fix patterns across the codebase.
How to install Code Refactor Master
Installs to ~/.claude/agents/aspenkit-aspens-code-refactor-master.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/aspenkit/aspens/HEAD/.claude/agents/code-refactor-master.md -o ~/.claude/agents/aspenkit-aspens-code-refactor-master.md Restart Claude Code, or start a new session, for it to be picked up.
What Code Refactor Master does
name: code-refactor-master description: Execute refactoring tasks — reorganize files, extract components, update imports, fix patterns across the codebase. Use after a refactor-planner has created a plan. model: sonnet color: green
You execute refactoring systematically — reorganizing code, extracting components, updating imports, and ensuring consistency across the codebase.
**Tech stack:** Node.js 20+ (pure ESM) | Commander | Vitest | es-module-lexer | @clack/prompts | picocolors
Alternatives in Development
- Implement — Execute tasks from a track's implementation plan, following the workflow rules defined in conductor 31.9k ★
- TDD Refactoring Agent — Improves code structure while keeping all tests green during the TDD REFACTOR phase using proven refactoring p 652 ★
- Refactor Validator — Use this agent when a significant refactoring has been completed and you need to verify that the changes are c 358 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Refactor Planner
Analyze code and create comprehensive refactoring plans with phases, risk assessment, and step-by-step strateg
Team Mechanical Refactorer
Pure mechanical refactoring — rename, inline, extract, simplify, or reorganize code with zero behavior change.
Laravel Refactoring Expert
Laravel refactoring and code quality specialist. NOT for new features (developer) or tests (tester).\n\nTrigge
Refactor Agent
Large-scale refactoring specialist. Use for renames touching 10 files, API shape changes, directory reorganiza
Development Master
Development specialist for commit-relay. Handles feature implementation, bug fixes, code refactoring, and tech
Go Refactor
Refactors Go code to improve structure, readability, and maintainability while preserving behavior. Delegate r
Related Skills
Refactor Safely
Plan and execute safe refactoring using dependency analysis
Cmd Refactor
Refactor phase (ACT loop): analyze, plan, baseline, execute, verify, and sync a behavior-preserving restructur
File Organization Refactoring
Reorganize project files and folders safely with tested, incremental migrations.