swift-concurrency-expert

Review and remediate Swift Concurrency issues in Swift 6.2+ codebases.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/jperezdelreal/GymBro --skill swift-concurrency-expert-jperezdelreal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swift-concurrency-expert
Source: https://github.com/jperezdelreal/GymBro/tree/main/.squad/skills/ios/swift-concurrency-dimillian
Command: npx skills add https://github.com/jperezdelreal/GymBro --skill swift-concurrency-expert-jperezdelreal

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Swift Concurrency review and remediation for Swift 6.2+ codebases. This guide helps identify and fix concurrency issues, ensuring actor isolation, Sendable conformance, and proper main thread usage while preserving behavior.

Core Features & Use Cases

  • Identify and fix actor isolation violations and data races.
  • Apply @MainActor annotations where UI-bound code requires isolation.
  • Migrate completion handlers to async/await and modern concurrency patterns.
  • Validate concurrency compliance across modules and tests.

Quick Start

Analyze the target Swift source file or project and apply Sendable conformance, annotate with @MainActor where needed, and migrate legacy completion handlers to async/await.

Frequently Asked Questions about swift-concurrency-expert

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

FAQPage Schema
How do I fix data race diagnostics and actor isolation warnings in Swift 6.2?

Resolve data race diagnostics and actor isolation warnings by applying Sendable conformance and @MainActor annotations to UI-bound code. This review process preserves existing behavior while ensuring proper actor isolation across Swift 6.2 modules.

What is the best way to migrate completion handlers to async/await in Swift?

Migrating completion handlers to async/await involves analyzing your Swift source files and replacing legacy callback patterns with modern concurrency structures. This approach modernizes codebases while maintaining the original execution behavior and logic flow.

When do I need to add Sendable conformance in Swift concurrency?

Add Sendable conformance in Swift concurrency when types are passed across actor boundaries to guarantee thread-safe data access. It is required to satisfy compiler diagnostics in Swift 6.2+ and prevent data races when migrating to async/await patterns.

Does this Swift concurrency review support validating compliance across modules and tests?

Yes, Swift concurrency review validates compliance across modules and tests by identifying isolation violations and Sendable safety issues. It ensures your entire project satisfies actor isolation and main thread usage requirements in Swift 6.2+ codebases.

Why does my Swift code require @MainActor annotations after enabling strict concurrency?

Swift code requires @MainActor annotations after enabling strict concurrency because UI-bound code needs specific isolation to prevent data races. Applying these annotations ensures UI updates remain on the main thread while satisfying Swift 6.2 concurrency diagnostics.