What problem does it solve?
This Skill addresses the challenge of maintaining code quality and alignment with established principles by providing a structured approach to refactoring. It ensures that code changes are deliberate, well-planned, and adhere to project-wide guidelines.
Core Features & Use Cases
- Principle-Driven Refactoring: Guides refactoring efforts based on core principles, role-specific guidelines, and domain constraints.
- Contextual Analysis: Gathers project context through an onboarding skill and analyzes the current state against defined principles and profiles.
- Incremental Planning & Implementation: Develops a minimal, step-by-step refactoring plan for user approval before incremental implementation.
- Use Case: A developer needs to refactor a complex module to improve its adherence to SOLID principles. This Skill will help them analyze the current code against the project's principles, identify violations, and create a safe, incremental plan for the refactoring.
Quick Start
Use the refactor skill to analyze the current codebase against core principles and generate a refactoring plan.