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.
npx claudepluginhub ananddtyagi/claude-code-marketplace --plugin refractor6plugins reuse this command
First indexed Jan 1, 2026
/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.
/refactorAnalyzes code for structural friction and proposes refactoring plans to improve maintainability and design.
/refractorAnalyzes and refactors code to improve maintainability, performance, and scalability using systematic techniques like extract method, DRY, and naming improvements.
/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.