swift-concurrency

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

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/shopmikey-solutions/Shopmikeyapp --skill swift-concurrency-shopmikey-solutions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swift-concurrency
Source: https://github.com/shopmikey-solutions/Shopmikeyapp/tree/main/.codex/skills/skills/swift-concurrency
Command: npx skills add https://github.com/shopmikey-solutions/Shopmikeyapp --skill swift-concurrency-shopmikey-solutions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers resolve complex Swift concurrency issues, adopt the latest Swift 6.2 approachable concurrency features, and write robust, data-race-safe asynchronous code.

Core Features & Use Cases

  • Error Resolution: Fix Sendable conformance errors, actor isolation warnings, and strict concurrency diagnostics.
  • Adoption of New Features: Implement Swift 6.2 features like default MainActor isolation, @concurrent, and nonisolated(nonsending).
  • Architectural Design: Design actor-based architectures, leverage structured concurrency with TaskGroups, and manage background work.
  • Use Case: You're encountering "Sending 'X' risks causing data races" errors in your Swift code. This Skill guides you through understanding and fixing these issues by applying actor isolation and Sendable conformance correctly.

Quick Start

Use the swift-concurrency skill to resolve Sendable conformance errors in the provided code snippet.

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 fix Swift data race errors, you must correctly apply actor isolation and Sendable conformance to your types. This Skill guides you through resolving strict concurrency diagnostics by ensuring your async code safely transfers data across isolation boundaries.

What is approachable concurrency in Swift 6.2?

Approachable concurrency in Swift 6.2 introduces default MainActor isolation, @concurrent functions, and nonisolated(nonsending) to simplify migration. This Skill helps you adopt these features to write data-race-safe code while reducing strict concurrency compiler warnings.

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

Migrating to full Swift 6 strict concurrency involves replacing @preconcurrency wrappers with proper Sendable conformance and actor isolation. This Skill facilitates the transition by resolving strict concurrency diagnostics and applying the latest Swift 6.2 approachable concurrency features.

Can I use TaskGroup for structured concurrency with actor-based architectures?

Yes, you can design actor-based architectures and leverage structured concurrency using TaskGroups to manage background work. This Skill aids in architecting your async code to safely offload tasks while maintaining data-race safety across actors.

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

Sendable conformance errors occur when types cross actor isolation boundaries unsafely, risking data races. This Skill resolves these errors by guiding you through correct Sendable adoption and actor isolation adjustments for your Swift concurrent code.