Diagnose concurrency issues and modernize Swift code with async/await. Fix thread safety warnings and actor isolation errors.
Install
mkdir -p .claude/skills/swift-concurrency && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/1254" && unzip -o skill.zip -d .claude/skills/swift-concurrency && rm skill.zipInstalls to .claude/skills/swift-concurrency
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Diagnose Swift Concurrency issues, refactor callback-based code to async/await, and guide Swift 6 migration when working with tasks, actors, @MainActor, Sendable, data races, thread safety, or concurrency-related compiler and linter warnings.Key capabilities
- →Analyze Swift language modes and concurrency settings
- →Identify data races and thread safety violations
- →Refactor callback-based code to async/await patterns
- →Determine isolation boundaries for actors and @MainActor
- →Check strict concurrency levels in package files
How it works
Analyzes project isolation boundaries and compiler diagnostics to apply standard Swift 6 concurrency patterns and safety checks.
Inputs & outputs
When to use swift-concurrency
- →Refactoring callbacks to async/await
- →Fixing Swift 6 migration errors
- →Managing data races and thread safety
About swift-concurrency
Analyzes Swift project configurations to identify language mode and concurrency settings. Provides actionable refactoring guidance for tasks, actors, and @MainActor implementation to ensure safe execution.
Expert guidance on Swift Concurrency best practices, patterns, and implementation. Use when developers mention: (1) Swift Concurrency, async/await, actors, or tasks, (2) "use Swift Concurrency" or "modern concurrency patterns", (3) migrating to Swift 6, (4) data races or thread safety issues, (5) refactoring closures to async/await, (6) @MainActor, Sendable, or actor isolation, (7) concurrent code architecture or performance optimization, (8) concurrency-related linter warnings (SwiftLint or similar; e.g. async_without_await, Sendable/actor isolation/MainActor lint).
When not to use it
- →Debugging non-Swift programming languages
- →Solving runtime logic errors unrelated to concurrency
Prerequisites
Limitations
- →Requires deep understanding of Swift project settings
- →Limited by the current compiler's strictness settings
How it compares
It provides specific implementation strategies for actor-based thread safety rather than general asynchronous programming advice.
Compared to similar skills
swift-concurrency side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| swift-concurrency (this skill) | 4 | 2mo | No flags | Advanced |
| instruments-profiling | 3 | 2mo | No flags | Advanced |
| swift-concurrency-expert | 4 | 5mo | No flags | Advanced |
| perf-optimizer | 5 | 1mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
instruments-profiling
steipete
Use when profiling native macOS or iOS apps with Instruments/xctrace. Covers correct binary selection, CLI arguments, exports, and common gotchas.
swift-concurrency-expert
Dimillian
Swift Concurrency review and remediation for Swift 6.2+. Use when asked to review Swift Concurrency usage, improve concurrency compliance, or fix Swift concurrency compiler errors in a feature or file.
perf-optimizer
OneKeyHQ
Systematic performance optimization and regression debugging for OneKey mobile app (iOS). Use when: (1) Fixing performance regressions - when metrics like tokensStartMs, tokensSpanMs, or functionCallCount have regressed and need to be brought back to normal levels, (2) Improving baseline performance - when there's a need to optimize cold start time or reduce function call overhead, (3) User requests performance optimization/improvement/debugging for the app's startup or home screen refresh flow.
ios-debugger-agent
Dimillian
Use XcodeBuildMCP to build, run, launch, and debug the current iOS project on a booted simulator. Trigger when asked to run an iOS app, interact with the simulator UI, inspect on-screen state, capture logs/console output, or diagnose runtime behavior using XcodeBuildMCP tools.
feature-toggle-developer
anyproto
Guides systematic removal of feature toggles from the codebase with automated cleanup detection. Use when removing feature flags, enabling toggles permanently, or cleaning up unused code after toggle removal.
swiftui-performance-audit
steipete
Audit and improve SwiftUI runtime performance from code review and architecture. Use for requests to diagnose slow rendering, janky scrolling, high CPU/memory usage, excessive view updates, or layout thrash in SwiftUI apps, and to provide guidance for user-run Instruments profiling when code review alone is insufficient.