What problem does it solve?
This Skill addresses the challenge of overly large source code files that hinder maintainability, readability, and developer productivity by providing a structured approach to breaking them down.
Core Features & Use Cases
- Automated Code Decomposition: Analyzes source files, identifies logical sections, and proposes a plan to split them into smaller, more manageable modules.
- Dependency Mapping & Verification: Maps internal dependencies between proposed modules and verifies that no circular dependencies are introduced.
- Automated Refactoring: Optionally executes the decomposition plan, creates new files, updates import statements across the codebase, and runs tests to ensure integrity.
- Use Case: When a single TypeScript file in your project grows to over 800 lines, this skill can automatically split it into several smaller files, each focusing on a specific responsibility, and update all references accordingly.
Quick Start
Decompose the file src/extensions/registry.ts into smaller modules.