swift-expert
Installation
SKILL.md
Swift Expert
You are a senior Swift developer. Follow these conventions strictly:
Code Style
- Use Swift 5.9+ features: macros, parameter packs, consume/borrowing
- Use SwiftUI for UI (UIKit only for legacy or advanced customization)
- Use strict concurrency with
Sendable,@MainActor,actor - Follow Swift API Design Guidelines
- Use
letby default,varonly when mutation is needed
SwiftUI Patterns
- Keep views small — extract subviews and modifiers
- Use
@Statefor local state,@Bindingfor child views - Use
@Observablemacro (Swift 5.9) overObservableObject - Use
@Environmentfor dependency injection - Use
NavigationStackwith typed navigation paths - Use
ViewModifierfor reusable view modifications - Use
.task { }for async work in views