Resolve Swift concurrency compiler errors, adopt approachable concurrency (SE-0466), and write data-race-safe async code. Use when fixing Sendable conformance errors, actor isolation warnings, or strict concurrency diagnostics; when adopting default MainActor isolation, @concurrent, nonisolated(nonsending), or Task.immediate; when designing actor-based architectures, structured concurrency with TaskGroup, or background work offloading; or when migrating from @preconcurrency to full Swift 6 stric
The swift-concurrency skill helps developers review, diagnose, fix, and write concurrent Swift code for Swift 6.3 and newer. It focuses on resolving compiler diagnostics related to concurrency, including Sendable conformance issues, actor isolation violations, strict concurrency errors, and migration challenges when adopting modern Swift concurrency features. The skill emphasizes applying the smallest safe fix that preserves existing behavior while ensuring data-race safety and compliance with Swift's concurrency model.
Its capabilities include diagnosing concurrency problems through a structured triage workflow, applying actor isolation correctly, enforcing Sendable safety, and adopting modern language features such as approachable concurrency and default MainActor isolation. The skill covers key concurrency topics including structured concurrency, task cancellation, actor reentrancy, AsyncSequence and AsyncStream usage, observable types and concurrency interactions, synchronization primitives, and common concurrency mistakes. It also provides guidance for adopting features such as @MainActor isolation, @concurrent functions, nonisolated(nonsending), Task.immediate, actor-based architectures, and migration from legacy concurrency approaches to Swift 6 strict concurrency.
This skill is intended for Swift developers, application engineers, and teams modernizing codebases to Swift 6.2+ and Swift 6.3+. It is particularly useful when working on UI-bound applications, actor-based systems, asynchronous workflows, and codebases transitioning from earlier concurrency models. The skill supports both troubleshooting existing compiler errors and designing new concurrency-safe architectures that align with modern Swift best practices.
Use it when resolving Swift concurrency compiler errors, Sendable conformance issues, actor isolation warnings, strict concurrency diagnostics, or when adopting modern Swift concurrency patterns.
The skill targets Swift 6.3+ and assumes Swift 6.2 or later language features when diagnosing and applying concurrency-related fixes.
Yes. It includes guidance for approachable concurrency adoption, default MainActor isolation, and related Swift 6.2 concurrency improvements.
Yes. It provides guidance for migrating from @preconcurrency and earlier migration settings toward full Swift 6 strict concurrency.
No. The workflow emphasizes safe fixes and specifically recommends avoiding unnecessary use of constructs such as @unchecked Sendable or nonisolated(unsafe).
Quick Setup:
.claude/skills/Repository
dpearson2699/swift-ios-skills