nextjs

Document Next.js App Router best practices for routing, Server Components, and deployment.

Updated May 31, 2026
One-click install
npx skills add https://github.com/ChristineTham/lp --skill nextjs-christinetham
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs
Source: https://github.com/ChristineTham/lp/tree/main/.agents/skills/nextjs
Command: npx skills add https://github.com/ChristineTham/lp --skill nextjs-christinetham

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Next.js app development often suffers from inconsistent routing conventions, scattered data fetching strategies, and misused App Router features. This Skill provides clear guidance on structuring Next.js apps with the App Router, Server Components, Server Actions, route handlers, and deployment workflows to improve maintainability and performance.

Core Features & Use Cases

  • Standardized App Router patterns for layouts, pages, and parallel routes
  • Guidance on when to use Server Components, Server Actions, and Route Handlers
  • Metadata generation, image/font optimization, and deployment best practices for Vercel

Quick Start

Review the Next.js App Router best practices and start applying the guidance to structure your routing, data fetching, and deployment in your project.

Frequently Asked Questions about nextjs

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

FAQPage Schema
What are the best practices for structuring Next.js App Router layouts and pages?

Next.js App Router best practices involve standardizing file conventions for layouts, pages, and parallel routes. Applying consistent metadata structures ensures scalable application architecture and maintainable routing boundaries.

How do I migrate my Next.js application to use Server Components and Server Actions?

Migrating to Next.js Server Components and Server Actions requires following specific upgrade paths and file conventions. Applying documented migration guidance ensures consistent App Router usage and robust error handling during the transition.

When should I use Route Handlers instead of Server Actions in Next.js?

Use Next.js Route Handlers for building API endpoints and Server Actions for direct mutations. Clear guidance on when to use each pattern ensures consistent data fetching strategies and scalable application architecture.

Does this Next.js guidance cover deployment workflows and optimization for Vercel?

Yes, this Next.js guidance covers deployment workflows optimized for Vercel. It includes best practices for image and font optimization, metadata generation, and deployment configurations to improve overall application performance.

What are the common pitfalls when using Next.js App Router caching mechanisms?

Common Next.js App Router caching pitfalls involve misused data fetching strategies and scattered cache configurations. Applying standardized App Router patterns prevents these issues and ensures robust error handling.