Architecture profiles Rocky: détecter avant d'imposer
Rocky détecte le repo avant d'imposer une structure: Next.js App Router, hexagonal si src/domain existe, React SPA layered, ou node-api-only. N'imposez pas de layouts étrangers.
Détectez le repo de l'utilisateur avant d'imposer une structure. Préférez les playbooks hexagonaux quand src/domain/ existe.
Source: architecture-profiles.md.
Ordre de détection
app/+ deps Next.js → nextjs-app-router (nextjs-developer)src/domain/+src/application/→ hexagonal
- NestJS → nestjs-hexagonal - FastAPI / Python → fastapi-hexagonal - React UI → react-hexagonal
src/components/atoms+connected/→ layered-react-spa- Pas de
components/maissrc/routesou Express → node-api-only - Sinon: graphify + lire les voisins. Ne forcez pas de layouts étrangers.
hexagonal (préféré quand présent)
src/
├── domain/
├── application/
└── infrastructure/Variantes de styling
| Profil | Quand |
|---|---|
| Tailwind | tailwindcss dans package.json → tailwind-ui-developer |
| Modules LESS | Pas de Tailwind → conventions react-hexagonal + repo |
