clerk-swift

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

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/divinaarmuela/Content --skill clerk-swift-divinaarmuela
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clerk-swift
Source: https://github.com/divinaarmuela/Content/tree/main/.claude/skills/clerk-swift
Command: npx skills add https://github.com/divinaarmuela/Content --skill clerk-swift-divinaarmuela

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Setting up Clerk authentication in native iOS apps requires navigating package installation, environment configuration, quickstart prerequisites like Associated Domains, and choosing between prebuilt UI components or custom auth flows. This Skill guides the entire implementation by reading the installed clerk-ios package source and mirroring current ClerkKit and ClerkKitUI behavior. ## Core Features & Use Cases - Prebuilt Auth Flow: Implements ClerkKitUI components like AuthView presented in a sheet and UserButton with signedOutContent for fast integration. - Custom Auth Flow: Builds custom sign-in/sign-up experiences with ClerkKit primitives while maintaining structural parity with ClerkKitUI AuthView step progression. - Environment & Quickstart Compliance: Calls the /v1/environment endpoint, audits quickstart prerequisites, and applies required capabilities such as Sign in with Apple and webcredentials Associated Domains. - Use Case: A developer building a native SwiftUI app asks to add Clerk login. The Skill confirms the flow type and publishable key, installs clerk-ios with an up-to-next-major requirement, verifies Associated Domains, and implements the chosen auth flow. ## Quick Start Ask the assistant to add Clerk authentication to your native SwiftUI app and specify whether you want prebuilt AuthView components or a custom auth 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 via Clerk.configure, and present AuthView in a sheet for prebuilt UI. The Skill verifies quickstart prerequisites like Associated Domains before completing the implementation.

Should I use ClerkKitUI prebuilt components or a custom ClerkKit auth flow?

Use prebuilt ClerkKitUI components like AuthView and UserButton for the fastest integration with default combined sign-in/sign-up behavior. Choose a custom ClerkKit flow when you need full control over the UI while keeping step progression close to AuthView defaults.

Can I use this Skill for Expo or React Native Clerk projects?

No, this Skill explicitly does not activate for Expo or React Native projects. It detects those project types and routes to the general clerk-setup skill instead, since it only targets native Swift and iOS implementations.

Why does Clerk iOS setup require Associated Domains configuration?

The Clerk iOS quickstart requires an Associated Domains entry of webcredentials:{YOUR_FRONTEND_API_URL} to support native Sign in with Apple and credential sharing. The Skill audits your project and adds this capability if it is missing.

What is the /v1/environment call in Clerk iOS setup?

The /v1/environment endpoint returns your Clerk instance configuration, such as whether Apple sign-in is enabled. The Skill inspects installed ClerkKitUI source to map the relevant Environment fields, then calls this endpoint to drive capability decisions.