
Code Refactoring
This is a structured prompt for turning messy code into cleaner code without changing what it does. It forces you to pick one refactor mode (local cleanup, freeze-first for fragile legacy code, repeated migration, or diff reshaping) and make your behavior guardrail explicit before you start editing. The process is built around small, reviewable slices and honest routing to other skills when the real job is debugging, code review, testing strategy, or performance work. It's opinionated about separating structural cleanup from semantic changes and not shipping giant rewrites. If you've ever had a cleanup PR explode in review or touched legacy code that broke in weird ways, this gives you a repeatable checklist to avoid that.
- skills.sh installs
- 251
- GitHub stars
- 22
- last updated
- Jun 3, 2026
Install
$ npx -y skills add akillness/oh-my-skills --skill code-refactoring --agent claude-codeInstalls into .claude/skills of the current project.
Files
Code Refactoring
Use this skill when the job is to improve structure without changing intended behavior.
The center of the skill should stay small and repeatable:
- identify the cleanup packet you actually have,
- choose one refactor mode,
- make the behavior guardrail explicit,
- stage the work in reviewable slices,
- verify and route remaining work honestly.
Read these support docs before handling unfamiliar cleanup work:
Sponsors
Details
- Repository
- github.com/akillness/oh-my-skills
- Category
- Code Review & Quality
- First seen
- Jun 3, 2026
More from akillness/oh-my-skills
All 81- Data Analysis230
- Vercel React Best Practices230
- Technical Writing218
- Frontend Design System216
- Backend Testing211
- Rtk210
- Remotion Video Production206
- Video Production203
- Research Paper Writing196
- Web Accessibility192
- Graphify191
- Presentation Builder189
- Web Design Guidelines189
- Task Planning188
- User Guide Writing188
- Responsive Design187
- File Organization185
- Vibe Kanban185
- Codebase Search182
- Omc180
- Omx180
- Looker Studio Bigquery179
- Bmad Gds178
- Survey178