From refractor
Refactors code following best practices and design patterns, preserving functionality while improving readability, extracting reusable patterns, optimizing performance, and adding type safety. Provides explanations for each change.
How this command is triggered — by the user, by Claude, or both
Slash command
/refractor:refractorThe summary Claude sees in its command listing — used to decide when to auto-load this command
## Your task Refactor the following code: @$ARGUMENTS Guidelines: 1. **Maintain functionality**: Ensure no breaking changes 2. **Improve readability**: Make code more self-documenting 3. **Extract common patterns**: Identify and extract reusable components 4. **Performance optimization**: Improve efficiency where possible 5. **Modern conventions**: Use current best practices 6. **Type safety**: Add or improve type annotations if applicable Explain each change and why it's beneficial.
Refactor the following code: @$ARGUMENTS
Guidelines:
Explain each change and why it's beneficial.
5plugins reuse this command
First indexed Jan 1, 2026
npx claudepluginhub p/juliusbrussee-refractor-plugins-refractor/refractorRefactors code following best practices and design patterns, preserving functionality while improving readability, extracting reusable patterns, optimizing performance, and adding type safety. Provides explanations for each change.
/refactor-codeGuides a systematic, test-driven code refactoring process — from pre-analysis and coverage verification through incremental changes, quality improvements, performance optimization, and documentation updates.
/sc-refactorPlans refactoring opportunities in code or executes specific behavior-preserving refactors like extract/rename/simplify, verifying with tests before/after.
/refractorRefactors code in specified file or directory: improves structure, removes duplication, optimizes performance, enhances maintainability, adds tests and documentation.
/refractorRefactors code following best practices and design patterns, preserving functionality while improving readability, extracting reusable patterns, optimizing performance, and adding type safety. Provides explanations for each change.