swift-concurrency

Fix Swift concurrency compiler errors with actor-isolated, Sendable-safe code.

Updated May 10, 2026
One-click install
npx skills add https://github.com/FelixRauch/medat-figuren --skill swift-concurrency-felixrauch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swift-concurrency
Source: https://github.com/FelixRauch/medat-figuren/tree/main/.agents/skills/swift-concurrency
Command: npx skills add https://github.com/FelixRauch/medat-figuren --skill swift-concurrency-felixrauch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It resolves Swift concurrency compiler diagnostics and prevents data-race issues by guiding you to write actor-isolated, Sendable-safe async code.

Core Features & Use Cases

  • Compiler-error triage workflow: Turn specific Swift concurrency diagnostics into the smallest safe fix without changing behavior.
  • Swift 6.2 approachable concurrency guidance: Explain and apply default MainActor isolation (SE-0466) and nonisolated(nonsending) behavior (SE-0461).
  • Safe async architecture patterns: Provide structured concurrency approaches (async let, TaskGroup, Task.immediate), cancellation practices, and actor reentrancy rules, with references for UI-specific SwiftUI usage and synchronization primitives.

Quick Start

Review the exact Swift concurrency diagnostic, identify the relevant actor isolation context, then apply the smallest Sendable/actor-isolation fix and re-run the build to confirm the warning is gone.

Frequently Asked Questions about swift-concurrency

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

FAQPage Schema
How do I fix Swift concurrency data-race warnings when migrating to Swift 6?

Fix Swift concurrency data-race warnings by applying correct actor isolation and Sendable conformance to async code. This resolves compiler diagnostics safely without changing runtime behavior.

What does Sendable conformance failure mean in Swift structured concurrency?

Sendable conformance failure in Swift structured concurrency indicates a type crossing actor isolation boundaries unsafely. Resolve it by applying correct @MainActor annotations, nonisolated rules, or Sendable conformances.

How do I apply Swift 6.2 approachable concurrency defaults like default MainActor isolation?

Apply Swift 6.2 approachable concurrency defaults by adopting SE-0466 for default MainActor isolation and SE-0461 for nonisolated(nonsending) behavior to simplify strict concurrency diagnostic resolution.

Can I use structured concurrency patterns like TaskGroup and async let to fix isolation mismatch errors?

Yes, structured concurrency patterns like TaskGroup and async let fix isolation mismatch errors by providing safe async architecture approaches with cancellation-safe practices and proper actor reentrancy rules.

What is the best way to resolve actor isolation mismatch errors in SwiftUI?

The best way to resolve actor isolation mismatch errors in SwiftUI is applying the smallest @MainActor or nonisolated fix. This ensures Sendable-safe async code without altering behavior.

Why does Swift strict concurrency require @concurrent and nonisolated isolation rules?

Swift strict concurrency requires @concurrent and nonisolated isolation rules to prevent data races across actors. They enforce safe boundaries for async code execution during Swift 6 migration.