Swift Concurrency 6 2
Swift 6.2 concurrency guide that runs code single-threaded by default and adds explicit background offloading with @concurrent.
- CCM score
- 71 of 100
- skills.sh installs
- 11.9K
- GitHub stars
- 312.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers migrating from Swift 5.x or 6.0/6.1, resolving data-race errors, and designing MainActor-based app architecture
- Includes patterns for async functions staying on the calling actor, isolated conformances, MainActor-protected globals, and
@concurrentbackground work - Enforces explicit opt-in for background execution, requiring
nonisolatedtypes, the@concurrentattribute, andawaitat call sites - Designed for Xcode 26 projects that enable Approachable Concurrency build settings and MainActor default inference
Install
$ npx -y skills add affaan-m/ecc --skill swift-concurrency-6-2 -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Swift 6.2 Approachable Concurrency
Patterns for adopting Swift 6.2's concurrency model where code runs single-threaded by default and concurrency is introduced explicitly. Eliminates common data-race errors without sacrificing performance.
When to Activate
- Migrating Swift 5.x or 6.0/6.1 projects to Swift 6.2
- Resolving data-race safety compiler errors
- Designing MainActor-based app architecture
- Offloading CPU-intensive work to background threads
- Implementing protocol conformances on MainActor-isolated types
- Enabling Approachable Concurrency build settings in Xcode 26
Core Problem: Implicit Background Offloading
In Swift 6.1 and earlier, async functions could be implicitly offloaded to background threads, causing data-race errors even in seemingly safe code:
// Swift 6.1: ERROR
@MainActor
final class StickerModel {
let photoProcessor = PhotoProcessor()
func extractSticker(_ item: PhotosPickerItem) async throws -> Sticker? {
guard let data = try await item.loadTransferable(type: Data.self) else { return nil }
Details
- Repository
- github.com/affaan-m/ecc
- Category
- Mobile Apps
- First seen
- Jul 14, 2026
Questions
What does the swift-concurrency-6-2 skill do?
It teaches Swift 6.2 Approachable Concurrency, where code runs single-threaded by default and concurrency is added explicitly. It covers @concurrent for background offloading, isolated conformances for MainActor types, and MainActor default inference. It also helps resolve data-race compiler errors when migrating from Swift 5.x or 6.0/6.1.
How do I install the swift-concurrency-6-2 skill?
Run npx -y skills add affaan-m/ecc --skill swift-concurrency-6-2 -y in your project. The skill then lets your agent apply Swift 6.2 concurrency patterns to your code. It is listed in the Mobile Apps category, where it ranks in the top 100.
When should I use the swift-concurrency-6-2 skill?
Use it when migrating Swift 5.x or 6.0/6.1 projects to Swift 6.2, or when resolving data-race safety errors in Xcode 26. It also helps design MainActor-based app architecture and decide when to offload CPU-intensive work with @concurrent. Profiling before offloading is recommended by the skill.
More from affaan-m/ecc
All 257- Nestjs Patterns11.9K
- Data Scraper Agent11.9K
- Hexagonal Architecture11.9K
- Mcp Server Patterns11.9K
- Plankton Code Quality11.9K
- Fal Ai Media11.8K
- Visa Doc Translate11.8K
- Inventory Demand Planning11.8K
- Customs Trade Compliance11.8K
- Brand Voice11.8K
- Seo11.7K
- Kotlin Ktor Patterns11.7K
- Enterprise Agent Ops11.7K
- Quality Nonconformance11.7K
- Ralphinho Rfc Pipeline11.7K
- Crosspost11.7K
- Agent Eval11.7K
- Production Scheduling11.6K
- Videodb11.6K
- Nanoclaw Repl11.6K
- Logistics Exception Management11.6K
- Kotlin Exposed Patterns11.6K
- Carrier Relationship Management11.6K
- Energy Procurement11.6K
Similar to Swift Concurrency 6 2
More Mobile Appsswift-concurrencydpearson2699/swift-ios-skills4.7K installsSwift concurrency guidance for fixing compiler errors, adopting Swift 6.2 approachable concurrency, and writing data-race-safe async code.
modern-swiftjohnrogers/claude-swift-engineering184 installsSwift 6.2 concurrency guide for async/await, actors, Sendable fixes, and strict concurrency checking.
write-swiftemilkowalski/skills182.3K installsSwift 6-era guide for modeling, concurrency, and performance, covering value types, actors, and ARC.
swift-concurrency-expertdimillian/skills2.1K installsSwift 6.2+ concurrency review and fixes for data-race warnings, actor isolation, and Sendable conformance.