swift-concurrency-performance

swift-concurrency-performance is a skill for Claude Code, Codex from Livsy90/iOS-Performance-Agent-Skills. It costs 84 tokens per session (2,283 once invoked), scanned A, original, MIT.

A review skill for the performance and responsiveness of Swift Concurrency, Swift’s system for running work asynchronously. It focuses on async code that affects app speed, memory, cancellation, or correctness under load.

In plain words
What is it for?
Use it to review task creation, MainActor use, AsyncSequence cleanup, callback-to-async bridges, blocking operations, actor reentrancy, and work that continues after its owner disappears.
Why use it?
It helps find causes of slow interfaces, stalled work, excessive background tasks, actor contention, incomplete cancellation, and other problems in concurrent Swift code.

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 iOS-Performance-Agent-Skills plugin — 6 skills shipped together

Good fit Use it to review task creation, MainActor use, AsyncSequence cleanup, callback-to-async bridges, blocking operations, actor reentrancy, and work that continues after its owner disappears.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/livsy90/ios-performance-agent-skills/swift-concurrency-performance
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 Livsy90/iOS-Performance-Agent-Skills --skill swift-concurrency-performance
Clone the repo
git clone --depth 1 https://github.com/Livsy90/iOS-Performance-Agent-Skills

Made for: Claude Code, Codex.

Or install iOS-Performance-Agent-Skills, the plugin that ships this one along with the rest of its 6 skills.

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-performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/livsy90/ios-performance-agent-skills/swift-concurrency-performance/github.svg)](https://agentmods.dev/skills/livsy90/ios-performance-agent-skills/swift-concurrency-performance)
Your own site
<a href="https://agentmods.dev/skills/livsy90/ios-performance-agent-skills/swift-concurrency-performance"><img src="https://agentmods.dev/badge/skills/livsy90/ios-performance-agent-skills/swift-concurrency-performance/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-performance

Your own site · 80×15
<a href="https://agentmods.dev/skills/livsy90/ios-performance-agent-skills/swift-concurrency-performance"><img src="https://agentmods.dev/badge/skills/livsy90/ios-performance-agent-skills/swift-concurrency-performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,283 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.00084 $0.02283
Opus 5 $0.00042 $0.01141
Sonnet 5 $0.00017 $0.00457
Haiku 4.5 $0.00008 $0.00228

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

Security

Grade A, and why

swift-concurrency-performance scanned grade A with 0 findings 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

swift-concurrency-performance/SKILL.md · 149 lines

How it starts

The opening of the file, as written. The whole thing — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Swift Concurrency Performance

Purpose

Use this skill to review, diagnose, and improve Swift Concurrency code when async work affects UI responsiveness, throughput, memory, cancellation, task lifetime, actor contention, or correctness under load.

This skill is not a general Swift Concurrency tutorial. It is a performance and responsiveness review workflow.

When to use this skill

Use this skill when the task involves:

  • UI stalls, slow interactions, hangs, or frame drops related to async work;
  • excessive Task creation, task groups, detached tasks, or unstructured concurrency;
  • MainActor bottlenecks, actor hopping, actor queue buildup, or actor contention;
  • cancellation that does not stop work, navigation leaks, or tasks outliving their owner;
  • AsyncSequence, AsyncStream, long-running streams, buffering, or producer cleanup;
  • continuation bridges, delegate/callback wrappers, or async wrappers around legacy APIs;
  • blocking calls inside async contexts, semaphores, synchronous I/O, locks, or cooperative pool starvation;
  • actor reentrancy, duplicate in-flight work, cache stampedes, or inconsistent actor state after await;
  • Swift 6 isolation behavior, explicit isolation, @concurrent, nonisolated, or Sendable boundaries;
  • Instruments traces, logs, or production signals that point to concurrency-related latency, memory growth, or throughput loss.

When not to use this skill

Do not use this skill for:

  • basic async/await syntax questions with no performance, lifetime, or responsiveness concern;
  • general architecture discussions where concurrency is not part of the critical path;
  • purely SwiftUI rendering issues unless async lifecycle work contributes to the symptom;
  • launch performance unless async startup work, task lifetime, or actor isolation is part of the launch path;
  • runtime-level allocation, ARC, generics, or existential costs unless they interact with concurrency behavior;
  • server-side concurrency questions unless the task is specifically about Swift Concurrency performance patterns.

Read the full file on GitHub · 149 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 · 149 lines · 84 tokens per session scan A 4cfea86e36e9

Subscribe to this mod's changes

swift-concurrency-performance is a skill published in the GitHub repository Livsy90/iOS-Performance-Agent-Skills (113 stars, last pushed 2mo ago), licensed MIT. It adds 84 tokens to every session and 2,283 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

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-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

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

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