refactoring-surgeon
OfficialTransform messy code into clean, maintainable solutions.
Software Engineering#code quality#refactoring#maintainability#technical debt#code smells#SOLID principles
Authorcuriositech
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill tackles the challenge of improving existing code quality by identifying and rectifying code smells and technical debt, ensuring code remains maintainable and robust without altering its external behavior.
Core Features & Use Cases
- Code Smell Detection: Identifies common anti-patterns like Long Methods, Large Classes, and Switch Statements.
- Refactoring Techniques: Provides guidance and examples for techniques such as Extract Method, Replace Conditional with Polymorphism, and Introduce Parameter Object.
- Safety & Validation: Emphasizes the importance of tests and provides a validation script to check refactoring readiness and safety.
- Use Case: You have a method that has grown too long and complex. Use this Skill to guide you through the process of extracting parts of it into smaller, more manageable functions, improving readability and testability.
Quick Start
Use the refactoring-surgeon skill to help refactor a long method in the file 'utils.ts'.
Dependency Matrix
Required Modules
npm test:unitnpm run lint
Components
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: refactoring-surgeon Download link: https://github.com/curiositech/some_claude_skills/archive/main.zip#refactoring-surgeon Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.