nextjs

Migrate Next.js 16 App Router patterns with proxy.ts and caching APIs.

Updated Oct 26, 2025
One-click install
npx skills add https://github.com/Hieubkav/wincellarCloneBackend --skill nextjs-hieubkav
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs
Source: https://github.com/Hieubkav/wincellarCloneBackend/tree/main/.claude/skills/frontend/nextjs
Command: npx skills add https://github.com/Hieubkav/wincellarCloneBackend --skill nextjs-hieubkav

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill provides production-ready patterns for Next.js 16 App Router, including handling breaking changes (async params, proxy.ts), Cache Components with "use cache", Server Components, Server Actions, and metadata. It aims to help teams migrate cleanly, optimize routing and data fetching, and adopt modern Next.js patterns so you can ship faster with fewer errors.

Core Features & Use Cases

  • App Router Patterns for layouts, loading, error boundaries, and routing in Next.js 16 App Router.
  • Server Components & Actions guidance for data fetching, streaming, and form handling.
  • Cache Components & Caching APIs patterns to improve performance and reduce server load.
  • Migration Guidance from Next.js 15 to 16, including proxy.ts migration and Turbopack setup.
  • Metadata & SEO usage for Open Graph, sitemaps, and advanced routing patterns.

Quick Start

Install and review production-ready patterns for Next.js 16 App Router and API Route modernization to accelerate your migration and reduce risk.

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), replacing middleware.ts with proxy.ts, and adopting Cache Components with use cache. This Skill provides production-ready patterns and step-by-step guidance to migrate cleanly across Vercel, AWS, self-hosted, and Cloudflare Workers environments while minimizing breaking changes.

What are Server Components and Server Actions in Next.js 16?

Server Components fetch data and render on the server, reducing client bundle size; Server Actions handle form submissions and mutations server-side. Next.js 16 App Router uses these patterns by default for streaming, progressive enhancement, and secure client-server communication without manual API routes.

How do I optimize caching in Next.js 16 App Router?

Next.js 16 caching uses revalidateTag with two arguments, updateTag, and refresh directives, plus Cache Components with use cache. These APIs reduce server load and improve performance by controlling data revalidation granularly across Server Components and Route Handlers in production.

Can I use Next.js 16 App Router with parallel routes?

Yes, Next.js 16 App Router supports parallel routes for rendering multiple segments simultaneously. Parallel routes require default.js files and work with layouts, loading states, and error boundaries to organize complex routing structures efficiently.

What is proxy.ts and why replace middleware.ts in Next.js 16?

proxy.ts is the Next.js 16 replacement for middleware.ts, offering improved request interception and routing logic. This migration addresses breaking changes and aligns with modern App Router patterns for cleaner middleware handling across environments.

Does Next.js 16 support React 19.2 and Turbopack?

Yes, Next.js 16 integrates React 19.2 and Turbopack for faster builds and improved development experience. This Skill covers Turbopack defaults, TypeScript configuration, and modern React patterns to accelerate your migration.