swiftui-expert

swiftui-expert is a skill for Claude Code, Codex from mathisk2095/jko-claude-plugins. It costs 162 tokens per session (2,040 once invoked), scanned A, original, MIT.

Guidance for building, reviewing, and debugging SwiftUI views and apps. SwiftUI is Apple's framework for creating interfaces for iPhone, iPad, and other Apple platforms.

In plain words
What is it for?
Use it to create views, manage screen state, set up navigation, add animations, and review interface code for structure, accessibility, and performance.
Why use it?
It helps match recommendations to the project's iOS and Swift versions while avoiding outdated APIs and common accessibility, design, and performance problems.

Skill for Claude CodeCodex

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

Part of the swiftui plugin — 1 skill, 1 command shipped together

Good fit Use it to create views, manage screen state, set up navigation, add animations, and review interface code for structure, accessibility, and performance.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mathisk2095/jko-claude-plugins/swiftui-expert
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 mathisk2095/jko-claude-plugins --skill swiftui-expert
Clone the repo
git clone --depth 1 https://github.com/mathisk2095/jko-claude-plugins

Made for: Claude Code, Codex.

Or install swiftui, the plugin that ships this one along with the rest of its 1 skill, 1 command.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/mathisk2095/jko-claude-plugins/swiftui-expert.svg)](https://agentmods.dev/skills/mathisk2095/jko-claude-plugins/swiftui-expert)
Your own site
<a href="https://agentmods.dev/skills/mathisk2095/jko-claude-plugins/swiftui-expert"><img src="https://agentmods.dev/badge/skills/mathisk2095/jko-claude-plugins/swiftui-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 162 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,040 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.00162 $0.02040
Opus 5 $0.00081 $0.01020
Sonnet 5 $0.00032 $0.00408
Haiku 4.5 $0.00016 $0.00204

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

Security

Grade A, and why

swiftui-expert 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 7d 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.

plugins/swiftui/skills/swiftui-expert/SKILL.md · 141 lines

How it starts

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

SwiftUI Expert

Provide expert guidance on SwiftUI development. Detect the project's deployment target and Swift version from Package.swift, .xcodeproj, or project settings and adapt guidance accordingly. Apply modern API usage, clean code principles, design craft, accessibility, and performance best practices. Do not invent APIs — if unsure, say so.

Core Principles

  • Target the latest stable iOS and Swift unless the project specifies otherwise. Check the deployment target before suggesting version-gated APIs.
  • Prefer SwiftUI-native solutions. Avoid UIKit unless explicitly needed or for gaps SwiftUI cannot fill.
  • Do not introduce third-party frameworks without asking first.
  • Each type (struct, class, enum) belongs in its own file. Flag files with multiple type definitions.
  • Use a feature-based folder structure, not layer-based (no "ViewModels/" folder).
  • Code must adhere to Apple's Human Interface Guidelines.

Modern API — Always Use

Replace deprecated API immediately. See references/modern-api.md for the complete table.

Key replacements:

  • foregroundStyle() not foregroundColor()
  • clipShape(.rect(cornerRadius:)) not cornerRadius()
  • NavigationStack / NavigationSplitView not NavigationView
  • @Observable not ObservableObject / @Published / @StateObject / @ObservedObject
  • navigationDestination(for:) not NavigationLink(destination:)
  • Tab API not tabItem()
  • sensoryFeedback() not UIKit haptics
  • #Preview not PreviewProvider
  • containerRelativeFrame() or visualEffect() not GeometryReader (when possible)
  • Task.sleep(for:) not Task.sleep(nanoseconds:)
  • @Entry macro for custom environment/focus/transaction keys

State Management

  • @State must be private. It is owned by the view that creates it.
  • @Observable classes must be @MainActor (unless the project uses default MainActor isolation).
  • Use @State for ownership of @Observable objects, @Bindable for bindings to them, @Environment for passing them.
  • Never use @AppStorage inside @Observable classes — it will not trigger view updates.
  • Never create Binding(get:set:) in body — use @State + onChange().
  • Nested @Observable works fine. Nested ObservableObject does not propagate changes.
  • For @Observable classes, mark properties you don't want tracked with @ObservationIgnored.

Read the full file on GitHub · 141 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. 7d ago First seen · 141 lines · 162 tokens per session scan A 82f798ebe979

Subscribe to this mod's changes

swiftui-expert is a skill published in the GitHub repository mathisk2095/jko-claude-plugins (3 stars, last pushed yesterday), licensed MIT. It adds 162 tokens to every session and 2,040 once invoked, about $0.0008 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

swiftui-expert

This skill should be used when SwiftUI work requires judgment about Observation and state ownership, view identity or lifecycle, navigation, app-target concurrency, persistence, Apple-platform behavior, accessibility, performance, or architecture. Trigger on "review this SwiftUI screen", "why isn't this view…

johnkozaris/jko-claude-plugins · 133 tokens

validate-mobile

Run a Maestro flow on an explicitly selected iOS or Android device and report behavioral evidence.

johnkozaris/jko-claude-plugins · 20 tokens

build-android-binary

Compile a PAM control's Android Kotlin module into the runtime-loadable DEX for a .ppmplugin. Creates a staged Gradle build with the pinned wrapper and react-android compile dependency, verifies manifest/module/package alignment and runtime-loading constraints, builds the release AAR, then runs d8 --min-api 24. Writes…

microsoft/power-platform-skills · 150 tokens

build-ios-binary

Compile a PAM control's iOS Obj-C/Swift module into the FLAT device-slice .framework for a .ppmplugin bundle (never an .xcframework — the wrap CI won't descend into one). Mac-only (Xcode). Builds from a throwaway staged copy so canonical ios/ and the podspec stay untouched, references React-Core headers only (React is…

microsoft/power-platform-skills · 200 tokens

peekaboo

Provides runtime observation and interaction for native macOS interfaces through accessibility state and screenshots. Use when the task depends on visible or interactive state in a running SwiftUI/AppKit app: what is rendered, focused, selected, enabled, reachable through menus/windows/dialogs, or experienced across a…

johnkozaris/jko-claude-plugins · 104 tokens

mobile-flows-maestro

This skill should be used when Maestro is explicitly requested or already present and the task is to author, run, or debug iOS/Android Maestro flows; use Maestro MCP; or handle Maestro selectors, system UI, permissions, Keychain, JavaScript, waits, device state, flakiness, or CI. Evidence includes a .maestro directory…

johnkozaris/jko-claude-plugins · 102 tokens