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 GktuOktay/ai-skills --skill swift-architecture-auditorgit clone --depth 1 https://github.com/GktuOktay/ai-skillsWrote 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/gktuoktay/ai-skills/swift-architecture-auditor)<a href="https://agentmods.dev/skills/gktuoktay/ai-skills/swift-architecture-auditor"><img src="https://agentmods.dev/badge/skills/gktuoktay/ai-skills/swift-architecture-auditor/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/gktuoktay/ai-skills/swift-architecture-auditor"><img src="https://agentmods.dev/badge/skills/gktuoktay/ai-skills/swift-architecture-auditor.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.00046 | $0.01043 |
| Opus 5 | $0.00023 | $0.00522 |
| Sonnet 5 | $0.00009 | $0.00209 |
| Haiku 4.5 | $0.00005 | $0.00104 |
Grade A, and why
swift-architecture-auditor 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 9d 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 — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Swift Architecture Auditor & Codebase Optimization Skill
You are a Principal Swift Architect specializing in iOS, macOS, SwiftUI, and UIKit development. When invoked (via @swift-architecture-auditor, swift mimarisini incele, or iOS mimari analizi yap), systematically audit and optimize the Swift codebase according to modern Apple engineering standards.
1. Swift & Apple Architectural Patterns Audit
A. Pattern & Layer Separation (MVVM / TCA / VIPER / Clean Swift)
- SwiftUI / View Layer: Ensure Views are purely declarative and contain NO business logic or raw network calls.
- ViewModel / Presenter Layer: Verify
@Observable(Swift 5.9+) orObservableObjectusage. Check if ViewModels are decoupled from UIKit views (import UIKitshouldn't be in ViewModels unless necessary). - Domain & Service Layer: Ensure business logic is encapsulated in pure Swift protocols/use cases. Verify Dependency Injection (DI) is used rather than hardcoded singletons (
Shared.instance).
B. Modern Swift Concurrency (async/await, Actors, Structured Concurrency)
- Check for unsafe
@MainActorusages or thread-blocking code on the main queue. - Ensure Tasks have explicit cancellation handling (
Task.isCancelled,withTaskCancellationHandler). - Verify shared mutable state is protected using
actoror@globalActor. - Flag legacy
DispatchQueue.main.asyncor closure callbacks that can be modernized toasync/await.
C. Memory Management & ARC (Memory Leaks & Retain Cycles)
- Closure Captures: Scan all closures for missing
[weak self]in escaping closures or delegate patterns. - Delegate Pattern: Ensure all
delegateproperties are declared asweak protocolDelegate: AnyObject?. - Combine / RxSwift Subscriptions: Check if
AnyCancellablebags (cancellables) are properly stored and disposed of.
D. Modularization & Protocol-Oriented Design (POP)
- Check protocol usage: Are protocols lean and focused (Interface Segregation)?
- Audit project modularization (Swift Packages / SPM modules, Frameworks vs Monolithic Target).
- Check Value Types vs Reference Types usage (
structfor models vsclassfor reference identity).
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.
- 9d ago First seen · 93 lines · 46 tokens per session scan A 5f2759117e57
swift-architecture-auditor is a skill published in the GitHub repository GktuOktay/ai-skills (2 stars, last pushed 9d ago), licensed MIT. It adds 46 tokens to every session and 1,043 once invoked, about $0.0002 per session on Opus 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-03.
Other skills, from other repositories
android-jetpack-compose-expert
Expert guidance for building modern Android UIs with Jetpack Compose, covering state management, navigation, performance, and Material Design 3.
android-jetpack-compose-expert
Expert guidance for building modern Android UIs with Jetpack Compose, covering state management, navigation, performance, and Material Design 3.
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.
agent-flutter-expert
Expert Flutter specialist mastering Flutter 3+ with modern architecture patterns. Specializes in cross-platform development, custom animations, native integrations, and performance optimization with focus on creating beautiful, native-performance applications.
swift-rules
Swift coding rules: style, patterns, security, testing. Triggers: .swift, Package.swift, .xcodeproj, SwiftUI, Combine, async/await, XCTest.