twostraws/SwiftUI-Agent-Skill

SwiftUI agent skill for Claude Code, Codex, and other AI tools.

5,809

18 commits

updated Oct 7, 2026

See the code

See what people are saying

SourceMessageScoreDate

@GitHub_Daily 装:npx skills add https://t.co/RTiUIfKahy --skill swiftui-pro

1

Oct 12, 2026

🚀 Trending on GitHub SwiftUI-Agent-Skill by twostraws ⭐ 5,665 (65 today) 🧠 Teaches AI coding agents like Claude Code and Codex how to write correct, modern SwiftUI. https://t.co/T8n8ek4wpL #GenAI #OpenSource #AI

1

Oct 10, 2026

给 AI 写代码配一份「老手经验」,我觉得比换个更强的模型管用。 Swift 老教程作者 Paul Hudson 把 SwiftUI 的坑整理成技能包,专挑大模型常犯的错,比如过时 API、状态管理、VoiceOver。Claude Code、Codex、Cursor 都能装。 模型不缺语法,缺的是踩过坑的人。 https://t.co/lruunMtG5f

2

Oct 10, 2026

これ強い。 SwiftUIをAIに書かせる前に 入れたいskill。 SwiftUI Proは Claude Code/Codex向けに Navigation、State、 VoiceOver、非推奨APIを 見てくれる。 入れるなら: npx skills add https://t.co/sGtqQ81JyQ --skill swiftui-pro Xcode 27.2対応更新あり。 MITで5.3k stars。

3

Oct 9, 2026

AIコーディングアシスタントによるSwiftUIの実装・レビューを支援するスキル。API選択、画面設計、性能、アクセシビリティに関する注意点を与え、LLMが起こしやすい誤りの確認を促す。 https://t.co/PGO6LHYo7f 【機能・リポジトリ内容】

1

Oct 9, 2026

Nara Baby introduced paid plans, so I tried building our own baby tracker with Claude Code (r/ClaudeAI)

We have two kids and had been using Nara Baby for more than two years. I liked it. When they announced paid plans, I started wondering how difficult it would be to build something for us instead. My reasoning was roughly: why pay another subscription when I can pay Apple $99 a year for a developer…

4

Oct 9, 2026

让 AI 写 SwiftUI,先给它补补课 👀 Paul Hudson 的 SwiftUI Pro,给 Claude Code、Codex 等加一份实战指南: 🔍 揪出过时 API ⚡ 排查性能隐患 ♿ 检查无障碍问题 导航、布局、状态管理也有建议。MIT 开源,写代码、审代码都能用。 https://t.co/QSxYtITaIz

2

Oct 8, 2026

these 5 iOS agent skills put an end to AI slop. best practices ⟶ https://t.co/BaQpMSbiAt app design ⟶ https://t.co/rhCq0WZIve animations ⟶ https://t.co/YZVV8SagDO performance ⟶ https://t.co/WSgArgGM4t swiftui ⟶ https://t.co/qFDqBEEGbs did I miss any skill? https://t.co/HzPndLaLlj

485

Oct 7, 2026

I'm pleased to announce v2.0 of my SwiftUI Pro agent skill! It's packed with improvements based on real-world testing of iOS 27 and iPhone Duo, and also integrates a variety of advice from Apple's own skills. Get it here: https://t.co/Ns8blrGjjY

1,021

Oct 7, 2026

README

SwiftUI Pro - Agent Skill for Claude Code, Codex, and Gemini

SwiftUI Agent Skill for AI Coding Assistants

Designed for iOS 26 and later. Designed for Swift 6.4 and later. Twitter: @twostraws

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-pro

If 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 node

And 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-skill

Alternatively, 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.

Contributing

I welcome all contributions, whether that's adding new checks, improving existing checks, or editing this README – everyone is welcome!

  • Keep your Markdown concise. There is a token cost to using skills, particularly with SKILL.md, so please respect the token budgets of users.
  • Do not repeat things that LLMs already know, because it burns tokens for no benefit. Focus on edge cases, surprises, soft deprecations, and similar.
  • All work must be licensed under the MIT license so it can benefit the most people.

Please ensure you abide by the Code of Conduct.

License

SwiftUI Pro was originally created by Paul Hudson, who writes free Swift tutorials over at Hacking with Swift. It’s available under the MIT License, which permits commercial use, modification, distribution, and private use.

Hacking with Swift+ logo

 

Hacking with Swift logo
A Hacking with Swift Project

twostraws/SwiftUI-Agent-Skill

SwiftUI agent skill for Claude Code, Codex, and other AI tools.

5,809

18 commits

updated Oct 7, 2026

See the code

See what people are saying

SourceMessageScoreDate

@GitHub_Daily 装:npx skills add https://t.co/RTiUIfKahy --skill swiftui-pro

1

Oct 12, 2026

🚀 Trending on GitHub SwiftUI-Agent-Skill by twostraws ⭐ 5,665 (65 today) 🧠 Teaches AI coding agents like Claude Code and Codex how to write correct, modern SwiftUI. https://t.co/T8n8ek4wpL #GenAI #OpenSource #AI

1

Oct 10, 2026

给 AI 写代码配一份「老手经验」,我觉得比换个更强的模型管用。 Swift 老教程作者 Paul Hudson 把 SwiftUI 的坑整理成技能包,专挑大模型常犯的错,比如过时 API、状态管理、VoiceOver。Claude Code、Codex、Cursor 都能装。 模型不缺语法,缺的是踩过坑的人。 https://t.co/lruunMtG5f

2

Oct 10, 2026

これ強い。 SwiftUIをAIに書かせる前に 入れたいskill。 SwiftUI Proは Claude Code/Codex向けに Navigation、State、 VoiceOver、非推奨APIを 見てくれる。 入れるなら: npx skills add https://t.co/sGtqQ81JyQ --skill swiftui-pro Xcode 27.2対応更新あり。 MITで5.3k stars。

3

Oct 9, 2026

AIコーディングアシスタントによるSwiftUIの実装・レビューを支援するスキル。API選択、画面設計、性能、アクセシビリティに関する注意点を与え、LLMが起こしやすい誤りの確認を促す。 https://t.co/PGO6LHYo7f 【機能・リポジトリ内容】

1

Oct 9, 2026

Nara Baby introduced paid plans, so I tried building our own baby tracker with Claude Code (r/ClaudeAI)

We have two kids and had been using Nara Baby for more than two years. I liked it. When they announced paid plans, I started wondering how difficult it would be to build something for us instead. My reasoning was roughly: why pay another subscription when I can pay Apple $99 a year for a developer…

4

Oct 9, 2026

让 AI 写 SwiftUI,先给它补补课 👀 Paul Hudson 的 SwiftUI Pro,给 Claude Code、Codex 等加一份实战指南: 🔍 揪出过时 API ⚡ 排查性能隐患 ♿ 检查无障碍问题 导航、布局、状态管理也有建议。MIT 开源,写代码、审代码都能用。 https://t.co/QSxYtITaIz

2

Oct 8, 2026

these 5 iOS agent skills put an end to AI slop. best practices ⟶ https://t.co/BaQpMSbiAt app design ⟶ https://t.co/rhCq0WZIve animations ⟶ https://t.co/YZVV8SagDO performance ⟶ https://t.co/WSgArgGM4t swiftui ⟶ https://t.co/qFDqBEEGbs did I miss any skill? https://t.co/HzPndLaLlj

485

Oct 7, 2026

I'm pleased to announce v2.0 of my SwiftUI Pro agent skill! It's packed with improvements based on real-world testing of iOS 27 and iPhone Duo, and also integrates a variety of advice from Apple's own skills. Get it here: https://t.co/Ns8blrGjjY

1,021

Oct 7, 2026

README

SwiftUI Pro - Agent Skill for Claude Code, Codex, and Gemini

SwiftUI Agent Skill for AI Coding Assistants

Designed for iOS 26 and later. Designed for Swift 6.4 and later. Twitter: @twostraws

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-pro

If 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 node

And 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-skill

Alternatively, 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.

Contributing

I welcome all contributions, whether that's adding new checks, improving existing checks, or editing this README – everyone is welcome!

  • Keep your Markdown concise. There is a token cost to using skills, particularly with SKILL.md, so please respect the token budgets of users.
  • Do not repeat things that LLMs already know, because it burns tokens for no benefit. Focus on edge cases, surprises, soft deprecations, and similar.
  • All work must be licensed under the MIT license so it can benefit the most people.

Please ensure you abide by the Code of Conduct.

License

SwiftUI Pro was originally created by Paul Hudson, who writes free Swift tutorials over at Hacking with Swift. It’s available under the MIT License, which permits commercial use, modification, distribution, and private use.

Hacking with Swift+ logo

 

Hacking with Swift logo
A Hacking with Swift Project

Significant stargazers

(top 24 of 42)

IKEDA Sho

664 followers · starred Mar 2026

Sijawusz Pur Rahnama

239 followers · starred Oct 2026

Joseph Heck

692 followers · starred Mar 2026

Vadim Demedes

2,722 followers · starred Aug 2026