app-router

Installation
SKILL.md

Next.js App Router Patterns

Overview

The App Router is Next.js's file-system based router built on React Server Components. It uses a app/ directory structure where folders define routes and special files control UI behavior.

Core File Conventions

Route Files

Each route segment is defined by a folder. Special files within folders control behavior:

File Purpose
page.tsx Unique UI for a route, makes route publicly accessible
layout.tsx Shared UI wrapper, preserves state across navigations
loading.tsx Loading UI using React Suspense
error.tsx Error boundary for route segment
not-found.tsx UI for 404 responses
Related skills

More from davepoon/buildwithclaude

Installs
79
GitHub Stars
2.9K
First Seen
Jan 22, 2026