Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

clerk-expo

БесплатноБез исполняемых скриптовНе проверен

Add Clerk authentication to Expo and React Native apps using @clerk/expo. Use for Expo setup, prebuilt native components (AuthView, UserButton), custom…

clerkот clerk★ 95 звёзд на GitHub

Об этом скилле

Clerk Expo (React Native)

Implement Clerk in Expo / React Native projects. This skill inlines verified patterns for the stable surface (provider, token cache, flows) and requires source inspection of the installed @clerk/expo package for anything volatile (component props, hook signatures).

Activation Rules

Activate when either is true:

  • The user asks for auth in an Expo or React Native app, or mentions @clerk/expo, ClerkProvider, Expo Router auth, or Clerk hooks in a native app.
  • The project is Expo/React Native (app.json / app.config.js, expo in package.json, metro.config.js, @clerk/expo dependency).

Route away when:

  • Native iOS/Swift project (.xcodeproj, Package.swift) → clerk-swift
  • Native Android/Kotlin project (build.gradle without React Native) → clerk-android
  • Web-only framework (Next.js, Remix, plain React, etc.) → the matching framework skill

Intent Map

Match what the user asked for, then load the reference(s) listed. Load only what the task needs.

User intent (examples) Path Reference
"Add auth to my app" / "add sign-in with Clerk" Prebuilt native components (default) references/setup.md + references/prebuilt-components.md
"Add auth" but Expo Go / web / custom UI required Custom flows references/setup.md + references/custom-flows.md
"Add phone / SMS auth", "email OTP", "passwordless" Custom flow, phoneCode / emailCode references/custom-flows.md
"Sign in with Google/Apple/GitHub", "social login", "SSO" Browser SSO or native buttons references/sso-and-native-auth.md
"MFA / 2FA / TOTP", "forgot password" Custom flow additions references/custom-flows.md
"Email link" Expo web custom flow; native apps use email codes for custom UI or <AuthView /> in a development build references/custom-flows.md + references/prebuilt-components.md
"Protect routes/screens", "redirect if signed out" Expo Router guards references/protected-routes.md
"Show user profile", "org switching", "push notifications", "sign out", "call my backend" App recipes references/recipes.md
"Biometric login", "Face ID", "passkeys" Device features references/recipes.md

Default Path Decision

When the user says "add auth" without specifying UI:

  1. Default to prebuilt native components (AuthView + UserButton from @clerk/expo/native-components). Fastest to working auth; UI is maintained by Clerk. Tell the developer they are in beta, need the @clerk/expo-native-components package, and require a development build.
  2. Fall back to custom flows when any of these hold — say why when you switch:
    • The project must run in Expo Go (no dev build).
    • The app targets web (native components don't render on web).
    • The developer wants their own UI or a specific brand experience beyond theming.
  3. If the developer has an existing auth UI, extend what's there — don't rip out custom flows to insert AuthView (or vice versa) without being asked.

Do not blend prebuilt components and custom flows for the same auth step (e.g. AuthView plus a custom password form). Blending is allowed only when the developer explicitly asks.

Quick Workflow

  1. Confirm project type (Expo/RN) and pick the path per the Intent Map / Default Path rules.
  2. For initial application setup, existing-app linking, or missing keys, follow the canonical clerk-setup skill. Don't start a separate init flow here. Then follow the Expo setup reference for provider, token cache, config plugin, and build-type steps not already completed.
  3. Verify dashboard prerequisites (Gate 2 and Gate 3 below).
  4. Implement from the selected reference only.
  5. Verify by building, not just by writing:
    • Run the project's typecheck (npx tsc --noEmit or equivalent).
    • Build and launch: npx expo run:ios / run:android for native features, npx expo start for Expo Go flows. If the build fails, fix and rebuild iteratively — build errors against the installed SDK are the ground truth when this skill and the SDK disagree. After ~5 failed fix attempts, stop and ask the developer how to proceed instead of thrashing.
    • Walk the developer through one real sign-in, then confirm the session survives an app restart (token cache working).

Execution Gates (Do Not Skip)

  1. Publishable key — Read from process.env.EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY in app code. Never NEXT_PUBLIC_, never hardcoded. If the key is missing, follow the appropriate new or existing application path in clerk-setup. Expo has no accountless keys, and an agent's init won't write one without a target application, even when signed in. For a new application, have the developer sign in and select or create an application, then run npx -y clerk@latest init --app <application_id>. For an existing applica
Полный SKILL.md на GitHub

Установить clerk-expo в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

WebFetch

Вложенные файлы

evals/evals.jsonreferences/custom-flows.mdreferences/prebuilt-components.mdreferences/protected-routes.mdreferences/recipes.mdreferences/setup.mdreferences/sso-and-native-auth.md

FAQ

Что делает скилл clerk-expo?

Add Clerk authentication to Expo and React Native apps using @clerk/expo. Use for Expo setup, prebuilt native components (AuthView, UserButton), custom sign-in/sign-up flows (email, password, SMS/phone OTP, MFA), OAuth/SSO, native Google/Apple sign-in, Expo Router protected routes, biometrics, and push notifications. Do not use for native Swift/iOS, native Android/Kotlin, or web-only framework projects.

Как установить скилл clerk-expo?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл clerk-expo запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить clerk-expo с