Swift Concurrency
supabitapp/supaterm
Diagnose data races, convert callback-based code to async/await, implement actor isolation patterns, resolve Sendable conformance issues, and guide Swift 6 migration.
Expert guidance on Swift Concurrency best practices, patterns, and implementation.
$ npx skills add AFK-surf/OpenBridge --skill swift-concurrency -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install AFK-surf/OpenBridge swift-concurrency --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/AFK-surf/OpenBridge.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/swift-concurrency .claude/skills/swift-concurrency && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "swift-concurrency" agent skill from https://github.com/AFK-surf/OpenBridge/tree/main/.agents/skills/swift-concurrency into .claude/skills/swift-concurrency/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-concurrency", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/AFK-surf/OpenBridge/tree/main/.agents/skills/swift-concurrencyType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add AFK-surf/OpenBridge --skill swift-concurrency -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install AFK-surf/OpenBridge swift-concurrency --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/AFK-surf/OpenBridge.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/swift-concurrency .agents/skills/swift-concurrency && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "swift-concurrency" agent skill from https://github.com/AFK-surf/OpenBridge/tree/main/.agents/skills/swift-concurrency into .agents/skills/swift-concurrency/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-concurrency", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add AFK-surf/OpenBridge --skill swift-concurrency -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install AFK-surf/OpenBridge swift-concurrency --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/AFK-surf/OpenBridge.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/swift-concurrency .cursor/skills/swift-concurrency && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "swift-concurrency" agent skill from https://github.com/AFK-surf/OpenBridge/tree/main/.agents/skills/swift-concurrency into .cursor/skills/swift-concurrency/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-concurrency", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/AFK-surf/OpenBridge.git --path .agents/skills/swift-concurrency--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add AFK-surf/OpenBridge --skill swift-concurrency -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install AFK-surf/OpenBridge swift-concurrency --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/AFK-surf/OpenBridge.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/swift-concurrency .gemini/skills/swift-concurrency && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "swift-concurrency" agent skill from https://github.com/AFK-surf/OpenBridge/tree/main/.agents/skills/swift-concurrency into .gemini/skills/swift-concurrency/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-concurrency", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install AFK-surf/OpenBridge swift-concurrencyInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add AFK-surf/OpenBridge --skill swift-concurrency -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/AFK-surf/OpenBridge.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/swift-concurrency .github/skills/swift-concurrency && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "swift-concurrency" agent skill from https://github.com/AFK-surf/OpenBridge/tree/main/.agents/skills/swift-concurrency into .github/skills/swift-concurrency/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-concurrency", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add AFK-surf/OpenBridge --skill swift-concurrency -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install AFK-surf/OpenBridge swift-concurrency --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/AFK-surf/OpenBridge.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/swift-concurrency .opencode/skills/swift-concurrency && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "swift-concurrency" agent skill from https://github.com/AFK-surf/OpenBridge/tree/main/.agents/skills/swift-concurrency into .opencode/skills/swift-concurrency/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-concurrency", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
swift-concurrencyExpert guidance on Swift Concurrency best practices, patterns, and implementation.
Swift Concurrency is an agent skill from AFK-surf/OpenBridge. 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…
Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 16 other files, including reference files (for example `references/_index.md`, `references/actors.md` and `references/async-algorithms.md`).
It sits in Development, covering Async programming, Linting and formatting and Performance optimization. It works with Swift. The repository describes itself as: A free, safe and open agent for everything. Alternative to Claude Cowork & Codex. Open Bridge, the AI bridge between your intention and get the job done. The licence is MIT.
7 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit a9ca905. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are swift).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
swiftconcurrencycourse.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Swift Concurrency loads about 2.8k tokens when it runs, and up to ~51k if it reads all its reference files. Until then it costs about 148 tokens; SKILL.md has 986 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from AFK-surf/OpenBridge at commit a9ca905, republished under its MIT licence (© AFK-surf). 986 words, ~2,817 tokens.
.claude/skills/swift-concurrency/SKILL.md (or your agent's skills folder). This skill also uses 15 other files; get the full folder from GitHub.This skill provides expert guidance on Swift Concurrency, covering modern async/await patterns, actors, tasks, Sendable conformance, and migration to Swift 6. Use this skill to help developers write safe, performant concurrent code and navigate the complexities of Swift's structured concurrency model.
@MainActor, custom actor, actor instance isolation, or nonisolated.@MainActor as a blanket fix. Justify why main-actor isolation is correct for the code.Task.detached only with a clear reason.@preconcurrency, @unchecked Sendable, or nonisolated(unsafe), require:When analyzing Swift projects for concurrency issues:
Read on Package.swift for SwiftPM settings (tools version, strict concurrency flags, upcoming features)Grep for SWIFT_STRICT_CONCURRENCY or SWIFT_DEFAULT_ACTOR_ISOLATION in .pbxproj filesGrep for SWIFT_UPCOMING_FEATURE_ to find enabled upcoming featuresConcurrency behavior depends on build settings. Always try to determine:
@MainActor or nonisolated?)NonisolatedNonsendingByDefault)Package.swift for .defaultIsolation(MainActor.self).Package.swift for .enableUpcomingFeature("NonisolatedNonsendingByDefault")..enableExperimentalFeature("StrictConcurrency=targeted") (or similar).// swift-tools-version: ...project.pbxproj for:SWIFT_DEFAULT_ACTOR_ISOLATIONSWIFT_STRICT_CONCURRENCYSWIFT_UPCOMING_FEATURE_ (and/or SWIFT_ENABLE_EXPERIMENTAL_FEATURES)If any of these are unknown, ask the developer to confirm them before giving migration-sensitive guidance.
When a developer needs concurrency guidance, follow this decision tree:
Starting fresh with async code?
references/async-await-basics.md for foundational patternsreferences/tasks.md (async let, task groups)Protecting shared mutable state?
references/actors.md (actors, @MainActor)references/sendable.md (Sendable conformance)Managing async operations?
references/tasks.md (Task, child tasks, cancellation)references/async-sequences.md (AsyncSequence, AsyncStream)Working with legacy frameworks?
references/core-data.mdreferences/migration.mdPerformance or debugging issues?
references/performance.md (profiling, suspension points)references/testing.md (XCTest, Swift Testing)Understanding threading behavior?
references/threading.md for thread/task relationship and isolationMemory issues with tasks?
references/memory-management.md for retain cycle preventionreferences/linting.md for rule intent and preferred fixes; avoid dummy awaits as “fixes”.async_without_await warningasync if not required; if required by protocol/override/@concurrent, prefer narrow suppression over adding fake awaits. See references/linting.md.references/sendable.md and references/threading.md (especially Swift 6.2 behavior changes)@MainActorreferences/actors.md (global actors, nonisolated, isolated parameters) and references/threading.md (default isolation)references/threading.md to avoid thread-centric debugging and rely on isolation + Instrumentsreferences/testing.md (await fulfillment(of:) and Swift Testing patterns)references/core-data.md (DAO/NSManagedObjectID, default isolation conflicts)async/await - Making existing synchronous code asynchronous
// Use for: Single asynchronous operations
func fetchUser() async throws -> User {
try await networkClient.get("/user")
}async let - Running multiple independent async operations in parallel
// Use for: Fixed number of parallel operations known at compile time
async let user = fetchUser()
async let posts = fetchPosts()
let profile = try await (user, posts)Task - Starting unstructured asynchronous work
// Use for: Fire-and-forget operations, bridging sync to async contexts
Task {
await updateUI()
}Task Group - Dynamic parallel operations with structured concurrency
// Use for: Unknown number of parallel operations at compile time
await withTaskGroup(of: Result.self) { group in
for item in items {
group.addTask { await process(item) }
}
}Actor - Protecting mutable state from data races
// Use for: Shared mutable state accessed from multiple contexts
actor DataCache {
private var cache: [String: Data] = [:]
func get(_ key: String) -> Data? { cache[key] }
}@MainActor - Ensuring UI updates on main thread
// Use for: View models, UI-related classes
@MainActor
class ViewModel: ObservableObject {
@Published var data: String = ""
}Scenario: Network request with UI update
Task { @concurrent in
let data = try await fetchData() // Background
await MainActor.run {
self.updateUI(with: data) // Main thread
}
}Scenario: Multiple parallel network requests
async let users = fetchUsers()
async let posts = fetchPosts()
async let comments = fetchComments()
let (u, p, c) = try await (users, posts, comments)Scenario: Processing array items in parallel
await withTaskGroup(of: ProcessedItem.self) { group in
for item in items {
group.addTask { await process(item) }
}
for await result in group {
results.append(result)
}
}Key changes in Swift 6:
For detailed migration steps, see references/migration.md.
Load these files as needed for specific topics:
async-await-basics.md - async/await syntax, execution order, async let, URLSession patternstasks.md - Task lifecycle, cancellation, priorities, task groups, structured vs unstructuredthreading.md - Thread/task relationship, suspension points, isolation domains, nonisolatedmemory-management.md - Retain cycles in tasks, memory safety patternsactors.md - Actor isolation, @MainActor, global actors, reentrancy, custom executors, Mutexsendable.md - Sendable conformance, value/reference types, @unchecked, region isolationlinting.md - Concurrency-focused lint rules and SwiftLint async_without_awaitasync-sequences.md - AsyncSequence, AsyncStream, when to use vs regular async methodscore-data.md - NSManagedObject sendability, custom executors, isolation conflictsperformance.md - Profiling with Instruments, reducing suspension points, execution strategiestesting.md - XCTest async patterns, Swift Testing, concurrency testing utilitiesmigration.md - Swift 6 migration strategy, closure-to-async conversion, @preconcurrency, FRP migrationreferences/testing.md).references/performance.md).references/memory-management.md).See references/glossary.md for quick definitions of core concurrency terms used across this skill.
Note: This skill is based on the comprehensive Swift Concurrency Course by Antoine van der Lee.
© AFK-surf, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 15 other files (references) in .agents/skills/swift-concurrency of AFK-surf/OpenBridge.
Open the folder on GitHubat commit a9ca905
Swift Concurrency next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Swift Concurrency this skillAFK-surf/OpenBridge | 430 | — | ~2.8k | Automated safety check: Pass | MIT | |
| Swift Concurrencysupabitapp/supaterm | 172 | — | ~3.3k | Automated safety check: Pass | Custom licence | |
| Swift Concurrencyhenrypldev/react-native-nitro-mlx | 100 | 3 repos | ~3.1k | Automated safety check: Pass | MIT | |
| Dep Validateblokadaorg/blokada | 3.3k | — | ~5.7k | Automated safety check: Notes | MPL-2.0 | |
| cmux Swift Package Architecturemanaflow-ai/cmux | 28k | 1 repos | ~4.2k | Automated safety check: Pass | Custom licence | |
| Python Prodavila7/claude-code-templates | 33k | 8 repos | ~1.8k | Automated safety check: Pass | MIT |
supabitapp/supaterm
Diagnose data races, convert callback-based code to async/await, implement actor isolation patterns, resolve Sendable conformance issues, and guide Swift 6 migration.
henrypldev/react-native-nitro-mlx
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…
blokadaorg/blokada
A skill your agent uses to validate risky dependency bumps end to end as a local or cloud-launched agent.
manaflow-ai/cmux
Architecture rules for cmux's move to Swift Packages: acyclic whole-domain packages, minimal public API, group folders, Xcode project wiring and Swift 6 concurrency.
davila7/claude-code-templates
Master Python 3.12+ with modern features, async programming, performance optimization, and production-ready practices.
jamesrochabrun/skills
Guide for building, auditing, and refactoring Swift code using modern concurrency patterns (Swift 6+).
AFK-surf/OpenBridge
Best practices and example-driven guidance for building SwiftUI views and components.
AFK-surf/OpenBridge
Write, review, or improve SwiftUI code following best practices for state management, view composition, performance, modern APIs, Swift concurrency, and iOS 26+ Liquid Glass adoption.
AFK-surf/OpenBridge
Design or restyle user interfaces using vendored DESIGN.md references from popular product and brand-inspired visual systems.
AFK-surf/OpenBridge
Analyze Bridge agent execution logs from ~/.bridge/sessions, reconstruct the agent's actual runtime behavior, and explain tool execution, failures, retries, and artifacts from persisted session files.
AFK-surf/OpenBridge
Convert files between formats. An agent skill from AFK-surf/OpenBridge.
AFK-surf/OpenBridge
Manage skills: create, install, modify, or delete skills. An agent skill from AFK-surf/OpenBridge.
Works with
Categories
Expert guidance on Swift Concurrency best practices, patterns, and implementation. Swift Concurrency is an agent skill from AFK-surf/OpenBridge. Expert guidance on Swift Concurrency best practices, patterns, and implementation.
Swift Concurrency fits situations like: developers mention:; swift Concurrency; use Swift Concurrency; modern concurrency patterns.
Run `npx skills add AFK-surf/OpenBridge --skill swift-concurrency -a claude-code`. Or copy the skill folder (.agents/skills/swift-concurrency in AFK-surf/OpenBridge) into .claude/skills/swift-concurrency in your project. Claude Code loads it when a task matches its description.
Run `npx skills add AFK-surf/OpenBridge --skill swift-concurrency -a codex`. Or copy the skill folder (.agents/skills/swift-concurrency in AFK-surf/OpenBridge) into .agents/skills/swift-concurrency in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add AFK-surf/OpenBridge --skill swift-concurrency -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/swift-concurrency, .gemini/skills/swift-concurrency, .github/skills/swift-concurrency and .opencode/skills/swift-concurrency in your project.
SKILL.md names no scripts, command-line tools or credentials: Swift Concurrency is instructions for the agent only.
SKILL.md names 1 domain. As links in the text: swiftconcurrencycourse.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Swift Concurrency is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 49k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Swift Concurrency: Swift Concurrency (supabitapp/supaterm, 172 stars), Swift Concurrency (henrypldev/react-native-nitro-mlx, 100 stars), Dep Validate (blokadaorg/blokada, 3.3k stars) and cmux Swift Package Architecture (manaflow-ai/cmux, 28k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
AFK-surf (a GitHub organization) maintains it in AFK-surf/OpenBridge, which has 430 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on June 10, 2026.
Source: AFK-surf/OpenBridge on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.