guide-swift-concurrency

Community

Write and debug correct Swift concurrency.

AuthorRoy-wonji
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This guide prevents subtle Swift concurrency bugs by teaching correct patterns for actors, structured concurrency, cancellation, async streams, and safe migration away from GCD.

Core Features & Use Cases

  • Actor-correctness review: Detects and fixes reentrancy issues after suspension points and unsafe state assumptions.
  • Structured concurrency guidance: Recommends task groups and async let over unstructured Task usage, especially inside loops.
  • Cancellation, streams, and bridging: Covers cooperative cancellation, AsyncStream continuation lifecycle, and checked continuation rules to avoid hangs or double-resume crashes.
  • Strict concurrency diagnostics mapping: Interprets Swift 6.2 strict-concurrency compiler errors and links them to likely fixes.

Quick Start

Use this guide to review or generate Swift 6.2+ concurrent code by checking actors, structured tasks, cancellation handling, AsyncStream usage, bridging correctness, and strict-concurrency diagnostics.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: guide-swift-concurrency
Download link: https://github.com/Roy-wonji/claude-config/archive/main.zip#guide-swift-concurrency

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.