swiftui-pro
Comprehensively reviews SwiftUI code for best practices on modern APIs, maintainability, and performance. Use when reading, writing, or reviewing SwiftUI projects.
This rank signal uses GitHub stars, measured star growth, and recent maintenance. It is not a safety score or install approval.
Worth reviewing before you install
Worth a closer look if the use case fits. It has adoption, measured growth, and recent maintenance. Install notes are available, but you should still inspect the source.
Writing teams. Channel tag: Claude Code, Codex, AI Agent. Treat this as a search fit signal, not compatibility proof. Best when you want a concrete install path. Start with swiftui-pro/SKILL.md.
Inspect swiftui-pro/SKILL.md and the install command before adding it to a shared agent workflow. No actionable warning was returned for this snapshot.
Compare nearby writing skills in the Claude Code, Codex, AI Agent channel when 4,106 GitHub stars, source freshness, or install notes are close. This one has a clearer install path, but a nearby skill may still fit your agent setup better.
How to install swiftui-pro
npx skills add https://github.com/twostraws/swiftui-agent-skill --skill swiftui-proSKILL.md and source review
Primary path: swiftui-pro/SKILL.md
60/100 from GitHub star count, star growth rate, and recent update.
60/100 from GitHub star count, star growth rate, and recent update.
32.5/45 points. Star count is log-scaled so large repos lead without completely hiding newer projects.
17.9/35 points from 454 net stars over 53.3 observed day(s).
10/20 points. Most recent GitHub activity: 2026-04-20T08:02:42Z.
- GitHub ranking score uses star count, measured star growth rate, and recent repository update only.
- 3,753 stars at last scan.
- 95 stars/week measured from 2026-04-22 to 2026-04-29T10:47:16.829Z.
- Most recent GitHub activity was 2026-04-20T08:02:42Z.
Source evidence preview
We show selected README/SKILL.md excerpts, not a full mirror of the repo. Use the focus cards for install notes, usage, and skill rules, then open GitHub before installing.
Command extracted from README.md.
npx skills add https://github.com/twostraws/swiftui-agent-skill --skill swiftui-proReview README.md for usage examples and expected workflow.
Review swiftui-pro/SKILL.md for trigger rules and constraints.
SwiftUI Agent Skill for AI Coding Assistants
An agent skill that helps AI coding assistants write smarter, simpler, and more modern SwiftUI, including guidance on API usage, design, performance, and accessibility. Covers navigation, layout, animations, state management, VoiceOver, deprecated API, and more, targeting the mistakes LLMs actually make.
Also available:
Find more agent skills for Swift and Apple platform development at Swift Agent Skills.
The skill builds upon my existing AGENTS.md file, meaning that you can bring years of knowledge and practical experience into your coding agent of choice in just a few minutes. It uses the Agent Skills format, so it works smoothly with Claude Code, Codex, Gemini, Cursor, and more.
Installing SwiftUI Pro
You can install this skill into Claude Code, Codex, Gemini, Cursor, and more by using npx:
npx skills add https://github.com/twostraws/swiftui-agent-skill --skill swiftui-proIf you get the error npx: command not found, it means you don’t currently have Node installed. You need to run this command to install Node through Homebrew:
brew install nodeAnd if that fails it usually means you need to install Homebrew first.
When using npx, you can select exactly which agents you want to use during the installation. You can also select whether the skill should be installed just for one project, or whether it should be made available for all your projects.
Claude Code users can add the SwiftUI Agent Skill marketplace then install the plugin directly through Claude, like this:
/plugin marketplace add twostraws/SwiftUI-Agent-Skill
/plugin install swiftui-pro@swiftui-agent-skillAlternatively, you can clone this whole repository and install it however you want.
If you’re using Xcode, watch the YouTube video on How to Install and Use Agent Skills in Xcode for a walkthrough.
Using SwiftUI Pro
The skill is called SwiftUI Pro, and can be triggered in various ways. For example, in Claude Code you would use this:
/swiftui-pro
And in Codex you would use this:
$swiftui-pro
In both cases you can provide specific instructions if you want only a partial review. For example, /swiftui-pro Check for deprecated API on Claude, or $swiftui-pro Focus on accessibility in Codex.
You can also trigger the skill using natural language:
Use the SwiftUI Pro skill to look for performance problems in this project.
Why Use an Agent Skill for SwiftUI?
This skill is built on thousands of hours of learning, experimenting, and building real-world SwiftUI projects. The rules contained here directly target common SwiftUI mistakes made by LLMs. They sometimes make buttons invisible to VoiceOver, they frequently use deprecated API, and they would often write code that causes surprise performance problems.
You can read more about why I created this skill in my article: SwiftUI Agent Skill - Write better code with Claude, Codex, and other AI tools.
Need the full source? Read full README on GitHub
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:
- Check for deprecated API using
references/api.md. - Check that views, modifiers, and animations have been written optimally using
references/views.md. - Validate that data flow is configured correctly using
references/data.md. - Ensure navigation is updated and performant using
references/navigation.md. - Ensure the code uses designs that are accessible and compliant with Apple’s Human Interface Guidelines using
references/design.md. - Validate accessibility compliance including Dynamic Type, VoiceOver, and Reduce Motion using
references/accessibility.md. - Ensure the code is able to run efficiently using
references/performance.md. - Quick validation of Swift code using
references/swift.md. - 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:
- State the file and relevant line(s).
- Name the rule being violated (e.g., "Use
foregroundStyle()instead offoregroundColor()"). - 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
- Accessibility (high): The add button on line 24 is invisible to VoiceOver.
- Deprecated API (medium):
foregroundColor()on line 12 should beforegroundStyle(). - Data flow (medium): The manual binding on line 31 is fragile and harder to maintain.
End of example.
Need the full source? Read full SKILL.md on GitHub
