What problem does it solve?
macOS projects lack a consistent, repeatable way to stop the running app, rebuild it, and relaunch the fresh binary, forcing developers to juggle Xcode, SwiftPM, and manual process management.
Core Features & Use Cases
- Automatic project detection: Detects whether the repo uses an Xcode workspace, Xcode project, or SwiftPM package and adapts the build flow accordingly.
- Canonical build script generation: Creates or updates
script/build_and_run.sh so it always kills the current app, builds the macOS target, and launches the result, with optional --debug, --logs, --telemetry, and --verify modes.
- GUI app handling: For AppKit/SwiftUI SwiftPM apps, builds a project-local
.app bundle and launches it with /usr/bin/open -n instead of raw executable launch.
- Use Case: After cloning a SwiftUI menu bar app, invoke the skill once to generate the build script, then rebuild and relaunch the app after every code change with a single command.
Quick Start
Run /build-and-run-macos-app to generate the build script and launch my macOS app in run mode.