nextjs

Guide Next.js App Router architecture, migration, and deployment decisions.

246|42|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/vercel/vercel-plugin --skill nextjs-vercel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs
Source: https://github.com/vercel/vercel-plugin/tree/main/skills/nextjs
Command: npx skills add https://github.com/vercel/vercel-plugin --skill nextjs-vercel

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Next.js App Router complexity can slow architecture, debugging, and deployment decisions; this skill provides expert guidance to design, debug, and deploy App Router apps, avoiding common pitfalls.

Core Features & Use Cases

  • App Router architecture guidance: file-system routing, layouts, server components, and route handlers.
  • Migration patterns: how to upgrade from Pages Router to App Router with best practices and safe defaults.
  • Operational guidance: lazy initialization of expensive clients, proxy usage, data fetching, caching, and Vercel deployment considerations.

Quick Start

Describe the App Router structure for a new Next.js project and outline immediate migration steps from Pages Router.

Frequently Asked Questions about nextjs

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

FAQPage Schema
How do I structure file-system routing and layouts in the Next.js App Router?

Next.js App Router structure relies on file-system routing for nested layouts and server components. Expert guidance enforces App Router conventions to design architecture, avoiding common pitfalls and ensuring proper route handler implementation.

What are the best practices to migrate from Pages Router to App Router?

Migrating from Pages Router to App Router requires following safe defaults and specific migration patterns. The process outlines immediate upgrade steps to apply modern React conventions while avoiding common architectural pitfalls during the transition.

How does data fetching and caching work for server components in Next.js?

Data fetching and caching in Next.js server components operate through operational guidelines for proxy usage and data retrieval. Proper implementation enforces App Router conventions to optimize performance and avoid common deployment bottlenecks.

When do I need lazy initialization for expensive clients in Next.js?

Lazy initialization is needed for expensive clients in Next.js to optimize operational performance. Applying proxy usage and specific lazy initialization guidelines prevents unnecessary resource loading and ensures safe defaults within modern React apps.

Can I use Next.js middleware and route handlers for Vercel deployment scenarios?

Next.js middleware and route handlers fully support Vercel deployment scenarios. The framework provides operational guidance to debug and deploy App Router apps, ensuring correct caching and proxy behavior during modern React app deployment.