nextjs

Automate Next.js 16 App Router, Server Components, and proxy.ts migration patterns.

4|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/allthingslinux/portal --skill nextjs-allthingslinux
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs
Source: https://github.com/allthingslinux/portal/tree/main/.cursor/skills/nextjs
Command: npx skills add https://github.com/allthingslinux/portal --skill nextjs-allthingslinux

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps developers adopt and implement Next.js 16 App Router, Server Components, caching with "use cache", and the proxy.ts migration pattern, reducing migration friction and improving reliability.

Core Features & Use Cases

  • App Router Mastery: Implement Next.js 16 App Router with Server Components/Actions and caching.
  • Proxy Migration: Replace middleware.ts with proxy.ts and align config.matcher usage.
  • Parallel Routes: Ensure default.tsx exists for every parallel route to enable safe soft navigation.
  • Route Handlers & API: Build and migrate to route handlers (GET/POST/DELETE) with async route params and headers.
  • Performance & Tooling: Leverage Turbopack defaults and React 19.2 features to optimize builds and UX.
  • Templates & Guides: Provides templates (e.g., proxy migration, parallel routes, route handlers) for quick start.

Quick Start

Create a minimal Next.js 16 App Router project skeleton and a sample route that demonstrates async params and proxy.ts usage.

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 16 App Router patterns?

Migrating from Next.js 15 to 16 App Router requires adopting async route params, replacing middleware.ts with proxy.ts, and aligning config.matcher usage. This transition leverages React 19.2 features and Turbopack defaults to optimize builds and improve reliability.

What is the proxy.ts migration pattern in Next.js 16?

The proxy.ts migration pattern replaces middleware.ts in Next.js 16 to handle routing and request interception. It aligns config.matcher usage to ensure safe soft navigation and works seamlessly with the App Router architecture.

How do I implement parallel routes with default.tsx in Next.js App Router?

Implementing parallel routes in Next.js App Router involves creating a default.tsx file for every parallel route. This ensures safe soft navigation by providing fallback rendering, enabling simultaneous rendering of multiple route segments within a single layout.

Does Next.js 16 support async route params and headers in route handlers?

Yes, Next.js 16 supports async route params and headers in route handlers. You can build and migrate to GET, POST, and DELETE route handlers using asynchronous operations to handle request data more efficiently within the App Router.

What are the prerequisites for using Next.js 16 App Router and Server Components?

Using Next.js 16 App Router and Server Components requires Node 20.9+, React 19.2+, and Next.js 16. These prerequisites ensure compatibility with Turbopack defaults, async route params, and the proxy.ts migration pattern for optimal performance.

How do I use the use cache directive for caching strategies in Next.js 16?

Using the "use cache" directive in Next.js 16 enables granular caching strategies within Server Components. This approach reduces migration friction by allowing developers to define caching behavior directly in the component code, improving application reliability and performance.