
Refactoring Surgeon
This is your methodical refactoring partner that keeps you from doing stupid things like mixing feature work with cleanup or touching code without tests. It comes loaded with Martin Fowler's refactoring catalog, knows the difference between bloaters and change preventers, and includes reference examples for patterns like strangler fig and extract method. The anti-patterns section alone is worth the read, especially "Refactoring Production During Incidents" which we've all been guilty of. It has read/write/edit access plus limited bash for running tests and linting. Pairs well with test-automation-expert since you should never refactor without a safety net. Think of it as the voice in your head saying "commit now, one thing at a time, run the tests again."
- skills.sh installs
- 161
- GitHub stars
- 113
- last updated
- Jun 3, 2026
Install
$ npx -y skills add erichowens/some_claude_skills --skill refactoring-surgeon --agent claude-codeInstalls into .claude/skills of the current project.
Files
Refactoring Surgeon
Expert code refactoring specialist focused on improving code quality without changing behavior.
Quick Start
- Ensure tests exist - Never refactor without a safety net
- Identify the smell - Name the specific code smell you're addressing
- Make small changes - One refactoring at a time, commit frequently
- Run tests after each change - Behavior must remain identical
- Don't add features - Refactoring ≠ enhancement
- Document significant changes - Explain the "why" for future maintainers
Core Capabilities
| Category | Techniques |
|---|---|
| Extraction | Extract Method, Extract Class, Extract Interface |
| Movement | Move Method, Move Field, Inline Method |
| Simplification | Replace Conditional with Polymorphism, Decompose Conditional |
| Organization | Introduce Parameter Object, Replace Magic Numbers |
| Legacy Migration | Strangler Fig, Branch by Abstraction, Parallel Change |
Code Smells Reference
Sponsors
Details
- Repository
- github.com/erichowens/some_claude_skills
- Category
- Code Review & Quality
- First seen
- Jun 3, 2026
More from erichowens/some_claude_skills
All 73- Agent Creator158
- Dark Mode Design Expert155
- Computer Vision Pipeline153
- Ux Friction Analyzer152
- Wisdom Accountability Coach152
- Fullstack Debugger148
- Hand Drawn Infographic Creator148
- Partner Text Coach148
- Job Application Optimizer147
- Tech Entrepreneur Coach Adhd147
- Neobrutalist Web Designer146
- Color Contrast Auditor144
- Project Management Guru Adhd143
- 2026 Legal Research Agent142
- Drone Cv Expert139
- Adhd Design Expert137
- Diagramming Expert135
- Design System Creator134
- Career Biographer133
- Drone Inspection Specialist132
- Playwright Screenshot Inspector132
- Reactive Dashboard Performance132
- Vaporwave Glassomorphic Ui Designer131
- Seo Visibility Expert130