Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

integrating-clerk-expo整合文员博览会

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

989

周安装

40

GitHub Stars

公开资料未说明

下载量

310
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:integrating-clerk-expo(整合文员博览会)
来源仓库:https://github.com/tristanmanchester/agent-skills
仓库路径:skills/integrating-clerk-expo
安装命令:
npx skills add https://github.com/tristanmanchester/agent-skills --skill integrating-clerk-expo
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tristanmanchester/agent-skills --skill integrating-clerk-expo

简介

辅助前端页面、组件和样式逻辑的开发与维护。

  • 适合生成或审查 React、Next.js、Tailwind 相关代码。
  • 使用时需结合项目设计系统和构建方式。
  • 涉及页面改动时应配合本地预览确认效果。
  • integrating-clerk-expo 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Clerk authentication in Expo (React Native)

Key constraints (read first)

  • Expo native apps do not support Clerk email links. Prefer email verification codes (email_code) or other strategies.
  • Clerk prebuilt UI components are not supported on Expo native. Use custom flows (your own screens) plus the control components: <ClerkLoaded>, <ClerkLoading>, <SignedIn>, <SignedOut>, <Protect>.
  • Default session tokens are in-memory; for native apps you almost always want a secure token cache (Expo SecureStore).

What this skill does

When implementing Clerk in an Expo app, follow these workflows to:

  • Install and configure @clerk/clerk-expo and environment keys
  • Wrap the app in <ClerkProvider> with a secure tokenCache
  • Build custom sign-in/sign-up screens (email + password, email codes)
  • Protect routes/screens in Expo Router or React Navigation
  • Add OAuth / Enterprise SSO flows via useSSO() (and fix redirect/deeplink pitfalls)
  • Add native Sign in with Apple (iOS, native build) via useSignInWithApple()
  • Add optional biometric re-auth via useLocalCredentials()
  • Optionally enable experimental offline bootstrapping via __experimental_resourceCache
  • Prepare for production deployment (domain + allowlisted redirect URLs)

Fast checklist (default: Expo Router)

Copy/paste and tick off:

  • In Clerk Dashboard, enable Native API for the application.
  • Install: @clerk/clerk-expo
  • Add .env: EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY=...
  • Wrap the root with <ClerkProvider tokenCache={tokenCache}>
  • Install SecureStore and use Clerk’s tokenCache helper
  • Create (auth) route group with sign-in.tsx, sign-up.tsx, and an (auth)/_layout.tsx redirect guard
  • Add a sign-out button using useClerk().signOut()
  • Protect signed-in content using <SignedIn> / <SignedOut> / <Protect> or useAuth() + redirects
  • If using OAuth/SSO: implement useSSO() + expo-auth-session redirect URL + WebBrowser.maybeCompleteAuthSession()
  • If iOS Apple sign-in is required: native build + useSignInWithApple()
  • If you need resilience offline: __experimental_resourceCache={resourceCache} and handle network_error
  • Production: acquire a domain and allowlist mobile SSO redirect URLs

If you need full code examples, open:


Decide the routing setup

If the project uses Expo Router

Signals:

  • expo-router dependency
  • an app/ directory with route files like app/_layout.tsx

➡️ Follow: Expo Router workflow (below).

If the project uses React Navigation directly (no Expo Router)

Signals:

  • App.tsx with NavigationContainer and stacks
  • no app/ directory

➡️ Follow: React Navigation workflow (below).


Workflow A — Expo Router (recommended default)

1) Install + env key

  • Install @clerk/clerk-expo
  • Set EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY in .env

2) Root layout: ClerkProvider + secure token cache

In app/_layout.tsx (or the project’s root layout), wrap your app:

import { ClerkProvider } from '@clerk/clerk-expo'
import { tokenCache } from '@clerk/clerk-expo/token-cache'
import { Slot } from 'expo-router'

export default function RootLayout() {
  return (
    <ClerkProvider tokenCache={tokenCache}>
      <Slot />
    </ClerkProvider>
  )
}

Notes:

  • Ensure expo-secure-store is installed (required by the tokenCache helper).
  • Keep *only* the publishable key in the client.

3) Auth route group + redirect guard

Create app/(auth)/_layout.tsx that redirects signed-in users away from auth screens:

import { Redirect, Stack } from 'expo-router'
import { useAuth } from '@clerk/clerk-expo'

export default function AuthLayout() {
  const { isSignedIn } = useAuth()
  if (isSignedIn) return <Redirect href="/" />
  return <Stack />
}

4) Build custom sign-in / sign-up screens

Use Clerk hooks (useSignIn, useSignUp) and prefer email_code verification.

See:

5) Protect signed-in routes

Options (pick one, don’t mix randomly):

  • Declarative: Wrap signed-in areas with <SignedIn> and <SignedOut>.
  • Gate a subtree: Use <Protect> around content that requires auth.
  • Imperative: In a layout, check useAuth() and <Redirect> to /sign-in.

See:


Workflow B — React Navigation (no Expo Router)

1) Wrap the root

Wrap your NavigationContainer (or your app root) with <ClerkProvider tokenCache={tokenCache}>.

2) Split navigation by auth state

  • While !isLoaded: render a splash/loading screen
  • When isSignedIn: render your “app” stack
  • Else: render your “auth” stack

See:


OAuth / Enterprise SSO in Expo (useSSO)

Use useSSO() for OAuth + enterprise SSO. In native, you must provide a valid redirect URL (often via AuthSession.makeRedirectUri(...)) and ensure your redirect URLs are allowlisted for production.

See:


Sign in with Apple (iOS native build)

useSignInWithApple() is iOS-only and requires a native build (won’t work in Expo Go). Always handle ERR_REQUEST_CANCELED.

See:


Biometrics (store local credentials)

useLocalCredentials() can store password credentials on-device and allow biometric sign-in later (Face ID / fingerprint). Only works for password-based sign-in attempts.

See:

Passkeys

Clerk supports passkeys (WebAuthn). In Expo apps, you’ll integrate passkeys through custom flows; follow Clerk’s passkeys reference for the latest supported strategies and platform constraints.

See:


Offline support (experimental)

You can enable experimental offline bootstrapping via __experimental_resourceCache. Treat as experimental; add good error handling for network_error.

See:


Validation loop (recommended)

  1. Run the setup verifier:
python scripts/verify_expo_clerk_setup.py .
  1. Start Expo with a clean cache:
npx expo start -c
  1. Test flows:
  • fresh install → sign up → verify code → app screen
  • app restart → user still signed in (token cache working)
  • sign out → user returns to auth stack (token cleared)

THE EXACT PROMPT — Implement Clerk in an Expo app

Use this when delegating to another coding agent:

You are implementing Clerk authentication in a React Native Expo app.

1) Detect whether this app uses Expo Router (app/ directory) or React Navigation.
2) Install and configure @clerk/clerk-expo with EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY.
3) Wrap the root with <ClerkProvider tokenCache={tokenCache}> and ensure expo-secure-store is installed.
4) Implement custom sign-in and sign-up screens (email + password, with email verification code strategy 'email_code').
5) Protect signed-in routes appropriately for the chosen router.
6) If OAuth/SSO is requested, implement useSSO() with expo-auth-session redirectUrl and WebBrowser.maybeCompleteAuthSession().
7) Add sign-out.
8) Provide a short test plan and run scripts/verify_expo_clerk_setup.py.

Be precise and keep changes minimal. Do not use email link flows on native.

Quick search (when reading bundled references)

grep -Rni "useSSO" references/
grep -Rni "tokenCache" references/
grep -Rni "enterprise_sso" references/
grep -Rni "__experimental_resourceCache" references/

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.32%
按下载量换算100

Claude

30.8%
按下载量换算95

Cursor

20.81%
按下载量换算65

Gemini CLI

10.16%
按下载量换算31

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills