swiftui

swiftui is a skill for Codex from JakubMikolajek/codex-skills-collection. It costs 77 tokens per session (1,676 once invoked), scanned A, original, MIT.

A set of implementation and review patterns for building SwiftUI interfaces on iOS 17 and newer Apple platforms. SwiftUI is Apple’s framework for creating app screens, while MVVM separates screens from their application logic.

In plain words
What is it for?
Use it to build or review SwiftUI views, navigation, forms, lists, state handling, asynchronous presentation, and dependency wiring.
Why use it?
It helps keep screen state, navigation, asynchronous work, dependencies, accessibility, and tests organized as an app grows.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it to build or review SwiftUI views, navigation, forms, lists, state handling, asynchronous presentation, and dependency wiring.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jakubmikolajek/codex-skills-collection/swiftui
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 JakubMikolajek/codex-skills-collection --skill swiftui
Clone the repo
git clone --depth 1 https://github.com/JakubMikolajek/codex-skills-collection

Made for: 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 swiftui

README.md
[![agentmods](https://agentmods.dev/badge/skills/jakubmikolajek/codex-skills-collection/swiftui/github.svg)](https://agentmods.dev/skills/jakubmikolajek/codex-skills-collection/swiftui)
Your own site
<a href="https://agentmods.dev/skills/jakubmikolajek/codex-skills-collection/swiftui"><img src="https://agentmods.dev/badge/skills/jakubmikolajek/codex-skills-collection/swiftui/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 swiftui

Your own site · 80×15
<a href="https://agentmods.dev/skills/jakubmikolajek/codex-skills-collection/swiftui"><img src="https://agentmods.dev/badge/skills/jakubmikolajek/codex-skills-collection/swiftui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,676 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.00077 $0.01676
Opus 5.5 $0.00031 $0.00670
Sonnet 5.5 $0.00015 $0.00335
Haiku 4.5 $0.00008 $0.00168

Measured 19d ago against content hash 3940f77d495f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

swiftui 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 19d 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/swiftui/SKILL.md · 155 lines

How it starts

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

SwiftUI Implementation Patterns

Use this skill to keep SwiftUI changes composable, state-safe, and aligned with iOS 17+, MVVM, the new Observation APIs, and Factory for dependency injection.

Delivery Workflow

Use the checklist below and track progress:

SwiftUI progress:
- [ ] Step 1: Discover project conventions and navigation model
- [ ] Step 2: Map screen state, ViewModel ownership, and Factory dependencies
- [ ] Step 3: Compose views into small reusable units
- [ ] Step 4: Wire Observation-based bindings and async work safely
- [ ] Step 5: Verify accessibility, previews, and tests

Platform Assumptions

  • Target iOS 17+ by default.
  • Prefer the modern Observation model over legacy ObservableObject patterns unless the project still depends on older code paths.
  • Do not add compatibility fallbacks for pre-iOS 17 APIs unless the repository explicitly requires them.
  • Apple's swiftui-specialist guidance supersedes model memory on framework behavior; when it conflicts with this skill on framework-level correctness (identity, invalidation, environment, deprecations), follow it and keep this skill for project conventions (MVVM, Factory).
  • On SDK 27+, @State is a macro: an @State build error after an SDK update is not fixed by reordering init assignments — see swiftui-whats-new-27.
  • Use NavigationStack/NavigationSplitView, not the soft-deprecated NavigationView, and the two-parameter/zero-parameter onChange.

State Management Rules

  • Keep View types focused on presentation and lightweight interaction wiring.
  • Prefer one clear source of truth for screen state.
  • Treat the ViewModel as the owner of screen business state in MVVM flows.
  • Use the project's existing observation model first; do not mix competing patterns without a reason.
  • Keep transient UI state local to the view and move shared/business state into an observable ViewModel.
  • Derive display values from state instead of duplicating them.

Property Wrapper Guidance

Read the full file on GitHub · 155 lines

Files

What ships with it

1 file 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. 19d ago Changed · +6 lines 3940f77d495f
  2. 1mo ago First seen · 149 lines · 77 tokens per session scan A 4efa47ef99b9

Subscribe to this mod's changes

swiftui is a skill published in the GitHub repository JakubMikolajek/codex-skills-collection (6 stars, last pushed 20d ago), licensed MIT. It adds 77 tokens to every session and 1,676 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.

Related

Other skills, from other repositories

display-glasses-with-jetpack-compose-glimmer

Provides guidelines for developing projected Android XR apps for display glasses using the Jetpack Compose Glimmer UI toolkit. Covers Glimmer design principles, workflows, and interaction models for the glasses form factor. Use this skill to build an Android XR Augmented Experience app with Jetpack Compose Glimmer.…

android/skills · 112 tokens

glance-canonical-layouts

Use this skill to create home screen widgets using Jetpack Glance Canonical Layouts from the Android Platform Samples project, or when asked to implement standard widget layout patterns (including Check List, Image Grid, Snap Scrolling, and Standard Toolbar).

android/skills · 56 tokens

expo-design-system

Build and maintain a design system inside an Expo app - a reusable theme of design tokens (color, spacing, typography, radius, shadow, motion), reusable component structure with variant/size/state prop conventions, and rules for when to extract a repeated view into a shared component. Use when creating or organizing…

expo/skills · 197 tokens

flutter-build-responsive-layout

Use LayoutBuilder, MediaQuery, or Expanded/Flexible to create a layout that adapts to different screen sizes. Use when you need the UI to look good on both mobile and tablet/desktop form factors.

flutter/agent-plugins · 51 tokens

omh-apple-design

This is an OMH apple-design workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

rlaope/oh-my-hermes · 83 tokens

axiom-audit-liquid-glass

Use when the user mentions Liquid Glass review, iOS 26 UI updates, toolbar improvements, or visual effect migration.

CharlesWiltgen/Axiom · 32 tokens