nextjs-app-router

Implement Next.js 16+ App Router patterns with Server and Client Components.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/pavanpaik/firemonkey --skill nextjs-app-router-pavanpaik
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-app-router
Source: https://github.com/pavanpaik/firemonkey/tree/main/dashboard/.agents/skills/nextjs-app-router
Command: npx skills add https://github.com/pavanpaik/firemonkey --skill nextjs-app-router-pavanpaik

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables developers to architect and implement Next.js 16+ App Router projects with a clear pattern library, covering server/client components, routing, caching, and deployment considerations.

Core Features & Use Cases

  • Server Components (default) and Client Components ("use client") for flexible rendering strategies.
  • Server Actions, Route Handlers, and caching strategies with the "use cache" directive for efficient data flows.
  • Parallel routes, intercepting routes, and migration patterns to proxy.ts for scalable routing.
  • File conventions and metadata strategies for app router files (layout.tsx, page.tsx, loading.tsx, error.tsx, not-found.tsx, template.tsx, default.tsx).

Quick Start

Create a new Next.js 16+ App Router project and start wiring layout.tsx, page.tsx, and route.ts to implement Server Components, Client Components, and Server Actions.

Frequently Asked Questions about nextjs-app-router

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

FAQPage Schema
How do I structure Server Components and Client Components in a Next.js App Router project?

Structure Next.js App Router projects by defaulting to Server Components and explicitly marking interactive files with the "use client" directive. This pattern separates rendering strategies, keeping data fetching server-side while enabling client-side interactivity where needed.

What file conventions are required for Next.js App Router routing layouts and error boundaries?

Next.js App Router requires specific file conventions like layout.tsx for shared UI, page.tsx for routes, loading.tsx for fallbacks, error.tsx for error boundaries, not-found.tsx for 404s, template.tsx for re-rendering, and default.tsx for parallel routes.

How do I use Server Actions and the "use cache" directive for data fetching in Next.js 16+?

Implement Server Actions to handle form submissions and data mutations directly on the server, and apply the "use cache" directive to optimize caching strategies. This approach streamlines data flows and improves application performance without creating separate API endpoints.

When should I use parallel routes and intercepting routes in my Next.js application?

Use parallel routes to render multiple pages simultaneously in a single layout, and apply intercepting routes to load routes within the current layout context. These advanced routing patterns enable complex interfaces like modals and split views without full page transitions.

Does this Next.js Skill provide migration patterns for proxy.ts?

Yes, this resource provides specific migration patterns for proxy.ts to help you transition configurations smoothly. It addresses routing updates required for scalable Next.js 16+ applications using the modern App Router architecture.

What is the best way to generate metadata for Next.js App Router files?

Generate metadata for App Router files by exporting a static metadata object or a dynamic generateMetadata function from your layout.tsx and page.tsx files. This strategy ensures proper SEO and social sharing tags are applied across your routes.