refactoring

Detects common code smells and suggests fixes for improved maintainability.

1|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/agnaldo4j/kanban-vision-api-kt --skill refactoring-agnaldo4j
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactoring
Source: https://github.com/agnaldo4j/kanban-vision-api-kt/tree/main/.claude/skills/refactoring
Command: npx skills add https://github.com/agnaldo4j/kanban-vision-api-kt --skill refactoring-agnaldo4j

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses technical debt by identifying code smells and applying proven refactoring techniques to improve internal structure without altering external behavior.

Core Features & Use Cases

  • Code Smell Detection: Identifies common issues like Long Methods, Large Classes, and Primitive Obsession.
  • Refactoring Techniques: Provides step-by-step guidance on applying patterns like Extract Method, Move Method, and Replace Conditional with Polymorphism.
  • Use Case: Use this skill when reviewing pull requests to identify bloated classes or complex conditional logic that hinders maintainability, ensuring the codebase remains clean and modular.

Quick Start

Use the refactoring skill to analyze the provided class for code smells and suggest specific refactoring techniques to improve its design.

Frequently Asked Questions about refactoring

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

FAQPage Schema
How do I identify code smells and reduce technical debt in object-oriented code?

To reduce technical debt, identify code smells like Long Methods, Large Classes, and Primitive Obsession, then apply systematic refactoring techniques to improve the internal structure without altering external behavior.

What is the best way to refactor complex methods and bloated classes?

The best way to refactor complex methods and bloated classes is by applying proven techniques like Extract Method, Move Method, and Replace Conditional with Polymorphism to enhance software maintainability.

How do I ensure behavioral preservation when applying refactoring techniques?

To ensure behavioral preservation during refactoring, adhere to test-driven transformation cycles and atomic commit practices, systematically transforming the code while verifying that outputs remain unchanged.

Can I use this refactoring approach for Kotlin codebases during pull request reviews?

Yes, you can use this refactoring approach for Kotlin codebases during pull request reviews to identify complex conditional logic and tight coupling, ensuring the codebase remains clean and modular.

When should I not use systematic refactoring on my software design?

You should avoid systematic refactoring when lacking adequate test coverage, as test-driven transformation cycles and atomic commits are strictly required to guarantee behavioral preservation throughout the code restructuring process.