> ios-app-lifecycle
Standards for AppDelegate, SceneDelegate, Deep Linking, and Background Tasks. Use when managing iOS app lifecycle, deep linking, or background task scheduling. (triggers: AppDelegate.swift, SceneDelegate.swift, didFinishLaunchingWithOptions, willConnectTo, backgroundTask, Shortcut, UserActivity)
curl "https://skillshub.wtf/HoangNguyen0403/agent-skills-standard/ios-app-lifecycle?format=md"iOS App Lifecycle Standards
Priority: P0
Implementation Guidelines
App & Scene Delegate
- SceneDelegate: Use for UI windows and scene-specific state in iOS 13+.
- AppDelegate: Focus on app-wide setup (DI, Analytics, Push notification registration).
- Slim Delegates: Move initialization logic to dedicated
BootstrapperorAppCoordinator.
Deep Linking
- Universal Links: Prefer over custom URL schemes. Handle via
scene(_:continue:userActivity:). - Handling logic: Routing should be handled by the Root Coordinator to navigate to specific screens.
Background Tasks
- Background Fetch: Use
BGTaskSchedulerfor periodically refreshing data. - Expiration: Handle
expirationHandlerto avoid app kill by the system.
Anti-Patterns
- Fat AppDelegate:
**No complex logic in didFinishLaunching**: Use a Bootstrapper service. - Direct UI in AppDelegate:
**No UIWindow setup in AppDelegate**: Use SceneDelegate for iOS 13+. - Blocking Launch:
**No synchronous network calls in launch**: Move to background thread or defer.
References
> related_skills --same-repo
> typescript-tooling
Development tools, linting, and build config for TypeScript. Use when configuring ESLint, Prettier, Jest, Vitest, tsconfig, or any TS build tooling. (triggers: tsconfig.json, .eslintrc.*, jest.config.*, package.json, eslint, prettier, jest, vitest, build, compile, lint)
> typescript-security
Secure coding practices for TypeScript. Use when validating input, handling auth tokens, sanitizing data, or managing secrets and sensitive configuration. (triggers: **/*.ts, **/*.tsx, validate, sanitize, xss, injection, auth, password, secret, token)
> typescript-language
Modern TypeScript standards for type safety and maintainability. Use when working with types, interfaces, generics, enums, unions, or tsconfig settings. (triggers: **/*.ts, **/*.tsx, tsconfig.json, type, interface, generic, enum, union, intersection, readonly, const, namespace)
> typescript-best-practices
Idiomatic TypeScript patterns for clean, maintainable code. Use when writing or refactoring TypeScript classes, functions, modules, or async logic. (triggers: **/*.ts, **/*.tsx, class, function, module, import, export, async, promise)