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 lugassawan/swe-workbench --skill language-swiftgit clone --depth 1 https://github.com/lugassawan/swe-workbenchWrote 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/lugassawan/swe-workbench/language-swift)<a href="https://agentmods.dev/skills/lugassawan/swe-workbench/language-swift"><img src="https://agentmods.dev/badge/skills/lugassawan/swe-workbench/language-swift/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/lugassawan/swe-workbench/language-swift"><img src="https://agentmods.dev/badge/skills/lugassawan/swe-workbench/language-swift.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.00054 | $0.01358 |
| Opus 5.5 | $0.00022 | $0.00543 |
| Sonnet 5.5 | $0.00011 | $0.00272 |
| Haiku 4.5 | $0.00005 | $0.00136 |
Grade A, and why
language-swift 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 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
protocol Fetchable { associatedtype Item; func fetch(id: String) async throws -> Item } How it starts
The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Swift
Optionals
?makes absence explicit in the type —String?vsString.if let/guard letunwrap safely.guardexits scope immediately — prefer it for preconditions.??provides a default fornil. Never force-unwrap (!) in production unless the nil case is a programmer error that should crash loudly.
guard let email = user.email else { return }
let display = nickname ?? username
Value vs reference types
- Default to
struct— value semantics, copy-on-write, no shared-mutation bugs. - Use
classonly when identity matters (reference equality, inheritance), or when Objective-C interop requires it. - Use
actorto encapsulate mutable state that must be safe to access from multiple async tasks.
actor Counter {
private var count = 0
func increment() { count += 1 }
func value() -> Int { count }
}
Protocols and protocol-oriented design
- Model capabilities as protocols, not class hierarchies.
Hashable,Codable,Identifiableare the idiom. - Extension methods add behavior without subclassing.
some Protocol(opaque return type) keeps the concrete type private while preserving type identity.any Protocol(existential) erases the type — use only when you need a heterogeneous collection.
protocol Fetchable { associatedtype Item; func fetch(id: String) async throws -> Item }
func loadFirst<F: Fetchable>(from source: F) async throws -> F.Item { try await source.fetch(id: "1") }
Concurrency — async/await
async/awaitreplaces completion handlers. Mark any function that suspends asasync.async letfor structured concurrency — values resolve when awaited, not when declared.withTaskGroupfor dynamic fan-out over a collection.Task.checkCancellation()in long loops; cancellation is cooperative.
async let user = fetchUser(id)
async let prefs = fetchPreferences(id)
let dashboard = try await Dashboard(user: user, prefs: prefs)
- Mark types that cross concurrency boundaries as
Sendable(or use@unchecked Sendablewith a documented invariant).
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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 · 127 lines · 54 tokens per session scan A 35dc9b625df2
language-swift is a skill published in the GitHub repository lugassawan/swe-workbench (3 stars, last pushed 2d ago), licensed MIT. It adds 54 tokens to every session and 1,358 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
language-swift compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| language-swiftlugassawan/swe-workbench | Skill | 3 | 2d ago | MIT | A | 54 | Claude Code |
| kotlin-androidericrisco/rsc-harness | Skill | 709 | 3d ago | MIT | A | 78 | Claude Code, Codex |
| new-mac-appdaveebbelaar/bama | Skill | 2.1k | 1mo ago | MIT | A | 59 | Claude Code, Codex |
| language-idioms-refinertechygarg/lattice | Skill | 219 | today | MIT | A | 92 | Claude Code |
| swift-code-reviewexistential-birds/beagle | Skill | 92 | 5d ago | Apache-2.0 | A | 47 | Claude Code, Codex |
| build-ios-binarymicrosoft/power-platform-skills | Skill | 1.2k | today | MIT | C | 200 | Claude Code |
| wasmTheBeardedBearSAS/claude-craft | Skill | 108 | 19d ago | MIT | A | 43 | Claude Code |