nextjs-routing

Implement Next.js App Router routing patterns with dynamic segments and middleware.

9|1|Updated Jun 16, 2026
One-click install
npx skills add https://github.com/AratKruglik/antigravity-sdlc --skill nextjs-routing-aratkruglik
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-routing
Source: https://github.com/AratKruglik/antigravity-sdlc/tree/main/plugins/nextjs-plugin/skills/nextjs-routing
Command: npx skills add https://github.com/AratKruglik/antigravity-sdlc --skill nextjs-routing-aratkruglik

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers understand and implement Next.js App Router routing primitives, enabling reliable route design using dynamic segments, route groups, parallel routes, and middleware.

Core Features & Use Cases

  • Dynamic segments and catch-all paths: design routes like /users/[id] and /docs/[...path].
  • Route organization with groups and layouts: structure complex apps without affecting URLs.
  • Parallel and intercepting routes for modular UIs: render multiple segments or overlays in a single layout.
  • Middleware and navigation: implement authentication gates and programmatic navigation with Link and useRouter.
  • Use cases include building admin dashboards, public-facing apps, and feature flag-driven routing.

Quick Start

Create a basic Next.js App Router setup with a dynamic route, a route group, and a parallel route for a modal, then add a middleware for authentication.

Frequently Asked Questions about nextjs-routing

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

FAQPage Schema
How do I structure Next.js App Router dynamic segments and catch-all paths?

Next.js App Router dynamic segments use bracket notation like /users/[id] for single parameters and /docs/[...path] for catch-all routes. This skill enforces explicit coverage of dynamic segments and catch-all paths for reliable route design.

What is the best way to organize Next.js routes without affecting the URL structure?

Route groups in Next.js App Router organize routes using parentheses without impacting the URL structure. This skill guides structural organization of complex apps using route groups and layouts for modular UI management.

How do parallel and intercepting routes work in Next.js for modals and overlays?

Parallel routes render multiple segments simultaneously in a single layout, while intercepting routes overlay content like modals without full navigation. This skill covers implementing parallel and intercepting routes for modular UIs and overlays.

Can I use Next.js middleware for authentication gates and programmatic navigation?

Next.js middleware handles authentication gates by intercepting requests before route completion. This skill covers middleware behavior alongside correct programmatic navigation using useRouter and Link for controlled routing flows.

Does this Next.js routing approach work for building admin dashboards and feature flag-driven routes?

This Next.js App Router routing approach supports building admin dashboards, public-facing apps, and feature flag-driven routing. The skill applies dynamic segments, route grouping, and parallel routes to manage complex conditional UI structures.