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.

skills.sh installs
326
GitHub stars
183
last updated
Jun 3, 2026

Install

$ npx -y skills add vercel/vercel-plugin --skill auth --agent claude-code

Installs into .claude/skills of the current project.

Files

Authentication Integrations

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 (Recommended — Native Marketplace Integration)

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 via Marketplace

# Install Clerk from Vercel Marketplace (auto-provisions env vars)
vercel integration add clerk

Auto-provisioned environment variables:

  • CLERK_SECRET_KEY — server-side API key
  • NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY — client-side publishable key

SDK Setup

Sponsors

Details

Repository
github.com/vercel/vercel-plugin
Categories
Backend & APIs, Cloud & Infrastructure
First seen
Jun 3, 2026

More from vercel/vercel-plugin

All 25
1sickn33 avatardotnet-backendsickn33/antigravity-awesome-skillsdotnet backend323skills.sh installs
2davila7 avataruspto-databasedavila7/claude-code-templatesAccess USPTO APIs for patent/trademark searches, examination history (PEDS), assignments, citations, office actions, TSDR, for IP analysis and prior art searche318skills.sh installs
3alinaqi avatarnodejs-backendalinaqi/claude-bootstrapnodejs backend316skills.sh installs
4sickn33 avatardotnet-backend-patternssickn33/antigravity-awesome-skillsdotnet backend patterns309skills.sh installs
5pedrobarretocw avatarsupabase-best-practicespedrobarretocw/supabase-best-practicessupabase best practices306skills.sh installs
6automattic avatarwp-abilities-apiautomattic/agent-skillswp abilities api300skills.sh installs