The nextjs-best-practices skill provides developers with a comprehensive reference guide for building applications using Next.js App Router, covering server and client component patterns, data fetching strategies, routing conventions, and performance optimization techniques. It is intended for developers working with Next.js who need guidance on architectural decisions such as component selection, caching layers, and proper use of server actions. The skill solves the problem of inconsistent implementation patterns by offering decision trees, comparison tables, and specific file conventions for common Next.js development scenarios.

skills.sh installs
6.7K
GitHub stars
43.1K
last updated
Jul 14, 2026

Install

$ npx -y skills add sickn33/antigravity-awesome-skills --skill nextjs-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Files

Next.js Best Practices

Principles for Next.js App Router development.


1. Server vs Client Components

Decision Tree

Does it need...?
│
├── useState, useEffect, event handlers
│   └── Client Component ('use client')
│
├── Direct data fetching, no interactivity
│   └── Server Component (default)
│
└── Both? 
    └── Split: Server parent + Client child

By Default

TypeUse
ServerData fetching, layout, static content
ClientForms, buttons, interactive UI

2. Data Fetching Patterns

Fetch Strategy

PatternUse
DefaultVersion/config dependent; current fetch defaults are uncached
Explicit cachefetch(url, { cache: "force-cache" }) when data may be shared
RevalidateISR (time-based refresh)
No-storeDynamic (every request)

Data Flow

SourcePattern
DatabaseServer Component fetch
APIfetch with caching
User inputClient state + server action

3. Routing Principles

File Conventions

Sponsors

Details

Repository
github.com/sickn33/antigravity-awesome-skills
Category
Frontend Development

More from sickn33/antigravity-awesome-skills

All 708
1github avatarpremium-frontend-uigithub/awesome-copilotA comprehensive guide for GitHub Copilot to craft immersive, high-performance web experiences with advanced motion, typography, and architectural craftsmanship.5Kskills.sh installs
2daniel-dan-conrad avatarui-designerdaniel-dan-conrad/ui-designer-skillui designer3.7Kskills.sh installs
3minimax-ai avatarfrontend-devminimax-ai/skillsFull-stack frontend development combining premium UI design, cinematic animations, AI-generated media assets, persuasive copywriting, and visual art. Builds com3.2Kskills.sh installs
4nexu-io avatarfrontend-skillnexu-io/open-designCreate visually strong landing pages, websites, and app UIs with restrained composition. OpenAI's production frontend playbook.3.2Kskills.sh installs
5pproenca avatarreact-hook-formpproenca/dot-skillsReact Hook Form performance optimization for client-side form validation using useForm, useWatch, useController, useFieldArray, the subscribe() API, and the Wat3.1Kskills.sh installs
6nexu-io avatarshadcn-uinexu-io/open-designBuild UI components with shadcn/ui. Pairs with the Stitch design loop to ship structured, accessible components quickly.3Kskills.sh installs