Skip to content
wsimmonds avatar

Nextjs Advanced Routing

Guide to advanced App Router patterns: Route Handlers, parallel and intercepting routes, Server Actions, and Suspense streaming.

CCM score
39 of 100
skills.sh installs
338
GitHub stars
116
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Route Handlers, Parallel Routes, Intercepting Routes, Server Actions, error boundaries, draft mode, and streaming with Suspense
  • Enforces that <form action> server actions return void and that any is never used, since the lint rule breaks builds
  • Guides placement of action.ts versus actions.ts under app/, with colocation for route-specific actions
  • Designed for projects separating server actions from client components, handling cookies, and building API routes with route.ts

Install

$ npx -y skills add wsimmonds/claude-nextjs-skills --skill nextjs-advanced-routing -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Next.js Advanced Routing

Overview

Provide comprehensive guidance for advanced Next.js App Router features including Route Handlers (API routes), Parallel Routes, Intercepting Routes, Server Actions, error handling, draft mode, and streaming with Suspense.

TypeScript: NEVER Use any Type

CRITICAL RULE: This codebase has @typescript-eslint/no-explicit-any enabled. Using any will cause build failures.

❌ WRONG:

function handleSubmit(e: any) { ... }
const data: any[] = [];

✅ CORRECT:

function handleSubmit(e: React.FormEvent<HTMLFormElement>) { ... }
const data: string[] = [];

Common Next.js Type Patterns

// Page props
function Page({ params }: { params: { slug: string } }) { ... }
function Page({ searchParams }: { searchParams: { [key: string]: string | string[] | undefined } }) { ... }

// Form events
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => { ... }
const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => { ... }

// Server actions
async function myAction(formData: FormData) { ... }

When to Use This Skill

Details

Repository
github.com/wsimmonds/claude-nextjs-skills
Categories
Frontend & UI Code, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the nextjs-advanced-routing skill help with?

The nextjs-advanced-routing skill guides advanced Next.js App Router work, including Route Handlers, Parallel Routes, Intercepting Routes, Server Actions, error boundaries, draft mode and streaming with Suspense. It is especially useful for server actions in action.ts or actions.ts files with the 'use server' directive, setting cookies from client components and form handling.

How do I install the nextjs-advanced-routing skill?

Run npx -y skills add wsimmonds/claude-nextjs-skills --skill nextjs-advanced-routing -y in your project to install it. After that, nextjs-advanced-routing guides the agent through Next.js App Router features such as Server Actions and Route Handlers.

When should I use nextjs-advanced-routing instead of a general frontend skill?

Use nextjs-advanced-routing when your requirements involve server actions, form submissions, cookies, mutations, route.ts API routes, parallel routes, intercepting routes or streaming. It also helps separate server actions from client components, a task that general frontend guidance does not cover in depth.

Where does nextjs-advanced-routing sit in the Frontend and UI Code category?

nextjs-advanced-routing is listed in the Frontend and UI Code category on Claude Marketplaces, next to vercel-react-best-practices, web-design-guidelines and design-taste-frontend. Its own focus is the App Router server side, covering server actions, Route Handlers and streaming.

Does nextjs-advanced-routing enforce TypeScript rules?

Yes, nextjs-advanced-routing tells the agent never to use the any type, because the codebase has the no-explicit-any lint rule enabled and any would break the build. It shows typed patterns for page props, form events and server actions instead.

More from wsimmonds/claude-nextjs-skills

All 9

Similar to Nextjs Advanced Routing

More Frontend & UI Code