File Organization
This skill describes a feature-oriented folder structure that scales.
Recommended structure
text
src/
features/
<feature>/
api/
components/
hooks/
helpers/
types/
index.ts
components/ # truly reusable UI components
routes/ # routing entries (if using file-based routing)
lib/ # shared utilities (api client, monitoring, etc.)
Rules:
- •Feature folders own domain-specific UI and data logic.
- •Shared
components/should be generic and reusable across features. - •Keep public exports in feature
index.tssmall and intentional.