Back to Skills

swift-concurrency-pro

Reviews Swift code for concurrency correctness, modern API usage, and common async/await pitfalls. Use when reading, writing, or reviewing Swift concurrency code.

393stars16forksUpdated 5/5/2026

Security Assessment

Low Risk(70/100)

Detected risks:

Secret Exposure([references/interop.md] token =)
Security Score70/100

About swift-concurrency-pro

The swift-concurrency-pro skill is designed to review Swift code with a focus on concurrency correctness, modern async/await API usage, and prevention of common concurrency-related pitfalls. It helps developers identify subtle issues in asynchronous Swift code that may lead to race conditions, actor isolation problems, incorrect task usage, or improper cancellation handling. By targeting Swift 6.2 and strict concurrency checking, it ensures code aligns with the latest language safety guarantees and best practices in structured concurrency.

This skill performs a systematic review process that prioritizes known risk areas and follows a structured set of reference-based checks, including actors, structured concurrency, cancellation, async streams, bridging between synchronous and asynchronous contexts, legacy interop patterns, and diagnostic mappings. It emphasizes structured concurrency over unstructured Task usage, prefers async/await over closure-based APIs, and ensures safe actor isolation and reentrancy handling. It also produces actionable findings organized by file, including line-level issues, rule violations, and before/after code fixes, followed by a prioritized summary of improvements.

It is intended for Swift developers, code reviewers, and engineering teams working with modern concurrency systems or migrating legacy asynchronous codebases to Swift 6.2+. It is especially useful in large projects where concurrency correctness is critical, such as networking layers, data processing pipelines, and test environments involving async execution. The skill helps ensure safer, more predictable concurrency behavior while maintaining adherence to modern Swift concurrency conventions.

FAQ

When should I use this skill?

Use it when reading, writing, or reviewing Swift code that uses concurrency features such as async/await, actors, tasks, or structured concurrency patterns.

Does it support all Swift versions?

It targets Swift 6.2 or later with strict concurrency checking and is optimized for modern Swift concurrency behavior.

Does it modify code automatically?

No. It only reviews code and suggests fixes, including before/after examples, but does not apply changes directly.

Are both GCD and async/await supported?

Yes. It prefers async/await and structured concurrency for new code, but still recognizes GCD when used appropriately in low-level or interop contexts.

All Files

14 files
agents/openai.yaml0.4 KB
View
references/cancellation.md3.6 KB
View
SKILL.md5.4 KB
View
references/actors.md5.4 KB
View
references/interop.md3.6 KB
View
references/unstructured.md2.4 KB
View
references/async-streams.md2.1 KB
View
references/bridging.md2.9 KB
View
references/bug-patterns.md4.1 KB
View
references/diagnostics.md4.4 KB
View
references/hotspots.md2.3 KB
View
references/new-features.md7.7 KB
View
references/structured.md3.0 KB
View
references/testing.md8.1 KB
View

Install swift-concurrency-pro

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill