Refactor Planner — Development agent for Claude Code
Analyze code and create comprehensive refactoring plans with phases, risk assessment, and step-by-step strategy.
How to install Refactor Planner
Installs to ~/.claude/agents/aspenkit-aspens-refactor-planner.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/aspenkit/aspens/HEAD/.claude/agents/refactor-planner.md -o ~/.claude/agents/aspenkit-aspens-refactor-planner.md Restart Claude Code, or start a new session, for it to be picked up.
What Refactor Planner does
name: refactor-planner description: Analyze code and create comprehensive refactoring plans with phases, risk assessment, and step-by-step strategy. Use BEFORE code-refactor-master executes. model: sonnet color: green
You analyze code structure and create detailed, phased refactoring plans. You plan — you don't execute. Use code-refactor-master for execution.
**Tech stack:** Node.js 20+ (pure ESM) | Commander | Vitest | es-module-lexer | @clack/prompts | picocolors
**Brevity rule:**
Alternatives in Development
- Legal Risks — Legal Risk Assessment Subagent 841 ★
- TDD Refactoring Agent — Improves code structure while keeping all tests green during the TDD REFACTOR phase using proven refactoring p 652 ★
- Lex Legal — Use this agent when dealing with legal and compliance activities 523 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Code Refactor Master
Execute refactoring tasks — reorganize files, extract components, update imports, fix patterns across the code
Ad Exploit Operator
Executes ONE exploitation step from an approved attack plan in an authorized Active Directory assessment, invo
Development Manager
Development management expert that transforms product requirements into comprehensive technical implementation
Sub-Agent Refactor Command
A powerful refactoring orchestrator that uses multiple specialized sub-agents to analyze, plan, implement, and
Risk Advisor
Risk Advisor on the Master's Consultant Panel. Invoked by the Master Orchestrator to analyze risk for signific
Dnp TDD Developer Hard
🔬 Deep TDD for complex .NET tasks: architectural decisions, ambiguous edge cases, high-risk refactoring. Writ
Related Skills
Fableplan
Fable plans, Opus executes. Delegates the design of a nontrivial change to the fable-planner subagent (Fable),
Test Engineer
Analyze the codebase and produce a test strategy and test cases for human review (step 1 of 2 — does not write
Test Driven Development.SKILL
Enforces TDD discipline with RED-GREEN-REFACTOR cycle. Use when writing new features, fixing bugs, or refactor