clerk

Routes Clerk authentication tasks to framework-specific implementation guidance and patterns.

Updated Jul 9, 2026
One-click install
npx skills add https://github.com/DimonikRV/ghost-pilot-project --skill clerk-dimonikrv
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: clerk
Source: https://github.com/DimonikRV/ghost-pilot-project/tree/main/.agents/skills/clerk
Command: npx skills add https://github.com/DimonikRV/ghost-pilot-project --skill clerk-dimonikrv

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developers integrating Clerk authentication face fragmented documentation across many frameworks and SDK versions, making it hard to find the correct pattern for their specific stack. ## Core Features & Use Cases - Task-Based Routing: Directs requests to the right sub-skill covering setup, CLI operations, custom UI, organizations, billing, webhooks, and testing. - Framework Coverage: Provides patterns for Next.js, React, Vue, Nuxt, Astro, TanStack Start, Expo, React Router, Chrome Extensions, Swift, and Android. - SDK Version Detection: Checks package.json to distinguish Core 2 from current SDK packages and applies the matching API patterns. - Use Case: A developer building a multi-tenant Next.js SaaS asks how to add organization-based billing, and the router directs them to clerk-orgs and clerk-billing with the correct v7 SDK patterns. ## Quick Start Ask how to add Clerk authentication to your Next.js app and get routed to the correct setup and pattern guidance.

Frequently Asked Questions about clerk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Clerk authentication to a Next.js app?▼

Use the clerk-setup skill for framework detection, environment variables, and API key configuration, then clerk-nextjs-patterns for middleware, server versus client auth APIs, and route protection. The router detects your @clerk/nextjs version to apply the correct SDK patterns.

How do I build a custom sign-in flow with Clerk?▼

Use the clerk-custom-ui skill, which covers custom flows with the useSignIn and useSignUp hooks, appearance and theme customization, and the Show component for conditional rendering. Core 2 and current SDK versions use different hook APIs handled in separate directories.

Does Clerk support native iOS and Android apps?▼

Yes, clerk-swift covers native iOS with SwiftUI using ClerkKit and ClerkKitUI, while clerk-android covers Kotlin and Jetpack Compose with clerk-android-api and clerk-android-ui. Expo and React Native projects should use clerk-expo-patterns instead.

What is the difference between Clerk Core 2 and the current SDK?▼

Core 2 packages use @clerk/clerk-react and @clerk/clerk-expo with the clerk- prefix, while current packages use @clerk/react and @clerk/expo. The router checks package.json versions and defaults to current SDK patterns, noting Core 2 differences inline.

How do I implement subscription billing with Clerk?▼

Use the clerk-billing skill, which covers the PricingTable component, plan and feature gating with the has() function, seat-based B2B billing with organizations, subscription lifecycle webhooks, free trials, and invoicing.