What problem does it solve?
This Skill helps you resolve Swift 6.2 concurrency migration issues where code that used to run “as expected” now fails with data-race safety errors due to implicit background offloading and ambiguous actor isolation.
Core Features & Use Cases
- Single-threaded by default migration guidance: Clarifies how Swift 6.2 keeps async work on the calling actor by default to prevent accidental cross-thread access.
- Isolated conformances for MainActor types: Shows how MainActor-isolated types can conform to non-isolated protocols safely, including why nonisolated contexts cannot use those conformances.
- Explicit background offloading with @concurrent: Explains when and how to introduce real parallelism by marking functions with @concurrent and requiring await at call sites.
- MainActor default inference mode: Provides an approach to reduce boilerplate by allowing MainActor inference for app targets and executable code paths.
Quick Start
Activate the swift-concurrency-6-2 Skill and ask it to propose a Swift 6.2-safe refactor for your specific data-race error in a @MainActor type by identifying where implicit offloading used to occur and what to change using isolated conformances or @concurrent.