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 ndisisnd/cook --skill swiftgit clone --depth 1 https://github.com/ndisisnd/cookWrote 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/ndisisnd/cook/swift)<a href="https://agentmods.dev/skills/ndisisnd/cook/swift"><img src="https://agentmods.dev/badge/skills/ndisisnd/cook/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/ndisisnd/cook/swift"><img src="https://agentmods.dev/badge/skills/ndisisnd/cook/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.00056 | $0.01582 |
| Opus 5.5 | $0.00022 | $0.00633 |
| Sonnet 5.5 | $0.00011 | $0.00316 |
| Haiku 4.5 | $0.00006 | $0.00158 |
Grade A, and why
swift 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 1mo 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 — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Swift Standards
Target: Swift 6.2+ in Swift 6 language mode, built with Xcode 27 (Swift 6.4 features flagged where used). Default load: this file only.
Swift owns language-level correctness only: optionals, errors, concurrency, value/reference types, protocols, generics, ARC, naming, access control. Scenes, SwiftUI architecture, sandboxing, distribution, persistence, localization → standards/ios/ or standards/macos/; universal rules → standards/global/.
Scope: full force for new targets. In existing code, match conventions; propose migrations (language mode, ObservableObject → @Observable, deployment targets, dependency swaps) as separate tasks.
Priority: P0 — Language Correctness
Language Mode, Isolation & Concurrency
- New targets: Swift 6 language mode. Apps default to
MainActorisolation; library/domain packages staynonisolated. Check the module's default before reasoning about a bare declaration. - Structured concurrency first. Every unstructured
Task {}has a cancelling owner;Task.detachedalmost never. - CPU-heavy work is
@concurrent; under Approachable Concurrencynonisolated asyncruns on the caller's actor. - Re-validate actor state after every
await. Small sync critical sections useMutexorOSAllocatedUnfairLock, not an actor. @unchecked Sendable/nonisolated(unsafe)only with a lock and a justification comment. Continuations resume exactly once.- No GCD or Combine as architecture — the only allowed uses are the exception list in
refs/concurrency.md.
Full rules, Swift 6.4 additions → refs/concurrency.md.
Availability
- Gate every API newer than the deployment target with
if #available/@availableand a real fallback. Never raise the target to dodge a check.
Optionals
- Never force-unwrap (
!) or force-cast (as!) in production paths. For a true non-nil invariant, useguard let x else { preconditionFailure("why") }. - No implicitly unwrapped optionals (
T!) in new pure-Swift code; only@IBOutletand Obj-C bridging. guard letfor early exit;if letfor genuine branching; use shorthand (if let user).- Prefer
??and optional chaining overif x != nilthenx!. - Return empty collections, not optionals, unless nil is meaningful.
What ships with it
8 files 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.
- 1mo ago Changed · -12 lines bb07cfd1ed03
- 3mo ago First seen · 127 lines · 56 tokens per session scan A b817b37e2517
swift is a skill published in the GitHub repository ndisisnd/cook (2 stars, last pushed 1mo ago), licensed MIT. It adds 56 tokens to every session and 1,582 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 compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| swiftndisisnd/cook | Skill | 2 | 1mo ago | MIT | A | 56 | Claude Code, Codex |
| kotlin-specialistJeffallan/claude-skills | Skill | 13k | today | MIT | A | 86 | Claude Code |
| swift-expertJeffallan/claude-skills | Skill | 13k | today | MIT | A | 98 | Claude Code |
| init-xcode-appglebis/claude-skills | Skill | 417 | today | MIT | A | 88 | Claude Code, Codex |
| bootstrap-iosRayFernando1337/rayfernando-skills | Skill | 132 | 2d ago | Apache-2.0 | A | 84 | Claude Code |
| android-developmentMindrally/skills | Skill | 323 | 1mo ago | Apache-2.0 | A | 27 | Claude Code |
| java-kotlinnimadorostkar/Claude-Skills-collection | Skill | 41 | yesterday | MIT | A | 96 | Claude Code |