Initial commit
This commit is contained in:
25
commands/rf.md
Normal file
25
commands/rf.md
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
description: "[Express] Refactor code - alias for /refactor-code"
|
||||
allowed-tools: Read, Write, Edit, Glob, Grep
|
||||
---
|
||||
|
||||
# Express Refactor (/rf)
|
||||
|
||||
Quick alias for code refactoring. Uses the same functionality as `/refactor-code`.
|
||||
|
||||
## Usage
|
||||
- `/rf` - Suggest refactoring for current code
|
||||
- `/rf <file-path>` - Refactor specific file
|
||||
- `/rf extract` - Extract methods/functions
|
||||
- `/rf simplify` - Simplify complex logic
|
||||
|
||||
$ARGUMENTS
|
||||
|
||||
Refactoring focus:
|
||||
1. Improve code readability
|
||||
2. Reduce complexity
|
||||
3. Remove duplication (DRY)
|
||||
4. Improve naming
|
||||
5. Apply design patterns where appropriate
|
||||
|
||||
Maintain existing behavior - no functional changes unless requested.
|
||||
Reference in New Issue
Block a user