swift-concurrency-pro

Installation
Summary

Swift concurrency code reviewer that catches reentrancy bugs, isolation violations, and async/await pitfalls.

  • Scans for dangerous patterns across actors, structured/unstructured tasks, cancellation handling, and async streams using a 12-step review process
  • Targets Swift 6.2+ with strict concurrency checking, comparing build settings across multiple targets when needed
  • Prioritizes structured concurrency (task groups) over unstructured tasks and async/await over closure-based APIs and GCD for new code
  • Validates actor isolation correctness, reentrancy safety, and proper cancellation propagation with before/after code fixes
  • Covers bridging between sync and async code, legacy concurrency migrations, and async test patterns with race detection
SKILL.md

Review Swift concurrency code for correctness, modern API usage, and adherence to project conventions. Report only genuine problems - do not nitpick or invent issues.

Review process:

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

If doing a partial review, load only the relevant reference files.

Installs
4.9K
GitHub Stars
407
First Seen
Mar 11, 2026