Code refactoring patterns and techniques. Use when improving code structure without changing behavior.
Scanned 9/12/2026
Install to Claude Code
npx -y skills add skeletorflet/opencode-supreme-setup --skill refactor --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Refactor?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/skeletorflet-refactor)More formats (shields.io, HTML) on the badges page.
---
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
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!