Repolode
twostraws

twostraws/SwiftUI-Agent-Skill

An agent skill that teaches AI coding assistants like Claude Code and Codex to write modern, correct SwiftUI code.

Stars
6,245
Forks
236
Open issues
14
Last commit
4 days ago

What is it?

SwiftUI Pro is an agent skill that gives AI coding assistants a set of SwiftUI-specific rules covering API usage, design, performance, and accessibility. It targets common mistakes that LLMs make when writing SwiftUI, such as using deprecated APIs, creating controls that VoiceOver cannot reach, and introducing avoidable performance problems.

The skill follows the Agent Skills format and can be installed with npx into Claude Code, Codex, Gemini, Cursor, and other compatible tools. It can be triggered with a slash or dollar command, or with natural language, and can be scoped to a partial review such as checking only deprecated API or accessibility.

The project is built on the author's existing AGENTS.md guidance and is licensed under MIT. It is written to stay concise, since skill content consumes a model's token budget.

Key features

  • 01Flags deprecated SwiftUI API and suggests modern replacements.
  • 02Checks accessibility issues such as controls hidden from VoiceOver.
  • 03Reviews performance pitfalls in SwiftUI views and state handling.
  • 04Installs into Claude Code, Codex, Gemini, Cursor and other Agent Skills tools via npx.
  • 05Supports partial reviews, for example focusing only on accessibility.

Use cases

  • Reviewing an existing SwiftUI codebase for deprecated API before an iOS 26 update.
  • Having an AI assistant generate SwiftUI screens that follow accessibility best practices.
  • Auditing a SwiftUI project for performance problems during code review.

Quick start

  1. 1

    Install the skill with npx

    npx skills add https://github.com/twostraws/swiftui-agent-skill --skill swiftui-pro
  2. 2

    Install Node via Homebrew if npx is missing

    brew install node
  3. 3

    In Claude Code, add the marketplace and install the plugin

    /plugin marketplace add twostraws/SwiftUI-Agent-Skill
  4. 4

    Trigger the skill in Claude Code

    /swiftui-pro

Things to know

  • The skill is designed for iOS 26 and Swift 6.4 or later, so older targets may not match its guidance.

Topics

FAQ

What is SwiftUI-Agent-Skill?
An agent skill that teaches AI coding assistants like Claude Code and Codex to write modern, correct SwiftUI code. SwiftUI Pro is an agent skill that gives AI coding assistants a set of SwiftUI-specific rules covering API usage, design, performance, and accessibility. It targets common mistakes that LLMs make when writing SwiftUI, such as using deprecated APIs, creating controls that VoiceOver cannot reach, and introducing avoidable performance problems.
Is SwiftUI-Agent-Skill free to use? What license does it have?
SwiftUI-Agent-Skill is open source under the MIT license. Check the license terms before using it in commercial products.
Is SwiftUI-Agent-Skill still maintained?
Actively maintained. The last commit to SwiftUI-Agent-Skill was on Oct 16, 2026.
What can I use SwiftUI-Agent-Skill for?
Reviewing an existing SwiftUI codebase for deprecated API before an iOS 26 update. Having an AI assistant generate SwiftUI screens that follow accessibility best practices. Auditing a SwiftUI project for performance problems during code review.
How do I install SwiftUI-Agent-Skill?
Install the skill with npx: npx skills add https://github.com/twostraws/swiftui-agent-skill --skill swiftui-pro Install Node via Homebrew if npx is missing: brew install node In Claude Code, add the marketplace and install the plugin: /plugin marketplace add twostraws/SwiftUI-Agent-Skill Trigger the skill in Claude Code: /swiftui-pro
Where can I get SwiftUI-Agent-Skill?
The source code and installation instructions are on GitHub: https://github.com/twostraws/SwiftUI-Agent-Skill

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects