nextjs-16
БесплатноБез исполняемых скриптовНе проверенUse when building Next.js 16 apps — Turbopack, App Router, Cache Components, proxy.ts, v15 migration. Not for stack scaffolding (nextjs-stack) or React SPA…
от Fusengine★ 36 звёзд на GitHubОб этом скилле
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.
Next.js 16 Expert
Production-ready React framework with Server Components, streaming, and Turbopack.
Agent Workflow (MANDATORY)
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
- fuse-ai-pilot:explore-codebase - Analyze existing routes, components, and patterns
- fuse-ai-pilot:research-expert - Verify latest Next.js 16 docs via Context7/Exa
- mcp__context7__query-docs - Check breaking changes v15→v16
After implementation, run fuse-ai-pilot:sniper for validation.
Overview
When to Use
- Building new React applications with server-first architecture
- Need Server Components for optimal performance and SEO
- Implementing streaming and progressive rendering
- Migrating from Next.js 14/15 to version 16
- Using proxy.ts for route protection (replaces middleware)
- Leveraging Turbopack for faster development builds
Why Next.js 16
| 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 |
Breaking Changes from v15
Critical Migration Points
- proxy.ts replaces middleware.ts - Full Node.js runtime, not Edge
- Turbopack by default -
next dev/next builduse Turbopack; a customwebpackconfig fails the build unless you migrate it or opt out with--webpack cacheComponents+use cache- Replacesexperimental.ppr/experimental_ppr(removed); PPR is the default behavior undercacheComponents- React 19 required - New hooks and View Transitions API
- Async params/searchParams - Must await dynamic route params
Cache Components: the recommended model (16.4+)
Since 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).
New in 16.1 – 16.4 (see upgrade.md)
- 16.1 - Turbopack filesystem cache on by default for
next dev;next dev --inspect - 16.2 -
transitionTypesprop on<Link>,next start --inspect, Adapters API stable - 16.3 -
catchError+retry()error recovery (stable),next/root-params,import.meta.glob, Turbopack build cache on by default, opt-in Instant Navigations (partialPrefetchingwithcacheComponents) - 16.4 - Cache Components recommended for all apps (on by default in
create-next-app, default in Next.js 17);ensureStaticroute segment config;navigation()/prefetch()fromnext/cache;next upgrade --agent+experimental.agentUpgrade; React 19.3 (stable View Transitions, Fragment Refs,browser()); lazy server HMR, smaller Turbopack disk cache and production bundles
SOLID Architecture
Module-Based Structure
Pages are thin entry points importing from feature modules:
app/page.tsx→ imports frommodules/public/home/app/dashboard/page.tsx→ imports frommodules/auth/dashboard/modules/cores/→ Shared services, utilities, configurations
File Conventions
- page.tsx - Route UI component
- layout.tsx - Shared UI wrapper
- loading.tsx - Suspense loading state
- error.tsx - Error boundary
- not-found.tsx - 40
Установить nextjs-16 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл nextjs-16?
Use when building Next.js 16 apps — Turbopack, App Router, Cache Components, proxy.ts, v15 migration. Not for stack scaffolding (nextjs-stack) or React SPA (react-expert).
Как установить скилл nextjs-16?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nextjs-16 запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic