auth-flow
Skill777 starsChanged 5 months agoMITView on GitHub
Generates authentication infrastructure with Sign in with Apple, biometrics, and Keychain storage. Use when user wants to add authentication, login, or Sign in with Apple.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- lvlrSajjad/agent-ready-monorepotheir own version, first seen Sep 5, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- lvlrSajjad/agent-ready-monorepo★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository183 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- app-intentsSkill
- foundation-modelsSkill
- apple-intelligenceSkill
- visual-intelligenceSkill
- ad-attributionSkill
- app-description-writerSkill
- apple-search-adsSkill
- iap-finalizerSkill
- keyword-optimizerSkill
- marketing-strategySkill
- originality-checkSkill
- ratings-mechanicsSkill
- rejection-handlerSkill
- review-response-writerSkill
- screenshot-plannerSkill
- app-storeSkill
- web-presenceSkill
- core-mlSkill
- animation-patternsSkill
- game-feelSkill
- liquid-glassSkill
- sf-symbolsSkill
- designSkill
- typographySkill
- ui-prototypingSkill
- ux-writingSkill
- attributed-stringSkill
- foundationSkill
- accessibility-generatorSkill
- account-deletionSkill
- analytics-setupSkill
- announcement-bannerSkill
- app-clipSkill
- app-extensionsSkill
- app-icon-generatorSkill
- app-store-assetsSkill
- background-processingSkill
- ci-cd-setupSkill
- cloudkit-syncSkill
- consent-flowSkill
- custom-product-pagesSkill
- data-exportSkill
- debug-menuSkill
- deep-linkingSkill
- error-monitoringSkill
- feature-flagsSkill
- featuring-nominationSkill
- feedback-formSkill
- force-updateSkill
- http-cacheSkill
- image-loadingSkill
- in-app-eventsSkill
- lapsed-userSkill
- live-activity-generatorSkill
- localization-setupSkill
- logging-setupSkill
- milestone-celebrationSkill
- networking-layerSkill
- offer-codes-setupSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 12 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Use this skill when the user:
- Distinctive: line 31
Search for existing auth:
- Distinctive: line 37
If found, ask user:
- Distinctive: line 44
Add "Sign in with Apple" capability in Xcode
- Distinctive: line 50
Ask user via AskUserQuestion:
- Distinctive: line 64
No token refresh needed
- Very specific: line 85
If Sources/ exists → Sources/Auth/
- Distinctive: line 180
Add "Sign in with Apple" capability
- Distinctive: line 192
Use Simulator for basic testing
- Distinctive: line 193
Test on device for full flow
- Distinctive: line 194
Use sandbox Apple ID for testing
- Distinctive: line 198
Test enrolled/not enrolled states
- Distinctive: line 204
templates/: - All template files
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Auth Flow Generator
Generate a complete authentication flow with Sign in with Apple, biometric authentication (Face ID/Touch ID), and secure Keychain storage.
When This Skill Activates
Use this skill when the user:
- Asks to "add authentication" or "add login"
- Mentions "Sign in with Apple" or "SIWA"
- Wants "Face ID login" or "biometric auth"
- Asks about "Keychain" or "secure storage"
- Mentions "user session" or "auth token"
Pre-Generation Checks
1. Project Context Detection
- Check for existing auth implementations
- Check for AuthenticationServices framework usage
- Verify entitlements file exists
- Identify source file locations
2. Conflict Detection
Search for existing auth:
Glob: **/*Auth*.swift, **/*Keychain*.swift
Grep: "ASAuthorizationController" or "LAContext"If found, ask user:
- Replace existing implementation?
- Extend with additional methods?
3. Required Capabilities
Sign in with Apple requires:
- Add "Sign in with Apple" capability in Xcode
- Configure in App Store Connect
- Add entitlement:
com.apple.developer.applesignin
Configuration Questions
Ask user via AskUserQuestion:
- Authentication methods? (multi-select)
- Sign in with Apple
- Biometrics (Face ID/Touch ID)
- Both
- Session storage?
- Keychain (secure, persists reinstall)
- UserDefaults (simple, cleared on reinstall)
- Session management?
- Auto-refresh tokens
- Manual refresh
- No token refresh needed
Generation Process
Step 1: Create Core Files
Generate these files:
AuthenticationManager.swift- Core auth orchestrationKeychainManager.swift- Secure storageSignInWithAppleManager.swift- SIWA handlingBiometricAuthManager.swift- Face ID/Touch ID
Step 2: Create SwiftUI Components
Based on configuration:
SignInWithAppleButton.swift- SwiftUI button wrapperAuthenticationView.swift- Complete auth UI
Step 3: Determine File Location
Check project structure:
- If
Sources/exists →Sources/Auth/ - If
App/exists →App/Auth/ - Otherwise →
Auth/
Entitlements Required
Sign in with Apple
<!-- YourApp.entitlements -->
<key>com.apple.developer.applesignin</key>
<array>
<string>Default</string>
</array>Keychain Sharing (optional)
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)com.yourcompany.shared</string>
</array>Info.plist Required
Face ID Usage Description
<key>NSFaceIDUsageDescription</key>
<string>Use Face ID to securely sign in to your account</string>Output Format
After generation, provide:
Files Created
Sources/Auth/
├── AuthenticationManager.swift # Core orchestration
├── KeychainManager.swift # Secure storage
├── SignInWithAppleManager.swift # SIWA delegate
├── BiometricAuthManager.swift # Face ID/Touch ID
├── AuthenticationState.swift # Auth state model
└── Views/
├── SignInWithAppleButton.swift # SwiftUI button
└── AuthenticationView.swift # Complete UIIntegration Steps
App Entry Point:
@main
struct MyApp: App {
@State private var authManager = AuthenticationManager() // AuthenticationManager is @Observable
var body: some Scene {
WindowGroup {
if authManager.isAuthenticated {
ContentView()
} else {
AuthenticationView()
}
}
.environment(authManager)
}
}Sign in with Apple Button:
SignInWithAppleButtonView { result in
switch result {
case .success(let user):
print("Signed in: \(user.id)")
case .failure(let error):
print("Failed: \(error)")
}
}Biometric Auth:
Button("Unlock with Face ID") {
Task {
if await BiometricAuthManager.shared.authenticate() {
// Authenticated
}
}
}Required Setup
- Xcode Capabilities:
- Add "Sign in with Apple" capability
- Enable Keychain Sharing (if needed)
- App Store Connect:
- Configure Sign in with Apple for your App ID
- Info.plist:
- Add
NSFaceIDUsageDescription
- Add
Testing Instructions
Sign in with Apple:
- Use Simulator for basic testing
- Test on device for full flow
- Use sandbox Apple ID for testing
Biometrics:
- Simulator: Features > Face ID > Enrolled
- Test enrolled/not enrolled states
- Test failed authentication
References
- auth-patterns.md - Security best practices
- templates/ - All template files
- Apple Docs: Authentication Services, LocalAuthentication
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

