nextjs-patterns
Installation
SKILL.md
Next.js App Router Architecture
Architecture Overview
All code lives under src/. Four top-level directories sit next to /app:
| Directory | Purpose |
|---|---|
core/ |
Shared application logic — constants, hooks, providers, stores, types, utils |
lib/ |
External integrations — API client (Axios), auth, db, email |
components/ |
Global UI — ui/ (shadcn/design system), custom/ (reusable composites) |
app/ |
Routes and feature folders (co-located) |