Skip to content

clerk-setup

Framework-agnostic Clerk authentication setup following official quickstart guides.

— (0 ratings) 61K downloads clerk
$ npx skills add https://github.com/clerk/skills --skill clerk-setup

Skills can run code on your computer. Review the source before installing. This listing is community-made and isn't affiliated with Anthropic.

About this skill

Summary

Framework-agnostic Clerk authentication setup following official quickstart guides.

  • Detects framework from package.json dependencies and fetches the corresponding Clerk quickstart documentation (supports Next.js, Remix, Astro, Nuxt, React Router, TanStack Start, React SPA, Vue, Express, Fastify, Expo, Chrome Extension, Android, iOS, and Vanilla JavaScript)
  • Handles environment variable setup, provider configuration, and middleware/proxy file creation with version-specific guidance for Core 2 SDK differences
  • Includes migration detection and planning for projects with existing auth providers (NextAuth, Supabase, Firebase, Auth0, Passport, custom JWT)
  • Applies shadcn/ui theming automatically if components.json is detected; supports both keyless auto-generation and manual dashboard API key retrieval
  • Documents critical pitfalls including async auth() calls, secret key exposure, middleware matchers, and ClerkProvider placement rules

Set up Clerk

Check for the Clerk plugin first. It bundles skills and the Clerk MCP server for account work.

The MCP server can't write files in this project and never returns secret keys, so the Clerk CLI still sets up the project. On supported frameworks, npx -y clerk@latest init needs no Clerk account: it provisions a claimable application and writes temporary development keys.

The commands below use npx -y clerk@latest. In a project that uses pnpm, Bun, or Yarn 2+, run them with pnpm dlx clerk@latest, bunx clerk@latest, or yarn dlx clerk@latest instead. Do not install the CLI globally.

Before you start

Show the user this checklist and wait for a yes:

Here's what I'll do to get you set up with Clerk.

1. Add Clerk's agent skills and MCP server for the coding agents on this machine, through the Clerk plugin where possible, if they aren't installed yet.
2. Set up Clerk in this project, or scaffold a new app if this directory is empty.
3. Start your app with Clerk installed.

Installs: 61.0K | GitHub stars: 95 | First seen: Jan 30, 2026

Related skills

New

DevOps & cloud

azure-compliance

Azure compliance scanning, Key Vault expiration auditing, and resource configuration validation.

New • 779.8K
New

Security

entra-app-registration

Microsoft Entra ID app registration, OAuth 2.0 configuration, and MSAL integration for secure application authentication.

New • 779.4K
New

Agent workflows

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces,

New • 662.2K