ios-swiftui-architect

ios-swiftui-architect is a skill for Claude Code, Codex from Xopoko/build-swift-apps. It costs 43 tokens per session (740 once invoked), scanned A, original, MIT.

A guide for structuring screens and reusable components in iOS apps built with SwiftUI, Apple's framework for describing app interfaces in Swift. It helps choose patterns that fit the existing project.

In plain words
What is it for?
Use it when building or changing SwiftUI screens, navigation, sheets, tabs, settings, forms, or scroll-based interactions. It also helps decide how screens receive data and shared services.
Why use it?
It reduces inconsistent screen structures and avoids adding patterns that the project does not already use. It also gives guidance for app navigation, loading states, and older iOS versions.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the build-swift-apps plugin — 61 skills, 3 commands, 3 MCP servers shipped together

Good fit Use it when building or changing SwiftUI screens, navigation, sheets, tabs, settings, forms, or scroll-based interactions. It also helps decide how screens receive data and shared services.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xopoko/build-swift-apps/ios-swiftui-architect
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 Xopoko/build-swift-apps --skill ios-swiftui-architect
Clone the repo
git clone --depth 1 https://github.com/Xopoko/build-swift-apps

Made for: Claude Code, Codex.

Or install build-swift-apps, the plugin that ships this one along with the rest of its 61 skills, 3 commands, 3 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-swiftui-architect

README.md
[![agentmods](https://agentmods.dev/badge/skills/xopoko/build-swift-apps/ios-swiftui-architect/github.svg)](https://agentmods.dev/skills/xopoko/build-swift-apps/ios-swiftui-architect)
Your own site
<a href="https://agentmods.dev/skills/xopoko/build-swift-apps/ios-swiftui-architect"><img src="https://agentmods.dev/badge/skills/xopoko/build-swift-apps/ios-swiftui-architect/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-architect

Your own site · 80×15
<a href="https://agentmods.dev/skills/xopoko/build-swift-apps/ios-swiftui-architect"><img src="https://agentmods.dev/badge/skills/xopoko/build-swift-apps/ios-swiftui-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 740 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00043 $0.00740
Opus 5 $0.00022 $0.00370
Sonnet 5 $0.00009 $0.00148
Haiku 4.5 $0.00004 $0.00074

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

Security

Grade A, and why

ios-swiftui-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 11d 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-architect/SKILL.md · 70 lines

How it starts

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

iOS SwiftUI Architect

Use for iOS SwiftUI UI structure and component choices. Read the nearest local example before introducing a new pattern.

Start

  • Existing project: identify screen model (list/detail/editor/settings/tab), search for nearby examples (rg "TabView\\(", etc.), then read references/components-index.md.
  • New app: start with references/app-wiring.md for TabView + NavigationStack + sheets, then expand route/sheet enums as screens appear.
  • For scroll-driven reveals, read references/scroll-reveal.md before hand-rolling gestures.

Rules

  • Prefer @State, @Binding, @Observable, and @Environment; avoid unnecessary view models.
  • If iOS 16 or earlier is supported, use ObservableObject with @StateObject at the owner and @ObservedObject for injection.
  • Keep views small, composed, and project-formatted.
  • Use .task/.task(id:) with loading/error states; read references/async-state.md for cancellation/debouncing.
  • Put shared app services in @Environment; keep feature-local dependencies as explicit inputs.
  • Prefer newest SwiftUI APIs that match deployment target and call out minimum OS.
  • Maintain legacy patterns only inside legacy files.
  • Sheets: prefer .sheet(item:), avoid if let inside sheet bodies, let sheets call dismiss() internally.
  • Scroll reveals: derive one normalized progress value from scroll offset instead of parallel gesture state machines when possible.

State Ownership

Scenario Pattern
Local UI state @State
Child mutates parent value @Binding
Root-owned iOS 17+ reference model @State with @Observable
Injected iOS 17+ observable explicit stored property
Shared service/config @Environment(Type.self)
iOS 16 legacy model @StateObject owner, @ObservedObject injected

Choose ownership first; do not introduce a reference model when value state is enough.

New View Workflow

  1. Define state ownership, dependencies, and minimum OS.
  2. Sketch hierarchy, routing, and presentation; read navigation/sheet/deeplink refs when complex.
  3. Build and verify before widening call-site changes.
  4. Add async loading and explicit error/loading UI when needed.
  5. Add previews for primary/secondary states and accessibility IDs/labels for interactive UI.
  6. Validate build/previews/state propagation/list identity/observation scope. If build fails, fix the exact error before continuing.

Read the full file on GitHub · 70 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. 11d ago First seen · 70 lines · 43 tokens per session scan A a4aa1c75aae7

Subscribe to this mod's changes

ios-swiftui-architect is a skill published in the GitHub repository Xopoko/build-swift-apps (45 stars, last pushed 14d ago), licensed MIT. It adds 43 tokens to every session and 740 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.

Related

Other skills, from other repositories

mobile-rn-screen

Polish an existing React Native screen to feel intentional, native, and human-crafted. Use for "this screen looks off", "feels clunky on iOS", "Android version looks wrong", "jank when scrolling", "button is unreachable", or any RN-specific UX polish pass.

kensaurus/cursor-kenji · 64 tokens

apple-hig-sf-symbols

Use when choosing, reviewing, or implementing SF Symbols in an Apple-platform app — picking meaningful symbols, keeping the same concept on the same symbol everywhere, and handling variants, rendering modes, and accessibility.

aka-kika/akakika-skills · 48 tokens

Audit Apple-platform UI work against Human Interface Guidelines with HIG Doctor

Run a repeatable HIG compliance audit over app code before shipping UI changes, then use the findings to guide remediation.

agentskillexchange/skills · 38 tokens

apple-hig-feedback-status

Use when designing or implementing feedback, status, progress, alerts, errors, success states, and live activity indicators in Apple-platform apps — inline status, banners, alerts, notifications, and loading states.

aka-kika/akakika-skills · 46 tokens

apple-hig-settings

Use when designing, reviewing, or implementing Settings/Preferences for Apple-platform apps — what belongs in Settings vs Inspector/Toolbar, grouped forms, native controls, secure storage, launch at login, and destructive actions.

aka-kika/akakika-skills · 47 tokens

apple-hig-sidebars

Use when designing, reviewing, or implementing a sidebar for an Apple-platform app — top-level navigation only, grouped sections, NavigationSplitView, consistent SF Symbols, and safe compact-width behavior.

aka-kika/akakika-skills · 44 tokens