
SwiftUI-Agent-Skill
SwiftUI rules for AI coding agents, MIT licensed
Replaces —

Who it's for
Ask your agent to run the skill over a project to find deprecated API, performance problems and accessibility gaps, or limit the review to one of them.
Your project does not use SwiftUI.
Install the skill so the agent follows modern API, state management and layout guidance as it writes new screens, instead of you correcting dated patterns afterward.
You do not use an AI coding agent that supports skills.
The problem
AI coding assistants often write SwiftUI that compiles but is not good SwiftUI. The project's author says they sometimes make buttons invisible to VoiceOver, frequently use deprecated API, and often write code that causes surprise performance problems. Developers end up repeating the same corrections in every review. A skill that states the rules once, in a format agents load on demand, moves those corrections out of your review loop and into the agent's instructions.
How it works
The checks target errors language models actually make in SwiftUI, including deprecated API, performance traps and accessibility gaps, rather than restating what models already know.
The skill covers API usage, design, performance and accessibility, including navigation, layout, animations, state management and VoiceOver.
It uses the Agent Skills format, so one skill works with Claude Code, Codex, Gemini, Cursor and more. Claude Code users can also install it as a plugin through a marketplace.
Trigger the whole skill with /swiftui-pro in Claude Code or $swiftui-pro in Codex, or add an instruction such as checking only for deprecated API or focusing on accessibility. Natural language prompts work too.
Contribution rules ask for concise Markdown and for leaving out things LLMs already know, so the skill spends your token budget on edge cases and soft deprecations.
Features
- Rules aimed at real LLM mistakes
- Broad SwiftUI coverage
- Works across AI coding agents
- Partial reviews on request
- Token-conscious design
How to install
Install the skill with npx (Node required), then choose which agents and which projects should get it during setup.
npx skills add https://github.com/twostraws/swiftui-agent-skill --skill swiftui-proIf you prefer to install it by hand, clone the repository and set it up however you want.
git clone https://github.com/twostraws/SwiftUI-Agent-SkillRecommended for this setup
Strengths
- One install, many agents: Because it follows the Agent Skills format, the same skill serves several assistants. The npx installer lets you choose which agents get it and whether it applies to one project or all of them.
- Built from hands-on experience: It builds on the author's existing AGENTS.md file and on thousands of hours of learning, experimenting and building real SwiftUI projects, according to the README.
- MIT license and open contributions: The MIT license permits commercial use, modification, distribution and private use. Contributions that add or improve checks are welcome, and all work must be MIT licensed.
Trade-offs
- Only useful if you write SwiftUI: The skill is specific to SwiftUI. Related topics like SwiftData, Swift Concurrency and Swift Testing are separate skills you install on their own.
- Needs Node for the easiest install: The main install path uses npx, so you need Node. The README suggests installing it through Homebrew, and Homebrew itself may need installing first. Cloning the repository is the alternative.
- Tied to recent platform versions: The badges say it is designed for iOS 26 and later and Swift 6.4 and later, so projects targeting older versions may get advice that does not apply.
Tech stack
FAQ
It uses the Agent Skills format, so it works with Claude Code, Codex, Gemini, Cursor and more. The npx installer lets you pick which agents to install it for.
The skill is called SwiftUI Pro. In Claude Code, run /swiftui-pro. In Codex, run $swiftui-pro. Add an instruction for a partial review, for example checking for deprecated API or focusing on accessibility, or ask in natural language to use the SwiftUI Pro skill.
It is available under the MIT License, which permits commercial use, modification, distribution and private use. Contributions must also be MIT licensed.
Yes. The README lists separate skills for SwiftData, Swift Concurrency and Swift Testing, and points to a Swift Agent Skills list for more Apple platform skills.