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.
npx skills add laxrajpurohit/swift-skills-pro --skill swift-concurrency-progit clone --depth 1 https://github.com/laxrajpurohit/swift-skills-proWrote 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.
[](https://agentmods.dev/skills/laxrajpurohit/swift-skills-pro/swift-concurrency-pro)<a href="https://agentmods.dev/skills/laxrajpurohit/swift-skills-pro/swift-concurrency-pro"><img src="https://agentmods.dev/badge/skills/laxrajpurohit/swift-skills-pro/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.
<a href="https://agentmods.dev/skills/laxrajpurohit/swift-skills-pro/swift-concurrency-pro"><img src="https://agentmods.dev/badge/skills/laxrajpurohit/swift-skills-pro/swift-concurrency-pro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00039 | $0.00907 |
| Opus 5.5 | $0.00016 | $0.00363 |
| Sonnet 5.5 | $0.00008 | $0.00181 |
| Haiku 4.5 | $0.00004 | $0.00091 |
Grade A, and why
swift-concurrency-pro 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 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.
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.
How it starts
The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Swift Concurrency Pro
Write correct, data-race-free concurrent Swift. Target Swift 6 strict concurrency.
When to use
- Writing or reviewing async/await code.
- Fixing
Sendable/ data-race / actor-isolation errors. - Migrating completion-handler APIs to async.
Trigger: /swift-concurrency-pro.
Core principles
- Swift 6 enforces data isolation at compile time. Treat every concurrency warning as a real bug, not noise.
- UI and view models are
@MainActor. Background work runs off the main actor. - Share mutable state through an
actor, never a lock + global. - Make types crossing concurrency boundaries
Sendable.
async/await over completion handlers
❌
func loadUser(completion: @escaping (Result<User, Error>) -> Void) { ... }
✅
func loadUser() async throws -> User { ... }
Wrap legacy callbacks with continuations:
func loadUser() async throws -> User {
try await withCheckedThrowingContinuation { cont in
legacyLoad { result in cont.resume(with: result) }
}
}
Resume a continuation exactly once — never zero, never twice.
Actors for shared mutable state
❌ Lock around shared dictionary
final class Cache {
private var store: [String: Data] = [:]
private let lock = NSLock()
func set(_ d: Data, _ k: String) { lock.lock(); store[k] = d; lock.unlock() }
}
✅
actor Cache {
private var store: [String: Data] = [:]
func set(_ d: Data, for k: String) { store[k] = d }
func get(_ k: String) -> Data? { store[k] }
}
Access is await cache.set(...). Don't expose var actor state directly across actors.
@MainActor for UI
@MainActor
@Observable
final class FeedModel {
var posts: [Post] = []
func refresh() async {
let fetched = await api.posts() // api hops off main as needed
posts = fetched // back on main, safe
}
}
Don't sprinkle DispatchQueue.main.async — annotate with @MainActor instead.
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.
- 2mo ago First seen · 130 lines · 39 tokens per session scan A 2b1b1e8724fb
swift-concurrency-pro is a skill published in the GitHub repository laxrajpurohit/swift-skills-pro (6 stars, last pushed 20d ago), licensed MIT. It adds 39 tokens to every session and 907 once invoked, about $0.0002 per session on Opus 5.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-31.
swift-concurrency-pro compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| swift-concurrency-prolaxrajpurohit/swift-skills-pro | Skill | 6 | 20d ago | MIT | A | 39 | Claude Code |
| generatorsrshankras/claude-code-apple-skills | Skill | 867 | today | MIT | A | 176 | Claude Code |
| swift-concurrency-updatesrshankras/claude-code-apple-skills | Skill | 867 | today | MIT | A | 52 | Claude Code |
| memoryrshankras/claude-code-apple-skills | Skill | 867 | today | MIT | A | 36 | Claude Code |
| watchOSrshankras/claude-code-apple-skills | Skill | 867 | today | MIT | A | 39 | Claude Code |
| attributed-stringrshankras/claude-code-apple-skills | Skill | 867 | today | MIT | A | 37 | Claude Code |
| coding-best-practicesrshankras/claude-code-apple-skills | Skill | 867 | today | MIT | A | 55 | Claude Code |