nextjs-app-router

Define Next.js App Router architecture with route hierarchy, boundaries, and cache policies.

7|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/KentoShimizu/sw-agent-skills --skill nextjs-app-router-kentoshimizu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-app-router
Source: https://github.com/KentoShimizu/sw-agent-skills/tree/main/skills/nextjs-app-router
Command: npx skills add https://github.com/KentoShimizu/sw-agent-skills --skill nextjs-app-router-kentoshimizu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (resource) components.

What problem does it solve?

Design App Router architectures with clear route structure, server/client boundaries, and caching/revalidation rules for Next.js projects.

Core Features & Use Cases

  • App Router architecture template: A structured blueprint for route groups, nested layouts, and shared UI boundaries.
  • Boundary enforcement: Guidelines to minimize client components while preserving interactivity and explicit server-side rendering rules.
  • Caching strategy: Per-route data freshness, revalidation, and error/loading boundaries to ensure consistent UX.

Quick Start

Provide a concrete App Router design by applying the architecture template to your Next.js project and documenting the route layout, boundaries, and cache policy in your project repository.

Frequently Asked Questions about nextjs-app-router

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

FAQPage Schema
How do I design a Next.js App Router architecture with clear server and client boundaries?

To design a Next.js App Router architecture, define an explicit route hierarchy, establish boundary contracts to minimize client components while preserving interactivity, and document server-side rendering rules for deterministic route behavior.

What is the best way to structure route groups and nested layouts in a Next.js App Router project?

The best way to structure Next.js App Router projects is applying an architecture template that defines route groups, nested layouts, and shared UI boundaries to ensure consistent rendering and an auditable route hierarchy.

How do I configure caching and revalidation rules for individual routes in Next.js?

Configuring caching and revalidation rules requires defining per-route data freshness policies and cache behaviors, ensuring consistent UX by explicitly documenting how data is fetched, cached, and revalidated across the application.

Do I need explicit error and loading boundaries for every route in the Next.js App Router?

Yes, defining explicit error and loading boundaries is required for Next.js App Router routes to ensure consistent UX during data fetching and rendering, and to pass the verification checklist for architectural correctness.

Can I use this App Router architecture template for projects with complex data fetching and performance requirements?

Yes, you can use this App Router architecture template for Next.js projects with complex data fetching and performance requirements, as it provides deterministic, auditable specifications for rendering and caching across all routes.