This skill should be used when the user asks to "create a SwiftUI view", "build an iOS app", "set up an Xcode project", "review Apple platform code", "add a widget", "create a watchOS app", "build for visionOS", "fix SwiftUI layout", or when generating any Swift code targeting Apple platforms (iOS, iPadOS, macOS, tvOS, watchOS, visionOS). Provides modern SwiftUI-first best practices covering UI patterns, app lifecycle, navigation, project structure, and platform-specific guidance. Use together with `swift-development` for Swift language fundamentals. Always generates Swift unless the project explicitly requires Objective-C.
89
—
Does it follow best practices?
Impact
94%
1.05xAverage score across 3 eval scenarios
Advisory
Suggest reviewing before use
Design token system with environment injection
Spacing tokens defined
100%
100%
Corner radius tokens defined
100%
100%
Typography tokens defined
100%
100%
Color tokens defined
100%
100%
No magic numbers in example view
58%
50%
No raw color values in example view
100%
100%
Environment-based injection
100%
100%
View naming suffix
100%
100%
Preview uses #Preview macro
100%
100%
Tokens applied at root level
100%
100%
Design system structured as a type
100%
100%
MVVM with @Observable, navigation, and async lifecycle
@Observable used
100%
100%
@MainActor on view models
40%
100%
NavigationStack used
62%
100%
Typed navigation destinations
100%
100%
NavigationPath for programmatic navigation
100%
100%
.task modifier for async work
100%
100%
Single ViewState struct
25%
0%
Dependency injection via init
100%
100%
View naming suffix
100%
100%
View does not mutate state directly
87%
100%
#Preview uses fake repo
100%
100%
No main thread blocking
100%
100%
SwiftData persistence and URLSession networking choices
SwiftData used
100%
100%
@Model macro used
100%
100%
URLSession used for networking
100%
100%
HTTP status validation
100%
100%
No Alamofire for simple requests
100%
100%
SPM version pinning
100%
100%
.task for network load
0%
100%
SwiftData choice documented
100%
100%
Networking choice documented
100%
100%
modelContainer in App entry point
90%
70%
4596913
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.