swift-concurrency

Diagnose data-race safety and actor-isolation issues in Swift 6.2+ code.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/harshav167/build-ios-apps --skill swift-concurrency-harshav167
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: swift-concurrency
Source: https://github.com/harshav167/build-ios-apps/tree/main/skills/swift-concurrency
Command: npx skills add https://github.com/harshav167/build-ios-apps --skill swift-concurrency-harshav167

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Swift developers encounter data-race safety, actor isolation, and annotation overhead when enabling Swift 6.2+ concurrency features; this skill guides diagnosing and remediating these issues.

Core Features & Use Cases

  • Isolated and nonisolated patterns explained, enabling safe MainActor UI code while preserving concurrency flexibility.
  • Guidance on when to apply @concurrent for CPU-bound tasks and when nonisolated(nonsending) is appropriate.
  • Strategy for using isolated conformances to simplify protocol adoption in UI-facing code and avoiding unnecessary Sendable conformance.

Quick Start

Tell me to audit a Swift project for nonisolated(nonsending) async functions and offload CPU-heavy work with @concurrent.

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 safety errors in Swift 6.2?▼

Fix Swift concurrency data race safety errors by applying actor isolation patterns and validating Sendable boundaries across tasks. This skill guides diagnosing and remediating data-race safety issues specifically for Swift 6.2+ code.

What is the difference between nonisolated(nonsending) and @concurrent in Swift?▼

Use nonisolated(nonsending) for default isolation to preserve concurrency flexibility in UI code, while applying @concurrent specifically to offload CPU-bound tasks. This skill guides choosing the appropriate isolation pattern for safer async scenarios.

How do I audit a Swift project for nonisolated(nonsending) async functions?▼

Audit a Swift project for nonisolated(nonsending) async functions by applying default isolation checks and validating Sendable boundaries across tasks. This skill enforces frontmatter metadata and supports references for deeper guidance.

Do I need Sendable conformance for isolated conformances in UI-facing Swift code?▼

Avoid unnecessary Sendable conformance in UI-facing Swift code by using isolated conformances to simplify protocol adoption. This skill guides applying these conformances while maintaining safe MainActor UI code.

Can I use Swift async/await patterns safely across both UI apps and libraries?▼

Use Swift async/await patterns safely across UI apps and libraries by applying nonisolated(nonsending) defaults and @concurrent offloading. This skill enforces frontmatter metadata and validates Sendable boundaries across tasks.