modern-best-practice-nextjs

Build modern Next.js apps with App Router and best practices

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "modern-best-practice-nextjs" with this command: npx skills add academind/ai-config/academind-ai-config-modern-best-practice-nextjs

Next.js Best Practices (App Router)

Next.js is a library that changes frequently - use web search or context7 MCP (via DocsExplorer agent) for exploring the current documentation.

Routing & Structure

  • Use the App Router in app/ for new work
  • Use nested layouts and route groups to organize sections
  • Keep server components as the default; add 'use client' only where needed

Data Fetching & Caching

  • Fetch data in React Server Components - AVOID fetching via useEffect() and fetch()
  • Use server actions ("Server Functions") for mutations, potentially in conjunction with React Hooks like useActionState

UI States

  • Provide loading.tsx and error.tsx for route-level UX
  • Use Suspense boundaries around async UI

Metadata & SEO

  • Use the Metadata API in layouts and pages
  • Prefer static metadata when possible; keep dynamic metadata minimal

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

modern-best-practice-react-components

No summary provided by upstream source.

Repository SourceNeeds Review
General

modern-tailwind

No summary provided by upstream source.

Repository SourceNeeds Review
General

use-modern-browser-apis

No summary provided by upstream source.

Repository SourceNeeds Review
General

modern-accessible-html-jsx

No summary provided by upstream source.

Repository SourceNeeds Review