$npx skillfedfor your agent

swift-concurrency-updates

This skill guides you through Swift 6.2's "Approachable Concurrency" features that simplify strict concurrency adoption. Discover how default MainActor inference eliminates manual annotations, how async functions now stay on their calling actor, and how to use @concurrent for explicit background execution. Perfect for migrating from Swift 6.0/6.1 or resolving data-race errors with the latest toolchain.

Swift Concurrency Updates teaches you to adopt Swift 6.2's new concurrency defaults and migration patterns.

AI-generated summary based on this skill's SKILL.md

565 47 MITupdated by rshankras

Decision gist · record as of 2026-07-24

Swift Concurrency Updates teaches you to adopt Swift 6.2's new concurrency defaults and migration patterns. This skill guides you through Swift 6.2's "Approachable Concurrency" features that simplify strict concurrency adoption. Discover how default MainActor inference eliminates manual annotations, how async functions now stay on their calling actor, and how to use @concurrent for explicit background execution. Perfect for migrating from Swift 6.0/6.1 or resolving data-race errors with the latest toolchain.

manual: git clone https://github.com/rshankras/claude-code-apple-skills → cp -r claude-code-apple-skills/skills/swift/concurrency ~/.claude/skills/concurrency
skills/swift/concurrency/SKILL.md · version 397fbc5a

Use it when

  • swift-concurrency-updates explains that @concurrent is Swift 6.2's attribute for explicitly offloading CPU-intensive work to the background.
  • swift-concurrency-updates teaches that default MainActor inference is a Swift 6.2 feature that automatically applies MainActor isolation.

Verify before relying

Read SKILL.md below before installing (2 files). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

rshankras/claude-code-apple-skills/concurrency · repository language: Swift

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

What are the main Swift 6.2 concurrency changes?

swift-concurrency-updates covers Swift 6.2's "Approachable Concurrency" features that reduce boilerplate and simplify strict concurrency adoption. Key changes include default MainActor inference for app targets (eliminating manual @MainActor annotations), async functions now staying on their calling actor by default, and the new @concurrent attribute for explicit background execution. These improvements make migrating from Swift 6.0/6.1 less painful and help resolve data-race errors more intuitively.

How do I use @concurrent in Swift 6.2?

swift-concurrency-updates explains that @concurrent is Swift 6.2's attribute for explicitly offloading CPU-intensive work to the background. Unlike Task.detached, @concurrent provides a cleaner, more declarative way to mark functions or closures for background execution. This skill guides you through applying @concurrent to your code, understanding when it's appropriate versus other concurrency patterns, and how it integrates with the new default actor isolation behavior.

What is default MainActor inference in Swift 6.2?

swift-concurrency-updates teaches that default MainActor inference is a Swift 6.2 feature that automatically applies MainActor isolation to app targets without requiring manual @MainActor annotations on every type and method. You can enable and configure this behavior via a build setting in Xcode. This dramatically reduces boilerplate while maintaining strict concurrency checking, making it easier to adopt Swift 6.2's concurrency model.

How do async functions stay on the calling actor in Swift 6.2?

swift-concurrency-updates clarifies that in Swift 6.2, async functions now remain on their calling actor by default instead of implicitly hopping to a generic background context. This means if you call an async function from the MainActor, it stays on the MainActor unless explicitly isolated elsewhere. This behavior reduces unexpected context switches and makes concurrency more predictable, helping you resolve data-race errors and write safer concurrent code.

How do I migrate from Swift 6.0 to 6.2 concurrency?

swift-concurrency-updates provides a migration guide for moving from Swift 6.0/6.1 to 6.2 with less boilerplate. The skill shows how to leverage default MainActor inference to remove redundant annotations, adopt @concurrent for background work, and use the nonisolated keyword where isolation isn't needed. You'll learn which data-race errors are now easier to fix and how to incrementally update your codebase using Swift 6.2's new defaults.

What is the nonisolated keyword in Swift 6.2?

swift-concurrency-updates explains that nonisolated is a Swift 6.2 keyword used to mark methods or properties that don't require actor isolation, even when they're part of an actor-isolated type. This is especially useful when default MainActor inference is enabled, allowing you to explicitly opt out of isolation for specific members. Using nonisolated reduces unnecessary context hops and helps you fine-tune concurrency behavior in your app targets.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

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

(truncated - see the full file via the links below)

File tree — 2 files
skills/swift/concurrency/SKILL.md
skills/swift/concurrency/rules/swiftlint.yml

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Adopt Swift 6.2 concurrency features and understand new defaults”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

Moai Lang Swift
by mosif16 · mosif16/codex-Skills

Build scalable enterprise applications with Swift 6.0's modern concurrency model, featuring async/await, actor isolation, and structured concurrency. This skill covers SwiftUI for declarative interfaces, Combine for reactive programming, and Vapor for server-side development, plus architectural patterns like MVVM and Clean Architecture. Context7 MCP integration provides real-time access to official Swift documentation.

no license declared → metadata onlyupdated Nov 2025
★ 18repo stars
concurrency-patterns
by rshankras · rshankras/claude-code-apple-skills

Navigate Swift's modern concurrency model with patterns for async/await, structured task management, actor-based isolation, and Swift 6.2 features. This skill guides you through compiler errors, data race prevention, and migration strategies—whether you're bridging legacy APIs or adopting strict concurrency in new code.

MITupdated Jul 2026
★ 565repo stars
Swift Ios Migration
by xtone · xtone/ai_development_tools

This skill guides developers through converting legacy iOS applications from Objective-C to Swift, covering the technical and architectural decisions needed for a successful transition. Learn strategies for managing dependencies, refactoring code patterns, and maintaining app stability during the migration process.

no license declared → metadata onlyupdated Jun 2026
★ 3repo stars
swift-development
by rshankras · rshankras/claude-code-apple-skills

Swift Development provides language-level guidance for writing correct, performant Swift across iOS, macOS, and other Apple platforms. It covers concurrency architecture with async/await and actors, Swift 6 strict concurrency migration, memory optimization through InlineArray and Span, and code complexity standards via SwiftLint thresholds. Use it to review code for data races, actor isolation, and modern idioms.

MITupdated Jul 2026
★ 565repo stars
swift-concurrency-expert
by Dimillian · Dimillian/Skills

This skill diagnoses and resolves Swift Concurrency issues in modern Swift codebases through systematic triage and targeted fixes. It handles actor isolation, Sendable safety, and async/await migration while preserving existing behavior and ensuring test suite compatibility.

MITupdated Mar 2026
★ 3,861repo stars
swift-concurrency-6-2
by affaan-m · affaan-m/ECC

Master Swift 6.2's concurrency paradigm where code executes on a single thread by default and background work requires explicit opt-in via @concurrent. This skill teaches you how async functions now remain on their calling actor, eliminating the implicit offloading that caused data-race errors in earlier versions. Learn to use isolated conformances for MainActor types, protect global state, and migrate existing projects incrementally while leveraging the compiler's safety guarantees.

MITupdated Jul 2026
★ 234,207repo stars

More skills swift-concurrency-6-2 (MIT) · axiom-audit-concurrency (MIT) · swift-concurrency (MIT) · modern-swift (MIT) · axiom-concurrency (MIT) · Swift Concurrency Expert Guide (unlicensed) · memory (MIT)

Tags
actor-isolationthread-schedulingui-main-threadconcurrent-executiondata-race-preventionmigration-toolingasync-await-behaviorbackground-processingprotocol-conformancecompiler-settings