
Routing Middleware
Gives Claude the context to work with Vercel's platform-level routing middleware, the layer that runs before cache on every request. Covers the critical disambiguation between Vercel's routing middleware, Next.js 16's proxy.ts rename, and edge functions. Includes matcher patterns for scoping routes, geolocation helpers, rewrite/redirect patterns, and Bun runtime configuration. The validation rules catch Next.js 16 migrations and chain to auth skills when it detects middleware doing manual JWT verification. Useful when you're building A/B tests, geo-routing, or request interception that needs to work across any framework deployed to Vercel.
- skills.sh installs
- 264
- GitHub stars
- 183
- last updated
- Jun 3, 2026
Install
$ npx -y skills add vercel-labs/vercel-plugin --skill routing-middleware --agent claude-codeInstalls into .claude/skills of the current project.
Files
Vercel Routing Middleware
You are an expert in Vercel Routing Middleware — the platform-level request interception layer.
What It Is
Routing Middleware runs before the cache on every request matching its config. It is a Vercel platform feature (not framework-specific) that works with Next.js, SvelteKit, Astro, Nuxt, or any deployed framework. Built on Fluid Compute.
Sponsors
Details
- Repository
- github.com/vercel-labs/vercel-plugin
- Categories
- Backend & APIs, Cloud & Infrastructure
- First seen
- Jun 3, 2026
More from vercel-labs/vercel-plugin
All 32- Vercel Agent263
- Ai Gateway260
- Vercel Functions259
- Chat Sdk257
- Env Vars250
- Vercel Storage244
- Workflow236
- Auth232
- Runtime Cache228
- Verification226
- Vercel Sandbox219
- Next Cache Components218
- Next Upgrade213
- Bootstrap211
- Marketplace208
- Vercel Plugin Eval206
- Plugin Audit198
- Benchmark Agents197
- Release194
- Benchmark Testing193
- Knowledge Update190
- Benchmark E2e187
- Benchmark Sandbox181
- Next Forge158