swift-concurrency

Resolve Swift concurrency compiler errors and adopt Swift 6.2 approachable concurrency.

981|50|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/dpearson2699/swift-ios-skills --skill swift-concurrency-dpearson2699
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swift-concurrency
Source: https://github.com/dpearson2699/swift-ios-skills/tree/main/skills/swift-concurrency
Command: npx skills add https://github.com/dpearson2699/swift-ios-skills --skill swift-concurrency-dpearson2699

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers resolve Swift concurrency errors, adopt modern async/await patterns, and write data-race-safe code, ensuring robust and efficient concurrent applications.

Core Features & Use Cases

  • Error Resolution: Fixes Sendable conformance issues, actor isolation warnings, and strict concurrency diagnostics.
  • Concurrency Adoption: Guides users in adopting Swift 6.2 features like @concurrent, nonisolated(nonsending), and Task.immediate.
  • Architecture Design: Assists in designing actor-based architectures, structured concurrency with TaskGroup, and offloading background work.
  • Use Case: You're encountering "Sending 'self.someObject' to actor 'SomeActor' risks causing data races" errors. This Skill provides the exact steps to fix it by correctly applying actor isolation or Sendable conformance.

Quick Start

Use the swift-concurrency skill to resolve a Sendable conformance error in my project.

Frequently Asked Questions about swift-concurrency

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix "Sending risks causing data races" errors in Swift?

To resolve Swift data race errors, correctly apply actor isolation or add Sendable conformance to the types being passed across concurrency boundaries. This Skill diagnoses strict concurrency diagnostics and provides the exact steps to resolve them.

How do I adopt Swift 6.2 approachable concurrency features like @concurrent and nonisolated(nonsending)?

Adopting Swift 6.2 approachable concurrency involves using features like @concurrent, nonisolated(nonsending), and Task.immediate to write data-race-safe async code. This Skill guides you through applying these specific modifiers to migrate toward full strict concurrency.

What is the best way to design an actor-based architecture in Swift?

Designing an actor-based architecture in Swift involves using actors to isolate state and structured concurrency with TaskGroup to manage background work offloading. This Skill assists in structuring these components to ensure robust and efficient concurrent applications.

How do I migrate from @preconcurrency to full Swift 6 strict concurrency?

Migrating from @preconcurrency to full Swift 6 strict concurrency requires resolving Sendable conformance issues and default MainActor isolation warnings. This Skill facilitates the transition by addressing strict concurrency diagnostics and adopting approachable concurrency patterns.

Why am I getting Sendable conformance compiler errors in my async Swift code?

Sendable conformance compiler errors occur because types crossing actor boundaries are not marked as safe for concurrent use. This Skill resolves these Swift concurrency errors by guiding you through proper Sendable adoption and actor isolation.