SerpentStack clerk
Clerk authentication router. Use when user asks about adding authentication, setting up Clerk, custom sign-in flows, Swift or native iOS auth, native Android auth, Next.js patterns, organizations, syncing users, or testing. Automatically routes to the specific skill based on their task.
git clone https://github.com/Benja-Pauls/SerpentStack
T=$(mktemp -d) && git clone --depth=1 https://github.com/Benja-Pauls/SerpentStack "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.skills/clerk" ~/.claude/skills/benja-pauls-serpentstack-clerk && rm -rf "$T"
.skills/clerk/SKILL.mdClerk 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 |
|---|---|---|
| v5–v6 | v7+ |
or | v5–v6 | v7+ |
or | v1–v2 | v3+ |
| v1–v2 | v3+ |
| < 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
Custom sign-in/sign-up UI → Use
clerk-custom-ui
- Custom authentication flows with
/useSignIn
hooksuseSignUp - Appearance and styling (themes, colors, layout)
component for conditional rendering<Show>
Advanced Next.js patterns → Use
clerk-nextjs-patterns
- Server vs Client auth APIs
- Middleware strategies
- Server Actions, caching
- API route protection
B2B / Organizations → Use
clerk-orgs
- Multi-tenant apps
- Organization slugs in URLs
- Roles, permissions, RBAC
- Member management
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
andclerk-android-api
implementation guidanceclerk-android-ui- 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:
- Framework setup/clerk-setup
- Custom flows & appearance/clerk-custom-ui
- Next.js patterns/clerk-nextjs-patterns
- Organizations/clerk-orgs
- Webhooks/clerk-webhooks
- Testing/clerk-testing
- Swift/native iOS/clerk-swift
- Native Android/clerk-android
- Backend REST API/clerk-backend-api
Or describe what you need and I'll recommend the right one.