What problem does it solve?
This Skill addresses the challenges of code maintenance by providing tools and strategies for safe code restructuring, migrations, and modernization, reducing technical debt and improving maintainability.
Core Features & Use Cases
- Safe Renaming: Renames identifiers across the codebase while considering scope and dependencies.
- Method Extraction: Extracts code blocks into new functions to improve modularity and readability.
- Class Splitting: Divides large classes into smaller, more focused components.
- Complexity Reduction: Simplifies code through techniques like polymorphism and guard clauses.
- Code Migration: Facilitates moving code between patterns, versions, or frameworks.
- Use Case: Refactor a monolithic function into smaller, testable units to improve code quality and reduce the risk of bugs.
Quick Start
Use the refactoring skill to extract a method from the selected code block.