clerk
Skill10 starsChanged 7 months agoMITView on GitHub
Clerk authentication router. Use when user asks about Clerk CLI operations,
16 other projects use a version of this, 12 of them edited.
Adopted by
Most recently taken up by
- Ghost7802/awesome-api-skillstheir own version, first seen Nov 29, 2026
- AdiRishi/promptrcedited, first seen Nov 29, 2026
- Azmainn/base-learneredited, first seen Nov 15, 2026
- flowcopilot/skillsedited, first seen Nov 15, 2026
- nnawar706/fluentoedited, first seen Nov 8, 2026
- delorenj/skillsedited, first seen Nov 7, 2026
Used with
Projects with it also use clerk-custom-ui, clerk-billing and 4 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
elpiartheraSkillclerk-custom-ui
Customize Clerk component appearance - themes, layout, colors, fonts, CSS. Use for appearance styling, visual customization, branding.
Also in 10 projects that use this
sanketbodkeSkillclerk-billing
Clerk Billing for subscription management - render Clerk's PricingTable
Also in 4 projects that use this
AdiRishiSkillclerk-tanstack-patterns
'TanStack React Start auth patterns with @clerk/tanstack-react-start
Also in 4 projects that use this
elpiartheraSkillclerk-orgs
Clerk Organizations for B2B SaaS - create multi-tenant apps with org switching, role-based access, verified domains, and enterprise SSO. Use for team workspaces, RBAC, org-based routing, member management.
Also in 6 projects that use this
AymenjdilySkillclerk-astro-patterns
Astro patterns with Clerk — middleware, SSR pages, island components,
Also in 3 projects that use this
AymenjdilySkillclerk-chrome-extension-patterns
Chrome Extension auth with @clerk/chrome-extension -- popup/sidepanel
Also in 3 projects that use this
Other versions16 projects use a version of this.
Word for word · 1
- sanketbodke/skew-ai★ 0100% same
Edited · 12
- adrianhajdin/ghost-ai★ 33292% same
- clerk/skills★ 9574% same
- HamedMP/matrix-os★ 9060% same
- delorenj/skills★ 1792% same
- flowcopilot/skills★ 315% same
- AdiRishi/promptrc★ 294% same
- Aymenjdily/biblion-testing-agentic-ai-skills★ 299% same
- crisak/ai-cv-generator★ 189% same
- Azmainn/base-learner★ 090% same
- elpiarthera/vantage-starter★ 060% same
2 more not listed
Wrote their own version · 3
- G1Joshi/Agent-Skills★ 15same name
- Ghost7802/awesome-api-skills★ 13same name
- wrsmith108/clerk-claude-skill★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository294 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/agent-experience-review-lens.mdcCursor rule
- .cursor/rules/agentic-judgment-conserve-by-default.mdcCursor rule
- .cursor/rules/agents-default-no-gender.mdcCursor rule
- .cursor/rules/agent-state-observable.mdcCursor rule
- .cursor/rules/apply-architectural-principles.mdcCursor rule
- .cursor/rules/bot-identity-on-third-party-systems.mdcCursor rule
- .cursor/rules/capability-landing-decision-procedure.mdcCursor rule
- .cursor/rules/capture-practice-tool-feedback.mdcCursor rule
- .cursor/rules/channel-by-audience-lifetime-and-consumer.mdcCursor rule
- .cursor/rules/check-singleton-per-window.mdcCursor rule
- .cursor/rules/closed-shape-design-optionality.mdcCursor rule
- .cursor/rules/collaboration-is-value-contingent.mdcCursor rule
- .cursor/rules/comms-all-channels-watcher.mdcCursor rule
- .cursor/rules/compute-dont-hope.mdcCursor rule
- .cursor/rules/confident-seats-proceed-and-report.mdcCursor rule
- .cursor/rules/consolidate-at-second-consumer.mdcCursor rule
- .cursor/rules/continuity-surface-commits-as-orphans.mdcCursor rule
- .cursor/rules/coordination-branch-24h-lifetime.mdcCursor rule
- .cursor/rules/cross-estate-work-must-reduce-divergence.mdcCursor rule
- .cursor/rules/cross-repo-sessions-run-the-join-ceremony.mdcCursor rule
- .cursor/rules/deletions-never-ride-a-push.mdcCursor rule
- .cursor/rules/design-from-impact-not-the-cowpath.mdcCursor rule
- .cursor/rules/design-values-come-from-the-system.mdcCursor rule
- .cursor/rules/design-work-for-small-prs.mdcCursor rule
- .cursor/rules/directed-routing-requires-absorption-ack.mdcCursor rule
- .cursor/rules/directive-file-context-budget.mdcCursor rule
- .cursor/rules/documentation-hygiene.mdcCursor rule
- .cursor/rules/dont-break-build-without-fix-plan.mdcCursor rule
- .cursor/rules/downstream-checkout-never-writes-upstream-surfaces.mdcCursor rule
- .cursor/rules/eef-corpus-grounding.mdcCursor rule
- .cursor/rules/executive-memory-drift-capture.mdcCursor rule
- .cursor/rules/exit-codes-in-band-never-piped.mdcCursor rule
- .cursor/rules/fleet-design-review-before-expensive-fleets.mdcCursor rule
- .cursor/rules/follow-agent-collaboration-practice.mdcCursor rule
- .cursor/rules/follow-collaboration-practice.mdcCursor rule
- .cursor/rules/follow-the-practice.mdcCursor rule
- .cursor/rules/foreign-board-write-discipline.mdcCursor rule
- .cursor/rules/generator-first-mindset.mdcCursor rule
- .cursor/rules/handoff-messages-self-contained.mdcCursor rule
- .cursor/rules/hook-policy-substring-discipline.mdcCursor rule
- .cursor/rules/identify-as-agent-under-shared-credentials.mdcCursor rule
- .cursor/rules/important-state-not-in-temp-files.mdcCursor rule
- .cursor/rules/invoke-code-experts.mdcCursor rule
- .cursor/rules/knowledge-preservation-over-fitness-warnings.mdcCursor rule
- .cursor/rules/linear-mcp-team-and-project-hygiene.mdcCursor rule
- .cursor/rules/lint-after-edit.mdcCursor rule
- .cursor/rules/liveness-heartbeat-cron.mdcCursor rule
- .cursor/rules/local-broken-code-never-leaves.mdcCursor rule
- .cursor/rules/lockfile-rebuild-survivability.mdcCursor rule
- .cursor/rules/loop-exit-criteria-required.mdcCursor rule
- .cursor/rules/markdown-code-blocks-must-have-language.mdcCursor rule
- .cursor/rules/monitor-branch-touched-files.mdcCursor rule
- .cursor/rules/napkin-always-active.mdcCursor rule
- .cursor/rules/never-commit-to-main.mdcCursor rule
- .cursor/rules/never-disable-checks.mdcCursor rule
- .cursor/rules/never-use-git-to-remove-work.mdcCursor rule
- .cursor/rules/new-rule-vs-pdr-clause.mdcCursor rule
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 2 are common, 0 are distinctive, and 3 are very specific to this project.
2
Common
Most of the 15 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Check package.json to determine the Clerk SDK version.
- Very specific: line 30
Default to current: if the version is unclear or the project is new.
- Very specific: line 32
All skills are written for the current SDK.
- Common: line 135
Do not use for Expo or React Native projects
- Common: line 144
If you know your task, you can directly access:
“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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, Keyless flow
- 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/useSignUphooks - 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
- Vinxi server integration
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-apiandclerk-android-uiimplementation 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

