Individual skill
guide-swift-concurrency
Swift concurrency patterns — actors, structured concurrency, cancellation, async streams, GCD migration, strict-concurrency diagnostics, common bug patterns. Use when writing, reviewing, or debugging concurrent Swift code.
skills/guide-swift-concurrency/SKILL.md
Source commit 498626005e65783ebe8570a103b2335cf397768c
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Not checked yet
- Last checked
- Nov 7, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 356
- Repository last updated
- Sep 26, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 3,531 bytesreferences/actors.mddoc · 5,388 bytesreferences/async-streams.mddoc · 2,107 bytesreferences/bridging.mddoc · 3,009 bytesreferences/bug-patterns.mddoc · 4,182 bytesreferences/cancellation.mddoc · 3,661 bytesreferences/diagnostics.mddoc · 4,501 bytesreferences/hotspots.mddoc · 2,333 bytesreferences/interop.mddoc · 3,728 bytesreferences/new-features.mddoc · 7,889 bytesreferences/structured.mddoc · 3,058 bytesreferences/testing.mddoc · 8,251 bytesreferences/unstructured.mddoc · 2,473 bytes
Read excerpt
> **Guide Skill** — This is an expert workflow/pattern guide, not API reference documentation.
> Originally from [twostraws/Swift-Concurrency-Agent-Skill](https://github.com/twostraws/Swift-Concurrency-Agent-Skill) by Paul Hudson. MIT License.
# Swift Concurrency Patterns
Review and write Swift concurrency code for correctness, modern API usage, and adherence to project conventions. Report only genuine problems — do not nitpick or invent issues.
## Core Instructions
- Target Swift 6.2 or later with strict concurrency checking.
- Prefer structured concurrency (task groups) over unstructured (`Task {}`).
- Prefer Swift concurrency over GCD for new code. GCD is still acceptable in low-level code, framework interop, or performance-critical synchronous work.
- Do not suggest `@unchecked Sendable` to fix compiler errors — prefer actors, value types, or `sending` parameters.