Agent skill · Databases

swift-concurrency-updates

Swift 6.2 concurrency updates including default MainActor inference, @concurrent for background work, isolated conformances, and approachable concurrency migration. Use when adopting Swift 6.2 concurrency features or fixing data-race errors.

rshankrasgithub.com/rshankrasGitHub ↗
claude-coderead-onlyMIT
Install
npx skills add rshankras/claude-code-apple-skills --skill concurrency --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 14 KB
Bundled scripts: none
Allowed tools: ReadGlobGrep
Path: skills/swift/concurrency/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 589
Language: Swift

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Swift 6.2 Concurrency Updates Swift 6.2 introduces "Approachable Concurrency" -- a set of changes that make strict concurrency dramatically easier to adopt. Code runs on `@MainActor` by default, async functions stay on the calling actor, and you explicitly request background execution with `@concurrent`. This skill covers only the Swift 6.2 specific changes. For general concurrency patterns (actors, TaskGroup, AsyncSequence, Sendable, cancellation), see the `swift/concurrency-patterns` skill. ## When This Skill Activates - User is adopting Swift 6.2 concurrency features - User asks about default MainActor inference or the "infer main actor" build setting - User encounters data-race errors that Swift 6.2 resolves - User asks about `@concurrent`, isolated conformances, or approachable concurrency - User wants to migrate from Swift 6.0/6.1 strict concurrency to 6.2 - User asks how async functions behave differently in Swift 6.2 - User needs to offload CPU-intensive work to a background thread in Swift 6.2 ## What Changed in Swift 6.2 vs Before ### Swift 6.2 Changes at a Glance | Feature | Before (6.0/6.1) | After (6.2) | |---------|------------------|-------------| | Default isolati

What's inside
Steps it walks through
  1. When This Skill Activates
  2. What Changed in Swift 6.2 vs Before
  3. Swift 6.2 Changes at a Glance
  4. 1. Async Functions Stay on the Calling Actor
  5. 2. Default MainActor Inference Mode
  6. Enabling It
  7. When to Use Default MainActor Inference
  8. Opting Out with nonisolated
  9. 3. Isolated Conformances
  10. 4. @concurrent -- Explicit Background Execution
  11. Steps to Offload Work
  12. @concurrent vs Task.detached vs actor
  13. When NOT to Use @concurrent
  14. 5. Migration Guide
Ships with 1 file
  • rules/swiftlint.yml
More from claude-code-apple-skills
All skills →
About this skill
What does the swift-concurrency-updates skill do?

Swift 6.2 concurrency updates including default MainActor inference, @concurrent for background work, isolated conformances, and approachable concurrency migration. Use when adopting Swift 6.2 concurrency features or fixing data-race errors.

How do I install it?

Run `npx skills add rshankras/claude-code-apple-skills --skill concurrency --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From rshankras/claude-code-apple-skills, a repository with 589 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going