Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Swift concurrency review

Reviews Swift async code, actors and Sendable errors with before and after fixes, so data races are caught early.

What we improved

Fixed the headline example. The original "after" code for the actor reentrancy bug removed the force unwrap but still let two callers download the same key, while its summary claimed it fixed duplicate downloads and a crash. The example now

Improved by YourAISkill from the original by twostraws, under its MIT licence. The download includes the author's licence and a CHANGES.md listing every change. Both Claude reviews read the improved version.

Claude's review

9/10 Accurate Swift concurrency review method that checks build settings first, with sharp rules on reentrancy, cancellation, continuations and Swift 6.2 features, plus a clear output format.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

Reviews Swift code for concurrency correctness, modern API usage, and common async/await pitfalls. Use when reading, writing, or reviewing Swift concurrency code.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: swift-concurrency-pro
description: "Reviews and fixes Swift concurrency code for correctness and modern API use: actor reentrancy, task groups versus loose Task {}, cancellation, AsyncStream and continuation lifecycles, Sendable and strict-concurrency errors, GCD and Combine migration, Swift 6.2 features (main-actor default isolation, nonisolated(nonsending), @concurrent, Task.immediate) and async tests with Swift Testing. Checks each target's concurrency build settings first, reports only genuine problems by file and line with before and after fixes, and ends with a prioritized summary. Use when reading, writing, reviewing or debugging Swift async/await, actors, tasks, Sendable diagnostics or concurrency tests."
license: MIT
metadata:
  author: Paul Hudson
  version: "1.0"
---
<!-- Modified by YourAISkill (youraiskill.com) on 2 December 2026 from the original by twostraws. See CHANGES.md. -->

Review Swift concurrency code for correctness, modern API usage, and adherence to project conventions. Report only genuine problems - do not nitpick or invent issues.

## Step 0: establish the build context

The same code behaves differently depending on per-target settings, so check them before judging anything. Look in the Xcode build settings or `Package.swift` for each target involved:

- **Language mode** (`SWIFT_VERSION`, or `swiftLanguageModes` / `.swiftLanguageMode(.v6)`): Swift 6 mode makes data-race diagnostics errors.
- **Strict concurrency** in Swift 5 mode (`SWIFT_STRICT_CONCURRENCY`): `minimal`, `targeted` or `complete`.
- **Main-actor default isolation** (`SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor`, or `.defaultIsolation(MainActor.self)`): unannotated code is `@MainActor`.
- **Caller-actor async** (`NonisolatedNonsendingByDefault`, turned on by Xcode's `SWIFT_APPROACHABLE_CONCURRENCY`): plain `nonisolated` async functions stay on the caller's actor instead of hopping to the global executor.

If code spans several targets or packages, compare their settings before assuming behaviour should match. Say in the review which settings you found, or that you could not find them.

## Review process

1. Scan for known-dangerous patterns using `references/hotspots.md` to prioritize what to inspect.
1. Check for recent Swift 6.2 concurrency behavior using `references/new-features.md`.
1. Validate actor usage for reentrancy and isolation correctness using `references/actors.md`.
1. Ensure structured concurrency is preferred over unstructured where appropriate using `references/structured.md`.
1. Check unstructured task usage for correctness using `references/unstructured.md`.
1. Verify cancellation is handled correctly using `references/cancellation.md`.
1. Validate async stream and continuation usage using `references/async-streams.md`.
1. Check bridging code between sync and async worlds using `references/bridging.md`.
1. Review any legacy concurrency migrations using `references/interop.md`.
1. Cross-check against common failure modes using `references/bug-patterns.md`.
1. If the project has strict-concurrency errors, map diagnostics to fixes using `references/diagnostics.md`.
1. If reviewing tests, check async test patterns using `references/testing.md`.

If doing a partial review, load only the relevant reference files. The rules below are the essentials of each file; open the file when a finding needs its detail or examples.

...

From twostraws's repository, MIT licence.

Related skills

  • Checked

    iPhone interface guidelines

    Applies Apple's iPhone design guidelines in SwiftUI and UIKit, so your app feels at home on iOS.

    by ehmo 663
    7/101 credit
  • Checked

    App Store rejection check

    Reviews Apple app code against the App Store Review Guidelines to catch rejection risks before you submit.

    by safaiyeh 484
    7/101 credit
  • Checked

    SwiftUI iOS 17 modernisation

    Scans your Swift code for old patterns and plans the move to iOS 17 APIs, so you migrate without breaking the app.

    by CharlesWiltgen 1.3k
    8/101 credit
  • Checked

    Liquid Glass for iOS apps

    Shows where Apple's Liquid Glass belongs in your iOS app and how to build it, so screens stay clear and readable.

    by affaan-m 314k
    8/101 credit
  • Checked

    Capacitor iOS hardening

    Tightens Xcode security settings and native plugin code in a Capacitor iOS app, one safe step at a time.

    by Cap-go 79
    7/101 credit
  • Checked

    CocoaPods to SwiftPM

    Moves Kotlin Multiplatform projects from CocoaPods to Swift Package Manager and updates the Xcode project.

    by Kotlin 1.1k
    8/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added