fupio

Fupio はオンラインで共有する最も簡単な方法です 詳しく見る »

Fupio に参加
Hacking with Swift

Hacking with Swift

If you’re writing SwiftUI with AI coding agents like Claude Code, Codex, or Gemini, I’ve written an open-source SwiftUI agent skill that helps identify and fix common mistakes they make when writing SwiftUI – things like modern API usage, performance, accessibility, and more.
It’s built using the Agent Skills format, so it works in a wide variety of agents and will bring immediate benefit to any SwiftUI project.
Even better, most people can install it with just one command:
npx skills add https://github.com/twostraws/swiftui-agent-skill --skill swiftui-pro
For more information about installing and using agent skills in Xcode, check out my YouTube video: Agent Skills in Xcode - Build better SwiftUI apps with AI agents.
Update: I've released several more agent skills, covering SwiftUI, SwiftData, Swift Concurrency, and Swift Testing. You can find them all in a new repository: Swift Agent Skills.

Why I made this skill

I’ve been working with SwiftUI since June 2019, and as it evolved over time I started to see people adopt some coding patterns that were less than ideal – they sometimes made buttons invisible to VoiceOver, they used deprecated API without realizing, and they would accidentally write code that caused performance problems.
In the past I’ve run workshops helping folks identify this kind of code and get it resolved, culminating in my famous “Kobayashi Maru” workshop. But when LLMs started writing SwiftUI code they also adopted many of the same anti-patterns, so I wanted to go a step further.
Recently I wrote an article about the biggest problems in AI-generated Swift code, and also converted it to an AGENTS.md file that quietly helps make ...
https://www.hackingwithswift.com/articles/282/swiftui-agent-skill-claude-codex-ai

Comments