nextjs

Provide migration patterns for Next.js 16 App Router features including Server Components and async route params.

16|7|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/jackspace/ClaudeSkillz --skill nextjs-jackspace
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs
Source: https://github.com/jackspace/ClaudeSkillz/tree/main/skills/nextjs
Command: npx skills add https://github.com/jackspace/ClaudeSkillz --skill nextjs-jackspace

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill provides production-ready patterns for Next.js 16 App Router, including server components, server actions, cache components, and migration guidance from Next.js 15.

Core Features & Use Cases

  • ✅ Async route params migration guidance (params, searchParams, cookies, headers)
  • ✅ Proxy.ts migration and parallel routes with default.js
  • ✅ Cache Components and updated revalidation APIs
  • ✅ Server Components, Server Actions, Route Handlers
  • ✅ Metadata, image/font optimization, Turbopack patterns

Quick Start

Set up an App Router project, enable cache components, and adopt proxy.ts for API routes.

Frequently Asked Questions about nextjs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate from Next.js 15 to Next.js 16 App Router?

Next.js 16 App Router migration involves updating async route parameters (params, searchParams, cookies, headers), adopting cache components with the 'use cache' directive, and migrating API routes to proxy.ts. This Skill provides step-by-step patterns for each phase, including TypeScript configuration and Turbopack setup.

What are Server Components and Server Actions in Next.js App Router?

Server Components render on the server, reducing client bundle size and enabling direct database access. Server Actions are async functions that run server-side and can be called from Client Components. Next.js 16 App Router integrates both with improved caching APIs (revalidateTag, updateTag, refresh) for production performance.

How do I set up parallel routes and default.js in Next.js?

Parallel routes in Next.js allow simultaneous rendering of multiple segments within the same layout. Use default.js files to define fallback UI for unmatched routes. This Skill covers production patterns for structuring layouts, managing route state, and optimizing load behavior across parallel segments.

Can I use proxy.ts with Next.js 16 for API routes?

Yes. Proxy.ts is the recommended approach for API route migration in Next.js 16, replacing traditional pages/api routes. This Skill provides adoption patterns, configuration examples, and integration guidance with route handlers to establish production-ready API layers.

What caching strategies should I use with Next.js 16 cache components?

Next.js 16 introduces cache components and updated revalidation APIs: revalidateTag invalidates specific tags, updateTag refreshes cached content, and refresh forces revalidation. This Skill demonstrates production patterns for combining these APIs with Server Components to manage data freshness at scale.

Does Next.js 16 App Router support React 19.2 integration?

Yes. Next.js 16 integrates React 19.2 within App Router, enabling advanced patterns for Server Components, concurrent rendering, and async operations. This Skill covers integration patterns, compatibility considerations, and optimization techniques across Turbopack and deployment platforms.