swift-concurrency-6-2

Community

Adopt Swift 6.2 concurrency safely.

Authorvinwang
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Swift 6.2 introduces a concurrency model that can lead to data races when code implicitly offloads work to background threads. By running most code on the calling actor by default, this Skill helps you write safer, more predictable concurrency patterns.

Core Features & Use Cases

  • Single-threaded by default: Keep code simple and race-free; concurrency is opt-in.
  • Isolated conformances: MainActor types can safely conform to non-isolated protocols.
  • Explicit @concurrent for background work: Offload only CPU-intensive tasks when needed.
  • MainActor default inference mode: Reduce boilerplate by inferring actor isolation.
  • Global/state safety: Protect static/stateful code with explicit actor isolation.
  • Migration-friendly: Provides a path to adopt concurrency features incrementally.

Quick Start

Enable MainActor default inference and begin migrating code to isolated conformances and selective @concurrent offloading.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: swift-concurrency-6-2
Download link: https://github.com/vinwang/tools/archive/main.zip#swift-concurrency-6-2

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.