What problem does it solve?
The App Router skill removes friction from creating and organizing Next.js application routes and layouts by codifying file conventions, routing patterns, and server/client component boundaries so teams can build composable, streaming, and nested UI with predictable behavior.
Core Features & Use Cases
- File-based routing conventions: guidance for page, layout, loading, error, not-found, template, and route files to map UI to URLs.
- Dynamic and grouped routes: patterns for dynamic segments, catch-all and optional catch-all routes, route groups, parallel routes, and intercepting routes.
- Server/Client boundaries and UX: advice on Server Components vs Client Components, streaming fallbacks, error boundaries, and navigation patterns.
- Scaffolding: a provided bash script to create page and optional layout, loading, and error files for common routes.
- Use Case: rapidly add a dashboard route with nested layouts, streaming loading states, and error handling while following Next.js App Router best practices.
Quick Start
Generate a new app route by running the script with ROUTE_PATH set to the desired path (for example: ROUTE_PATH=blog/[slug] PROJECT_DIR=. ./scripts/create-route.sh).