Skip to content
alyn
Prisma-Labs-Dev

Guide Swift Concurrency skill

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.

$npx skills add Prisma-Labs-Dev/apple-skills --skill guide-swift-concurrency
View this skill on GitHubPrisma-Labs-Dev/apple-skills/skills/guide-swift-concurrency/SKILL.md
Pack stars
358
Pack installs
21k
Alyn Score
53/99
Updated
2 months ago
License
MIT
– views – installs via Alyn

Prisma-Labs-Dev

Guide Swift Concurrency

Install Guide Swift Concurrency

Pick your agent. Every command is ready to paste.

$npx skills add Prisma-Labs-Dev/apple-skills --skill guide-swift-concurrency

The open skills CLI detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.

01

Install it

Run the command above, or upload the folder in Claude.

02

Ask naturally

Describe the task. Your agent loads guide-swift-concurrency when the request matches its description.

03

Name it if needed

If it does not trigger, say “use the guide-swift-concurrency skill”. In Codex, type $guide-swift-concurrency.

The skill itself

SKILL.md

FolderGitHub

Guide Skill — This is an expert workflow/pattern guide, not API reference documentation. Originally from 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.

Review Process

  1. Scan for known-dangerous patterns using references/hotspots.md.
  2. Check for Swift 6.2 concurrency behavior using references/new-features.md.
  3. Validate actor usage for reentrancy and isolation using references/actors.md.
  4. Ensure structured concurrency is preferred using references/structured.md.
  5. Check unstructured task usage using references/unstructured.md.
  6. Verify cancellation handling using references/cancellation.md.
  7. Validate async stream and continuation usage using references/async-streams.md.
  8. Check bridging code between sync and async using references/bridging.md.
  9. Review legacy concurrency migrations using references/interop.md.
  10. Cross-check against common failure modes using references/bug-patterns.md.
  11. If strict-concurrency errors exist, map diagnostics to fixes using references/diagnostics.md.
  12. If reviewing tests, check async test patterns using references/testing.md.

If doing partial work, load only the relevant reference files.

References

Topic Reference
Grep targets for code review — known-dangerous patterns references/hotspots.md
Swift 6.2: default isolation, @concurrent, Task.immediate, isolated deinit references/new-features.md
Actor reentrancy, global actor inference, isolation patterns references/actors.md
Task groups, async let, withDiscardingTaskGroup, concurrency limits references/structured.md
Task vs Task.detached, when Task {} is a code smell references/unstructured.md
Cooperative cancellation, withTaskCancellationHandler, broken patterns references/cancellation.md
AsyncStream.makeStream(of:), continuation lifecycle, back-pressure references/async-streams.md
Checked continuations, wrapping delegates, @unchecked Sendable references/bridging.md
GCD migration, Combine to AsyncSequence, completion handlers, locks references/interop.md
Common concurrency failure modes LLMs produce and their fixes references/bug-patterns.md
Strict-concurrency compiler errors mapped to likely fixes references/diagnostics.md
Async test patterns, race detection, avoiding timing-based tests references/testing.md

Tips for Guide Swift Concurrency

  • • Start a fresh session after installing so your agent picks up the new skill.
  • • It bundles reference files. The agent reads them only when needed, so they cost no context until then.
  • • It is part of a pack with 30 skills. Install only the ones you need with --skill to keep triggers precise.
  • • If two skills overlap, mention the one you want by name.

Questions about Guide Swift Concurrency

What does the Guide Swift Concurrency skill do?

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.

How do I install Guide Swift Concurrency?

Run "npx skills add Prisma-Labs-Dev/apple-skills --skill guide-swift-concurrency" in your project. The skills CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.

Does Guide Swift Concurrency work in Cursor and Codex?

Yes. Guide Swift Concurrency uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.

Is Guide Swift Concurrency free?

Guide Swift Concurrency is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.

Who made Guide Swift Concurrency?

Guide Swift Concurrency is published by Prisma-Labs-Dev in the Prisma-Labs-Dev/apple-skills repository, together with 29 other skills.

Similar skills. From other creators.