What problem does it solve?
This skill standardizes the approach to building scalable Next.js frontends, reducing architectural drift and onboarding time for frontend teams.
Core Features & Use Cases
- App Router focused structure: layout, pages, and route groups (e.g., app/(dashboard)/..., app/(marketing)/...).
- Server Components by default with client components only when needed; guidance on props serializability.
- Data fetching patterns: colocated server fetchers in lib, use fetch with caching semantics, and route-specific loading/error handling (loading.tsx, error.tsx).
- Forms, validation, and authentication integration: server actions, route handlers, env vars guidelines (NEXT_PUBLIC variables).
- Quality gates and deployment readiness: linting, type checking, accessibility checks, and safe routing changes.
Quick Start
Initialize a new Next.js App Router project with TypeScript and follow the structure: app/layout.tsx, app/page.tsx, and route groups like app/(dashboard)/... ensure Server Components by default and add 'use client' only where needed.