swift-concurrency · prisma-labs-dev — Claude Code skill: a Swift Concurrency reference
A reference skill for Swift Concurrency: async/await, Task, TaskGroup, actors, AsyncSequence and continuation bridges. Useful when the agent writes async Swift code.
npx skills add Prisma-Labs-Dev/apple-skills --skill swift-concurrency -a claude-codeWhat swift-concurrency does
The skill hands the agent a set of local .md pages on Swift Concurrency. It covers the topic overview plus separate files for Task, TaskGroup, the Actor protocol, AsyncSequence, AsyncStream and CheckedContinuation for bridging callback code.
It runs as a forked context with the Explore agent, so lookups happen away from the main conversation. The agent searches the skill's own files first. When a topic is missing there, it checks other installed Apple skills by name and SKILL.md frontmatter, then greps their files. That costs less context than pulling docs off the web.
Only if nothing local matches does it take a path from concurrency-overview.md and hit the sosumi.ai Markdown mirror — /documentation/swift/task becomes https://sosumi.ai/documentation/swift/task. That last step needs network access, so offline setups stop at the local files.
What it helps with
- tell
TaskGroupapart from spawningTaskin a loop - convert a delegate callback to
async/awaitwithCheckedContinuation - get the
Actorprotocol signature and isolation rules right - wire up
AsyncStreamfor events arriving from outside the app - recall how
AsyncSequenceiteration actually works
Example prompts for the agent
- Show me how to fan out parallel requests with
TaskGroupand await all results - How do I bridge a delegate callback to
async/awaitusingCheckedContinuation? - Walk me through how
AsyncStreambuffers events, using the skill files
How to install swift-concurrency
1Skills CLI (Vercel)
npx skills add Prisma-Labs-Dev/apple-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 Prisma-Labs-Dev/apple-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 Prisma-Labs-Dev/apple-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 Prisma-Labs-Dev/apple-skills swift-concurrency2Manually: put the files in place
.github/skills/swift-concurrency/SKILL.md1Skills CLI (Vercel)
npx skills add Prisma-Labs-Dev/apple-skills --skill swift-concurrency -a gemini-cli2Platform CLI
gemini skills install https://github.com/Prisma-Labs-Dev/apple-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 Prisma-Labs-Dev/apple-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 do I install swift-concurrency in Claude Code?
Run npx skills add Prisma-Labs-Dev/apple-skills --skill swift-concurrency -a claude-code. The skill file lands at ~/.claude/skills/swift-concurrency/SKILL.md.
What does swift-concurrency do?
It gives the agent local reference pages for Swift Concurrency — Task, TaskGroup, actors, AsyncSequence, AsyncStream, continuations — that it reads while writing or fixing async Swift code.
What happens when the skill files don't cover a topic?
It looks at other installed Apple skills and their .md files first. Failing that, it follows a documentation path from concurrency-overview.md to the sosumi.ai Markdown mirror.
Source text
SKILL.md · MIT
--- name: swift-concurrency user-invocable: true description: "API reference: Swift Concurrency. async/await, Task, TaskGroup, actors, AsyncSequence, AsyncStream, continuations." context: fork agent: Explore --- # Swift Concurrency Reference Structured concurrency, actors, and async sequences in Swift. ## Downloaded Reference Files | File | Content | |------|---------| | [concurrency-overview.md](concurrency-overview.md) | Swift concurrency index | | [task.md](task.md) | Task struct | | [taskgroup.md](taskgroup.md) | TaskGroup for parallel work | | [actor.md](actor.md) | Actor protocol | | [asyncsequence.md](asyncsequence.md) | AsyncSequence protocol | | [asyncstream.md](asyncstream.md) | AsyncStream | | [checkedcontinuation.md](checkedcontinuation.md) | CheckedContinuation for bridging | ## Fetching More Docs 1. Search this skill's local `.md` files first. 2. If the topic is not here, check the other installed Apple skills you have available by their names, descriptions, or `SKILL.md` frontmatter, then grep their local files. This is faster and uses less context than fetching new docs from the internet. 3. If no installed skill has the page, use the relevant documentation path from `concurrency-overview.md` with the `sosumi.ai` Markdown mirror. For example, `/documentation/swift/task` maps to `https://sosumi.ai/documentation/swift/task`.
© Prisma-Labs-Dev · MIT · Prisma-Labs-Dev/apple-skills
Similar skills
All skills for Programming languages →swift-concurrency by other authors comes first.