Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
twostraws avatar

Swiftui Pro

  • 24.2k installs
  • 4.4k repo stars
  • Updated April 20, 2026
  • twostraws/swiftui-agent-skill

SwiftUI Pro is an agent skill that guides developers through modern SwiftUI best practices for iOS development.

About

An agent skill for AI coding assistants helping developers write modern, idiomatic SwiftUI code. Covers iOS 26+ and Swift 6.2+ with guidance on navigation, layout, animations, state management, VoiceOver accessibility, and avoiding deprecated APIs.

  • Modern SwiftUI best practices for iOS 26+ and Swift 6.2+
  • Covers navigation, layout, animations, state management, VoiceOver, deprecated APIs
  • Targets common LLM mistakes in SwiftUI code

Swiftui Pro by the numbers

  • 24,205 all-time installs (skills.sh)
  • +765 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #8 of 1,048 Mobile Development skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

swiftui-pro capabilities & compatibility

Capabilities
swiftui layout · state management · animations
Platforms
macOS
npx skills add https://github.com/twostraws/swiftui-agent-skill --skill swiftui-pro

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs24.2k
repo stars4.4k
Security audit3 / 3 scanners passed
Last updatedApril 20, 2026
Repositorytwostraws/swiftui-agent-skill

How do you review SwiftUI code for best practices?

An agent skill for AI coding assistants helping developers write modern, idiomatic SwiftUI code. Covers iOS 26+ and Swift 6.2+ with guidance on navigation, layout, animations, state management, Voice

Who is it for?

iOS developers reviewing SwiftUI projects who want Paul Hudson-backed reference checks that skip nitpicks and false positives.

Skip if: UIKit-only projects, greenfield SwiftUI scaffolding from scratch, or teams needing automated XCTest generation rather than code review.

When should I use this skill?

User is reading, writing, or reviewing SwiftUI code and wants best-practice feedback on APIs, views, data flow, or navigation.

What you get

Structured review report flagging deprecated APIs, data flow issues, suboptimal modifiers, and navigation problems with reference-backed citations.

  • code review report
  • deprecated api findings
  • data flow recommendations

By the numbers

  • Skill version 1.1 authored by Paul Hudson
  • Uses 4 bundled reference files: api.md, views.md, data.md, and navigation references

Files

SKILL.mdMarkdownGitHub ↗

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.

Output Format

Organize findings by file. For each issue:

1. State the file and relevant line(s). 2. Name the rule being violated (e.g., "Use foregroundStyle() instead of foregroundColor()"). 3. Show a brief before/after code fix.

Skip files with no issues. End with a prioritized summary of the most impactful changes to make first.

Example output:

ContentView.swift

Line 12: Use `foregroundStyle()` instead of `foregroundColor()`.

// Before
Text("Hello").foregroundColor(.red)

// After
Text("Hello").foregroundStyle(.red)

Line 24: Icon-only button is bad for VoiceOver - add a text label.

// Before
Button(action: addUser) {
    Image(systemName: "plus")
}

// After
Button("Add User", systemImage: "plus", action: addUser)

Line 31: Avoid `Binding(get:set:)` in view body - use `@State` with `onChange()` instead.

// Before
TextField("Username", text: Binding(
    get: { model.username },
    set: { model.username = $0; model.save() }
))

// After
TextField("Username", text: $model.username)
    .onChange(of: model.username) {
        model.save()
    }

Summary

1. Accessibility (high): The add button on line 24 is invisible to VoiceOver. 2. Deprecated API (medium): foregroundColor() on line 12 should be foregroundStyle(). 3. Data flow (medium): The manual binding on line 31 is fragile and harder to maintain.

End of example.

References

  • references/accessibility.md - Dynamic Type, VoiceOver, Reduce Motion, and other accessibility requirements.
  • references/api.md - updating code for modern API, and the deprecated code it replaces.
  • references/design.md - guidance for building accessible apps that meet Apple’s Human Interface Guidelines.
  • references/hygiene.md - making code compile cleanly and be maintainable in the long term.
  • references/navigation.md - navigation using NavigationStack/NavigationSplitView, plus alerts, confirmation dialogs, and sheets.
  • references/performance.md - optimizing SwiftUI code for maximum performance.
  • references/data.md - data flow, shared state, and property wrappers.
  • references/swift.md - tips on writing modern Swift code, including using Swift Concurrency effectively.
  • references/views.md - view structure, composition, and animation.

Related skills

How it compares

Pick swiftui-pro over generic Swift linters when the goal is expert SwiftUI-specific review with reference-backed guidance rather than syntax-only static analysis.

FAQ

What does swiftui-pro check during a review?

swiftui-pro checks deprecated APIs via references/api.md, view and modifier optimization via references/views.md, data flow via references/data.md, and navigation patterns via bundled references. The skill reports only genuine problems, not nitpicks.

What version is swiftui-pro?

swiftui-pro is version 1.1, authored by Paul Hudson under the MIT license. The skill includes bundled reference files for API, views, data, and navigation review checks in SwiftUI projects.

Is Swiftui Pro safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.