Comprehensive Next.js development patterns for App Router, Server Components, TypeScript, and Tailwind CSS. Covers foundational principles, data fetching, routing, performance, and an 8-phase development workflow. Also includes Server Actions and Metadata patterns.
Comprehensive patterns and best practices for Next.js 14+ / 15+ App Router architecture, Server Components, and modern full-stack React development.
app/ directory for file-based routing.(group-name) for organization without affecting URL structure.page.tsx, layout.tsx, loading.tsx, error.tsx, not-found.tsx.@slot) and Intercepting routes ((.)).| Pattern | Use Case | Implementation |
|---|---|---|
| Static | Blog posts, marketing | Cached at build time |
| ISR | Products, news | revalidate: 60 |
| Dynamic | User dashboards, search | no-store or force-dynamic |
async/await.Suspense and loading.tsx to stream UI to the client.use server functions. Validate with Zod.Scaffold with @app-builder, configure TypeScript, and set up ESLint/Prettier.
Design hierarchy and implement base layout components using @frontend-developer and @react-patterns.
Configure Tailwind CSS v4 and design tokens using @tailwind-patterns and @frontend-design.
Implement Server Component data fetching and set up React Query/SWR if client-side fetching is needed.
Set up file-based routing, dynamic routes, and handle redirects/guards.
Use React Hook Form and Zod for robust, type-safe data entry.
Write unit/integration tests with Vitest and E2E flows with @playwright-skill.
Analyze bundle size, optimize images with next/image, and deploy to Vercel/similar.
next/image. Set priority for LCP elements.generateMetadata for dynamic SEO tags per route.'use client' at the top level of every file.useEffect for information available on first load.Guidance: If you need deeper walkthroughs, refer to the
resources/folder within this skill.