Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计异常

clerk-swiftclerk Swift 搜索

Agent Skill

clerk-swift 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

39,168

周安装

1,614

GitHub Stars

38

下载量

12,672
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/clerk/skills --skill clerk-swift

简介

使用 ClerkKit 和预构建或自定义身份验证流程进行本机 Swift/iOS 身份验证。

  • 支持两种实现模式:预建AuthView
  • 组件或完全自定义的本机流程,根据项目要求进行选择
  • 需要在应用程序配置中直接连接有效的 Clerk 可发布密钥;默认情况下不使用 plist 或环境文件间接
  • 强制/v1/环境
  • 软件包安装后调用,以确定基于 ClerkKitUI 的功能可用性(例如 Apple 登录支持)
  • 环境现场检查
  • 强制执行快速启动合规性:读取已安装的 clerk-ios
  • 打包自述文件以查找和审核所有必需的设置步骤,包括关联域功能 ( webcredentials:{YOUR_FRONTEND_API_URL})
  • 与 Expo 或 React Native 项目不兼容;如果检测到,则路由至一般设置技能

SKILL.md

Clerk Swift (Native iOS)

This skill implements Clerk in native Swift/iOS projects by reading installed package source and mirroring current ClerkKit/ClerkKitUI behavior.

Activation Rules

Activate this skill when either condition is true:

  • The user explicitly asks for Swift, SwiftUI, UIKit, or native iOS Clerk implementation.
  • The project appears to be native iOS/Swift (for example .xcodeproj, .xcworkspace, Package.swift, Swift targets).

Do not activate this skill when either condition is true:

  • The project is Expo.
  • The project is React Native.

If Expo/React Native signals are present, route to the general setup skill instead of this one.

What Do You Need?

TaskReference
Prebuilt AuthView / UserButton (fastest)references/prebuilt.md
Custom API-driven auth flows (full control)references/custom.md

Quick Start

StepAction
1Confirm project type is native Swift/iOS and not Expo/React Native
2Determine flow type (prebuilt or custom) and load the matching reference file
3Ensure a valid publishable key exists (or ask developer) and wire it directly in configuration
4Ensure clerk-ios package is installed with correct products for selected flow; if missing, install latest available release using an up-to-next-major version requirement
5Inspect installed ClerkKitUI source to identify which Environment fields drive feature/step gating
6Call /v1/environment after step 5 and evaluate only against the ClerkKitUI-aligned field map
7Find the iOS quickstart URL in the installed clerk-ios package README, append .md, then visit and read the markdown URL to compile a required-step checklist
8Verify and complete all quickstart prerequisites for this project (for example associated domains and required capabilities)
9Implement flow by following only the selected reference checklist

Decision Tree

User asks for Clerk in Swift/iOS
    |
    +-- Expo/React Native project detected?
    |     |
    |     +-- YES -> Do not use this skill
    |     |
    |     +-- NO -> Continue
    |
    +-- Existing auth UI detected?
    |     |
    |     +-- Prebuilt views detected -> Load references/prebuilt.md
    |     |
    |     +-- Custom flow detected -> Load references/custom.md
    |     |
    |     +-- New implementation -> Ask developer prebuilt/custom, then load matching reference
    |
    +-- Ensure publishable key and direct wiring
    |
    +-- Ensure clerk-ios is installed
    |
    +-- Inspect ClerkKitUI Environment field usage
    |
    +-- Call /v1/environment using that field map
    |
    +-- Visit/read quickstart URL from installed clerk-ios package README
    |
    +-- Verify all quickstart prerequisites are completed
    |
    +-- Implement using selected flow reference

Flow References

After flow type is known, load exactly one:

Do not blend the two references in a single implementation unless the developer explicitly asks for a hybrid approach.

Interaction Contract

Before any implementation edits, the agent must have both:

  • flow choice: prebuilt or custom
  • a real Clerk publishable key

If either value is missing from the user request/context:

  • ask the user for the missing value(s)
  • pause and wait for the answer
  • do not edit files or install dependencies yet

Only skip asking when the user has already explicitly provided the value in this conversation.

Source-Driven Templates

Do not hardcode implementation examples in this skill. Inspect current installed package source before implementing.

Use CaseSource of Truth in Installed Package
SDK package products, platform support, and dependency constraintsPackage manifest and target product definitions for ClerkKit and ClerkKitUI, plus package requirement style (up-to-next-major)
Publishable key validation and frontend API derivationClerk configuration logic (search symbols: configure(publishableKey, frontendApiUrl, invalidPublishableKeyFormat)
Environment endpoint contract and field semanticsEnvironment request path and request construction plus ClerkKitUI Environment field usage for gating (search symbols: /v1/environment, Request<Clerk.Environment>, Environment usage in ClerkKitUI)
iOS quickstart requirementsInstalled clerk-ios package README quickstart link plus the visited/read quickstart page checklist steps (including project setup prerequisites)
Native Sign in with Apple implementationApple capability and native sign-in behavior in selected flow reference

Execution Gates (Do Not Skip)

  1. No implementation edits before prerequisites
  • Do not edit project files until flow type is confirmed and a valid publishable key is available.
  1. Missing flow or key must trigger a question
  • If flow choice is missing, explicitly ask: prebuilt views or custom flow.
  • If publishable key is missing/placeholder/invalid, explicitly ask for a real key.
  • Do not continue until both answers are provided.
  1. Publishable key wiring mode is mandatory
  • Use the developer-provided publishable key plainly in app configuration passed to Clerk.configure.
  • Do not introduce plist/local-secrets/env-file/build-setting indirection unless explicitly requested.
  1. Package install/version policy is mandatory
  • If clerk-ios is not installed, add it using the latest available release with an up-to-next-major requirement.
  • Do not pin an exact package version unless the developer explicitly asks for exact pinning.
  1. ClerkKitUI Environment field inspection is mandatory
  • After package install, inspect installed ClerkKitUI source and identify which Environment fields gate auth behavior for the selected flow.
  • Build an agent-internal field map before any /v1/environment call.
  1. Environment call is mandatory (both flows)
  • Make a direct HTTP call to /v1/environment only after package install and step 5 field-map inspection.
  • Pass the response into the selected reference workflow using the ClerkKitUI-aligned field map:

- prebuilt: use it to determine whether Apple is enabled and capability changes are needed - custom: perform full normalization/matrix handling as agent-internal analysis only (never persist matrix artifacts in project code)

  1. Reference-file discipline is mandatory
  • Once flow is selected, follow only that flow reference file for implementation and verification.
  1. Quickstart compliance is mandatory
  • Find the iOS quickstart URL in the installed clerk-ios package README, append .md, then visit and read that markdown URL.
  • Audit the project against all quickstart setup steps before finishing.
  • If required quickstart setup is missing, implement it before completing the task.
  • This includes adding any missing Associated Domains entries and any other required app capabilities from the quickstart.
  • Explicitly execute the quickstart step Add associated domain capability (https://clerk.com/docs/ios/getting-started/quickstart#add-associated-domain-capability) and ensure the associated-domain entry matches quickstart requirements (webcredentials:{YOUR_FRONTEND_API_URL}).
  1. Custom-flow AuthView structure parity is mandatory
  • For custom flow, layout and flow structure must remain materially close to ClerkKitUI AuthView defaults.
  • If the developer did not explicitly request a different UX, do not introduce major structural/layout deviations from AuthView.
  • If unsure/confused about custom sequencing, gating, or Environment usage/semantics, defer to installed ClerkKitUI behavior and mirror it.

Workflow

  1. Detect native iOS/Swift vs Expo/React Native.
  2. If flow type is not explicitly provided, ask user for prebuilt or custom.
  3. If publishable key is not explicitly provided, ask user for it.
  4. Wait for both answers before changing files.
  5. Load matching flow reference file.
  6. Ensure publishable key is valid and directly wired in Clerk.configure.
  7. Ensure package install/products match selected flow and package requirement follows latest up-to-next-major policy when newly added.
  8. Inspect installed ClerkKitUI source to map Environment fields used for gating/required behavior in the selected flow.
  9. Call /v1/environment and interpret response through the step 8 field map.
  10. Find iOS quickstart URL from installed clerk-ios package README, append .md, then visit and read it.
  11. Build quickstart checklist from the visited markdown quickstart, detect missing required setup, and apply the missing setup in the current project.
  12. Ensure the quickstart associated-domain capability step is fully applied (webcredentials:{YOUR_FRONTEND_API_URL} when missing).
  13. Implement using selected reference checklist.
  14. Verify using selected reference checklist plus shared gates.

Common Pitfalls

LevelIssuePrevention
CRITICALNot asking for missing flow choice before implementationAsk for prebuilt vs custom and wait before edits
CRITICALNot asking for missing publishable key before implementationAsk for key and wait before edits
CRITICALStarting implementation before flow type is confirmedConfirm flow first and load matching reference
CRITICALUsing plist/local/env indirection for publishable key without requestWire key directly in configuration by default
CRITICALSkipping /v1/environment call before implementationAlways call environment endpoint for both prebuilt and custom flows
CRITICALCalling /v1/environment before package install + ClerkKitUI Environment field inspectionInstall clerk-ios first, inspect ClerkKitUI Environment usage, then call endpoint
HIGHInstalling clerk-ios with exact/stale version by defaultIf missing, install latest available release using up-to-next-major requirement
CRITICALSkipping quickstart prerequisite auditVisit/read quickstart URL from installed clerk-ios package README and verify all required setup steps are completed
CRITICALDetecting missing quickstart capabilities/domains but not applying themAdd all missing required quickstart capabilities and Associated Domains before completing
CRITICALSkipping quickstart associated-domain capability stepExecute quickstart Add associated domain capability and ensure webcredentials:{YOUR_FRONTEND_API_URL} is present
CRITICALWriting capability/required-field matrices into app codeKeep matrices agent-internal and only apply resulting behavior in UI/auth flow code
CRITICALCustom flow layout diverges from AuthView without explicit requestKeep custom screens materially close to AuthView structure and step composition by default
CRITICALCollapsing custom auth into a single all-fields screenFollow AuthView-style multi-step progression and step-specific field collection
CRITICALGuessing custom sequencing/gating/Environment usage when uncertainReference installed ClerkKitUI behavior and mirror it for final implementation
HIGHUsing this skill for Expo/React NativeDetect and route away before implementation

See Also

  • clerk skill for top-level Clerk routing
  • clerk-setup skill for non-native or cross-framework setup
  • installed clerk-ios package README.md (source for current iOS quickstart link)
  • https://github.com/clerk/clerk-ios

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.45%
按下载量换算4,619

Claude

28.1%
按下载量换算3,561

Cursor

18.51%
按下载量换算2,346

Gemini CLI

8.59%
按下载量换算1,089

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills