concurrency-patterns
Swift concurrency patterns including Swift 6.2 approachable concurrency, structured concurrency, actors, continuations, and migration. Use when reviewing or building async code, fixing data race errors, or migrating to Swift 6.
npx skills add rshankras/claude-code-apple-skills --skill concurrency-patterns --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Swift Concurrency Patterns Comprehensive guide for Swift concurrency covering async/await, structured concurrency, actors, and the Swift 6.2 "Approachable Concurrency" features. Focuses on patterns that prevent data races and common mistakes that cause crashes. ## When This Skill Activates - User has data race errors or actor isolation compiler errors - User is migrating to Swift 6 strict concurrency - User asks about async/await, actors, Sendable, TaskGroup, or MainActor - User needs to bridge legacy completion-handler APIs to async/await - User is working with Swift 6.2 features (@concurrent, isolated conformances) - User has concurrency bugs (actor reentrancy, task cancellation, UI freezes) ## Decision Tree ``` What concurrency problem are you solving? │ ├─ Swift 6 compiler errors / migration │ └─ migration-guide.md │ ├─ Swift 6.2 new features (@concurrent, isolated conformances) │ └─ swift62-concurrency.md │ ├─ Running work in parallel (async let, TaskGroup) │ └─ structured-concurrency.md │ ├─ Thread safety for shared mutable state │ └─ actors-and-isolation.md │ ├─ Bridging old APIs (delegates, callbacks) to async/await │ └─ continuations-bridging.md │ ├─ Hangs, slow parallel
- When This Skill Activates
- Decision Tree
- Quick Reference
- Process
- 1. Identify the Problem
- 2. Load Relevant Reference Files
- 3. Review Checklist
- 4. Cross-Reference
- References
What does the concurrency-patterns skill do?
Swift concurrency patterns including Swift 6.2 approachable concurrency, structured concurrency, actors, continuations, and migration. Use when reviewing or building async code, fixing data race errors, or migrating to Swift 6.
How do I install it?
Run `npx skills add rshankras/claude-code-apple-skills --skill concurrency-patterns --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From rshankras/claude-code-apple-skills, a repository with 589 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
