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.
git clone --depth 1 https://github.com/getsentry/XcodeBuildMCP-iOS-TemplateWrote 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/rules/getsentry/xcodebuildmcp-ios-template/swift-concurrency)<a href="https://agentmods.dev/rules/getsentry/xcodebuildmcp-ios-template/swift-concurrency"><img src="https://agentmods.dev/badge/rules/getsentry/xcodebuildmcp-ios-template/swift-concurrency/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/rules/getsentry/xcodebuildmcp-ios-template/swift-concurrency"><img src="https://agentmods.dev/badge/rules/getsentry/xcodebuildmcp-ios-template/swift-concurrency.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.00048 | $0.01600 |
| Opus 5.5 | $0.00019 | $0.00640 |
| Sonnet 5.5 | $0.00010 | $0.00320 |
| Haiku 4.5 | $0.00005 | $0.00160 |
Grade A, and why
swift-concurrency 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 3mo 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 — 272 lines — stays where its author put it; the contents beside it link to each section on GitHub.
name: "Swift Concurrency Guidelines" description: "Swift 6 strict concurrency patterns, actor isolation, @MainActor usage, async/await best practices, structured concurrency, and Sendable conformance. Apply when working with async code, actors, concurrent operations, or resolving concurrency warnings/errors." agent_requested: true applies_to: ["**/*.swift"]
Swift Concurrency Guidelines
Actor Isolation (Swift 6 Strict Mode)
All code must follow Swift 6 strict concurrency rules. The project uses strict concurrency mode as configured in MyProjectPackage/Package.swift.
@MainActor for UI Code
All UI-related code must be isolated to the main actor:
@MainActor
struct ContentView: View {
@State private var model = DataModel()
var body: some View {
// All UI code runs on main actor
List(model.items) { item in
Text(item.title)
}
}
}
@MainActor
class UIModel: ObservableObject {
@Published var state: ViewState = .idle
func updateUI() {
// Safe to update UI properties here
state = .loaded
}
}
Actors for Shared Mutable State
Use actors for managing shared mutable state safely:
actor DataStore {
private var items: [Item] = []
func addItem(_ item: Item) {
items.append(item)
}
func getItems() -> [Item] {
return items
}
}
Async/Await Patterns
Required: Use .task Modifier in Views
Always use .task for async operations tied to view lifecycle:
// ✅ CORRECT: Use .task for view lifecycle
struct DataView: View {
@State private var items: [Item] = []
var body: some View {
List(items, id: \.id) { item in
Text(item.name)
}
.task {
// Automatically cancels when view disappears
do {
items = try await loadItems()
} catch {
// Handle error
}
}
}
}
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.
- 3mo ago First seen · 272 lines · 48 tokens per session scan A 77d811e1a08c
swift-concurrency is a cursor rule published in the GitHub repository getsentry/XcodeBuildMCP-iOS-Template (44 stars, last pushed 1y ago), licensed MIT. It adds 48 tokens to every session and 1,600 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-30.
swift-concurrency compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| swift-concurrencygetsentry/XcodeBuildMCP-iOS-Template | Cursor rule | 44 | 1y ago | MIT | A | 48 | Cursor |
| gradlesanjeed5/awesome-cursor-rules-mdc | Cursor rule | 3.6k | 9d ago | CC0-1.0 | A | 1,896 | Cursor |
| kotlin-springboot-rulesholtwood/awesome-cursorrules-zh | Cursor rule | 244 | 1mo ago | MIT | A | 0 | Cursor |
| trove-swiftbravew/trove | Cursor rule | 11 | yesterday | MIT | A | 477 | Cursor |
| swift-5-9-development-standards-continuedbeettlle/pi-spine | Cursor rule | 3 | yesterday | MIT | A | 0 | Cursor |
| android-viewmodelbaijum/ukulele-companion | Cursor rule | 14 | 27d ago | MIT | A | 0 | Cursor |
| kotlin-rulesbeel-collab/presets.dev | Cursor rule | 3 | 9d ago | MIT | A | 0 | Cursor |