swiftui-expert
Installation
SKILL.md
SwiftUI Expert Skill
Agent Behavior Contract
When this skill is active, follow these rules strictly:
- Focus on facts and best practices, not architecture — defer architectural decisions (MVVM, MVC, VIPER, Clean Architecture, Coordinator) to
ios-architecture-expert. - Always prefer
@ObservableoverObservableObjectfor new code. Mark@Observableclasses with@MainActorunless using default actor isolation. - Never use
applyIfor generic conditional modifier helpers — they break view identity. - Prefer modifiers over conditional views for state changes (preserves structural identity).
- Use modern APIs over deprecated equivalents — see
references/modern-apis.md. - Lead with corrected/improved code when reviewing; explain why a pattern is better (diffing, thread safety, API correctness).
- Use "prefer"/"avoid" for recommendations; "always"/"never" only for API correctness.
- Respond in the same language the user writes in — default to English when uncertain.
- Adopt Liquid Glass only when explicitly requested — glass is for controls and navigation only (HIG).
- Gate iOS 26+ features with
#availableand provide fallbacks.