app-router

Create Next.js App Router pages, layouts, and routes under src/app.

1|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/jorggerojas/next-skeleton-app --skill app-router-jorggerojas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: app-router
Source: https://github.com/jorggerojas/next-skeleton-app/tree/main/.cursor/skills/app-router
Command: npx skills add https://github.com/jorggerojas/next-skeleton-app --skill app-router-jorggerojas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Work with Next.js App Router in src/app/. Use when creating or modifying pages, layouts, loading states, error boundaries, or any route components in the App Router structure.

Core Features & Use Cases

  • Centralizes App Router patterns for pages, layouts, route groups, and API routes under src/app.
  • Demonstrates how to implement loading.tsx, error.tsx, not-found.tsx, layout.tsx, and server vs client components.
  • Provides practical examples for basic pages, dynamic routes, and route-group patterns to guide real-world projects.

Quick Start

Create or modify your first App Router page under src/app to see how layouts, loading, and errors work.

Frequently Asked Questions about app-router

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

FAQPage Schema
How do I structure pages and layouts in the Next.js App Router?

Next.js App Router structures pages and layouts under the src/app directory, using special files like layout.tsx and page.tsx to define route components. This Skill consolidates these conventions to streamline your routing workflow.

How do loading states and error boundaries work in the App Router?

Loading states and error boundaries in the App Router use special files like loading.tsx and error.tsx to handle UI feedback during rendering. This Skill demonstrates how to implement these files for robust route management.

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

Server components are the default in the Next.js App Router, while client components are used when interactivity is needed. This Skill scopes server components as default and client components when needed for specific UI logic.

How do I create dynamic routes and route groups under src/app?

Dynamic routes and route groups are created under src/app by organizing folders and files according to App Router conventions. This Skill provides practical examples for basic pages, dynamic routes, and route-group patterns.

Can I use the Next.js App Router for API routes?

Yes, the Next.js App Router supports API routes under the src/app directory. This Skill covers regular pages, dynamic routes, route groups, and API routes, centralizing App Router patterns for real-world projects.