SKILL·8BC9B2

refactoring-surgeon

mattnigh
Updated 1 month ago
17 views
22
1
22
View on GitHub
Otherrefactoringcode-smellssoliddrycleanup

About

The refactoring-surgeon skill specializes in improving code quality through behavior-preserving refactoring techniques like extracting methods/classes and applying SOLID/DRY principles. It activates on code smells, technical debt, and legacy code cleanup, requiring existing tests as a safety net. Use it specifically for refactoring tasks, not for new features, bug fixes, or performance optimization.

Quick Install

Claude Code

Recommended
Primary
npx skills add mattnigh/skills_collection -a claude-code
Plugin CommandAlternative
/plugin add https://github.com/mattnigh/skills_collection
Git CloneAlternative
git clone https://github.com/mattnigh/skills_collection.git ~/.claude/skills/refactoring-surgeon

Copy and paste this command in Claude Code to install this skill

GitHub Repository

mattnigh/skills_collection
Path: collection/erichowens__some_claude_skills__claude__skills__refactoring-surgeon__SKILL.md
0
FAQ

Frequently asked questions

What is the refactoring-surgeon skill?

refactoring-surgeon is a Claude Skill by mattnigh. Skills package instructions and resources that Claude loads on demand, so Claude can perform refactoring-surgeon-related tasks without extra prompting.

How do I install refactoring-surgeon?

Use the install commands on this page: add refactoring-surgeon to Claude Code as a plugin, or clone its repository into your skills directory, then restart Claude so it picks up the skill.

What category does refactoring-surgeon belong to?

refactoring-surgeon is in the Code Quality & Testing category, tagged refactoring, code-smells, solid, dry and cleanup.

Is refactoring-surgeon free to use?

Yes. refactoring-surgeon is listed on AIMCP and free to install. It runs inside Claude, so no separate service account is required to use the skill itself.

Related Skills

code-necromancer
Other

The Code Necromancer skill provides a structured, three-phase framework (archaeology, resurrection, rejuvenation) for developers to understand, revive, and modernize undocumented legacy systems or dormant codebases. It activates on terms like "legacy code" or "technical debt" and is designed for scenarios involving inherited systems with no documentation, not for new projects. The skill uses tools like Read, Write, Bash, and Grep to systematically analyze, restore, and refactor old code.

View skill
api-architect
Other

The api-architect skill is an expert API designer for creating and refining REST, GraphQL, and gRPC architectures, including OpenAPI specs and security flows. Use it for tasks like endpoint design, versioning, and schema generation. It defers database, frontend, and deployment concerns to other specialized skills.

View skill
code-necromancer
Other

This skill provides a systematic framework for understanding, resurrecting, and modernizing legacy codebases. It is designed for scenarios like inheriting undocumented repos or reviving dormant projects, guiding you through archaeology, resurrection, and rejuvenation phases. Use it when you encounter terms like "legacy code" or "technical debt," but not for greenfield projects.

View skill
security-auditor
Other

The security-auditor skill performs static code security analysis including dependency vulnerability scanning, secret detection, and SAST checks for OWASP top risks. Use it for codebase security reviews, pre-penetration testing audits, and identifying issues like exposed credentials or vulnerable libraries. It focuses on source code analysis, not runtime infrastructure or compliance certification processes.

View skill