swift-concurrency

Provides Swift Concurrency guidance covering async/await, actors, tasks, Sendable conformance, and Swift 6 migration.

1|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/Kuass/kiro-gateway-plus --skill swift-concurrency-kuass
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swift-concurrency
Source: https://github.com/Kuass/kiro-gateway-plus/tree/main/.opencode/skill/swift-concurrency
Command: npx skills add https://github.com/Kuass/kiro-gateway-plus --skill swift-concurrency-kuass

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides expert guidance on Swift Concurrency, helping developers write safe, performant, and maintainable asynchronous code, avoiding common pitfalls like data races and deadlocks.

Core Features & Use Cases

  • Best Practices: Learn optimal patterns for async/await, actors, tasks, and Sendable conformance.
  • Migration: Get advice on migrating to Swift 6 and adopting structured concurrency.
  • Debugging: Understand and resolve common concurrency-related errors and warnings.
  • Use Case: A developer is struggling with a data race in their app. They can use this Skill to understand actor isolation, Sendable conformance, and how to refactor their code to prevent the race condition.

Quick Start

Use the swift-concurrency skill to explain the difference between async let and task groups.

Frequently Asked Questions about swift-concurrency

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix a data race in Swift using actor isolation?

Resolve Swift data races by refactoring shared state into actors for safe isolation. This Skill provides decision trees and best practices to eliminate race conditions and ensure thread-safe concurrent execution.

What is the difference between async let and task groups in Swift?

Async let runs a fixed number of concurrent tasks, while task groups handle dynamic collections of concurrent tasks. This Skill explains structured concurrency patterns to help you choose the right approach for your async operations.

How do I migrate my existing codebase to Swift 6 concurrency?

Migrate to Swift 6 by adopting structured concurrency and resolving strict Sendable conformance warnings. This Skill provides migration guidance to transition your codebase to the new strict concurrency model safely.

Why am I getting Sendable conformance warnings in my async code?

Sendable warnings occur when non-thread-safe types cross actor boundaries in Swift concurrency. This Skill helps you understand Sendable requirements and debug concurrency warnings to maintain safe async code.

What are the best practices for optimizing performance in Swift async/await?

Optimize async/await performance by minimizing actor hops and properly structuring tasks to avoid deadlocks. This Skill supplies best practices and debugging strategies for maximizing performance in concurrent Swift code.