refactor
| Type | Command |
| Plugin | awl-general · v0.0.51 |
| Invoke | /awl-general:refactor <file or code> |
| Source | plugins/awl-general/commands/refactor.md |
When Claude uses it
Section titled “When Claude uses it”Refactor code using Fowler’s methodology
Definition
Section titled “Definition”Refactor following Fowler’s “Refactoring” methodology + these principles:
- KISS: Keep it simple
- YAGNI: No unnecessary additions
- Minimal Changes: Only what’s needed
- Single Responsibility: One purpose per function
Rules:
- Behavior must stay identical
- Small, safe, verifiable transforms only
- No new features mixed with refactoring
Output:
- Smells: Code smells found
- Plan: Proposed changes + why
- Result: Refactored code
- Diff: Key changes summary
Target: $ARGUMENTS

