Agent-skills-standard ios-app-lifecycle
Configure AppDelegate, SceneDelegate, deep linking, and background tasks. Use when configuring iOS app lifecycle, deep linking, or background task scheduling. (triggers: AppDelegate.swift, SceneDelegate.swift, didFinishLaunchingWithOptions, willConnectTo, backgroundTask, Shortcut, UserActivity)
install
source · Clone the upstream repo
git clone https://github.com/HoangNguyen0403/agent-skills-standard
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/HoangNguyen0403/agent-skills-standard "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/ios/ios-app-lifecycle" ~/.claude/skills/hoangnguyen0403-agent-skills-standard-ios-app-lifecycle && rm -rf "$T"
manifest:
skills/ios/ios-app-lifecycle/SKILL.mdsource content
iOS App Lifecycle
Priority: P0
Implementation Workflow
- Configure SceneDelegate — Use for UI windows and scene-specific state in iOS 13+.
- Keep AppDelegate slim — Focus on app-wide setup (DI, Analytics, Push registration). Move initialization logic to dedicated
orBootstrapper
.AppCoordinator - Handle deep links — Prefer Universal Links over custom URL schemes. Handle via
. Route through Root Coordinator.scene(_:continue:userActivity:) - Schedule background tasks — Use
for periodic data refresh. Always handleBGTaskScheduler
to avoid system kill.expirationHandler
See bootstrapper pattern and background task examples
Anti-Patterns
- No Complex AppDelegate Logic: Delegate to Bootstrapper service
- No Manual AppDelegate UIWindow: Use SceneDelegate for iOS 13+
- No Sync Launch Network: Move all launch calls to background threads