concurrency-patterns
Navigate Swift's modern concurrency model with patterns for async/await, structured task management, actor-based isolation, and Swift 6.2 features. This skill guides you through compiler errors, data race prevention, and migration strategies—whether you're bridging legacy APIs or adopting strict concurrency in new code.
Concurrency Patterns helps you fix Swift 6 strict concurrency compiler errors and data race issues with structured async/await and actor patterns.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-07-24
Concurrency Patterns helps you fix Swift 6 strict concurrency compiler errors and data race issues with structured async/await and actor patterns. Navigate Swift's modern concurrency model with patterns for async/await, structured task management, actor-based isolation, and Swift 6.2 features. This skill guides you through compiler errors, data race prevention, and migration strategies—whether you're bridging legacy APIs or adopting strict concurrency in new code.
Use it when
- concurrency-patterns addresses Swift 6 compiler errors related to strict concurrency and data races by teaching isolation patterns.
- concurrency-patterns includes patterns for bridging legacy callback and delegate APIs to async/await.
Verify before relying
Read SKILL.md below before installing (7 files). Open directory: indexed for reading, not audited.
Install
rshankras/claude-code-apple-skills/concurrency-patterns · repository language: Swift
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What does concurrency-patterns cover for Swift async/await?
concurrency-patterns guides you through Swift's modern concurrency model, including async/await patterns, structured task management with TaskGroup and async let, and actor-based isolation. The skill helps you navigate compiler errors, prevent data races, and adopt strict concurrency in both new and existing code.
How do I fix data race errors in Swift 6?
concurrency-patterns addresses Swift 6 compiler errors related to strict concurrency and data races by teaching isolation patterns, Sendable conformance, and actor design. The skill covers root causes of data races and provides strategies to resolve them—from simple value types to complex shared-state scenarios.
How can I bridge completion handlers to async/await?
concurrency-patterns includes patterns for bridging legacy callback and delegate APIs to async/await. You'll learn withCheckedContinuation, AsyncStream for delegate bridging, and other conversion techniques to modernize callback-based code without rewriting entire systems.
What structured concurrency patterns does concurrency-patterns teach?
concurrency-patterns covers async/await fundamentals, TaskGroup for parallel work, async let for concurrent binding, and actor-based thread safety. It also addresses task cancellation, MainActor for UI updates, and Swift 6.2 approachable concurrency features to help you write safe, efficient concurrent code.
How do I migrate existing code to Swift 6 concurrency?
concurrency-patterns provides a migration guide for adopting Swift 6's concurrency model. It covers Sendable conformance errors, actor reentrancy problems, custom actor executors, and strategies for incrementally updating callback-based and delegate-based code to modern structured concurrency.
How can I debug concurrency bugs like hangs and UI freezes?
concurrency-patterns helps you debug concurrency issues including hangs, reentrancy problems, and UI freezes. The skill covers task-local context tracing, concurrency instrumentation profiling, and best practices for identifying and fixing race conditions and deadlocks in your Swift code.
SKILL.md
Rendered from the published skill. Quoted content, verbatim.
Swift Concurrency Patterns
Comprehensive guide for Swift concurrency covering async/await, structured concurrency, actors, and the Swift 6.2 "Approachable Concurrency" features. Focuses on patterns that prevent data races and common mistakes that cause crashes.
When This Skill Activates
- User has data race errors or actor isolation compiler errors
- User is migrating to Swift 6 strict concurrency
- User asks about async/await, actors, Sendable, TaskGroup, or MainActor
- User needs to bridge legacy completion-handler APIs to async/await
- User is working with Swift 6.2 features (@concurrent, isolated conformances)
- User has concurrency bugs (actor reentrancy, task cancellation, UI freezes)
Decision Tree
``` What concurrency problem are you solving? │ ├─ Swift 6 compiler errors /
(truncated - see the full file via the links below)
File tree — 7 files
skills/swift/concurrency-patterns/SKILL.md
skills/swift/concurrency-patterns/actors-and-isolation.md
skills/swift/concurrency-patterns/concurrency-internals.md
skills/swift/concurrency-patterns/continuations-bridging.md
skills/swift/concurrency-patterns/migration-guide.md
skills/swift/concurrency-patterns/structured-concurrency.md
skills/swift/concurrency-patterns/swift62-concurrency.md
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Fix Swift 6 compiler errors related to strict concurrency and data races”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
This skill guides you through Swift 6.2's "Approachable Concurrency" features that simplify strict concurrency adoption. Discover how default MainActor inference eliminates manual annotations, how async functions now stay on their calling actor, and how to use @concurrent for explicit background execution. Perfect for migrating from Swift 6.0/6.1 or resolving data-race errors with the latest toolchain.
Swift Development provides language-level guidance for writing correct, performant Swift across iOS, macOS, and other Apple platforms. It covers concurrency architecture with async/await and actors, Swift 6 strict concurrency migration, memory optimization through InlineArray and Span, and code complexity standards via SwiftLint thresholds. Use it to review code for data races, actor isolation, and modern idioms.
Modern Swift equips you with patterns for Swift 6.2's compiler-enforced concurrency model, replacing legacy approaches like completion handlers and DispatchQueue with async/await, actors for shared state, and Sendable constraints. Learn to enable strict concurrency checking, migrate existing code, and avoid common pitfalls like misused @unchecked Sendable and forgotten @MainActor annotations.
axiom-concurrency equips AI coding assistants with expert-level Swift 6 concurrency knowledge to eliminate data races and isolation violations. This skill covers modern async/await patterns, actor isolation, and sendability constraints—essential for building robust Apple OS applications. Prevent crashes and memory issues before they reach users.
ios-chaos-monkey helps developers identify hidden concurrency issues in Swift iOS applications by simulating chaotic conditions and stress scenarios. It detects data races, deadlocks, and thread-safety violations that traditional testing often misses, enabling more resilient mobile code.
This skill diagnoses and resolves Swift Concurrency issues in modern Swift codebases through systematic triage and targeted fixes. It handles actor isolation, Sendable safety, and async/await migration while preserving existing behavior and ensuring test suite compatibility.
More skills swift-concurrency-6-2 (MIT) · swift-concurrency-6-2 (MIT) · axiom-audit-concurrency (MIT)