Borrowing it
Nothing to install: this file belongs to bsreeram08/chowser. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/bsreeram08/chowser/main/.agents/skills/swift-modern-architecture-skill/SKILL.mdgit clone --depth 1 https://github.com/bsreeram08/chowserWrote 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/bsreeram08/chowser/swift-modern-architecture-skill)<a href="https://agentmods.dev/skills/bsreeram08/chowser/swift-modern-architecture-skill"><img src="https://agentmods.dev/badge/skills/bsreeram08/chowser/swift-modern-architecture-skill/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/bsreeram08/chowser/swift-modern-architecture-skill"><img src="https://agentmods.dev/badge/skills/bsreeram08/chowser/swift-modern-architecture-skill.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.00070 | $0.01954 |
| Opus 5.5 | $0.00028 | $0.00782 |
| Sonnet 5.5 | $0.00014 | $0.00391 |
| Haiku 4.5 | $0.00007 | $0.00195 |
Grade A, and why
swift-modern-architecture-skill 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 4d 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 — 299 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Swift Modern Architecture Skill
Build iOS apps using Swift 6 and iOS 18+ best practices. This skill ensures code uses modern patterns: SwiftData (not Core Data), Observation framework (not Combine), Swift concurrency (not GCD), and current SwiftUI APIs.
Core Principles
1. Swift 6 Concurrency First
Always use Swift concurrency (async/await, actor, @MainActor) instead of GCD or completion handlers. Use structured concurrency (TaskGroup, async let) over unstructured tasks.
2. Observation Framework Over Combine
Use @Observable macro for state management instead of ObservableObject with @Published. The Observation framework is more efficient and has cleaner syntax.
3. SwiftData Over Core Data
For new projects, always use SwiftData with @Model and @Query. SwiftData provides simpler APIs while maintaining Core Data's power.
4. Modern SwiftUI APIs
Use NavigationStack (not NavigationView), @Entry for environment values, .task modifier for async work, and built-in components like ContentUnavailableView.
5. Type Safety
Use enums instead of strings for identifiers, typed throws for specific errors, and proper Sendable conformance for thread safety.
6. Value Types When Possible
Prefer structs and enums over classes unless reference semantics are required. Use actor for thread-safe shared mutable state.
When to Use This Skill
Activate this skill when:
- Writing Swift or iOS application code
- Designing application architecture
- Reviewing or modernizing existing Swift code
- Setting up SwiftUI views, view models, or data models
- Implementing networking, persistence, or business logic
- Working with async operations or concurrency
Architecture Pattern: MVVM with Observation
View Model Structure
@Observable
final class ViewModel {
// Private dependencies
private let service: ServiceProtocol
// Public readable state
private(set) var data: [Item] = []
private(set) var isLoading = false
private(set) var error: Error?
// User input state (use @Bindable in view)
var searchText = ""
var selectedFilter: Filter = .all
init(service: ServiceProtocol) {
self.service = service
}
// Public actions
func loadData() async {
isLoading = true
defer { isLoading = false }
do {
data = try await service.fetchData()
} catch {
self.error = error
}
}
}
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.
- 4d ago First seen · 299 lines · 70 tokens per session scan A e9a563193eaf
swift-modern-architecture-skill is a skill published in the GitHub repository bsreeram08/chowser (12 stars, last pushed 1mo ago), licensed MIT. It adds 70 tokens to every session and 1,954 once invoked, about $0.0003 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-11-28.
swift-modern-architecture-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| swift-modern-architecture-skillbsreeram08/chowser | Skill | 12 | 1mo ago | MIT | A | 70 | Claude Code, Codex |
| swift-expertpersonamanagmentlayer/pcl | Skill | 46 | 1mo ago | Apache-2.0 | A | 76 | Claude Code |
| swift-coding-standardswilliamzujkowski/standards | Skill | 23 | 3mo ago | MIT | A | 23 | Claude Code, Codex |
| swiftmiles990/claude-software-skills | Skill | 26 | 10mo ago | MIT | A | 11 | Claude Code, Codex |
| building-apple-platform-productskylehughes/apple-platform-build-tools-claude-code-plugin | Skill | 59 | 8mo ago | MIT | B | 82 | Claude Code, Codex |
| swift_expertApexIQ/skillsmith | Skill | 5 | 8mo ago | MIT | A | 20 | Claude Code, Codex |
| moai-lang-swiftmosif16/codex-Skills | Skill | 18 | 1y ago | none | A | 51 | Claude Code |