What problem does it solve? Large files that grow past roughly 200 lines become hard to navigate, review, and maintain. This Skill evaluates whether a file should be split, then refactors it into smaller, cohesive modules without breaking public APIs or existing tests. ## Core Features & Use Cases - Heuristic-Based Decisions: Evaluates logical cohesion, function size, nesting complexity, and fragmentation risk before refactoring, with an abort condition for files that logically belong together (e.g., constant dictionaries or large switch statements). - Test Suite Splitting: Splits large test files by behavior or topic (e.g., coercion.test.ts, arrays.test.ts) and extracts shared setup into helper files only when duplication is real. - Source Module Refactoring: Isolates UI prompts, file system adapters, API clients, and reporters into discrete sub-modules while keeping the original file as a high-level orchestrator. - Use Case: A 600-line test file is split into topic-focused files, barrel exports preserve the public API, and typecheck, build, lint, and tests all pass afterward. ## Quick Start Ask the AI to modularize a specific oversized file, for example: split packages/core/src/create-env.test.ts into topic-focused test files and verify all tests still pass.