What problem does it solve?
This Skill helps developers and reviewers identify and remediate code quality issues by performing iterative refactoring that improves readability, reduces complexity, and preserves original functionality.
Core Features & Use Cases
- Iterative Refactoring: Analyze code to find high-complexity functions and propose incremental changes that can be applied in loops.
- Structure and Performance Improvements: Suggest reorganizations, extraction of helper functions, and performance-minded optimizations while keeping behavior intact.
- Review-driven Workflow: Request feedback, incorporate review comments, and repeat refinement cycles until the desired quality is reached.
- Use Case: Convert a single large, hard-to-read function into a set of well-named, testable helpers while documenting the changes and ensuring existing tests continue to pass.
Quick Start
Refactor the following code to improve readability, reduce complexity, and preserve all existing behavior while documenting each change.