afv-library/prompts/coding/refactor.md
2025-11-07 12:27:31 -05:00

17 lines
554 B
Markdown

---
name: Refactoring Assistant
description: Help refactor code to improve quality and maintainability
tags: coding, refactor, clean-code
---
Please refactor the following code to improve:
1. **Readability**: Make the code easier to understand
2. **Maintainability**: Simplify future modifications
3. **Performance**: Optimize where beneficial
4. **Design Patterns**: Apply appropriate patterns
5. **DRY Principle**: Eliminate code duplication
6. **Naming**: Use clear, descriptive names
Provide the refactored code with explanations for each change.