coding-refactor

Detect code smells and recommend step-by-step refactoring guidance.

Updated Jun 21, 2026
One-click install
npx skills add https://github.com/YushinB/MyAISkill --skill coding-refactor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coding-refactor
Source: https://github.com/YushinB/MyAISkill/tree/main/.claude/skills/coding-refactor
Command: npx skills add https://github.com/YushinB/MyAISkill --skill coding-refactor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Coding Refactor addresses the challenge of maintaining code quality, making code more readable, and easier to maintain by identifying and applying best refactoring practices.

Core Features & Use Cases

  • Code Smell Detection: Identifies common issues in the code like long methods, large classes, and temporary fields.
  • Refactoring Recommendations: Recommends and explains the best refactoring techniques based on code smells.
  • Refactoring Application: Provides step-by-step guidance on applying refactorings and verifying that behavior is preserved.
  • Use Case: When you have a piece of code that is hard to read, modify, or maintain, you can use Coding Refactor to analyze and improve the code structure.

Quick Start

Activate the Coding Refactor skill by saying, "refactor this," and provide the file path, code snippet, or description of the issue you'd like to address.

Frequently Asked Questions about coding-refactor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify code smells like bloaters or object-oriented abuse in my codebase?

Code smell detection identifies common issues in your code like long methods, large classes, and temporary fields. It categorizes these into bloaters, object-oriented abuse, change preventers, dispensables, and couplers to target refactoring efforts effectively.

What's the best way to refactor a large class that is hard to maintain?

The best way to refactor a large class is to apply targeted refactoring techniques guided by specific recommendations. This involves analyzing the code structure for maintainability issues and following step-by-step instructions to improve readability while preserving behavior.

How do I apply refactoring steps without changing the original software behavior?

To apply refactoring without changing behavior, follow step-by-step guidance that verifies behavior preservation throughout the process. This ensures your software maintenance efforts enhance codebase quality without introducing functional regressions.

When do I need code refactoring for software maintenance?

You need code refactoring when you have a piece of code that is hard to read, modify, or maintain. It addresses programming best practices by targeting structural issues that prevent changes or indicate dispensable code segments.

Can I use this refactoring guidance for any programming language?

Yes, you can use this refactoring guidance for any programming language. It focuses on universal object-oriented abuse and general code optimization principles rather than language-specific syntax, making it broadly applicable to software development scenarios.

What are the limitations of using automated refactoring recommendations?

Automated refactoring recommendations provide structural guidance but require you to verify behavior preservation manually. They identify code smells and suggest best practices, but complex dispensible or coupler issues may need contextual human evaluation before applying changes.