build-run-debug
Skill by openai
Builds, runs, and debugs macOS apps with shell-first Xcode and Swift workflows. It sets up a project-local build script and a Codex Run button for developers working on macOS apps.
Install build-run-debug
Built from the published package, never by AI.
git clone --depth 1 https://github.com/openai/plugins /tmp/plugins && mkdir -p ~/.claude/skills && cp -r /tmp/plugins/plugins/build-macos-apps/skills/build-run-debug ~/.claude/skills/build-run-debugRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/openai/plugins /tmp/plugins && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/plugins/plugins/build-macos-apps/skills/build-run-debug ~/.gemini/antigravity-cli/skills/build-run-debugAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill builds, runs, and debugs macOS apps using shell-first Xcode and Swift workflows. It sets up one project-local script/build_and_run.sh entrypoint that stops the running app, builds the macOS target, and launches the fresh build. It also writes .codex/environments/environment.toml so the Codex app shows a Run button wired to that script.
The script uses xcodebuild for Xcode workspaces and projects, and swift build for SwiftPM projects. SwiftPM AppKit or SwiftUI GUI apps are staged into a .app bundle and opened with /usr/bin/open -n, while command-line tools are launched directly. Optional flags add lldb debugging, log streaming, telemetry verification, and a process check with pgrep. It is intended for developers who want a repeatable build and run path for macOS apps.
Written from the project's SKILL.md and checked against it.
What it can do
- Project discoveryFinds .xcworkspace, .xcodeproj and Package.swift files and lists Xcode schemes.
- Build and launch scriptCreates script/build_and_run.sh that stops the running app, builds it, and launches the result.
- Run button setupWrites .codex/environments/environment.toml so the Codex app shows a Run button.
- SwiftPM GUI bundlingStages AppKit or SwiftUI builds into dist/<AppName>.app and opens them with /usr/bin/open -n.
- Debugger flagThe --debug flag launches the app under lldb or attaches the debugger.
- Log and telemetry flagsThe --logs flag streams process logs and --telemetry streams unified logs for the app.
- Process verificationThe --verify flag confirms the process exists with pgrep -x <AppName>.
- Failure triageClassifies blockers as compiler, linker, signing, build settings, SDK, script bug, or runtime launch.
What you need
- macOS
- Xcode or a Swift toolchain (xcodebuild, swift build)
- git, for the git init step when no repo exists
- lldb, for the --debug flag
Try asking
- Set up a build_and_run.sh script and Run button for my macOS app.
- My SwiftUI SwiftPM app builds but no window appears. Help me debug it.
- Build my Xcode project with --verify and tell me if the process is running.
Good to know
- Does not cover simulators, touch interaction, or mobile workflows.
- Raw executable launch is not recommended for AppKit or SwiftUI GUI apps.
- Xcode-aware MCP tooling is used only when the user asks for it and it is available.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/build-macos-apps/skills/build-run-debug/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
agents/openai.yaml301 B -
references/run-button-bootstrap.md5 KB
Alternatives to build-run-debug
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
build-run-debug: common questions
Does this work with iOS simulators?
No. The source says not to assume simulators, touch interaction, or mobile-specific tooling, and not to describe mobile workflows as applying to macOS.
What should I do if my SwiftUI app launches but no window comes forward?
The skill says to check whether the entrypoint needs NSApp.setActivationPolicy(.regular) and NSApp.activate(ignoringOtherApps: true).
Does the skill change my app source code?
The run script is kept outside app source folders such as App/, Views/ and Models/, in script/build_and_run.sh instead.
How do I install build-run-debug?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is build-run-debug free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is build-run-debug safe to use?
It scores 86 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to build-run-debug?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
