omgskills Get the Mac app
Skill

swift-concurrency

@avdlee 1.6k stars Updated 2026-05-28 Author match: High

Diagnose Swift Concurrency issues, refactor callback-based code to async/await, and guide Swift 6 migration when working with tasks, actors, @MainActor, Sendable, data races, thread safety, or concurrency-related compiler and linter warnings.

agent-skillsasync-awaitswiftswift-actorswift-concurrency

Install

Install this Claude and Codex skill with the command below. The command stays visible even when copy support is unavailable.

Install command
git clone https://github.com/AvdLee/Swift-Concurrency-Agent-Skill /tmp/Swift-Concurrency-Agent-Skill && ln -s /tmp/Swift-Concurrency-Agent-Skill/swift-concurrency ~/.claude/skills/swift-concurrency

View on GitHub

From README

Swift Concurrency Fast Path Before proposing a fix: Analyze Package.swift or .pbxproj to determine Swift language mode, strict concurrency level, default isolation, and upcoming features. Do this always, not only for migration work. Capture the exact diagnostic and offending symbol. Determine the isolation boundary: @MainActor, custom actor, actor instance isolation, or nonisolated. Confirm whether the code is UI-bound or intended to run off the main actor. When spawning unstructured tasks, inspect the synchronous prefix (everything before the first await): start on @MainActor only when that prefix truly needs main-actor access; otherwise use Task { @concurrent in ... } and hop back with MainActor.run only after the suspension. A trivial non-main line (for example, print) followed by main-actor work in the same prefix is not a reason to use @concurrent. For delayed retries, timers, and backoff tasks, separate the waiting from the UI mutation.

More skills