vercel-labs avatar

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-code

Installs 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
1davila7 avatarclinpgx-databasedavila7/claude-code-templatesAccess ClinPGx pharmacogenomics data (successor to PharmGKB). Query gene-drug interactions, CPIC guidelines, allele functions, for precision medicine and genoty261skills.sh installs
2sickn33 avatarsupabase-automationsickn33/antigravity-awesome-skillssupabase automation261skills.sh installs
3vercel-labs avatarai-gatewayvercel-labs/vercel-pluginai gateway260skills.sh installs
4ceedaragents avatarcyrus-setup-claude-authceedaragents/cyruscyrus setup claude auth250skills.sh installs
5vercel-labs avatarauthvercel-labs/vercel-pluginauth232skills.sh installs
6pluginagentmarketplace avatarjwt-authenticationpluginagentmarketplace/custom-plugin-nodejsImplement secure JWT (JSON Web Token) authentication in Node.js applications with access/refresh tokens and role-based access control226skills.sh installs