Installs into .claude/skills of the current project.
Are you the author of Refactor?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/skeletorflet-refactor)
---
name: refactor
description: Code refactoring patterns and techniques. Use when improving code structure without changing behavior.
---
## refactor
Improve code structure while preserving behavior.
### Patterns
- Extract function/method
- Rename for clarity
- Replace conditionals with polymorphism
- Introduce parameter object
- Decompose conditional
- Replace temp with query
- Encapsulate field
### Process
1. Ensure tests exist or write them first
2. Small, incremental changes
3. Run tests after each change
4. Commit frequently
5. Never refactor and add features together