Write Swift teaches an agent the modern language features it often misses. Its numbered sections cover value types, error and optional handling, approachable concurrency with main-actor defaults and the concurrent attribute, Sendable, structured concurrency, SwiftUI concurrency, protocols and generics with some versus any, API design, performance, and ARC and object lifetime. Use it when writing, reviewing or migrating Swift.
What You Get
- Value-type modeling guidance
- Swift 6 concurrency rules, including actor reentrancy and structured concurrency
- Protocol, generics and API design guidance
- Performance, ARC and Swift Testing advice
Common Use Cases
- Migrating a project to Swift 6 concurrency
- Fixing a data race or retain cycle
- Reviewing Swift for API clarity
What Makes It Unique
It targets the gap between what agents learned and the current language: Swift 6 data-race safety, main-actor-by-default and the concurrent attribute. It also argues for staying single-threaded until profiling says otherwise.
Under The Hood
A single SKILL.md with no scripts or network access. The model applies the sections while writing or reviewing Swift code and edits the project’s source files.