nextjs-app-router

Architect Next.js applications using the App Router with routing patterns.

27|9|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/sabahattink/antigravity-fullstack-hq --skill nextjs-app-router-sabahattink
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-app-router
Source: https://github.com/sabahattink/antigravity-fullstack-hq/tree/main/skills/nextjs-app-router
Command: npx skills add https://github.com/sabahattink/antigravity-fullstack-hq --skill nextjs-app-router-sabahattink

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Architect Next.js apps using the App Router with clear patterns, balancing server and client decisions, and simplifying routing and data flows.

Core Features & Use Cases

  • Server Components as default and guidance on when to opt into client components.
  • Server Actions, route groups, and structured data fetching across pages and layouts.
  • Real-world patterns for layouts, nested routes, streaming data, and error handling.

Quick Start

Structure your Next.js project using the App Router with the provided routing patterns and data-fetching strategies.

Frequently Asked Questions about nextjs-app-router

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

FAQPage Schema
How do I structure Next.js App Router layouts and nested routes?

To structure Next.js App Router layouts and nested routes, use route groups for logical organization and apply real-world patterns for streaming data and error handling. This simplifies routing structures and data flows across pages.

When should I use Server Components versus client components in Next.js?

Use Server Components as the default in Next.js to optimize data fetching and performance, and opt into client components only when you need interactivity or browser APIs. This balances server and client decisions effectively.

What is the best way to handle data fetching across pages and layouts in Next.js?

The best way to handle data fetching in Next.js is using structured strategies across pages and layouts within the App Router. This method provides concrete guidance for fetching data directly in Server Components.

How do I use Server Actions in my Next.js application?

Use Server Actions in your Next.js application to handle mutations and structural decisions without creating separate API endpoints. They integrate directly into the App Router architecture to streamline data flows and backend logic.

Can I use route groups to organize my Next.js project without affecting the URL?

Yes, you can use route groups to organize your Next.js project structure without affecting the URL path. They allow you to group related routes and layouts logically, simplifying structural decisions and routing patterns.