nextjs

Plan and implement Next.js 15 App Router patterns for scalable UI apps.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/jangtrinh/EaseUI-Agent --skill nextjs-jangtrinh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs
Source: https://github.com/jangtrinh/EaseUI-Agent/tree/main/.claude/skills/nextjs
Command: npx skills add https://github.com/jangtrinh/EaseUI-Agent --skill nextjs-jangtrinh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provide a structured approach to implementing Next.js 15 App Router patterns, enabling scalable, maintainable web apps with clear separation between server and client components.

Core Features & Use Cases

  • Server/Client Component guidance: Determine when to render on the server by default and when to introduce client components for interactivity.
  • Route organization & file conventions: Place files in the correct route groups (app/(editor)/, app/(dashboard)/, app/api/, app/(marketing)/) and follow standard UI file names like page.tsx, layout.tsx, loading.tsx, error.tsx, and not-found.tsx.
  • Data fetching & caching strategies: Choose appropriate data fetching patterns (server fetches with Supabase, client-side SWR for real-time data, and caching with revalidate options).
  • Server Actions & metadata: Use server actions for mutations, and generate per-route metadata when needed.

Quick Start

Create a new route under app/(dashboard)/ with a server component and a child client component where interactivity is required.

Frequently Asked Questions about nextjs

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

FAQPage Schema
How do I decide between server and client components in Next.js 15 App Router?

Next.js 15 App Router defaults to server components for rendering and data fetching, introducing client components only when interactivity is required. This approach ensures scalable UI apps by maintaining a clear separation between server-side logic and client-side state.

What is the best way to organize Next.js App Router routes for dashboards and marketing pages?

Organize Next.js App Router routes using specific groups like app/(editor)/, app/(dashboard)/, app/(marketing)/, and app/api. This structure separates distinct UI sections while maintaining standard file conventions including page.tsx, layout.tsx, loading.tsx, error.tsx, and not-found.tsx.

How do I fetch data and manage caching in Next.js server components?

Fetch data in Next.js server components using server fetches with Supabase, and manage caching with revalidate options. For real-time data requirements, implement client-side fetching with SWR to complement the server-side data fetching strategies.

Can I use server actions for mutations in Next.js 15 App Router?

Yes, server actions in Next.js 15 App Router handle data mutations directly within server components. This pattern integrates seamlessly with route organizations and per-route metadata generation to maintain scalable application architecture.

Does this Next.js App Router pattern support generating per-route metadata?

Yes, the Next.js 15 App Router pattern supports per-route metadata generation. This feature works alongside server actions, data fetching strategies, and route group organization to provide complete SEO and UI management.

Why use route groups in Next.js instead of standard nested routes?

Route groups in Next.js, such as app/(editor)/ or app/(dashboard)/, organize different application sections logically without affecting the URL structure. This allows distinct layouts and error boundaries per section while maintaining a clean, scalable routing architecture.