Modern Swift
johnrogers/claude-swift-engineering
A skill your agent uses when writing async/await code, enabling strict concurrency, fixing Sendable errors, migrating from completion handlers, managing shared state with actors, or using…
Reviews Swift code for concurrency correctness, modern API usage, and common async/await pitfalls.
$ npx skills add twostraws/Swift-Concurrency-Agent-Skill --skill swift-concurrency-pro -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install twostraws/Swift-Concurrency-Agent-Skill swift-concurrency-pro --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/twostraws/Swift-Concurrency-Agent-Skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/swift-concurrency-pro .claude/skills/swift-concurrency-pro && 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-pro" agent skill from https://github.com/twostraws/Swift-Concurrency-Agent-Skill/tree/main/swift-concurrency-pro into .claude/skills/swift-concurrency-pro/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-concurrency-pro", 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/twostraws/Swift-Concurrency-Agent-Skill/tree/main/swift-concurrency-proType 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 twostraws/Swift-Concurrency-Agent-Skill --skill swift-concurrency-pro -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install twostraws/Swift-Concurrency-Agent-Skill swift-concurrency-pro --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/twostraws/Swift-Concurrency-Agent-Skill.git skills-src && mkdir -p .agents/skills && cp -r skills-src/swift-concurrency-pro .agents/skills/swift-concurrency-pro && 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-pro" agent skill from https://github.com/twostraws/Swift-Concurrency-Agent-Skill/tree/main/swift-concurrency-pro into .agents/skills/swift-concurrency-pro/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-concurrency-pro", 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 twostraws/Swift-Concurrency-Agent-Skill --skill swift-concurrency-pro -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install twostraws/Swift-Concurrency-Agent-Skill swift-concurrency-pro --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/twostraws/Swift-Concurrency-Agent-Skill.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/swift-concurrency-pro .cursor/skills/swift-concurrency-pro && 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-pro" agent skill from https://github.com/twostraws/Swift-Concurrency-Agent-Skill/tree/main/swift-concurrency-pro into .cursor/skills/swift-concurrency-pro/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-concurrency-pro", 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/twostraws/Swift-Concurrency-Agent-Skill.git --path swift-concurrency-pro--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 twostraws/Swift-Concurrency-Agent-Skill --skill swift-concurrency-pro -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install twostraws/Swift-Concurrency-Agent-Skill swift-concurrency-pro --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/twostraws/Swift-Concurrency-Agent-Skill.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/swift-concurrency-pro .gemini/skills/swift-concurrency-pro && 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-pro" agent skill from https://github.com/twostraws/Swift-Concurrency-Agent-Skill/tree/main/swift-concurrency-pro into .gemini/skills/swift-concurrency-pro/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-concurrency-pro", 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 twostraws/Swift-Concurrency-Agent-Skill swift-concurrency-proInstalls 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 twostraws/Swift-Concurrency-Agent-Skill --skill swift-concurrency-pro -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/twostraws/Swift-Concurrency-Agent-Skill.git skills-src && mkdir -p .github/skills && cp -r skills-src/swift-concurrency-pro .github/skills/swift-concurrency-pro && 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-pro" agent skill from https://github.com/twostraws/Swift-Concurrency-Agent-Skill/tree/main/swift-concurrency-pro into .github/skills/swift-concurrency-pro/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-concurrency-pro", 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 twostraws/Swift-Concurrency-Agent-Skill --skill swift-concurrency-pro -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install twostraws/Swift-Concurrency-Agent-Skill swift-concurrency-pro --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/twostraws/Swift-Concurrency-Agent-Skill.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/swift-concurrency-pro .opencode/skills/swift-concurrency-pro && 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-pro" agent skill from https://github.com/twostraws/Swift-Concurrency-Agent-Skill/tree/main/swift-concurrency-pro into .opencode/skills/swift-concurrency-pro/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-concurrency-pro", 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-concurrency-proReviews Swift code for concurrency correctness, modern API usage, and common async/await pitfalls.
Swift Concurrency Pro is an agent skill from twostraws/Swift-Concurrency-Agent-Skill. Reviews Swift code for concurrency correctness, modern API usage, and common async/await pitfalls. Use when reading, writing, or reviewing Swift concurrency code.
Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 21 other files, including reference files and assets (for example `.claude-plugin/plugin.json`, `agents/openai.yaml` and `references/actors.md`).
It sits in Mobile, covering Async programming and iOS development. It works with Swift. The repository describes itself as: Swift Concurrency agent skill for Claude Code, Codex, and other AI tools. The licence is MIT.
12 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit bee3f69. 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.
No URLs in SKILL.md.
From 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 Pro loads about 1.4k tokens when it runs, and up to ~14k if it reads all its reference files. Until then it costs about 46 tokens; SKILL.md has 528 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 twostraws/Swift-Concurrency-Agent-Skill at commit bee3f69, republished under its MIT licence (© twostraws). 528 words, ~1,373 tokens.
.claude/skills/swift-concurrency-pro/SKILL.md (or your agent's skills folder). This skill also uses 17 other files; get the full folder from GitHub.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.© twostraws, 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 17 other files (references, assets) in swift-concurrency-pro of twostraws/Swift-Concurrency-Agent-Skill.
Open the folder on GitHubat commit bee3f69
Swift Concurrency Pro 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 Pro this skilltwostraws/Swift-Concurrency-Agent-Skill | 566 | — | ~1.4k | Automated safety check: Pass | MIT | |
| Modern Swiftjohnrogers/claude-swift-engineering | 231 | — | ~1k | Automated safety check: Pass | MIT | |
| Swift ConcurrencyHoangNguyen0403/agent-skills-standard | 572 | — | ~545 | Automated safety check: Pass | MIT | |
| Swift Concurrencyhenrypldev/react-native-nitro-mlx | 100 | 3 repos | ~3.1k | Automated safety check: Pass | MIT | |
| Swift Concurrencynimblehq/ios-templates | 110 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Swift Concurrencyjamesrochabrun/skills | 216 | — | ~1.9k | Automated safety check: Pass | MIT |
johnrogers/claude-swift-engineering
A skill your agent uses when writing async/await code, enabling strict concurrency, fixing Sendable errors, migrating from completion handlers, managing shared state with actors, or using…
HoangNguyen0403/agent-skills-standard
Implement async/await, Actors, and structured concurrency in Swift.
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…
nimblehq/ios-templates
Write, review, or fix Swift 6 concurrency code using actors, Sendable, structured concurrency, and the strict data-race-safety model.
jamesrochabrun/skills
Guide for building, auditing, and refactoring Swift code using modern concurrency patterns (Swift 6+).
gustavscirulis/snapgrid
Swift concurrency patterns including Swift 6.2 approachable concurrency, structured concurrency, actors, continuations, and migration.
Works with
Categories
Reviews Swift code for concurrency correctness, modern API usage, and common async/await pitfalls. Swift Concurrency Pro is an agent skill from twostraws/Swift-Concurrency-Agent-Skill. Reviews Swift code for concurrency correctness, modern API usage, and common async/await pitfalls.
Swift Concurrency Pro fits situations like: reviewing Swift concurrency code; tasks that involve Async programming; tasks that involve iOS development.
Run `npx skills add twostraws/Swift-Concurrency-Agent-Skill --skill swift-concurrency-pro -a claude-code`. Or copy the skill folder (swift-concurrency-pro in twostraws/Swift-Concurrency-Agent-Skill) into .claude/skills/swift-concurrency-pro in your project. Claude Code loads it when a task matches its description.
Run `npx skills add twostraws/Swift-Concurrency-Agent-Skill --skill swift-concurrency-pro -a codex`. Or copy the skill folder (swift-concurrency-pro in twostraws/Swift-Concurrency-Agent-Skill) into .agents/skills/swift-concurrency-pro 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 twostraws/Swift-Concurrency-Agent-Skill --skill swift-concurrency-pro -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-pro, .gemini/skills/swift-concurrency-pro, .github/skills/swift-concurrency-pro and .opencode/skills/swift-concurrency-pro in your project.
SKILL.md names no scripts, command-line tools or credentials: Swift Concurrency Pro is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. 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 Pro is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.4k tokens (SKILL.md is roughly 5.5k 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 13k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Swift Concurrency Pro: Modern Swift (johnrogers/claude-swift-engineering, 231 stars), Swift Concurrency (HoangNguyen0403/agent-skills-standard, 572 stars), Swift Concurrency (henrypldev/react-native-nitro-mlx, 100 stars) and Swift Concurrency (nimblehq/ios-templates, 110 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
twostraws (a GitHub user) maintains it in twostraws/Swift-Concurrency-Agent-Skill, which has 566 GitHub stars. The repository was last updated on May 17, 2026.
Source: twostraws/Swift-Concurrency-Agent-Skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.