swift-concurrency-pro/SKILL.md
Reviews Swift code for concurrency correctness, modern API usage, and common async/await pitfalls. Use when reading, writing, or reviewing Swift concurrency code.
npx skillsauth add abanoub-ashraf/manus-skills-import swift-concurrency-proInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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:
references/hotspots.md to prioritize what to inspect.references/new-features.md.references/actors.md.references/structured.md.references/unstructured.md.references/cancellation.md.references/async-streams.md.references/bridging.md.references/interop.md.references/bug-patterns.md.references/diagnostics.md.references/testing.md.If doing a partial review, load only the relevant reference files.
Task {}).async/await and closure-based variants, always prefer async/await.@unchecked Sendable to fix compiler errors. It silences the diagnostic without fixing the underlying race. Prefer actors, value types, or sending parameters instead. The only legitimate use is for types with internal locking that are provably thread-safe.Organize findings by file. For each issue:
Skip files with no issues. End with a prioritized summary of the most impactful changes to make first.
Example output:
Line 18: Actor reentrancy – state may have changed across the await.
// Before
actor Cache {
var items: [String: Data] = [:]
func fetch(_ key: String) async throws -> Data {
if items[key] == nil {
items[key] = try await download(key)
}
return items[key]!
}
}
// After
actor Cache {
var items: [String: Data] = [:]
func fetch(_ key: String) async throws -> Data {
if let existing = items[key] { return existing }
let data = try await download(key)
items[key] = data
return data
}
}
Line 34: Use withTaskGroup instead of creating tasks in a loop.
// Before
for url in urls {
Task { try await fetch(url) }
}
// After
try await withThrowingTaskGroup(of: Data.self) { group in
for url in urls {
group.addTask { try await fetch(url) }
}
for try await result in group {
process(result)
}
}
End of example.
references/hotspots.md - Grep targets for code review: known-dangerous patterns and what to check for each.references/new-features.md - Swift 6.2 changes that alter review advice: default actor isolation, isolated conformances, caller-actor async behavior, @concurrent, Task.immediate, task naming, and priority escalation.references/actors.md - Actor reentrancy, shared-state annotations, global actor inference, and isolation patterns.references/structured.md - Task groups over loops, discarding task groups, concurrency limits.references/unstructured.md - Task vs Task.detached, when Task {} is a code smell.references/cancellation.md - Cancellation propagation, cooperative checking, broken cancellation patterns.references/async-streams.md - AsyncStream factory, continuation lifecycle, back-pressure.references/bridging.md - Checked continuations, wrapping legacy APIs, @unchecked Sendable.references/interop.md - Migrating from GCD, Mutex/locks, completion handlers, delegates, and Combine.references/bug-patterns.md - Common concurrency failure modes and their fixes.references/diagnostics.md - Strict-concurrency compiler errors, protocol conformance fixes, and likely remedies.references/testing.md - Async test strategy with Swift Testing, race detection, avoiding timing-based tests.development
Design principles for building polished, native-feeling SwiftUI apps and widgets. Use this skill when creating or modifying SwiftUI views, iOS widgets (WidgetKit), or any native Apple UI. Ensures proper spacing, typography, colors, and widget implementations that look and feel like quality apps rather than AI-generated slop.
data-ai
Design and implement SwiftUI views, components, and app architecture. Use when creating new SwiftUI views, implementing MVVM/TCA patterns, managing state with @Observable, @State, @Binding, or @Environment, designing navigation flows, or structuring iOS app architecture. Triggers on SwiftUI, view model, state management, navigation, coordinator pattern.
development
Implement, review, or improve SwiftUI animations and transitions. Use when adding implicit or explicit animations with withAnimation, configuring spring animations (.smooth, .snappy, .bouncy), building phase or keyframe animations with PhaseAnimator/KeyframeAnimator, creating hero transitions with matchedGeometryEffect or matchedTransitionSource, adding SF Symbol effects (bounce, pulse, variableColor, breathe, rotate, wiggle), implementing custom Transition or CustomAnimation types, or ensuring animations respect accessibilityReduceMotion.
testing
Audit SwiftUI views for accessibility (iOS + macOS) with patch-ready fixes