swift-concurrency · dpearson2699 — Claude Code skill: what it does, how to install
Fixes Sendable errors and actor isolation diagnostics in Swift 6.2+ while adopting approachable concurrency features.
npx skills add dpearson2699/swift-ios-skills --skill swift-concurrency -a claude-codeWhat swift-concurrency does
Guides AI assistants through diagnosing and resolving Swift concurrency errors targeting Swift 6.2 and newer toolchains. The workflow prioritizes minimal safe code interventions: gathering diagnostic context, adjusting actor boundaries or conformances, and verifying the build without unnecessary @unchecked Sendable or nonisolated(unsafe) workarounds.
It covers approachable concurrency features like default MainActor isolation (SE-0466) and nonisolated(nonsending) execution (SE-0461). Because nonisolated async methods stay on the caller actor by default in Swift 6.2+, offloading CPU-heavy work to background threads requires pairing a nonisolated context with the explicit @concurrent attribute.
What it helps with
- resolve compiler diagnostics for Sendable conformance
- configure default MainActor isolation under SE-0466
- fix actor isolation warnings in Swift 6 strict mode
- offload heavy synchronous operations to background threads using @concurrent
Example prompts for the agent
- Fix this Sendable warning when passing state across actors in Swift 6
- Refactor this CPU-heavy method to run off the MainActor using @concurrent
- Adopt default MainActor isolation for our application target
How to install swift-concurrency
1Skills CLI (Vercel)
npx skills add dpearson2699/swift-ios-skills --skill swift-concurrency -a claude-code2Manually: put the files in place
~/.claude/skills/swift-concurrency/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/swift-concurrency/
1Skills CLI (Vercel)
npx skills add dpearson2699/swift-ios-skills --skill swift-concurrency -a codex2Manually: put the files in place
.agents/skills/swift-concurrency/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add dpearson2699/swift-ios-skills --skill swift-concurrency -a cursor2Manually: put the files in place
.cursor/skills/swift-concurrency/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install dpearson2699/swift-ios-skills swift-concurrency2Manually: put the files in place
.github/skills/swift-concurrency/SKILL.md1Skills CLI (Vercel)
npx skills add dpearson2699/swift-ios-skills --skill swift-concurrency -a gemini-cli2Platform CLI
gemini skills install https://github.com/dpearson2699/swift-ios-skills --path skills/swift-concurrencyManually: put the files in place
.devin/skills/swift-concurrency/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add dpearson2699/swift-ios-skills --skill swift-concurrency -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about swift-concurrency
How to install swift-concurrency in Claude Code?
Run npx skills add dpearson2699/swift-ios-skills --skill swift-concurrency -a claude-code in your terminal.
What does swift-concurrency do?
It guides your coding assistant through fixing data-race diagnostics, managing actor isolation, and applying Swift 6.2 concurrency patterns.
Which Swift language versions are supported?
It targets Swift 6.2 and newer versions, providing checks for upcoming features and approachable concurrency settings.
Similar skills
All skills for Programming languages →swift-concurrency by other authors comes first.