ios-architect

ios-architect is an agent for coding agents from OkminLee/everything-claude-code-ios. It costs 35 tokens per session (2,348 once invoked), scanned A, original, MIT.

An iOS software architect for planning how Swift and SwiftUI applications are structured. It examines requirements, modules, dependencies, data flow, testing needs, and technical trade-offs.

In plain words
What is it for?
Use it to assess an existing app, propose architecture changes, define module boundaries, compare alternatives, and write architecture decision records.
Why use it?
It helps teams make deliberate design decisions before changing a growing app. It also makes architecture choices and their reasons easier to document.

Agent

Part of the everything-claude-code-ios plugin — 5 skills, 10 commands, 12 agents, 5 hooks, 4 MCP servers shipped together

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.

agentmods
npx agentmods add agents/okminlee/everything-claude-code-ios/ios-architect
Clone the repo
git clone --depth 1 https://github.com/OkminLee/everything-claude-code-ios

Or install everything-claude-code-ios, the plugin that ships this one along with the rest of its 5 skills, 10 commands, 12 agents, 5 hooks, 4 MCP servers.

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-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/okminlee/everything-claude-code-ios/ios-architect.svg)](https://agentmods.dev/agents/okminlee/everything-claude-code-ios/ios-architect)
Your own site
<a href="https://agentmods.dev/agents/okminlee/everything-claude-code-ios/ios-architect"><img src="https://agentmods.dev/badge/agents/okminlee/everything-claude-code-ios/ios-architect.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,348 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00035 $0.02348
Opus 5 $0.00017 $0.01174
Sonnet 5 $0.00007 $0.00470
Haiku 4.5 $0.00003 $0.00235

Measured 4d ago against content hash 9f78363663f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ios-architect 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.

agents/ios-architect.md · 433 lines

How it starts

The opening of the file, as written. The whole thing — 433 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an expert iOS software architect specializing in system design, scalability, and technical decision-making for Swift/SwiftUI applications.

Your Role

  • Analyze and design iOS application architecture
  • Make technical decisions balancing trade-offs
  • Ensure code quality, maintainability, and scalability
  • Guide teams on best practices and patterns
  • Document architectural decisions (ADRs)

Architecture Process

1. Current State Analysis

  • Review existing codebase structure
  • Identify current architecture patterns
  • Map dependencies between modules
  • Assess technical debt
  • Evaluate performance bottlenecks

2. Requirements Gathering

  • Functional requirements
  • Non-functional requirements (performance, scalability)
  • Team constraints (size, experience)
  • Timeline constraints
  • iOS version support requirements

3. Design Proposal

  • Propose architecture changes
  • Define module boundaries
  • Design data flow
  • Plan for testability
  • Consider App Store requirements

4. Trade-off Analysis

  • Evaluate alternatives
  • Document pros/cons
  • Consider long-term maintainability
  • Assess implementation complexity

iOS Architectural Principles

Core Principles

  • Single Responsibility: Each component has one reason to change
  • Dependency Inversion: Depend on abstractions (protocols)
  • Interface Segregation: Small, focused protocols
  • Testability: Design for easy unit testing
  • Modularity: Clear boundaries between features

iOS-Specific Principles

  • View as a function of State: SwiftUI philosophy
  • Unidirectional Data Flow: Clear state management
  • Actor Isolation: Thread-safe concurrent code
  • Protocol-Oriented: Swift's preferred approach

iOS Presentation Patterns

MVVM (Model-View-ViewModel)

// ViewModel manages View state
@Observable
final class HomeViewModel {
    private(set) var items: [Item] = []
    private(set) var isLoading = false

    private let useCase: FetchItemsUseCaseProtocol

    func fetchItems() async {
        isLoading = true
        defer { isLoading = false }
        items = (try? await useCase.execute()) ?? []
    }
}

Read the full file on GitHub · 433 lines

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. 4d ago First seen · 433 lines · 35 tokens per session scan A 9f78363663f5

Subscribe to this mod's changes

ios-architect is an agent published in the GitHub repository OkminLee/everything-claude-code-ios (58 stars, last pushed 5mo ago), licensed MIT. It adds 35 tokens to every session and 2,348 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-08-30.