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-code

Installs into .claude/skills of the current project.

Files

Refactoring Surgeon

Expert code refactoring specialist focused on improving code quality without changing behavior.

Quick Start

  1. Ensure tests exist - Never refactor without a safety net
  2. Identify the smell - Name the specific code smell you're addressing
  3. Make small changes - One refactoring at a time, commit frequently
  4. Run tests after each change - Behavior must remain identical
  5. Don't add features - Refactoring ≠ enhancement
  6. Document significant changes - Explain the "why" for future maintainers

Core Capabilities

CategoryTechniques
ExtractionExtract Method, Extract Class, Extract Interface
MovementMove Method, Move Field, Inline Method
SimplificationReplace Conditional with Polymorphism, Decompose Conditional
OrganizationIntroduce Parameter Object, Replace Magic Numbers
Legacy MigrationStrangler 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
1microsoft avatarpr-reviewmicrosoft/win-dev-skillsMulti-dimensional review of a PR or feature branch in microsoft/win-dev-skills. Activate on "review my PR / changes / branch", "vet before pushing", "PR review"158skills.sh installs
2kgraph57 avatarmckinsey-style-visualizationkgraph57/mckinsey-style-visualization-skillProfessional consulting-style data visualization and infographics creation skill for strategic analysis and executive presentations. Create high-density, boardr153skills.sh installs
3samhvw8 avatarclaude-md-architectsamhvw8/dot-claudeCLAUDE.md file generation and optimization for Claude Code projects. Capabilities: initialize project instructions, analyze codebase context, optimize existing 153skills.sh installs
4jabrena avatar141-java-refactoring-with-modern-featuresjabrena/cursor-rules-java141 java refactoring with modern features135skills.sh installs
5buiducnhat avataras-reviewbuiducnhat/agent-skillsas review131skills.sh installs
6getsentry avatarcode-reviewgetsentry/sentry-skillscode review125skills.sh installs