/fuse-nextjs:nextjs-16from fuse-nextjs
Covers Next.js 16 core framework mechanics: Turbopack, App Router, Cache Components, proxy.ts, and v15→v16 migration. For building production Next.js 16 apps with Server Components and streaming.
Ships in fuse-nextjs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Documents the critical v15→v16 breaking changes: proxy.ts replacing middleware.ts, Turbopack as the default for next dev/next build, cacheComponents replacing the removed experimental.ppr flag, required React 19, and async params/searchParams. This skill covers core framework APIs only — for assembling a full production stack (Prisma, Better Auth, shadcn/ui, Zustand together) use nextjs-stack instead; for a pure React SPA without next.config.* use the react-expert skills instead.
Production-ready React framework with Server Components, streaming, and Turbopack.
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
After implementation, run fuse-ai-pilot:sniper for validation.
| Feature | Benefit |
|---|---|
| Turbopack default | 2-5x faster builds, 10x faster HMR; Webpack only via --webpack opt-out |
| Cache Components | Explicit caching with use cache directive |
| proxy.ts | Full Node.js runtime, replaces Edge middleware |
| React Compiler | Automatic memoization, no manual useMemo/useCallback |
| React 19 | View Transitions, useEffectEvent, Activity component |
| App Router | Nested layouts, parallel routes, intercepting routes |
next dev/next build use Turbopack; a custom webpack config fails the build unless you migrate it or opt out with --webpackcacheComponents + use cache - Replaces experimental.ppr / experimental_ppr (removed); PPR is the default behavior under cacheComponentsSince 16.4 Cache Components is recommended for every Next.js app, create-next-app enables it by default, and it becomes the default in Next.js 17. Data fetching is dynamic by default; opt in to caching per component/function with 'use cache'. Use the two-flag setup (cacheComponents: true + partialPrefetching: true, set partialPrefetching explicitly) for new code and when touching caching/data fetching; see cache-components.md. Existing apps: npx next@canary upgrade --agent=latest (see upgrade.md).
next dev; next dev --inspecttransitionTypes prop on <Link>, next start --inspect, Adapters API stablecatchError + retry() error recovery (stable), next/root-params, import.meta.glob, Turbopack build cache on by default, opt-in Instant Navigations (partialPrefetching with cacheComponents)create-next-app, default in Next.js 17); ensureStatic route segment config; navigation() / prefetch() from next/cache; next upgrade --agent + experimental.agentUpgrade; React 19.3 (stable View Transitions, Fragment Refs, browser()); lazy server HMR, smaller Turbopack disk cache and production bundlesPages are thin entry points importing from feature modules:
app/page.tsx → imports from modules/public/home/app/dashboard/page.tsx → imports from modules/auth/dashboard/modules/cores/ → Shared services, utilities, configurationsAll components are Server Components by default. Use 'use client' directive only when needed for interactivity, hooks, or browser APIs.
cacheComponents on (recommended, 16.4+) data fetching is dynamic; wrap uncached runtime access in <Suspense> and cache explicitlyuse cache - Mark async functions for cachingcacheTag() - Tag cached data for targeted revalidationcacheLife() - Control cache duration (stale, revalidate, expire)revalidateTag() - Invalidate cached data on-demandServer Components fetch data directly. Use fetch() with native caching or database queries. No need for getServerSideProps or getStaticProps.
| Need | Reference |
|---|---|
| Initial setup | installation.md, project-structure.md |
| Migration v15→v16 | upgrade.md, middleware-migration.md |
| Routing | app-router.md, routing-advanced.md |
| Caching | caching.md, cache-components.md |
| Server Components | server-components.md, directives.md |
| React 19 features | react-19.md, react-compiler.md |
| Route protection | proxy.md, security.md |
| SEO/Metadata | metadata.md, metadata-files.md |
| Forms/Actions | forms.md, data-fetching.md |
| Deployment | deployment.md, environment.md |
'use client' when necessaryuse cache for expensive operationsindex.md (opens in a new tab)references/analytics.md (opens in a new tab)references/api-routes.md (opens in a new tab)references/app-router.md (opens in a new tab)references/cache-components.md (opens in a new tab)references/caching.md (opens in a new tab)references/config-advanced.md (opens in a new tab)references/cookies-headers.md (opens in a new tab)references/data-fetching.md (opens in a new tab)references/deployment.md (opens in a new tab)references/devtools-mcp.md (opens in a new tab)references/directives.md (opens in a new tab)references/dynamic-imports.md (opens in a new tab)references/environment.md (opens in a new tab)references/error-handling.md (opens in a new tab)references/fonts.md (opens in a new tab)references/forms.md (opens in a new tab)references/images.md (opens in a new tab)references/installation.md (opens in a new tab)references/instrumentation.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/better-authUse when implementing Next.js authentication with Better Auth — OAuth, 2FA, magic links, SSO, Stripe billing, or session management./nextjs-i18nUse when implementing i18n in Next.js 16 — next-intl or DIY dictionaries, locale routing, language switch, or formatters./nextjs-server-componentsUse when deciding Server vs Client Component boundaries in Next.js 16, fetching data directly in components, or streaming with Suspense.npx claudepluginhub fusengine/claude-plugins --plugin fuse-nextjsOther plugins' skills for the same job