nextjs

Extract Next.js 15 patterns and best practices into machine-readable knowledge units.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/darantrute/_virgin-12112025 --skill nextjs-darantrute
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs
Source: https://github.com/darantrute/_virgin-12112025/tree/main/.claude/skills/nextjs
Command: npx skills add https://github.com/darantrute/_virgin-12112025 --skill nextjs-darantrute

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill provides Next.js-specific patterns for app routers, server components, data fetching strategies, and rendering techniques to build scalable apps.

Core Features & Use Cases

  • App Router patterns, server components, and data fetching
  • SSR/ISR/SSG strategies
  • API route guidance and best practices

Quick Start

Explore nextjs patterns and implement robust app structure with recommended patterns.

Frequently Asked Questions about nextjs

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

FAQPage Schema
How do I choose between App Router and Pages Router in Next.js?

App Router is Next.js 15's recommended architecture, offering server components, advanced data fetching, and layout nesting by default. Pages Router remains supported for legacy projects but lacks server component integration and modern rendering strategies.

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

SSR renders pages on each request, SSG pre-renders at build time for static content, and ISR combines both by revalidating cached pages at intervals. Choose based on content update frequency and performance requirements.

How do I structure data fetching with server components in Next.js?

Server components fetch data directly in component code without API routes. Use async functions, pass fetched data as props to client components, and leverage Next.js caching strategies for optimal performance.

When should I use API routes versus server components for data fetching?

Use server components for direct database access and internal data logic. Use API routes when you need a public endpoint, cross-origin requests, or to expose functionality to external clients or frontend frameworks.

What are best practices for building scalable Next.js applications?

Organize routes with App Router, separate server and client concerns, implement proper data fetching strategies (SSR/ISR/SSG), use middleware for cross-cutting logic, and structure API routes for maintainability.