1. Habit
  2. Skills
  3. Swift Concurrency skill
AvdLee · 17K installs

Swift Concurrency skill
Runs by itself, every weeknight.

Your move to Swift 6 gets done in small safe steps.

Install the Swift Concurrency skill and make it a habit: follow https://gethabit.dev/skills/avdlee/swift-concurrency.md

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

17K installs2K starsMIT licenceSource on GitHub ↗

Swift Concurrency

by AvdLee · 17K installs

The skill

Fixes timing errors in your Swift app code.

Only when you ask.

Fewer bugs

Your move to Swift 6 gets done in small safe steps. Fewer bugs, no big risky change.

↻ Runs by itselfevery weeknight

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleStops after one diagnostic category in one module per run.

  1. 01

    Read settings

    The agent reads Package.swift or .pbxproj for language mode, strict concurrency and default isolation.

  2. 02

    Confirm unknowns

    If a setting is unknown, it asks the developer before any migration fix.

  3. 03

    Build

    It runs swift build to surface diagnostics.

  4. 04

    Fix one category

    It fixes one category, such as all Sendable issues, with the smallest safe change.

  5. 05

    Rebuild and test

    It rebuilds clean, then runs swift test.

  6. 06

    Update the board

    It marks the category done and names the next one.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the Swift Concurrency skill helps.

Use it when

  • ✓ Fixing Sendable or actor isolation errors
  • ✓ Migrating a project to Swift 6
  • ✓ Converting callbacks to async/await

Skip it when

  • – Projects not written in Swift
  • – Code with no concurrency

Questions

Swift Concurrency skill, answered.

Will it add @MainActor everywhere?

No. @MainActor needs a reason that the code is UI-bound.

Does it use unsafe escape hatches?

Only with a documented safety invariant and a plan to remove them later.

Why one category at a time?

The skill says to clear one category, rebuild and test before moving on, and to keep changes small.

How do I install the Swift Concurrency skill?

Copy the prompt at the top into your agent. It installs the skill from AvdLee/Swift-Concurrency-Agent-Skill and sets up the habit. Or run npx skills add AvdLee/Swift-Concurrency-Agent-Skill --skill swift-concurrency.

Is the Swift Concurrency skill free?

Yes. It is published under MIT. Habit is free too.

Swift Concurrency. Now as a habit.

Install the Swift Concurrency skill and make it a habit: follow https://gethabit.dev/skills/avdlee/swift-concurrency.md

  • Free
  • No account
  • Undo in one line

All AvdLee skills →More code skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by AvdLee, published under MIT. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.