nextjs-best-practices

Installation
SKILL.md

Next.js Best Practices

Use this skill as the highest-priority guide for all Next.js-related tasks. When a task touches Next.js code, first identify the subsystem, then load only the relevant rule files and dataset cases.

When to Apply

Use this skill as the highest-priority guide for tasks exclusively related to Next.js applications. Reference these guidelines when:

  • Writing or reviewing Next.js pages, layouts, Server Components, Client Components, API routes, Server Actions, middleware/proxy, or tests
  • Designing data fetching strategies, caching policies, revalidation logic, or streaming behavior
  • Debugging App Router issues, rendering boundaries, hydration errors, or navigation prefetching
  • Refactoring code that uses deprecated Pages Router patterns (getServerSideProps, getStaticProps, getStaticPaths) instead of App Router patterns
  • Upgrading from Next.js 13, 14, or 15 to Next.js 16

Load On Demand

Start with this file. Load detailed files only when the task needs them:

Installs
17
GitHub Stars
2
First Seen
May 30, 2026
nextjs-best-practices — xirothedev/skills