Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Standardized guidelines for organizing React applications using feature-based architecture. Use when structuring new projects, organizing large codebases, or implementing domain-driven folder structures.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-07 | ✗→✓ | ▲ Improved | 3% | 0% |
| case-03 | ✓→✗ | ▼ Worse | 16% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 22% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 21% | 0% |
| case-06 | ✓→✓ | = Same ✓ | -18% | 0% |
src/
├── features/
│ ├── auth/
│ │ ├── components/
│ │ │ ├── LoginForm.tsx
│ │ │ └── RegisterForm.tsx
│ │ ├── hooks/
│ │ │ └── useAuth.ts
│ │ ├── api/
│ │ │ └── authApi.ts
│ │ ├── types/
│ │ │ └── auth.types.ts
│ │ └── index.ts # Public API
│ ├── products/
│ │ ├── components/
│ │ ├── hooks/
│ │ └── index.ts
│ └── cart/
├── shared/
│ ├── components/ # Shared UI
│ ├── hooks/
│ └── utils/
└── app/
├── App.tsx
└── routes.tsx1. Feature Colocation Keep all code related to a feature together:
typescript// features/products/index.ts (Public API) export { ProductList } from './components/ProductList'; export { useProducts } from './hooks/useProducts'; export type { Product } from './types/product.types';
2. Import Rules
shared/3. Shared Code Only extract to shared/ when:
Other measured skills in the registry, with their headline benchmark lift.