nextjs_specialist

Implements Next.js 15 App Router patterns with Server Components, data fetching, and rendering strategies.

Updated Jan 14, 2026
One-click install
npx skills add https://github.com/jvsandhu/agentic-skills --skill nextjs-specialist-jvsandhu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs_specialist
Source: https://github.com/jvsandhu/agentic-skills/tree/main/skills/nextjs_specialist
Command: npx skills add https://github.com/jvsandhu/agentic-skills --skill nextjs-specialist-jvsandhu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building modern Next.js applications requires navigating complex decisions about Server vs Client Components, rendering strategies (SSG/SSR/ISR), and data fetching patterns, where mistakes cause hydration errors, slow Core Web Vitals, and security leaks. ## Core Features & Use Cases - App Router Architecture: Provides file-based routing patterns including layouts, route groups, dynamic segments, parallel routes, and API route handlers. - Server/Client Component Guidance: Defines when to use Server Components for data fetching versus Client Components for interactivity, with composition patterns. - Rendering & Performance Optimization: Covers SSG, SSR, ISR configuration plus image, font, script, and metadata optimization for Core Web Vitals. - Use Case: When building a dashboard with dynamic data, use this Skill to structure Server Components that fetch data directly, isolate interactive widgets as Client Components, and configure ISR revalidation for fresh content. ## Quick Start Ask the agent to build a Next.js 15 page with Server Components, Server Actions for form handling, and optimized images following App Router best practices.

Frequently Asked Questions about nextjs_specialist

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

FAQPage Schema
How do I fetch data in Next.js App Router Server Components?

Fetch data directly inside async Server Components using the fetch API with cache options. Use cache: 'force-cache' for static data, 'no-store' for fresh data per request, or next: { revalidate: 60 } for ISR. Use Promise.all to prevent request waterfalls.

When should I use Server Components vs Client Components in Next.js?

Use Server Components by default for data fetching, backend access, and sensitive logic. Use Client Components with the 'use client' directive only for interactivity like onClick handlers, useState hooks, and browser APIs such as localStorage.

What is the difference between SSG, SSR, and ISR in Next.js?

SSG generates pages at build time by default, SSR renders on every request using export const dynamic = 'force-dynamic', and ISR regenerates static pages on an interval using export const revalidate = 60. Choose based on data freshness requirements.

How do Server Actions work with forms in Next.js 15?

Server Actions are async functions marked with 'use server' that handle form submissions directly via the form action attribute. Validate inputs with Zod, call revalidatePath to refresh cached data, and manually verify authentication inside each action.

Why am I getting hydration errors in my Next.js app?

Hydration errors occur when Server and Client rendered HTML mismatch, often from using browser APIs during render or non-deterministic values like dates. Keep Client Components at leaf nodes and move browser-dependent logic into useEffect.