What problem does it solve?
This Skill addresses the challenge of managing large, monolithic code files by facilitating precise refactoring into focused modules, improving readability and maintainability.
Core Features & Use Cases
- Code Splitting: Break large files into dedicated, responsibility-specific modules.
- Responsibility Mapping: Analyze files to identify distinct concerns like logic, UI, types, or utilities.
- Refactoring Planning: Generate step-by-step plans to restructure code safely while preserving functionality.
- Use Case: A developer working on a 600-line utility can use this Skill to split it into separate files for formatting, validation, and helpers, maintaining import integrity across the project.
Quick Start
Use the refactor-surgeon skill to analyze a large React component and produce a plan for splitting it into smaller, manageable sub-components.