Skip to content
Back to search

swiftui-agent-skill

MarketplaceWorks with Claude CodeGitHubIncomplete

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/twostraws-swiftui-agent-skill/badge.svg)](/listings/twostraws-swiftui-agent-skill)

HTML

<a href="/listings/twostraws-swiftui-agent-skill"><img src="/api/listings/twostraws-swiftui-agent-skill/badge.svg" alt="findsafeskills safety rating" /></a>

Install

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

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](https://brew.sh) 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](https://www.youtube.com/watch?v=nKVZBKoB6P4) for a walkthrough.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

.claude-plugin/marketplace.json · Manifest · 21 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. {
  2. "name": "swiftui-agent-skill",
  3. "owner": { "name": "Paul Hudson" },
  4. "metadata": {
  5. "description": "Agent skills for SwiftUI development on Apple platforms",
  6. "version": "2.0.0"
  7. },
  8. "plugins": [
  9. {
  10. "name": "swiftui-pro",
  11. "source": "./",
  12. "description": "Reviews SwiftUI code for best practices on modern APIs, maintainability, and performance.",
  13. "version": "2.0.0",
  14. "author": { "name": "Paul Hudson" },
  15. "homepage": "https://github.com/twostraws/SwiftUI-Agent-Skill",
  16. "repository": "https://github.com/twostraws/SwiftUI-Agent-Skill",
  17. "license": "MIT",
  18. "keywords": ["swiftui", "swift", "ios", "apple", "code-review"]
  19. }
  20. ]
  21. }
README.md · README · 108 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. <p align="center">
  2. <img src="assets/logo.svg" alt="SwiftUI Pro - Agent Skill for Claude Code, Codex, and Gemini" height="100" />
  3. </p>
  4. <h1 align="center">SwiftUI Agent Skill for AI Coding Assistants</h1>
  5. <p align="center">
  6. <img src="https://img.shields.io/badge/iOS-26+-2980b9.svg" alt="Designed for iOS 26 and later." />
  7. <img src="https://img.shields.io/badge/swift-6.4+-8e44ad.svg" alt="Designed for Swift 6.4 and later." />
  8. <a href="https://twitter.com/twostraws">
  9. <img src="https://img.shields.io/badge/Contact-@twostraws-95a5a6.svg?style=flat" alt="Twitter: @twostraws" />
  10. </a>
  11. </p>
  12. 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.
  13. Also available:
  14. - [SwiftData Pro](https://github.com/twostraws/SwiftData-Agent-Skill)
  15. - [Swift Concurrency Pro](https://github.com/twostraws/Swift-Concurrency-Agent-Skill)
  16. - [Swift Testing Pro](https://github.com/twostraws/Swift-Testing-Agent-Skill)
  17. Find more agent skills for Swift and Apple platform development at [Swift Agent Skills](https://github.com/twostraws/Swift-Agent-Skills).
  18. The skill builds upon my existing [AGENTS.md](https://github.com/twostraws/SwiftAgents) 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](https://agentskills.io/home) format, so it works smoothly with Claude Code, Codex, Gemini, Cursor, and more.
  19. ## Installing SwiftUI Pro
  20. You can install this skill into Claude Code, Codex, Gemini, Cursor, and more by using npx:
  21. ```bash
  22. npx skills add https://github.com/twostraws/swiftui-agent-skill --skill swiftui-pro
  23. ```
  24. 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:
  25. ```bash
  26. brew install node
  27. ```
  28. And if *that* fails it usually means you need to [install Homebrew](https://brew.sh) first.
  29. 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.
  30. Claude Code users can add the SwiftUI Agent Skill marketplace then install the plugin directly through Claude, like this:
  31. ```
  32. /plugin marketplace add twostraws/SwiftUI-Agent-Skill
  33. /plugin install swiftui-pro@swiftui-agent-skill
  34. ```
  35. Alternatively, you can clone this whole repository and install it however you want.
  36. If you’re using Xcode, watch the YouTube video on [How to Install and Use Agent Skills in Xcode](https://www.youtube.com/watch?v=nKVZBKoB6P4) for a walkthrough.
  37. ## Using SwiftUI Pro
  38. The skill is called SwiftUI Pro, and can be triggered in various ways. For example, in Claude Code you would use this:
  39. > /swiftui-pro
  40. And in Codex you would use this:
  41. > $swiftui-pro
  42. 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.
  43. You can also trigger the skill using natural language:
  44. > Use the SwiftUI Pro skill to look for performance problems in this project.
  45. ## Why Use an Agent Skill for SwiftUI?
  46. 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.
  47. 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](https://www.hackingwithswift.com/articles/282/swiftui-agent-skill-claude-codex-ai).
  48. ## Contributing
  49. I welcome all contributions, whether that's adding new checks, improving existing checks, or editing this README – everyone is welcome!
  50. - Keep your Markdown concise. There is a token cost to using skills, particularly with SKILL.md, so please respect the token budgets of users.
  51. - Do not repeat things that LLMs already know, because it burns tokens for no benefit. Focus on edge cases, surprises, soft deprecations, and similar.
  52. - All work must be licensed under the MIT license so it can benefit the most people.
  53. Please ensure you abide by the [Code of Conduct](CODE_OF_CONDUCT.md).
  54. ## License
  55. SwiftUI Pro was originally created by [Paul Hudson](https://twitter.com/twostraws), who writes [free Swift tutorials over at Hacking with Swift](https://www.hackingwithswift.com). It’s available under the [MIT License](LICENSE), which permits commercial use, modification, distribution, and private use.
  56. <p align="center">
  57. <a href="https://www.hackingwithswift.com/plus">
  58. <img src="https://www.hackingwithswift.com/img/hws-plus-banner@2x.jpg" alt="Hacking with Swift+ logo" style="max-width: 100%;" /></a>
  59. </p>
  60. <p align="center">&nbsp;</p>
  61. <p align="center">
  62. <a href="https://www.hackingwithswift.com"><img src="https://www.hackingwithswift.com/img/hws-button@2x.png" alt="Hacking with Swift logo" width="66" height="75" /></a><br />
  63. A Hacking with Swift Project
  64. </p>

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.