nextjs-developer

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

1|Updated Aug 18, 2026
One-click install
npx skills add https://github.com/scsm-unrestrict/dsh-frontend-engineer-agent --skill nextjs-developer-scsm-unrestrict
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-developer
Source: https://github.com/scsm-unrestrict/dsh-frontend-engineer-agent/tree/main/frontend-engineer/skills/nextjs-developer
Command: npx skills add https://github.com/scsm-unrestrict/dsh-frontend-engineer-agent --skill nextjs-developer-scsm-unrestrict

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building production Next.js applications requires correct decisions about routing, rendering strategy, caching, and deployment, and mistakes in these areas cause performance regressions, SEO failures, and broken builds. ## Core Features & Use Cases - App Router Architecture: Scaffolds layouts, route groups, parallel routes, loading.tsx/error.tsx boundaries, and route handlers following Next.js 14+ conventions. - Data Fetching & Caching: Implements fetch with explicit cache/revalidate options, ISR, tag-based revalidation, and React cache() deduplication. - Server Actions & SEO: Writes validated Server Actions with revalidation and generateMetadata for dynamic OpenGraph metadata. - Use Case: When asked to build a product catalog page, it produces a Server Component with ISR-cached fetching, a Suspense streaming boundary, generateMetadata for SEO, and a Server Action for mutations, then validates with next build. ## Quick Start Ask the agent to build a Next.js 14 App Router page that fetches data server-side 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 Server Components?

Use the native fetch API directly inside an async Server Component with explicit cache options. Pass cache: 'force-cache' for static data, cache: 'no-store' for fresh data, or next: { revalidate: 60 } for ISR-style periodic revalidation.

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

Define an async function with the 'use server' directive and pass it to a form's action attribute. Inside the action, validate the FormData (for example with Zod), perform the mutation, then call revalidatePath or revalidateTag to refresh cached data.

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

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 for dynamic routes?

Yes, export an async generateMetadata function from a dynamic page that fetches the resource and returns title, description, and openGraph fields. Never hardcode title or meta tags directly in JSX.

Can I deploy a Next.js app without Vercel?

Yes, set output: 'standalone' in next.config.js to produce a self-contained build, then run it with Node.js, PM2, or a multi-stage Dockerfile. The references include a Dockerfile and docker-compose setup with a database service.

Why is my Next.js fetch not revalidating after a mutation?

Cached fetches are not refreshed automatically after mutations. Call revalidatePath for the affected route or revalidateTag for fetches tagged with next: { tags: [...] } inside your Server Action after the data change.