nextjs

Guide Next.js 16+ App Router development with routing, Server Components, and Vercel deployment.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides expert guidance for building, debugging, and architecting modern Next.js applications using the App Router, ensuring optimal performance and best practices.

Core Features & Use Cases

  • App Router Navigation: Understand routing, layouts, and dynamic segments.
  • Component Strategies: Differentiate between Server Components and Client Components.
  • Data Fetching & Caching: Implement efficient data fetching, caching, and Server Actions.
  • Deployment & Optimization: Configure for Vercel deployment, optimize with Geist fonts and shadcn/ui.
  • Use Case: You need to build a new feature in your Next.js app that requires dynamic routing, server-side data fetching, and interactive client-side elements. This Skill will guide you through setting up the page.tsx, layout.tsx, and any necessary client components, along with data fetching and Server Actions.

Quick Start

Use the nextjs skill to set up a new page with dynamic routing and server-side data fetching.

Frequently Asked Questions about nextjs

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

FAQPage Schema
How do I migrate from the Next.js Pages Router to the App Router?

To migrate from the Next.js Pages Router to the App Router, you need to transition your routing structure to use the new `layout.tsx` and `page.tsx` file conventions while adapting to Server Components and Server Actions for data fetching.

How do I fetch data and cache it using Next.js Server Components?

Next.js Server Components allow you to fetch data directly on the server and cache it efficiently by leveraging the extended fetch API, ensuring optimal performance before sending HTML to the client.

What is the best way to handle dynamic routing and layouts in the Next.js App Router?

The best way to handle dynamic routing in the Next.js App Router is by defining dynamic segments in your folder structure and wrapping them with shared `layout.tsx` files to manage persistent UI across nested routes.

Can I use shadcn/ui and Geist fonts with Next.js App Router projects?

Yes, you can use shadcn/ui and Geist fonts with Next.js App Router projects to optimize UI development, utilizing build-safe module initialization and modern React 19.2 features for enhanced component design.

Why are my Next.js Server Actions not working during client instantiation?

Next.js Server Actions may fail during client instantiation if the module initialization is not build-safe, requiring you to implement lazy client instantiation to ensure the actions execute correctly without runtime errors.

Does Next.js App Router support deployment on Vercel with React 19.2 features?

Yes, the Next.js App Router fully supports deployment on Vercel and integrates modern React 19.2 features like useEffectEvent and Activity components to ensure optimized build and runtime performance.