swiftui-specialist

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

A guide to Apple's SwiftUI framework for writing, reviewing, and improving app screens, data flow, lists, animations, and related code. SwiftUI is Apple's system for building user interfaces with Swift.

In plain words
What is it for?
It helps structure views, review forms and lists, manage environment data, improve rendering behaviour, handle animations, and update soft-deprecated SwiftUI code.
Why use it?
It helps prevent common correctness and performance problems, such as unstable list identity, unnecessary screen updates, and use of outdated APIs.

Skill for Codex

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

Good fit It helps structure views, review forms and lists, manage environment data, improve rendering behaviour, handle animations, and update soft-deprecated SwiftUI code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jakubmikolajek/codex-skills-collection/swiftui-specialist
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-specialist
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-specialist

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jakubmikolajek/codex-skills-collection/swiftui-specialist"><img src="https://agentmods.dev/badge/skills/jakubmikolajek/codex-skills-collection/swiftui-specialist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,347 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.00088 $0.01347
Opus 5.5 $0.00035 $0.00539
Sonnet 5.5 $0.00018 $0.00269
Haiku 4.5 $0.00009 $0.00135

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

Security

Grade A, and why

swiftui-specialist 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-specialist/SKILL.md · 66 lines

How it starts

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

SwiftUI Specialist Patterns

Use this skill to apply Apple's published SwiftUI guidance for framework-level correctness and performance. It complements swiftui, which owns project conventions (MVVM, Factory DI). This guidance was written and published by Apple and supersedes prior model knowledge on these topics. Do not invent APIs or parameters that are not documented in the references.

When to Use

  • Writing or reviewing any non-trivial SwiftUI view hierarchy, list, or form
  • Reviewing SwiftUI performance, invalidation, or over-rendering
  • Touching @Environment, @Entry, EnvironmentKey, or FocusedValue
  • Writing ForEach/List/Table rows or custom Animatable types
  • Cleaning up or surfacing soft-deprecated SwiftUI APIs during feature work

When NOT to Use

  • Task is only about project architecture such as MVVM boundaries or Factory DI - use swiftui
  • Task is only about String Catalogs or translation workflow - use swift-localization
  • Task targets SDK 27-only APIs - use swiftui-whats-new-27
  • Task is not Apple-platform UI

Delivery Workflow

Use the checklist below and track progress:

SwiftUI specialist progress:
- [ ] Step 1: Identify which reference topics apply to the code in scope
- [ ] Step 2: Read each applicable reference before writing or judging code
- [ ] Step 3: Apply or report findings per reference
- [ ] Step 4: For codebase-wide requests, split areas into a TODO list and review one area at a time

Reference Index

For general guidance on a large codebase, scan the project, propose focus areas one at a time, and offer multiple choices. If the user wants a whole-codebase review, divide the work with a TODO list.

  • references/structure.md: Use when building any view with multiple sections (header/list/footer, content + counter, etc.) or reviewing view hierarchy. Covers when to factor sections into separate View structs vs. computed properties, init costs, and the single-child Group anti-pattern.
  • references/dataflow.md: Use when writing or reviewing how to correctly pass data to and store data in views — @State, @Binding, or model objects that provide data to views (prefer @Observable over ObservableObject). Covers narrowing value-type inputs to the fields a view actually reads, @MainActor and Equatable requirements on @Observable models, per-property observation tracking and its granularity traps, passing collection elements to row views, isolating .onChange side effects, and KeyPath vs. closure bindings.
  • references/environment.md: Use when code reads or writes @Environment, EnvironmentKey, EnvironmentValues, or FocusedValue. Also use when the compiler emits warnings from @Entry such as "Storing a closure in '@Entry var ...' may invalidate dependents on every update because closures may not be comparable" or "Storing a class type in '@Entry var ...' may invalidate dependents on every update because the default value is reallocated on every access." Covers performance pitfalls with closures, unstable defaults, and high-frequency updates.
  • references/modifiers.md: Use when writing or reviewing view modifier usage, especially conditional modifiers. Covers using a ternary over an if/else @ViewBuilder branch, and reaching for AnyShapeStyle (which is fine to use, not discouraged like AnyView) to unify a ternary when the branches produce different ShapeStyle types.
  • references/localization.md: Use when writing or reviewing user-facing text — Text, Button, Label, navigation/toolbar titles, alerts — or when designing types that carry localizable strings. Covers LocalizedStringKey auto-localization in SwiftUI views, LocalizedStringResource vs String on non-view types, bundle: #bundle for Swift packages and frameworks, format styles for dates/numbers/currencies/lists, .leading/.trailing over .left/.right for RTL, runtime case transforms, and translator comments for interpolated strings.
  • references/animations.md: Use when creating custom Animatable types.
  • references/foreach.md: Use when writing or reviewing ForEach, or any data-driven initializer that behaves like it (List, Table, OutlineGroup). Covers element identity requirements (state preservation, animations, performance), common anti-patterns around indices, transient ids, and content-derived ids, and how row-view structure (unary vs multi) affects List performance.
  • references/soft-deprecation.md: Use when generating, reviewing, refactoring, or cleaning up SwiftUI code. Covers soft-deprecated APIs — how to identify them and when to migrate.
  • references/soft-deprecated-apis.md: Searchable list of all soft-deprecated SwiftUI APIs with their replacements. Search this file when you need to check if a specific API is soft-deprecated.

Read the full file on GitHub · 66 lines

Files

What ships with it

10 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. 19d ago First seen · 66 lines · 88 tokens per session scan A aced73316e45

Subscribe to this mod's changes

swiftui-specialist is a skill published in the GitHub repository JakubMikolajek/codex-skills-collection (6 stars, last pushed 20d ago), licensed MIT. It adds 88 tokens to every session and 1,347 once invoked, about $0.0004 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-10-08.

Related

Other skills, from other repositories

orca-emulator-android

Android device and emulator control from inside Orca over adb, with the live device view in Orca's emulator pane. Use when driving an adb-connected emulator or phone on Windows, Linux, or macOS: booting AVDs, taps, swipes, typing, hardware buttons, rotation, app install and launch, runtime permissions, the…

stablyai/orca · 102 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

android-tombstone-symbolication

Symbolicate the .NET runtime frames in an Android tombstone file. Extracts BuildIds and PC offsets from the native backtrace, downloads debug symbols from the Microsoft symbol server, and runs llvm-symbolizer to produce function names with source file and line numbers. USE FOR triaging a .NET MAUI or Mono Android app…

dotnet/skills · 176 tokens

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.

callstack/agent-device · 55 tokens

winapp-maui

Package and sign .NET MAUI Windows apps with winapp: publish the Windows head first, then point packaging at the resolved resizetizer manifest. Use for a MAUI MSIX or signed unpackaged build, MAUI packaging in CI, or 'manifest contains unresolved placeholders' errors from winapp package.

microsoft/winappCli · 68 tokens

apple-search-ads

When the user wants to set up, optimize, or scale Apple Search Ads (ASA) campaigns — including keyword bidding, match types, campaign structure, Creative Product Sets, CPP routing, and ROAS optimization. Use when the user mentions "Apple Search Ads", "ASA", "Search Ads", "Search tab ads", "Today tab ads", "CPT"…

Eronred/aso-skills · 127 tokens