Next.js is a powerful framework for building modern web apps. This guide covers the best practices for using the App Router. It helps you decide between Server Components and Client Components. You will learn how to fetch data efficiently and organize your routes. Developers can build faster and more reliable applications by following these principles.
The guide explains key patterns like data fetching with caching and revalidation. It also covers routing with layouts, loading states, and error boundaries. You will see how to use server actions for form submissions and data mutations. Performance tips include image optimization and code splitting.
Whether you are new to Next.js or want to improve your skills, this skill gives you a clear path forward. Start with Server Components by default and add client interactivity only when needed.
Global
mkdir -p ~/.claude/skills/nextjs-best-practicesProject
mkdir -p .claude/skills/nextjs-best-practicesSource Repository
Frontend Designanthropics/skills
Create striking frontend interfaces with bold design and polished code every time
Vercel React Best Practicesvercel-labs/agent-skills
Optimize React and Next.js apps using proven Vercel performance guidelines
Design Taste Frontendleonxlnx/taste-skill
Enforce premium frontend design with metric-based rules and smart component architecture
Vercel Composition Patternsvercel-labs/agent-skills
Clean React components with composition instead of boolean props
Shadcnshadcn/ui
Manage shadcn UI components easily with CLI commands and clear styling rules
Impeccablepbakaus/impeccable
Polish your frontend interfaces with expert design critique and code
Minimalist Uileonxlnx/taste-skill
Build warm minimal web interfaces with editorial typography and flat bento grids
Industrial Brutalist Uileonxlnx/taste-skill
Raw mechanical UIs fusing Swiss print with military terminal aesthetics and high data density