What problem does it solve?
This Skill helps you simplify and refactor code while preserving behavior, reducing complexity, and improving clarity for maintainable software.
Core Features & Use Cases
- Extract Method (메서드 추출): Split long functions into smaller, focused helpers to improve readability and reduce cognitive load.
- Remove Duplication (중복 제거): Consolidate repeated query/build logic using shared functions and parameter objects to follow DRY.
- Design improvements for maintainability: Replace conditional chains with polymorphism, introduce parameter objects, and apply SOLID principles to separate responsibilities.
- Behavior validation: Add a structured pre/post refactor checklist covering inputs, outputs, invariants, dependencies, and test/verification steps to reduce regression risk.
- Use Case Examples: Refactor a bloated order-processing function, unify similar database queries for different user segments, or restructure payment method handling to be easier to extend.
Quick Start
Use code-refactoring to refactor a complex TypeScript function into smaller helpers, remove duplication, and validate behavior with tests and static checks.