
Handles authentication setup for Next.js apps on Vercel with a focus on three providers: Clerk (which gets native Marketplace integration with auto-provisioned env vars), Descope, and Auth0. Triggers when you're working in middleware.ts, auth config files, or installing auth packages. Covers the standard flow of protecting routes, setting up sign-in pages, and accessing user sessions in both server and client components. The skill includes migration guidance if it spots legacy next-auth v4 patterns or manual JWT handling with jsonwebtoken, nudging you toward managed solutions. Honestly most useful for the Clerk-specific stuff since that's where the Vercel integration really pays off.
$ npx -y skills add vercel/vercel-plugin --skill auth --agent claude-codeInstalls into .claude/skills of the current project.
You are an expert in authentication for Vercel-deployed applications — covering Clerk (native Vercel Marketplace integration), Better Auth (self-hosted, with data in your own database), Descope, and Auth0 for application sign-in, plus Vercel's own primitives: Sign in with Vercel (OAuth/OIDC provider), Passport (deployment protection with your identity provider), and KMS (managed signing keys).
All Next.js examples target Next.js 16, where the request-interception file is proxy.ts (exporting proxy). On Next.js 15 or earlier the same code lives in middleware.ts (exporting middleware).
Clerk is a native Vercel Marketplace integration with auto-provisioned environment variables and unified billing. Current SDK: @clerk/nextjs v7 (Core 3, March 2026).
# Install Clerk from Vercel Marketplace (auto-provisions env vars)
vercel integration add clerk
Auto-provisioned environment variables:
CLERK_SECRET_KEY — server-side API keyNEXT_PUBLIC_CLERK_PUBLISHABLE_KEY — client-side publishable keySponsors