nextjs-development

Guide Next.js App Router, Server Components, and data fetching patterns.

61|15|Updated Oct 18, 2025
One-click install
npx skills add https://github.com/manutej/luxor-claude-marketplace --skill nextjs-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-development
Source: https://github.com/manutej/luxor-claude-marketplace/tree/main/plugins/luxor-frontend-essentials/skills/nextjs-development
Command: npx skills add https://github.com/manutej/luxor-claude-marketplace --skill nextjs-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill covers Next.js App Router, server components, data fetching, and middleware for full-stack React apps.

Core Features & Use Cases

  • App Router & Server Components: File-based routing with server/client split.
  • Data Fetching: ISR/SSR/Caching strategies and parallel data fetching.
  • Routing Patterns: Dynamic routes, nested layouts, and API routes.
  • Performance & Deployment: Image optimization and deployment patterns.

Quick Start

Create a simple Next.js app with a server component and a client component.

Frequently Asked Questions about nextjs-development

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

FAQPage Schema
How do I set up routing in Next.js App Router?

App Router uses file-based routing where files in the app directory automatically become routes. Create folders for path segments and add page.js files to define what renders at each route. Server components are the default, enabling direct database access and keeping secrets server-side.

What's the difference between Server Components and Client Components in Next.js?

Server Components run only on the server, access databases directly, and keep API keys secure. Client Components run in the browser, handle interactivity, and use hooks. Use Server Components by default for data fetching and Client Components only where you need user interaction or browser APIs.

How do I fetch data efficiently in Next.js with ISR and SSG?

Static Site Generation (SSG) pre-builds pages at build time for fast performance. Incremental Static Regeneration (ISR) rebuilds pages in the background after a set interval. Use ISR for content that updates occasionally; it combines static performance with fresh data without full server rendering on each request.

Can I use API routes with the App Router?

Yes, create route.js files in the app directory to define API endpoints. Route handlers accept GET, POST, PUT, DELETE, and other HTTP methods. They replace the pages/api directory pattern and integrate seamlessly with Server Components for full-stack applications.

How do I optimize images and deploy a Next.js app?

Use the Next.js Image component for automatic optimization—it resizes, formats, and lazy-loads images. For deployment, the platform handles SSR, SSG, ISR, and edge functions. Vercel and other providers auto-detect your config and deploy without extra setup.

What middleware patterns work with App Router?

Middleware runs before requests are processed, letting you modify headers, redirect routes, or check authentication. Define middleware.js at the project root to run on every request. Use it to protect routes, add security headers, or handle locale-based redirects before reaching your pages.