/all-commands:refactor-code 1. **Pre-Refactoring Analysis**from all-commands
Guides a systematic, test-driven code refactoring process — from pre-analysis and coverage verification through incremental changes, quality improvements, performance optimization, and documentation updates.
Ships in all-commands. Installing the plugin adds it to Claude Code.
Intelligently refactor and improve code quality
Follow this systematic approach to refactor code: $ARGUMENTS
Pre-Refactoring Analysis
Test Coverage Verification
Refactoring Strategy
Environment Setup
git checkout -b refactor/$ARGUMENTSIncremental Refactoring
Code Quality Improvements
Performance Optimizations
Design Pattern Application
Error Handling Improvement
Documentation Updates
Testing Enhancements
Static Analysis
Performance Verification
Integration Testing
Code Review Preparation
Documentation of Changes
Deployment Considerations
Remember: Refactoring should preserve external behavior while improving internal structure. Always prioritize safety over speed, and maintain comprehensive test coverage throughout the process.
What the command file sets; muted values are Claude Code's defaults
refactoring, code-quality, test-driven, software-craftsmanship
7-day visitors to each command page
2 plugins in one repository ship this exact command · first indexed Jan 8, 2026
177 commands in this plugin
/actFollow RED-GREEN-REFACTOR cycle approach for test-driven development/add-authentication-systemAdd Authentication SystemImplement secure user authentication system/add-changelogAdd Changelog CommandGenerate and maintain project changelog/add-mutation-testingAdd Mutation TestingSetup mutation testing for code quality/add-packageAdd Package to WorkspaceAdd and configure new project dependencies/add-performance-monitoringAdd Performance MonitoringSetup application performance monitoringnpx claudepluginhub davepoon/buildwithclaude --plugin all-commandsOther plugins' commands for the same job