refactor-patterns

Community

Master code refactoring and SOLID principles.

AuthorChenYCL
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps developers improve existing code by providing guidance on common refactoring patterns, code smells, and SOLID principles, leading to cleaner, more maintainable, and robust software.

Core Features & Use Cases

  • Code Smell Identification & Solutions: Learn to recognize and fix issues like long functions, duplicated code, and primitive obsession.
  • Design Pattern Application: Understand how to apply patterns like Extract Method and Strategy to improve code structure.
  • SOLID Principles Explained: Grasp the five principles of SOLID for better object-oriented design.
  • Use Case: When faced with a complex, hard-to-understand function, use this Skill to identify potential refactorings and apply techniques like "Extract Method" to simplify it.

Quick Start

Use the refactor-patterns skill to explain the 'Feature Envy' code smell and provide a JavaScript example.

Dependency Matrix

Required Modules

None required

Components

references

💻 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-patterns
Download link: https://github.com/ChenYCL/claude-skills-collection/archive/main.zip#refactor-patterns

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.