nextjs

Next.js 16 App Router patterns: use cache, proxy.ts, cacheComponents, React 19 hooks, RSC, streaming, PPR, Prisma 7, Better Auth, next-intl

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 "nextjs" with this command: npx skills add clownnvd/claude-code-skills/clownnvd-claude-code-skills-nextjs

Next.js 16 Skill Index

Quick Reference

CategoryFileCovers
Getting Startedinstallationcreate-next-app, manual setup, CLI prompts, TypeScript, linting, aliases
Getting Startedproject-structurefolders, routing files, metadata files, colocation, organization strategies
Getting Startedlayouts-and-pagespages, layouts, nesting, dynamic segments, searchParams, Link, PageProps/LayoutProps
Getting Startedlinking-and-navigatingLink, prefetching, streaming, loading.tsx, useLinkStatus, history API
Getting Startedserver-and-client-componentsRSC vs Client, 'use client', composition, context, server-only, env safety
Getting Startedcache-componentsPPR, cacheComponents, use cache, cacheLife, Suspense, Activity, migration
Getting Startedfetching-datafetch, ORM, use() streaming, SWR, deduplication, React.cache, parallel/sequential
Getting Startedupdating-dataServer Actions, 'use server', forms, revalidate, redirect, refresh, cookies
Getting Startedcaching-and-revalidatingfetch cache, cacheTag, revalidateTag, updateTag, revalidatePath, decision guide
Getting Startederror-handlingexpected vs uncaught, useActionState, notFound, error.tsx, global-error, reset
Getting StartedcssTailwind setup, CSS Modules, global CSS, external, ordering, dev vs prod
Getting Startedimagesnext/image, local/remote, fill, blur placeholder, remotePatterns, props
Getting Startedfontsnext/font, Google self-host, local fonts, variable fonts, Tailwind CSS 4
Getting Startedmetadata-and-og-imagesstatic/dynamic metadata, generateMetadata, file conventions, ImageResponse, OG images
Getting Startedroute-handlersroute.ts, HTTP methods, caching, cache components, params, NextRequest/NextResponse
Getting Startedproxyproxy.ts (replaces middleware.ts), matcher, redirects, rewrites, headers, auth checks
Getting StarteddeployingNode.js server, Docker, static export, adapters (Vercel, Cloudflare, etc.)
GuideanalyticsuseReportWebVitals, Web Vitals metrics, Google Analytics
Guideauthenticationsign-up, sessions (JWT/DB), DAL pattern, auth checks
Guidebackend-for-frontendRoute Handlers as API, webhooks, proxy, security
Guidecaching4 mechanisms, static/dynamic, Data Cache, Router Cache
Guideci-build-caching.next/cache for 11 CI providers
Guidecontent-security-policynonce-based CSP, proxy setup, SRI
Guidecss-in-jsstyled-jsx, styled-components, registry pattern
Guidecustom-servernext() setup, caveats, static optimization
Guidedata-securityDAL, server-only, taintUniqueValue, Server Actions
GuidedebuggingVS Code launch.json, browser DevTools, WebStorm
Guidedraft-moderoute handler setup, CMS integration, isEnabled
Guideenvironment-variables.env load order, NEXT_PUBLIC_, runtime vs build-time
GuideformsServer Actions, Zod, useActionState, useOptimistic
Guideincremental-static-regenerationtime-based, on-demand, revalidatePath/Tag
Guideinstrumentationinstrumentation.ts, register(), onRequestError
Guideinternationalizationlocale routing, dictionaries, server/client i18n
Guidejson-ldstructured data, schema.org, script injection
Guidelazy-loadingnext/dynamic, React.lazy, named exports, SSR skip
Guidelocal-developmentHTTPS, Turbopack, Docker, memory, absolute imports
GuidemcpNext.js MCP server, IDE integration, tools
Guidemdx@next/mdx, remote MDX, custom components, plugins
Guidememory-usagewebpack workers, heap profiling, cache/sourcemaps
GuidemigratingPages→App Router, CRA→Next, Vite→Next
Guidemulti-tenantsubdomain, path-based, custom domains
Guidemulti-zonesmicro-frontends, assetPrefix, rewrites, cross-zone
Guideopen-telemetry@vercel/otel, NodeSDK, spans, custom attributes
Guidepackage-bundlingbundle analyzer, optimizePackageImports, externals
Guideprefetchingauto, manual, hover, extended, PPR integration
Guideproduction-checklistoptimizations, best practices, pre-launch checks
Guideprogressive-web-appsmanifest, push notifications, service worker
Guideredirectingredirect(), permanentRedirect(), config, proxy
Guidesass.scss/.sass, sassOptions, sass-embedded, variables
Guidescriptsnext/script, loading strategies, event handlers
Guideself-hostingreverse proxy, image optimization, caching, CDN
Guidesingle-page-applicationsSPA patterns, use(), SWR, shallow routing, static export
Guidestatic-exportsoutput: 'export', supported/unsupported features
Guidetailwind-v3-cssTailwind v3 setup, config, directives
GuidetestingVitest, Jest, Playwright, Cypress, test types
GuidecypressE2E + component testing, cypress.config.ts, CI scripts
Guidejestnext/jest, jest-dom, snapshot testing, module aliases
GuideplaywrightE2E, multi-browser, webServer, playwright.config.ts
Guidevitestunit testing, @vitejs/plugin-react, vite-tsconfig-paths
Guidethird-party-libraries@next/third-parties, GTM, GA, Maps, YouTube
Guideupgradingv14→v15→v16, codemods, upgrade workflow
Guidevideosvideo/iframe embed, Suspense, Vercel Blob, Mux

Next.js 16 Breaking Changes (from 15)

ChangeNext.js 15Next.js 16
Cachingunstable_cache"use cache" directive
Cache profilesN/AcacheLife('hours') presets
Cache tagsrevalidateTag(tag)cacheTag(tag) + updateTag(tag)
RevalidationrevalidateTag(tag)revalidateTag(tag, cacheLifeProfile)
Fresh readN/Arefresh() for uncached data
Middlewaremiddleware.ts (Edge)proxy.ts (Node.js runtime)
PPR / dynamicIOexperimental.ppr, experimental.dynamicIOcacheComponents: true
React Compilerexperimental.reactCompilertop-level reactCompiler: true
Turbopackopt-in (--turbopack)stable, default for dev + build
params/searchParamssync objectsPromise -- must await
Parallel routesoptional defaultexplicit default.tsx required
Node.js18.17+20+ required
TypeScript4.5+5+ required

Migration Command

# Migrate middleware.ts to proxy.ts
npx @next/codemod@canary middleware-to-proxy

# Upgrade to Next.js 16
npx @next/codemod@latest upgrade

next.config.ts (Next.js 16)

import type { NextConfig } from 'next'

const nextConfig: NextConfig = {
  cacheComponents: true,    // replaces experimental.ppr + dynamicIO
  reactCompiler: true,      // no longer experimental
  // turbopack is default, no config needed
}

export default nextConfig

Key Conventions

  • Server Components are the default -- add 'use client' only when needed
  • Use "use cache" at top of file or function for caching
  • Use proxy.ts for request-level middleware (Node.js runtime)
  • Await params and searchParams in all page/layout components
  • Provide default.tsx for every parallel route slot
  • Use Zod for all input validation in server actions and API routes
  • Handle errors with try/catch, never silent returns

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.

Coding

ui-ux-pro-max

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

vercel-react-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

stripe

No summary provided by upstream source.

Repository SourceNeeds Review