r/swift • u/Oxnull-shubh • 5h ago
I built an open-source GitHub Action that implements issues & opens tested PRs using modern Swift 6 & Xcode 27 rules
Hey everyone,
Like many of you, I've tried using AI coding assistants on iOS projects, but was constantly frustrated by:
- AI generating outdated iOS 14 / UIKit boilerplate instead of modern Swift 6 / SwiftUI APIs.
- Redundant wrapper views (like unnecessary
Group { ... }wrappers or.foregroundStyle(.primary)). - AI making an edit, breaking the build, and giving up.
I built PR Forge (pr-forge-ai), an open-source agent that runs in GitHub Actions or your local terminal.
When you comment /forge on an issue: • It detects the project type (SwiftPM or Xcode .xcodeproj). • Applies progressive skills: u/State macro rules, .glassEffect(), WebView/WebPage in SwiftUI, InlineArray, and functional Swift idioms. • Runs swift test or xcodebuild. • Self-audits every checkbox in your issue PRD. • Pushes a commit under PR Forge Bot and opens a PR.
We tested it end-to-end on a live macOS Swift project (Spreading Aroma), where it autonomously built a node statistics counter, code optimizer, and unit test suites that passed CI and merged cleanly.
Repo: https://github.com/shubhransh-gupta/pr-forge
What are the most annoying Swift/Xcode boilerplate patterns you'd want an autonomous agent to automate?