refactor-guide

Community

Transform messy code into clean, maintainable solutions.

AuthorAngelCantugr
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Legacy codebases often suffer from "code smells" like long methods, large classes, and duplication, making them hard to understand, maintain, and extend. This Skill guides you to clean, efficient code.

Core Features & Use Cases

  • Code Smell Detection: Identifies common code smells (bloaters, change preventers, dispensables) and their locations.
  • Refactoring Strategies: Guides you through principles like "Rule of Three" and "Red-Green-Refactor."
  • Step-by-Step Transformations: Provides before/after code examples for common refactorings like "Extract Method" or "Replace Conditional with Polymorphism."
  • Use Case: When you encounter a complex, hard-to-read function, use this Skill to get a detailed refactoring plan, transforming it into a clean and maintainable solution.

Quick Start

Provide your code and ask: "Refactor this long function into smaller methods."

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: refactor-guide
Download link: https://github.com/AngelCantugr/fantastic-engine/archive/main.zip#refactor-guide

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.