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 15 Sept 2026
  • Snyk pass 15 Sept 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.5 $0.00014 $0.00477
Sonnet 5.5 $0.00007 $0.00238
Haiku 4.5 $0.00003 $0.00119

Measured 2mo ago against content hash 95d3098b038a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (582 stars, last pushed 5mo ago), licensed MIT. It adds 35 tokens to every session and 1,192 once invoked, about $0.0001 per session on Opus 5.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

swift-concurrency-pro compared with skills from other repositories

swift-concurrency-pro next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
swift-concurrency-protwostraws/Swift-Concurrency-Agent-SkillSkill5825mo agoMITA35Claude Code, Codex
axiom-audit-codableCharlesWiltgen/AxiomSkill1.3kyesterdayMITA32Codex
axiom-swift-simplifierCharlesWiltgen/AxiomSkill1.3kyesterdayMITA34Codex
coding-best-practicesrshankras/claude-code-apple-skillsSkill8642d agoMITA55Claude Code
kotlin-concurrency-and-flowchrisbanes/skillsSkill1.1kyesterdayApache-2.0A60Claude Code
kotlin-api-designchrisbanes/skillsSkill1.1kyesterdayApache-2.0A46Claude Code
swift-concurrency-reviewcharlesjones-dev/claude-code-plugins-devSkill3527d agoMITA94Claude Code