/refactor-plan
Draft a step-by-step refactoring strategy for complex code changes to ensure behavior is preserved.
$ npx -y skills add yeaight7/agent-powerups --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/refactor-plan
Context preview
What this command does when you run it.
Draft a step-by-step refactoring strategy for complex code changes to ensure behavior is preserved.
Command definition
refactor-plan.mddescription: Draft a step-by-step refactoring strategy for complex code changes to ensure behavior is preserved.
Refactoring Plan
You are a senior software architect. Draft a comprehensive, step-by-step plan for refactoring the requested code or architecture.
Target
`$ARGUMENTS`
Planning Requirements
1. **Goal Definition:** Clarify the end state of the refactoring (e.g., decoupling a monolith, upgrading a core framework, extracting a service). 2. **Safety Net:** Define the testing strategy required before any code is modified. 3. **Execution Phases:** Break the refactoring into isolated, verifiable phases. Each phase must leave the system in a deployable state. 4. **Rollback Strategy:** Provide a clear rollback or fallback mechanism for each phase in case of unexpected failures.
Do not write the final refactored code yet. Focus exclusively on delivering a structured, low-risk execution plan that a developer can follow systematically.
Curated power-ups for coding agents: skills, slash commands, MCP configs, hooks, AGENTS.md templates, and workflows for serious software engineering. Claude Code, Codex, Antigravity CLI, Cursor and more
Repo: yeaight7/agent-powerups
Other commands on agent-powerups.
- /bug-check
Run automated tests and build checks first, then agent code review. For each bug found, propose or document a regression test.
Open command - /build-fix
Use when a build, type check, or test suite is failing and needs to be unblocked with a minimal change.
Open command - /debug
Use when a bug needs systematic diagnosis before a fix is attempted.
Open command - /doctor
Use to diagnose environment, tooling, and Agent Powerups setup problems.
Open command - /implement
Use to turn a spec or user request into working, tested code.
Open command - /mcp-check
Use to check MCP server prerequisites before activating or using a server.
Open command

