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 Desquared/agents-rules-skills --skill ios-swiftui-architecture-reviewgit clone --depth 1 https://github.com/Desquared/agents-rules-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/desquared/agents-rules-skills/ios-swiftui-architecture-review)<a href="https://agentmods.dev/skills/desquared/agents-rules-skills/ios-swiftui-architecture-review"><img src="https://agentmods.dev/badge/skills/desquared/agents-rules-skills/ios-swiftui-architecture-review/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/desquared/agents-rules-skills/ios-swiftui-architecture-review"><img src="https://agentmods.dev/badge/skills/desquared/agents-rules-skills/ios-swiftui-architecture-review.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.00064 | $0.00534 |
| Opus 5.5 | $0.00026 | $0.00214 |
| Sonnet 5.5 | $0.00013 | $0.00107 |
| Haiku 4.5 | $0.00006 | $0.00053 |
Grade A, and why
ios-swiftui-architecture-review 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 — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SwiftUI Architecture Review
When to Use This Skill:
- Reviewing EXISTING SwiftUI views/ViewModels
- Code review for architectural violations
- Refactoring guidance for specific files
- Validating state management patterns
When to Use
project-architecture-analystAgent Instead:
- Planning NEW features (uncertain file placement)
- Understanding project-wide architecture
- Major changes affecting multiple modules
- Need to discover existing patterns before implementing
Review Checklist
Separation of Concerns
- Views: presentation only (no business logic, network, DB)
- ViewModels: state + business logic (@Observable or ObservableObject)
- Data access separated from views
State Management
@State- view-local state only@StateObject- view-owned ViewModels (avoid in List rows)@ObservedObject- passed-in ViewModels@Bindable- two-way binding to Observable objects (iOS 17+)@Environment- shared state (read-only preferred)@EnvironmentObject- injected dependencies (check for missing inject)
State Lifecycle Issues
- No retained cycles in ViewModels (@Published closures)
- Proper cleanup in deinit or .onDisappear
- @StateObject not recreated on parent refresh
- Environment values exist before access
Dependency Injection
- Dependencies injected (check project: Swinject, Resolver, Factory, manual)
- No hardcoded singletons in views
- ViewModels receive dependencies
View Composition
- Views are small (single responsibility)
- Complex views broken into components
- Reusable components extracted
Common Issues
| Issue | Fix |
|---|---|
| Business logic in view | Extract to ViewModel |
| Network call in view | Move to ViewModel with task |
| Singleton in view | Inject via DI or @Environment |
| 200+ line view | Break into components |
Severity
- 🔴 Critical: Architecture violation
- 🟡 Improvement: Better pattern available
- 🟢 Enhancement: Optional optimization
What ships with it
2 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 · 65 lines · 64 tokens per session scan A dae6ac64bfb2
ios-swiftui-architecture-review is a skill published in the GitHub repository Desquared/agents-rules-skills (4 stars, last pushed 1mo ago), licensed MIT. It adds 64 tokens to every session and 534 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-08-31.
ios-swiftui-architecture-review compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ios-swiftui-architecture-reviewDesquared/agents-rules-skills | Skill | 4 | 1mo ago | MIT | A | 64 | Claude Code, Codex |
| app-store-reviewjacklandrin/OnlySwitch | Skill | 6.1k | 3d ago | MIT | A | 76 | Claude Code, Codex |
| swift-concurrency-projacklandrin/OnlySwitch | Skill | 6.1k | 3d ago | MIT | A | 35 | Codex |
| swiftui-protwostraws/SwiftUI-Agent-Skill | Skill | 6.6k | 1mo ago | MIT | A | 36 | Claude Code, Codex |
| swiftui-auditfcakyon/claude-codex-settings | Skill | 1.2k | today | Apache-2.0 | A | 52 | Claude Code |
| mobile-platform-offline-validateforcedotcom/sf-skills | Skill | 1.2k | 4d ago | Apache-2.0 | A | 207 | Claude Code |
| axiom-audit-cameraCharlesWiltgen/Axiom | Skill | 1.3k | 22d ago | MIT | A | 39 | Codex |