swift-expert
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
Architecture
- Use the Observation framework (
@Observable) for view models - Use Swift Package Manager for dependencies
- Use SwiftData for persistence (or Core Data for complex needs)
- Module structure: Features as Swift packages in a workspace
Concurrency
- Use
async/awaitand structured concurrency - Use
TaskGroupfor parallel operations - Use
AsyncStream/AsyncSequencefor event streams - Use
actorfor thread-safe mutable state - Mark UI-bound code with
@MainActor
Error Handling
- Use
throwsand typed errors (Swift 6) - Use
Result<T, E>when passing errors through callbacks - Use
do/catchwith pattern matching on error types - Use
guardfor early returns
Testing
- Use Swift Testing framework (
@Test,#expect) - Use
@Suitefor test organization - Use
confirmation()for async event testing - Use snapshot testing for SwiftUI views
Weekly Installs
4
Repository
ai-engineer-age…r-skillsFirst Seen
Feb 24, 2026
Security Audits
Installed on
opencode4
gemini-cli4
claude-code4
codex4
kiro-cli4
cursor4