What problem does it solve?
This Skill addresses the cognitive load and maintenance challenges caused by poorly organized codebases, where related files are scattered across technical layers, making features hard to find, understand, and modify.
Core Features & Use Cases
- Feature-Scoped Directories: Organizes code by feature or domain, keeping all related files (implementation, tests, assets) together.
- Test Colocation: Ensures tests live alongside the code they verify.
- Asset Colocation: Keeps styles, types, and fixtures with their respective components or features.
- Use Case: When building a new "user authentication" feature, this Skill ensures all related files (e.g.,
LoginForm.tsx, useAuth.ts, auth.types.ts, LoginForm.test.tsx, LoginForm.module.css) are placed within a single src/features/authentication/ directory, rather than being spread across src/components/, src/hooks/, src/types/, and tests/components/.
Quick Start
Use the scoped-colocation skill to organize the code for a new user profile feature.