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 tmj-90/gaffer --skill swift-conventionsgit clone --depth 1 https://github.com/tmj-90/gafferWrote 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/tmj-90/gaffer/swift-conventions)<a href="https://agentmods.dev/skills/tmj-90/gaffer/swift-conventions"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/swift-conventions/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/tmj-90/gaffer/swift-conventions"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/swift-conventions.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.00133 | $0.01998 |
| Opus 5.5 | $0.00053 | $0.00799 |
| Sonnet 5.5 | $0.00027 | $0.00400 |
| Haiku 4.5 | $0.00013 | $0.00200 |
Grade A, and why
swift-conventions 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 16d 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 — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Write idiomatic Swift
Swift is safest when values are structs, absence is an optional you handle, and
concurrency is checked by the compiler through actors and Sendable. For the builder and the reviewer of a Swift diff; the target's settings and existing code win over it.
Procedure
- Discover the target's conventions first. Call
search_lorefor Swift conventions. ReadPackage.swift(swift-tools-version,swiftLanguageModes,swiftSettingssuch as upcoming features ordefaultIsolation(MainActor.self)), or the Xcode build settings (SWIFT_VERSION,SWIFT_STRICT_CONCURRENCY,SWIFT_DEFAULT_ACTOR_ISOLATION, approachable-concurrency flags),project.yml(XcodeGen/Tuist),.swiftlint.yml,.swift-format, and the minimum OS. The language mode decides the rules: in Swift 6 mode data-race diagnostics are errors; with default MainActor isolation (6.2) code is main-actor unless marked otherwise. Identify SwiftUI vs UIKit, the architecture (@ObservableMVVM, TCA), and XCTest vs Swift Testing. Copy a sibling feature and test. - Pin the exact commands from CI,
Makefileor fastlane (therun-testsandrun-lintskills), including the scheme and simulator destination. Use the defaults below only when the repo defines none. - Write the change with the idioms below, then walk the concurrency section for every task, actor, closure, file and shared object you touched.
- Test each acceptance criterion's own behaviour. One test per AC that fails without
your change, plus its error path (
@Test(arguments:)for tables). If the AC involves shared state or persistence, add a test that runs N concurrent calls in awithTaskGroupand asserts the invariant. - Verify, then stop. Done when: the build has no new warnings in the configured
language mode, SwiftLint/swift-format are clean, tests are green on the repo's
destination, and every AC has a test. Record the output with the
record-evidenceskill; the runner submits the work.
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.
- 16d ago Changed · +46 lines · +25 tokens per session 2cc95fc96aad
- 19d ago First seen · 75 lines · 108 tokens per session scan A b6cfeb4d6ffc
swift-conventions is a skill published in the GitHub repository tmj-90/gaffer (2 stars, last pushed 17d ago), licensed Apache-2.0. It adds 133 tokens to every session and 1,998 once invoked, about $0.0005 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-09-28.
Other skills, from other repositories
android-development
Android development guidelines for Kotlin with clean architecture, MVI pattern, Material Design, and best practices for building robust mobile applications.
kotlin-patterns
Kotlin: coroutines, Flow, sealed/data classes, null safety, Ktor, Compose, KMP. Triggers: Kotlin, coroutine, Flow, suspend, Ktor, Jetpack Compose, KMP, kotlinx.
swift-patterns
Swift/iOS: SwiftUI, Combine, async/await, actors, SPM, Core Data, UIKit interop. Triggers: Swift, SwiftUI, Combine, iOS, Xcode, actor, Core Data, @MainActor, @State.
software-ios-native
Guides native iOS with Swift, SwiftUI, UIKit interop, concurrency, and persistence. Use when building or reviewing iPhone/iPad apps after establishing runtime truth.
android-development
Android development with Kotlin, Jetpack Compose, and modern Android architecture. Use when building Android apps, implementing Material Design, or following Android best practices.
software-android-native
Guides native Android development with Kotlin, Jetpack Compose, and Views interop. Use when building, rewriting, or reviewing modern Android apps after establishing runtime truth.