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 koshkinvv/ios-agent-skills --skill ios-architecturegit clone --depth 1 https://github.com/koshkinvv/ios-agent-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/koshkinvv/ios-agent-skills/ios-architecture)<a href="https://agentmods.dev/skills/koshkinvv/ios-agent-skills/ios-architecture"><img src="https://agentmods.dev/badge/skills/koshkinvv/ios-agent-skills/ios-architecture/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/koshkinvv/ios-agent-skills/ios-architecture"><img src="https://agentmods.dev/badge/skills/koshkinvv/ios-agent-skills/ios-architecture.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.00179 | $0.02468 |
| Opus 5.5 | $0.00072 | $0.00987 |
| Sonnet 5.5 | $0.00036 | $0.00494 |
| Haiku 4.5 | $0.00018 | $0.00247 |
Grade A, and why
ios-architecture 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 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.
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 — 249 lines — stays where its author put it; the contents beside it link to each section on GitHub.
iOS Architecture Skill
You are an iOS architecture expert. Apply the patterns and principles below when helping the user design, scaffold, or refactor an iOS application.
Architecture Selection Guide
| Project Size | Team | Recommended | Reference |
|---|---|---|---|
| Small (1 dev, <10 screens) | Solo | MVVM + @Observable | references/mvvm.md |
| Medium (2-4 devs, 10-30 screens) | Small team | MVVM + Clean layers | references/mvvm.md + references/clean.md |
| Large (5+ devs, 30+ screens) | Large team | Clean + SPM modules or TCA | references/clean.md + references/modular.md |
| Complex state management | Any | TCA | references/tca.md |
Core Rules
- Default to MVVM + @Observable for new projects (simplest, Apple-recommended since iOS 17).
- ViewModels must NEVER import SwiftUI --
import Foundationonly. They expose published state; the View observes it. - Use protocols for all external dependencies (networking, storage, location, etc.) -- this enables unit testing with mocks.
- Domain layer must not import any framework -- pure Swift only. No UIKit, no SwiftUI, no Combine (unless Combine is used as a reactive primitive in the domain boundary).
- Use SPM local packages for modules when the codebase exceeds ~50k LOC or the team has 3+ developers.
- Feature modules never depend on each other -- they depend only on shared/core modules. Communication goes through a coordinator, router, or parent.
- Repository pattern for ALL data access -- the rest of the app never talks to URLSession, CoreData, or Keychain directly.
- Error types flow outward:
NetworkError->DomainError-> user-facing localized string. Never expose raw HTTP codes to the UI. - One ViewModel per screen (not per view). Small subviews can read from the parent ViewModel or accept plain value types.
- Prefer value types (structs, enums) for models and state. Use classes only for reference semantics (ViewModels, services, managers).
What ships with it
5 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.
- 3mo ago First seen · 249 lines · 179 tokens per session scan A c4ef5232422d
ios-architecture is a skill published in the GitHub repository koshkinvv/ios-agent-skills (6 stars, last pushed 8mo ago), licensed MIT. It adds 179 tokens to every session and 2,468 once invoked, about $0.0007 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.
ios-architecture compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ios-architecturekoshkinvv/ios-agent-skills | Skill | 6 | 8mo ago | MIT | A | 179 | Claude Code, Codex |
| flutterericrisco/rsc-harness | Skill | 691 | 5d ago | MIT | A | 91 | Claude Code, Codex |
| compose-multiplatformericrisco/rsc-harness | Skill | 691 | 5d ago | MIT | A | 80 | Claude Code, Codex |
| react-nativeericrisco/rsc-harness | Skill | 691 | 5d ago | MIT | A | 90 | Claude Code, Codex |
| ios-accessibilityrusel95/ios-agent-skills | Skill | 14 | 1mo ago | MIT | A | 253 | Claude Code |
| ios-localizationrusel95/ios-agent-skills | Skill | 14 | 1mo ago | MIT | A | 265 | Claude Code |
| ios-loggingrusel95/ios-agent-skills | Skill | 14 | 1mo ago | MIT | A | 183 | Claude Code |