refactor-expert

Community

Guide safe, incremental code refactoring for quality.

Authornguyenthienthanh
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Refactoring code can be risky and introduce new bugs if not done systematically, leading to instability and increased technical debt. This Skill provides expert guidance for safe, incremental refactoring that improves code quality without altering behavior, minimizing risk.

Core Features & Use Cases

  • Code Analysis & Planning: Generates detailed analysis documents for code smells and creates step-by-step implementation plans before refactoring.
  • Common Refactoring Patterns: Guides through proven patterns like "Extract Method," "Replace Conditional with Polymorphism," and "Simplify Conditional."
  • Safe Refactoring Steps: Enforces a rigorous process: ensure tests pass, make one small change, run tests, commit, and repeat, preventing regressions.
  • Use Case: When encountering a "Long Method" code smell, use this skill to analyze the method, generate a plan to "Extract Method" into smaller, more focused functions, and guide the refactoring process step-by-step.

Quick Start

Analyze the file 'src/utils/dataProcessor.ts' for refactoring opportunities and generate a plan

Dependency Matrix

Required Modules

None required

Components

assets

💻 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-expert
Download link: https://github.com/nguyenthienthanh/aura-frog/archive/main.zip#refactor-expert

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 471,000+ vetted skills library on demand.