What problem does it solve?
This Skill guides teams to structure React/Next.js/TypeScript projects using a feature-based architecture, helping keep codebases scalable and maintainable.
Core Features & Use Cases
- Top-down structure guidance: Defines a recommended top-level layout (src/app, src/features, src/components, src/lib, src/utils, etc.) to organize code by feature/domain rather than by file type.
- Feature module isolation: Encourages self-contained feature modules with clear boundaries to reduce cross-feature coupling.
- Unidirectional data flow guidance: Enforces import directions to prevent circular or global dependencies and to improve composability.
- Use this skill when starting a new project, reorganizing an existing codebase, or evaluating where to place new code sections in a React/Next.js/TypeScript app.
Quick Start
Initialize a new project structure following the guide: create src/app for routing and providers, a src/features folder for domain modules, a shared src/components folder for reusable UI, and add a minimal example feature to validate the structure.