SwiftUI Pro skill

Paul Hudson's skill for reviewing and writing SwiftUI for iOS 26: deprecated APIs, data flow, navigation, accessibility, performance

  • 6,395 ★ on the repository
  • Last commit
  • MIT
SkillEditors’ pick

Minimal access

Why this level

  • The skill consists of review rules and references
All reasons and checks

twostraws/swiftui-agent-skill

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add skills/swiftui-pro

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Minimal accessThe tool runs nothing and makes no network calls.

  • The skill consists of review rules and references

This is third-party code. Review the repository files before installing.

What it does

The skill targets the mistakes language models most often make in SwiftUI: deprecated APIs, buttons invisible to VoiceOver and code with surprise performance problems. Review runs in steps, each with its own reference: APIs, views and modifiers, data flow, navigation, Human Interface Guidelines design, accessibility including Dynamic Type and Reduce Motion, performance, Swift and code hygiene. It assumes iOS 26 and Swift 6.2 and does not add third-party frameworks without asking. Findings are grouped by file with line, rule name and a before and after fix, ending with a prioritized list.

Who it is for. For iOS developers writing SwiftUI interfaces with an agent.

Good fit when

  • You need to check a SwiftUI project for deprecated APIs
  • You need to find accessibility and performance problems in views
  • You want the agent to write SwiftUI to modern rules from the start

Not a fit when

  • Your app is UIKit with no plans to move to SwiftUI
  • You need to support old iOS versions; the skill targets iOS 26

Example request

/swiftui-pro Check for deprecated API

Limitations

Rules assume iOS 26 and Swift 6.2, so some advice will not fit older deployment targets. The skill analyzes code and does not run builds or tests.

How to disable. Uninstall the swiftui-pro plugin via /plugin or delete the swiftui-pro folder from the skills directory.

FAQ

Can I review just one area?

Yes, add a focus: /swiftui-pro Check for deprecated API in Claude Code or $swiftui-pro Focus on accessibility in Codex. Only the relevant references load.

Are there similar skills for other Swift areas?

The author also publishes skills for SwiftData, Swift Concurrency and Swift Testing.

Discussion

No questions or reviews yet.

Skills

A SwiftUI best practices skill: state, view composition, performance, new APIs, Liquid Glass and Instruments trace analysis

SkillExtended access3.8KRepository stars

Skills for Apple development: SwiftUI, UIKit and Liquid Glass references, Swift 6 guides and a router for iOS 26+ tasks

SkillMinimal access349Repository stars

A set of skills for iOS 26+, Swift 6.3 and SwiftUI that gives the agent knowledge of modern Apple frameworks

SkillMinimal access1.2KRepository stars

Paul Hudson's skill for reviewing Swift 6.2 concurrency code: actors, Sendable, task groups, cancellation and the mistakes models actually make

SkillMinimal access577Repository stars

SwiftUI Design Skill

swiftui-design-skill

A SwiftUI interface design skill: compilable code, tokens, patterns and six rules against AI sloppiness. One-command installation through npx skills

SkillMinimal access211Repository stars

A skill that builds in-app screen and element capture for a SwiftUI app and loops it across every locale for the App Store

SkillExtended access265Repository stars

README in short

The README explains the skill grew out of the author's AGENTS.md and targets typical model mistakes in SwiftUI. Install via npx skills with agent and scope selection or the Claude Code plugin marketplace, plus a video for Xcode. It shows invocation in Claude Code and Codex and partial reviews. MIT licensed.

README badge

Original SKILL.md

---
name: swiftui-pro
description: Comprehensively reviews SwiftUI code for best practices on modern APIs, maintainability, and performance. Use when reading, writing, or reviewing SwiftUI projects.
license: MIT
metadata:
  author: Paul Hudson
  version: "1.1"
---

Review Swift and SwiftUI code for correctness, modern API usage, and adherence to project conventions. Report only genuine problems - do not nitpick or invent issues.

Review process:

1. Check for deprecated API using `references/api.md`.
1. Check that views, modifiers, and animations have been written optimally using `references/views.md`.
1. Validate that data flow is configured correctly using `references/data.md`.
1. Ensure navigation is updated and performant using `references/navigation.md`.
1. Ensure the code uses designs that are accessible and compliant with Apple’s Human Interface Guidelines using `references/design.md`.
1. Validate accessibility compliance including Dynamic Type, VoiceOver, and Reduce Motion using `references/accessibility.md`.
1. Ensure the code is able to run efficiently using `references/performance.md`.
1. Quick validation of Swift code using `references/swift.md`.
1. Final code hygiene check using `references/hygiene.md`.

If doing a partial review, load only the relevant reference files.


## Core Instructions

- iOS 26 exists, and is the default deployment target for new apps.
- Target Swift 6.2 or later, using modern Swift concurrency.
- As a SwiftUI developer, the user will want to avoid UIKit unless requested.
- Do not introduce third-party frameworks without asking first.
- Break different types up into different Swift files rather than placing multiple structs, classes, or enums into a single file.
- Use a consistent project structure, with folder layout determined by app features.

Report a problem

Foxx AISwiftUI Pro
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.