swiftui-pro

swiftui-pro is a skill for Claude Code from laxrajpurohit/swift-skills-pro. It costs 43 tokens per session (1,017 once invoked), scanned A, original, MIT.

A guide for writing and reviewing SwiftUI, Apple’s framework for building app screens with Swift code, using current state, navigation, performance, and accessibility patterns.

In plain words
What is it for?
Use it to create, review, or refactor SwiftUI views and to fix state, navigation, performance, or accessibility issues.
Why use it?
It helps avoid outdated state-management approaches, unnecessary UIKit code, unsafe concurrency, and common layout or navigation problems.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the swiftui-pro plugin — 1 skill shipped together

Good fit Use it to create, review, or refactor SwiftUI views and to fix state, navigation, performance, or accessibility issues.

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

Made for: Claude Code.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/laxrajpurohit/swift-skills-pro/swiftui-pro"><img src="https://agentmods.dev/badge/skills/laxrajpurohit/swift-skills-pro/swiftui-pro.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 1,017 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.00043 $0.01017
Opus 5 $0.00022 $0.00508
Sonnet 5 $0.00009 $0.00203
Haiku 4.5 $0.00004 $0.00102

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

Security

Grade A, and why

swiftui-pro 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 12d 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.

swiftui-pro/skills/swiftui-pro/SKILL.md · 149 lines

How it starts

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

SwiftUI Pro

Write and review SwiftUI for correctness, modern APIs, and performance. Report real problems only — no nitpicking.

When to use

  • Writing new SwiftUI views.
  • Reviewing or refactoring existing SwiftUI.
  • Fixing layout, state, navigation, or performance issues.

Trigger: /swiftui-pro or natural language ("review this SwiftUI view").

Core principles

  • Pure SwiftUI first — only drop to UIKit when the user explicitly needs it.
  • Concurrency is structured async/await; no GCD unless there's a concrete reason.
  • New dependencies are a conversation, not a default — ask before adding one.
  • File hygiene: one declaration per file, grouped into folders by feature.
  • Language/OS target follows the project; if unset, assume the current shipping Swift and SDK rather than legacy defaults.

State management

Use @Observable (Observation framework), not ObservableObject/@Published.

❌ Legacy

final class CounterModel: ObservableObject {
    @Published var count = 0
}

struct CounterView: View {
    @StateObject private var model = CounterModel()
    var body: some View { Text("\(model.count)") }
}

✅ Modern

@Observable
final class CounterModel {
    var count = 0
}

struct CounterView: View {
    @State private var model = CounterModel()
    var body: some View { Text("\(model.count)") }
}

Rules:

  • Own the model with @State. Pass it down plainly; use @Bindable only where you need two-way bindings to its properties.
  • Use @Environment for app-wide models, not singletons.

Modifiers and styling

  • foregroundStyle() not foregroundColor().
  • .background { ... } / .overlay { ... } closure form, not deprecated overloads.
  • Prefer Grid, ViewThatFits, and layout containers over manual GeometryReader math.

Text("Hi").foregroundColor(.red)

Text("Hi").foregroundStyle(.red)

Use NavigationStack with a typed path. NavigationView is deprecated.

NavigationView {
    NavigationLink("Detail", destination: DetailView())
}

NavigationStack(path: $path) {
    List(items) { item in
        NavigationLink(item.name, value: item.id)
    }
    .navigationDestination(for: Item.ID.self) { id in
        DetailView(id: id)
    }
}

Read the full file on GitHub · 149 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. 12d ago First seen · 149 lines · 43 tokens per session scan A 82e196a0733e

Subscribe to this mod's changes

swiftui-pro is a skill published in the GitHub repository laxrajpurohit/swift-skills-pro (5 stars, last pushed 3mo ago), licensed MIT. It adds 43 tokens to every session and 1,017 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-31.

Related

Other skills, from other repositories

generators

Code generator skills that produce production-ready Swift code for common app components. Use when user wants to add logging, analytics, onboarding, review prompts, networking, authentication, paywalls, settings, persistence, error monitoring, CI/CD pipelines, localization, push notifications, deep linking, testing…

rshankras/claude-code-apple-skills · 176 tokens

axint

Use Axint MCP tools to create, compile, validate, and repair Apple App Intents and Swift surfaces from TypeScript definitions.

agenticempire/axint · 29 tokens

android-sdk-knowledge-patch

Use this skill when updating Android applications, libraries, build logic, or Play delivery settings where recent platform and Android Gradle Plugin behavior can affect compatibility. Check the project's compileSdk, targetSdk, minSdk, AGP, Gradle, JDK, Kotlin, KSP, NDK, and form factors before applying target-gated…

Nevaberry/nevaberry-plugins · 9 tokens

swift-expert

Builds iOS/macOS/watchOS/tvOS applications, implements SwiftUI views and state management, designs protocol-oriented architectures, handles async/await concurrency, implements actors for thread safety, and debugs Swift-specific issues. Use when building iOS/macOS applications with Swift 5.9+, SwiftUI, or async/await…

eric861129/SKILLS_All-in-one · 98 tokens

flutter-expert

Use when building cross-platform applications with Flutter 3+ and Dart. Invoke for widget development, Riverpod/Bloc state management, GoRouter navigation, platform-specific implementations, performance optimization.

eric861129/SKILLS_All-in-one · 41 tokens

kotlin-specialist

Provides idiomatic Kotlin implementation patterns including coroutine concurrency, Flow stream handling, multiplatform architecture, Compose UI construction, Ktor server setup, and type-safe DSL design. Use when building Kotlin applications requiring coroutines, multiplatform development, or Android with Compose.…

eric861129/SKILLS_All-in-one · 86 tokens