swift-concurrency-pro

swift-concurrency-pro is a skill for Claude Code, Codex from twostraws/Swift-Concurrency-Agent-Skill. It costs 35 tokens per session (1,192 once invoked), scanned A, a copy of swift-concurrency-pro, MIT.

A code-review guide for Swift programs that run work concurrently, meaning several tasks can progress at the same time. It focuses on Swift's async/await features and related safety rules.

In plain words
What is it for?
Use it to review or write Swift concurrency code, check task and stream handling, and assess migrations from older concurrency patterns.
Why use it?
It helps find race conditions, incorrect actor use, cancellation bugs, and other problems that can make concurrent code unreliable.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the swift-concurrency-pro plugin — 1 skill shipped together

Good fit Use it to review or write Swift concurrency code, check task and stream handling, and assess migrations from older concurrency patterns.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/twostraws/swift-concurrency-agent-skill/swift-concurrency-pro
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add twostraws/Swift-Concurrency-Agent-Skill --skill swift-concurrency-pro
Clone the repo
git clone --depth 1 https://github.com/twostraws/Swift-Concurrency-Agent-Skill

Made for: Claude Code, Codex.

Or install swift-concurrency-pro, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for swift-concurrency-pro

README.md
[![agentmods](https://agentmods.dev/badge/skills/twostraws/swift-concurrency-agent-skill/swift-concurrency-pro/github.svg)](https://agentmods.dev/skills/twostraws/swift-concurrency-agent-skill/swift-concurrency-pro)
Your own site
<a href="https://agentmods.dev/skills/twostraws/swift-concurrency-agent-skill/swift-concurrency-pro"><img src="https://agentmods.dev/badge/skills/twostraws/swift-concurrency-agent-skill/swift-concurrency-pro/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for swift-concurrency-pro

Your own site · 80×15
<a href="https://agentmods.dev/skills/twostraws/swift-concurrency-agent-skill/swift-concurrency-pro"><img src="https://agentmods.dev/badge/skills/twostraws/swift-concurrency-agent-skill/swift-concurrency-pro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,192 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 18 May 2026
  • Snyk pass 18 May 2026
How audits are shown
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.01192
Opus 5 $0.00017 $0.00596
Sonnet 5 $0.00007 $0.00238
Haiku 4.5 $0.00003 $0.00119

Measured 12d ago against content hash 95d3098b038a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

swift-concurrency-pro scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

func fetch(_ key: String) async throws -> Data {
Origin

This is a copy

100% identical to swift-concurrency-pro — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

swift-concurrency-pro/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on 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:

  1. Scan for known-dangerous patterns using references/hotspots.md to prioritize what to inspect.
  2. Check for recent Swift 6.2 concurrency behavior using references/new-features.md.
  3. Validate actor usage for reentrancy and isolation correctness using references/actors.md.
  4. Ensure structured concurrency is preferred over unstructured where appropriate using references/structured.md.
  5. Check unstructured task usage for correctness using references/unstructured.md.
  6. Verify cancellation is handled correctly using references/cancellation.md.
  7. Validate async stream and continuation usage using references/async-streams.md.
  8. Check bridging code between sync and async worlds using references/bridging.md.
  9. Review any legacy concurrency migrations using references/interop.md.
  10. Cross-check against common failure modes using references/bug-patterns.md.
  11. If the project has strict-concurrency errors, map diagnostics to fixes using references/diagnostics.md.
  12. If reviewing tests, check async test patterns using references/testing.md.

If doing a partial review, load only the relevant reference files.

Core Instructions

  • Target Swift 6.2 or later with strict concurrency checking.
  • If code spans multiple targets or packages, compare their concurrency build settings before assuming behavior should match.
  • Prefer structured concurrency (task groups) over unstructured (Task {}).
  • Prefer Swift concurrency over Grand Central Dispatch for new code. GCD is still acceptable in low-level code, framework interop, or performance-critical synchronous work where queues and locks are the right tool – don't flag these as errors.
  • If an API offers both async/await and closure-based variants, always prefer async/await.
  • Do not introduce third-party concurrency frameworks without asking first.
  • Do not suggest @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.

Read the full file on GitHub · 125 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 125 lines · 35 tokens per session scan A 95d3098b038a

Subscribe to this mod's changes

swift-concurrency-pro is a skill published in the GitHub repository twostraws/Swift-Concurrency-Agent-Skill (529 stars, last pushed 3mo ago), licensed MIT. It adds 35 tokens to every session and 1,192 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to swift-concurrency-pro, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

axiom-audit-codable

Use when the user mentions Codable review, JSON encoding/decoding issues, data serialization audit, or modernizing legacy code.

CharlesWiltgen/Axiom · 32 tokens

axiom-swift-simplifier

Use when the user wants to simplify Swift code, reduce boilerplate, or make Swift more readable and idiomatic without changing behavior.

CharlesWiltgen/Axiom · 34 tokens

kotlin-concurrency-and-flow

Use when writing or reviewing Kotlin coroutine scope ownership, raw Thread or Executor work, init launches, non-suspending launch APIs, runBlocking, cancellation, StateFlow, SharedFlow, Channel, stateIn, SharingStarted, state updates, or one-shot events.

chrisbanes/skills · 60 tokens

kotlin-api-design

Use when designing or reviewing Kotlin function ownership, member or extension functions, factories, single-field domain types, value classes, data classes, Kotlin Multiplatform expect/actual declarations, or platform service boundaries.

chrisbanes/skills · 46 tokens

coding-best-practices

Reviews Swift/iOS code for adherence to modern Swift idioms, Apple platform best practices, architecture patterns, and code quality standards. Use when user mentions best practices, code review, clean code, refactoring, or wants to improve code quality.

rshankras/claude-code-apple-skills · 55 tokens

swift-concurrency-review

Review Swift 6 strict-concurrency and SwiftUI code for idiom and build-breaking issues - non-Sendable across actor boundaries, @MainActor witness vs nonisolated protocol requirements, Combine/ObservableObject usage, force-unwraps, #Predicate macro limits, the 6.3.x Binding IRGen crash, missing #if os() guards, and…

charlesjones-dev/claude-code-plugins-dev · 94 tokens