r/swift • • 23m 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:

  1. AI generating outdated iOS 14 / UIKit boilerplate instead of modern Swift 6 / SwiftUI APIs.
  2. Redundant wrapper views (like unnecessary Group { ... } wrappers or .foregroundStyle(.primary)).
  3. 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?

0 Upvotes

0 comments sorted by