SwiftAgents
An AGENTS.md file for Swift and SwiftUI projects.
Install / Use
/learn @twostraws/SwiftAgentsREADME
SwiftAgents
This repository contains an AGENTS.md file aimed at Swift and SwiftUI developers using LLMs with their projects. It’s designed to avoid a number of common problems in AI-generated Swift code, based on the original list in this article.
The rules very strongly focus on using new API, targeting iOS 26 and later. If you need to support older versions of iOS or other Apple platforms, you’ll need to adjust the rules a little.
Contributions are welcome – please open PRs as needed.
View on GitHub80/100
Security Score
Audited on Mar 24, 2026
No findings
