nextjs-developer

Implements Next.js 14+ applications with App Router, Server Components, and Server Actions.

Updated Aug 3, 2026
One-click install
npx skills add https://github.com/Yvesdefaria/GymLab --skill nextjs-developer-yvesdefaria
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-developer
Source: https://github.com/Yvesdefaria/GymLab/tree/main/gymlab-app/.agents/skills/nextjs-developer
Command: npx skills add https://github.com/Yvesdefaria/GymLab --skill nextjs-developer-yvesdefaria

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building modern Next.js applications requires navigating App Router conventions, server/client component boundaries, caching strategies, and deployment configuration, which is error-prone without structured guidance. ## Core Features & Use Cases - App Router Architecture: Scaffold file-based routing with layouts, templates, route groups, parallel routes, and loading/error boundaries. - Data Fetching & Caching: Configure fetch caching, ISR, on-demand and tag-based revalidation, streaming with Suspense, and React cache deduplication. - Server Actions & Mutations: Implement form handling with validation, optimistic updates, redirects, and revalidation. - Deployment: Deploy to Vercel, self-host with standalone output or Docker, and configure production optimizations. - Use Case: When building a product catalog page, use this Skill to create a Server Component that fetches products with ISR, add generateMetadata for SEO, and wire a Server Action for creating new products. ## Quick Start Ask the AI to build a Next.js App Router page that fetches data from an API with revalidation and includes loading and error boundaries.

Frequently Asked Questions about nextjs-developer

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

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

Fetch data directly in Server Components using the native fetch API extended by Next.js. Use cache: 'force-cache' for static content, cache: 'no-store' for fresh data, or next: { revalidate: 60 } for ISR with periodic revalidation.

How to use Server Actions for form handling in Next.js?

Define an async function with the 'use server' directive and pass it to a form's action attribute. Validate input with Zod, perform the mutation, then call revalidatePath or revalidateTag to refresh cached data.

When should I use 'use client' in Next.js?

Add 'use client' only when a component needs interactivity such as event handlers, useState, useEffect, or browser APIs. Keep components as Server Components by default and push Client Components to the leaves of the component tree.

Does Next.js App Router support SEO metadata?

Yes, use the generateMetadata function or the static metadata export to define titles, descriptions, and OpenGraph tags. Never hardcode title or meta tags directly in JSX, as the Metadata API handles deduplication and streaming.

Can I deploy a Next.js app without Vercel?

Yes, set output: 'standalone' in next.config.js to produce a self-contained build. You can then run it with Node.js directly or package it into a multi-stage Docker image for self-hosting on any platform.

Why is my Next.js fetch not revalidating?

Revalidation fails when the fetch lacks explicit cache or next.revalidate options, since Next.js caching behavior depends on route segment config. Set next: { revalidate: seconds } on the fetch or export const revalidate from the route segment.