Skip to content

Catalog-style authentication skill covering Clerk, Better Auth, Descope, and Auth0 for Next.js, plus Vercel's own identity primitives.

CCM score
61 of 100
skills.sh installs
326
GitHub stars
353
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers server config, route handlers, proxy.ts auth patterns, sign-in and sign-up flows, and Marketplace provisioning
  • Includes Clerk v7 setup via vercel integration add clerk, with clerkMiddleware route protection and a Frontend API proxy option
  • Flags hand-rolled Vercel OAuth and legacy next-auth v4 patterns, pointing to Sign in with Vercel and Auth.js v5 instead
  • Designed for Vercel-deployed Next.js applications that need user authentication, sessions, protected routes, or deployment protection

Install

$ npx -y skills add vercel/vercel-plugin --skill auth -y

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

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

Details

Repository
github.com/vercel/vercel-plugin
Categories
Backend & APIs, Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the auth skill do for Vercel projects?

The auth skill gives guidance for authentication in Next.js apps deployed on Vercel, covering Clerk, Better Auth, Descope and Auth0 setup. It also covers Sign in with Vercel, Vercel Passport for protecting deployments, and Vercel KMS, with route handlers, proxy.ts auth patterns and sign-in flows.

How do I install the auth skill?

Run npx -y skills add vercel/vercel-plugin --skill auth -y in your project. Once installed, the auth skill lets your agent guide you through adding login, sessions and protected routes.

Who should use the auth skill?

The auth skill is for developers building user authentication, sessions or protected routes in a Next.js application. It also helps those who want to protect Vercel deployments with Passport or manage signing keys with KMS.

Which Marketplace is the auth skill's Clerk setup tied to?

The auth skill covers Clerk as a native Vercel Marketplace integration, with environment variables auto-provisioned by running vercel integration add clerk. It also covers Marketplace provisioning for Better Auth and other providers.

More from vercel/vercel-plugin

All 25

Similar to Auth

More Backend & APIs