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:
- Scan for known-dangerous patterns using
references/hotspots.mdto prioritize what to inspect. - Check for recent Swift 6.2 concurrency behavior using
references/new-features.md. - Validate actor usage for reentrancy and isolation correctness using
references/actors.md. - Ensure structured concurrency is preferred over unstructured where appropriate using
references/structured.md. - Check unstructured task usage for correctness using
references/unstructured.md. - Verify cancellation is handled correctly using
references/cancellation.md. - Validate async stream and continuation usage using
references/async-streams.md. - Check bridging code between sync and async worlds using
references/bridging.md. - Review any legacy concurrency migrations using
references/interop.md. - Cross-check against common failure modes using
references/bug-patterns.md. - If the project has strict-concurrency errors, map diagnostics to fixes using
references/diagnostics.md. - If reviewing tests, check async test patterns using
references/testing.md.
If doing a partial review, load only the relevant reference files.