ios-swiftui-architecture-review

ios-swiftui-architecture-review is a skill for Claude Code, Codex from Desquared/agents-rules-skills. It costs 64 tokens per session (534 once invoked), scanned A, original, MIT.

A review guide for SwiftUI code that checks whether views, view models, state, and data access are arranged clearly. SwiftUI is Apple’s framework for building app interfaces.

In plain words
What is it for?
Reviewing or refactoring existing SwiftUI views and view models, and checking their architecture and state management.
Why use it?
It helps identify mixed responsibilities, incorrect state handling, dependency problems, and lifecycle issues before they cause maintenance or runtime problems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Reviewing or refactoring existing SwiftUI views and view models, and checking their architecture and state management.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/desquared/agents-rules-skills/ios-swiftui-architecture-review
Install

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.

Any agent
npx skills add Desquared/agents-rules-skills --skill ios-swiftui-architecture-review
Clone the repo
git clone --depth 1 https://github.com/Desquared/agents-rules-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for ios-swiftui-architecture-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/desquared/agents-rules-skills/ios-swiftui-architecture-review/github.svg)](https://agentmods.dev/skills/desquared/agents-rules-skills/ios-swiftui-architecture-review)
Your own site
<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.

agentmods 80×15 button for ios-swiftui-architecture-review

Your own site · 80×15
<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>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 534 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.00534
Opus 5 $0.00032 $0.00267
Sonnet 5 $0.00013 $0.00107
Haiku 4.5 $0.00006 $0.00053

Measured 12d ago against content hash dae6ac64bfb2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

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 12d 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.

skills/ios-swiftui-architecture-review/SKILL.md · 65 lines

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-analyst Agent 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

Read the full file on GitHub · 65 lines

Files

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.

Changes

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.

  1. 12d ago First seen · 65 lines · 64 tokens per session scan A dae6ac64bfb2

Subscribe to this mod's changes

ios-swiftui-architecture-review is a skill published in the GitHub repository Desquared/agents-rules-skills (4 stars, last pushed 29d ago), licensed MIT. It adds 64 tokens to every session and 534 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

accessibility-cleanup

Finds common violations of the Android accessibility API in the Clank App Java code and attempts to address them (e.g. hardcoded state change announcements, missing events, focus moving, assertive live regions, etc).

chromium/chromium · 49 tokens

app-store-review

Evaluates code against Apple's App Store Review Guidelines. Use this skill when reviewing iOS, macOS, tvOS, watchOS, or visionOS app code (Swift, Objective-C, React Native, or Expo) to identify potential App Store rejection issues before submission. Triggers on tasks involving app review preparation, compliance…

jacklandrin/OnlySwitch · 76 tokens

swift-concurrency-pro

Reviews Swift code for concurrency correctness, modern API usage, and common async/await pitfalls. Use when reading, writing, or reviewing Swift concurrency code.

jacklandrin/OnlySwitch · 35 tokens

swiftui-pro

Comprehensively reviews SwiftUI code for best practices on modern APIs, maintainability, and performance. Use when reading, writing, or reviewing SwiftUI projects.

jacklandrin/OnlySwitch · 36 tokens

axiom-audit-camera

Use this agent to scan Swift code for camera, video, and audio capture issues including deprecated APIs, missing interruption handlers, threading violations, and permission anti-patterns.

CharlesWiltgen/Axiom · 39 tokens

mobile-platform-offline-validate

Review a Lightning Web Component for mobile offline compatibility — the Komaci offline static analyzer that pre-primes the data graph for Salesforce Mobile App Plus and Field Service Mobile App. Produces a finding list with code-level fixes covering inline GraphQL queries in @wire configurations, modern lwc:if /…

forcedotcom/sf-skills · 207 tokens