clerk-swift

Implement Clerk authentication in native Swift and iOS apps using ClerkKit and ClerkKitUI.

Updated Aug 22, 2026
One-click install
npx skills add https://github.com/Rajaryan1726/ai-code-review-system --skill clerk-swift-rajaryan1726
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: clerk-swift
Source: https://github.com/Rajaryan1726/ai-code-review-system/tree/main/client/.agents/skills/clerk-swift
Command: npx skills add https://github.com/Rajaryan1726/ai-code-review-system --skill clerk-swift-rajaryan1726

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Adding authentication to a native iOS app with Clerk requires navigating package setup, environment configuration, quickstart prerequisites like associated domains, and choosing between prebuilt UI components or custom flows. This Skill guides that entire implementation by reading the installed clerk-ios package source so the result mirrors current ClerkKit and ClerkKitUI behavior. ## Core Features & Use Cases - Prebuilt Auth Flow: Wire up ClerkKitUI's AuthView in a sheet with UserButton signed-out entry, including Apple capability checks driven by the /v1/environment endpoint. - Custom Auth Flow: Build custom sign-in/sign-up screens with ClerkKit primitives while keeping step progression, field visibility, and layout close to AuthView defaults. - Quickstart Compliance Audit: Reads the iOS quickstart from the installed package README and applies missing setup such as the associated domain capability (webcredentials:{YOUR_FRONTEND_API_URL}). - Use Case: You are building a SwiftUI app and need sign-in with Apple plus email authentication. The Skill confirms your flow choice and publishable key, installs clerk-ios with an up-to-next-major requirement, inspects ClerkKitUI source, and implements the flow with all required capabilities. ## Quick Start Ask the assistant to add Clerk authentication to your native SwiftUI app, specifying whether you want prebuilt AuthView components or a custom flow along with your Clerk publishable key.

Frequently Asked Questions about clerk-swift

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

FAQPage Schema
How do I add Clerk authentication to a native iOS Swift app?▼

Add the clerk-ios Swift package with an up-to-next-major version requirement, configure Clerk with your publishable key, and present AuthView in a sheet for the prebuilt path. The Skill inspects installed ClerkKitUI source and the /v1/environment endpoint to match current behavior.

Should I use ClerkKitUI AuthView or build a custom auth flow?▼

Use prebuilt AuthView for the fastest setup with combined sign-in/sign-up in a sheet. Choose a custom flow with ClerkKit primitives when you need control, but keep step progression and layout close to AuthView defaults unless you explicitly want a different UX.

Can I use this Clerk skill with Expo or React Native?▼

No. This Skill explicitly does not activate for Expo or React Native projects. It only targets native iOS/Swift projects identified by files like .xcodeproj, .xcworkspace, or Package.swift; cross-framework setups should use the general clerk-setup skill instead.

Why does Clerk iOS sign in with Apple require associated domains?▼

The Clerk iOS quickstart requires an associated domain entry of webcredentials:{YOUR_FRONTEND_API_URL} plus the Sign in with Apple capability for native Apple authentication. The Skill audits your project against the quickstart and adds any missing capabilities before finishing.

What version of the clerk-ios package should I install?▼

Install the latest available release using an up-to-next-major version requirement, which allows minor and patch updates automatically. Exact version pinning is only used when you explicitly request it.