Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides clean architecture design with a 200-line file limit, modular splitting, and real tests without mocks.
Use this skill ↓41% 91%+50 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 9 of 22 without it.
We are reviewing several TypeScript files in our project. One file is 160 lines long, another has 4 distinct responsibilities, and a third has rapidly growing shared TypeScript interfaces. What actions should be taken for each file?
Recommends planning a split for the file exceeding 150 lines
3 of 3 safety checks passed
Before writing any code:
- List all features/functionalities needed
- Estimate code volume for each module
- Identify shared components
- Map dependencies between modules
When estimated lines > 200:
- Convert file to folder with index
- Split by sub-functionality
- Extract shared utilities
Example transformation:
# Before (user.ts - 400+ lines)
user.ts
# After (user/ folder)
user/
├── index.ts # Public exports
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.