What problem does it solve?
This skill provides a structured, safe, and scalable approach to refactoring TypeScript codebases while preserving existing behavior, tests, and interfaces. It emphasizes SOLID principles, performance-oriented design, and feature-folder organization to improve maintainability without introducing regressions.
Core Features & Use Cases
- Guided, behavior-preserving refactor process that preserves outputs, timing, and side effects.
- Focused on TypeScript projects with large files, long functions, and complex nesting, offering guidelines to extract constants, helpers, rename APIs, and restructure into feature folders.
- Supports updating tests, types, imports, and usages in a coordinated refactor workflow.
Quick Start
Identify the target file and run the structured refactor plan to extract helpers and constants while preserving behavior.