clerk
This skill routes Clerk authentication tasks to specialized sub-skills based on the user's specific need, such as framework setup, CLI operations, custom UI…
Identity proven by GitHub's verified organisation badge (clerk)
- Agents
- Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, claude.ai and API
- License
- MIT (permissive)
- Pin
- a02dbd2pinned Oct 9, 2026
- Context cost
- about 1,400 tokenswhen the skill loads
- GitHub stars
- 86on clerk/skills
- Scripts
- None found
What it does
“Clerk authentication router. Use when user asks about Clerk CLI operations, adding authentication, setting up Clerk, custom sign-in flows, Swift or native iOS auth, native Android auth, Next.js patterns, React patterns, Vue patterns, Nuxt patterns, Astro patterns, TanStack Start patterns, Expo patterns, React Router patterns, Chrome Extension patterns, organizations, billing, subscriptions, payments, pricing, plans, seat-based pricing, feature entitlements, syncing users, testing, impersonating a user, or testing webhooks locally. Automatically routes to the specific skill based on their task.”
Generated summary from the skill's own text
This skill routes Clerk authentication tasks to specialized sub-skills based on the user's specific need, such as framework setup, CLI operations, custom UI flows, or platform-specific patterns. It detects SDK versions in package.json and directs to the appropriate skill for Next.js, React, Vue, Nuxt, Astro, Expo, Swift, Android, organizations, billing, webhooks, testing, and backend API work.
When to use it
- Starting Clerk integration in a new or existing project
- Working with Clerk CLI for user and session management
- Building custom authentication flows or styled components
- Adding auth patterns to specific frameworks or platforms
When not to
- User needs help with a non-Clerk authentication provider
- Question requires deep knowledge of a specialized sub-skill already installed
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add clerk/skills --skill clerkInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install clerk/skills clerk@a02dbd2a933b8929525129a6cb9dcf6ed66d0adfInstalls the commit we checked (a02dbd2).
Copy by hand
Download the folder at a02dbd2 and put it in .claude/skills/clerk for Claude Code and in .agents/skills/clerk for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "clerk" by Clerk. Source, pinned to commit a02dbd2a933b8929525129a6cb9dcf6ed66d0adf: https://github.com/clerk/skills/tree/a02dbd2a933b8929525129a6cb9dcf6ed66d0adf/skills/clerk 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/clerk/ for Claude Code and .agents/skills/clerk/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Listing and checks: https://www.agentnative.dev/skills/clerk/clerk
SKILL.md at the pin
--- name: clerk description: Clerk authentication router. Use when user asks about Clerk CLI operations, adding authentication, setting up Clerk, custom sign-in flows, Swift or native iOS auth, native Android auth, Next.js patterns, React patterns, Vue patterns, Nuxt patterns, Astro patterns, TanStack Start patterns, Expo patterns, React Router patterns, Chrome Extension patterns, organizations, billing, subscriptions, payments, pricing, plans, seat-based pricing, feature entitlements, syncing users, testing, impersonating a user, or testing webhooks locally. Automatically routes to the specific skill based on their task. license: MIT metadata: version: 2.0.0 --- # Clerk Skills Router ## Version Detection Check `package.json` to determine the Clerk SDK version. This determines which patterns to use: | Package | Core 2 (LTS until Jan 2027) | Current | |---------|----------------------------|---------| | `@clerk/nextjs` | v5–v6 | v7+ | | `@clerk/react` or `@clerk/clerk-react` | v5–v6 | v7+ | | `@clerk/expo` or `@clerk/clerk-expo` | v1–v2 | v3+ | | `@clerk/react-router` | v1–v2 | v3+ | | `@clerk/tanstack-react-start` | < v0.26.0 | v0.26.0+ | **Default to current** if the version is unclear or the project is new. Core 2 packages use `@clerk/clerk-react` and `@clerk/clerk-expo` (with `clerk-` prefix); current packages use `@clerk/react` and `@clerk/expo`. All skills are written for the current SDK. When something differs in Core 2, it's noted inline with `> **Core 2 ONLY (skip if current SDK):**` callouts. The exception is `clerk-custom-ui`, which has separate `core-2/` and `core-3/` directories for custom flow hooks since those APIs are entirely different between versions. --- ## By Task **Adding Clerk to your project** → Use `clerk-setup` - Framework detection and quickstart - Environment setup, API keys, temporary dev keys via `clerk init` - Migration from other auth providers **Operating Clerk from the CLI** → Use `clerk-cli` - Auth, linking, `doctor`, and environment pulls - User, org, session, app, and instance management - Impersonating a user (`clerk impersonate`) and local webhook testing (`clerk webhooks listen`) - Feature toggles (`clerk enable orgs`, `clerk enable billing`) - Backend, Platform, and Frontend API calls through `clerk api` - Deploy handoff and deploy status verification **Custom sign-in/sign-up UI** → Use `clerk-custom-ui` - Custom authentication flows with `useSignIn` / `useSignUp` hooks - Appearance and styling (themes, colors, layout) - `<Show>` component for conditional rendering **Advanced Next.js patterns** → Use `clerk-nextjs-patterns` - Server vs Client auth APIs - Middleware strategies - Server Actions, caching - API route protection **React patterns** → Use `clerk-react-patterns` - Hooks (`useAuth`, `useUser`, `useClerk`) - Protected routes, auth guards - Router integration **React Router patterns** → Use `clerk-react-router-patterns` - Loaders & actions with auth - Route protection - SSR auth **Vue patterns** → Use `clerk-vue-patterns` - Composables (`useAuth`, `useUser`, `useClerk`) - Vue Router guards - Pinia auth store integration **Nuxt patterns** → Use `clerk-nuxt-patterns` - Server middleware auth - SSR auth with composables - Server API routes **Astro patterns** → Use `clerk-astro-patterns` - SSR auth pages - Island components with React - Middleware & API routes **TanStack Start patterns** → Use `clerk-tanstack-patterns` - Server functions with auth - Route protection via loaders - Vite plugin and request middleware setup **Expo / React Native auth** → Use `clerk-expo` - Prebuilt native components (AuthView, UserButton) - Custom flows: email, password, SMS/phone OTP, MFA - OAuth/SSO and native Google/Apple sign-in - Expo Router protected routes, token storage, push notifications **Chrome Extension patterns** → Use `clerk-chrome-extension-patterns` - Background scripts auth - Popup auth flows - Content scripts with sync host **B2B / Organizations** → Use `clerk-orgs` - Multi-tenant apps - Organization slugs in URLs - Roles, permissions, RBAC - Member management **Billing & Subscriptions** → Use `clerk-billing` - `<PricingTable />` component - Plan and feature gating with `has()` - Seat-based B2B billing with organizations - Subscription lifecycle webhooks - Free trials, invoicing **Webhooks** → Use `clerk-webhooks` - Real-time events - Data syncing - Notifications & integrations **E2E Testing** → Use `clerk-testing` - Playwright/Cypress setup - Auth flow testing - Test utilities **Swift / native iOS auth** → Use `clerk-swift` - Native iOS Swift and SwiftUI projects - ClerkKit and ClerkKitUI implementation guidance - Source-driven patterns from `clerk-ios` **Android / native mobile auth** → Use `clerk-android` - Native Android Kotlin and Jetpack Compose projects - `clerk-android-api` and `clerk-android-ui` implementation guidance - Source-driven patterns from `clerk-android` - Do not use for Expo or React Native projects **Backend REST API** → Use `clerk-backend-api` - Browse API tags and endpoints - Inspect endpoint schemas - Execute API requests with scope enforcement ## Quick Navigation If you know your task, you can directly access: - `/clerk-setup` - Framework setup - `/clerk-cli` - CLI operations and Clerk resource management - `/clerk-custom-ui` - Custom flows & appearance - `/clerk-nextjs-patterns` - Next.js patterns - `/clerk-react-patterns` - React patterns - `/clerk-react-router-patterns` - React Router patterns - `/clerk-vue-patterns` - Vue patterns - `/clerk-nuxt-patterns` - Nuxt patterns - `/clerk-astro-patterns` - Astro patterns - `/clerk-tanstack-patterns` - TanStack Start patterns - `/clerk-expo` - Expo / React Native - `/clerk-chrome-extension-patterns` - Chrome Extension patterns - `/clerk-orgs` - Organizations - `/clerk-billing` - Billing & subscriptions - `/clerk-webhooks` - Webhooks - `/clerk-testing` - Testing - `/clerk-swift` - Swift/native iOS - `/clerk-android` - Native Android - `/clerk-backend-api` - Backend REST API Or describe what you need and I'll recommend the right one.
From clerk/skills at a02dbd2, shown as plain text under its license: MIT (permissive). The license text is in skills/clerk/SKILL.md.
View SKILL.md on GitHub at a02dbd2Files
- SKILL.md6.1 KB · 4ad3312058e7
1 file, 6.1 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at a02dbd2More from Clerk
audit-clerk-skill
Audits the bundled clerk-cli skill against the Clerk CLI source repository, comparing commands, flags, and agent-mode behavior to detect drift, gaps, and…
Claude Code · about 1.9K tokens · pinned 4 weeks ago
audit-expo-skill
Audits the clerk-expo skill against the @clerk/expo SDK source and clerk-docs to detect API drift, missing coverage, and stale claims.
Claude Code · about 2.2K tokens · pinned 4 weeks ago
clerk-android
This skill implements Clerk authentication in native Android apps written in Kotlin and Jetpack Compose by following the clerk-android SDK patterns and…
Claude Code, Codex, Cursor +4 · about 2K tokens · pinned 4 weeks ago
clerk-astro-patterns
This skill teaches the agent to integrate Clerk authentication into Astro applications using middleware, SSR pages, island components, and API routes.
Contains scripts
Claude Code, Codex, Cursor +3 · about 850 tokens · pinned 4 weeks ago
clerk-billing
Clerk Billing enables subscription management in SaaS apps by rendering pricing tables and checkout drawers, configuring plans with feature entitlements, and…
Claude Code, Codex, Cursor +4 · about 4.9K tokens · pinned 4 weeks ago
clerk-chrome-extension-patterns
This skill provides patterns for implementing Clerk authentication in Chrome extensions using Plasmo, covering popup and side panel UI setup, service worker…
Claude Code, Codex, Cursor +4 · about 2.7K tokens · pinned 4 weeks ago
Related in Backend and APIs
supabase
This skill enables the agent to work with Supabase products including Database, Auth, Edge Functions, Realtime, Storage, and Vectors.
by SupabaseOfficial publisher
Claude Code, Codex, Cursor +4 · about 3.3K tokens · pinned 4 weeks ago
supabase
This skill enables agents to work with Supabase across databases, authentication, edge functions, storage, realtime services, and related client libraries.
by SupabaseOfficial publisher
Claude Code, Codex, Cursor +4 · about 3.3K tokens · pinned 4 weeks ago
flags-sdk
The Flags SDK is a feature flags toolkit for Next.js and SvelteKit that declares flags as functions and evaluates them server-side.
by VercelOfficial publisher
Claude Code, Codex, Cursor +3 · about 5.8K tokens · pinned 4 weeks ago
clerk-nextjs-patterns
This skill teaches advanced Next.js patterns for protecting routes, Server Actions, and API endpoints with Clerk authentication.
by ClerkOfficial publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 2.1K tokens · pinned 4 weeks ago
clerk-nuxt-patterns
This skill teaches agents how to implement authentication in Nuxt 3 applications using the Clerk SDK.
by ClerkOfficial publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 710 tokens · pinned 4 weeks ago
clerk-tanstack-patterns
This skill provides authentication patterns for TanStack React Start applications using Clerk.
by ClerkOfficial publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 860 tokens · pinned 4 weeks ago