macos-build — Claude Code skill: what it does, how to install
Directs AI agents to compile native macOS apps using xcodebuild and diagnose build errors from the terminal.
npx skills add fayazara/macos-app-skills --skill macos-build -a claude-code
npx skills add fayazara/macos-app-skills --skill build -a claude-codeWhat macos-build does
This skill guides coding agents through locating .xcodeproj or .xcworkspace files and listing available build schemes. When invoked, the agent runs xcodebuild with Debug configuration targeting the macOS platform, filtering terminal output to highlight compilation errors and line numbers.
It also addresses toolchain issues such as unresolved Swift Package Manager dependencies and code signing settings. Guidance includes selecting alternate toolchains via DEVELOPER_DIR for beta SDKs. If Xcode or command-line developer tools are missing on the host, build commands will fail immediately.
What it helps with
- compile native macOS projects via command-line xcodebuild
- verify code changes compile without launch errors
- inspect available schemes inside xcodeproj and xcworkspace
- diagnose Swift compiler errors from filtered terminal logs
Example prompts for the agent
- Build the macOS app and check if it compiles
- Run xcodebuild to verify my recent code changes
- Fix build errors and run a debug build
How to install macos-build
1Skills CLI (Vercel)
npx skills add fayazara/macos-app-skills --skill macos-build -a claude-codenpx skills add fayazara/macos-app-skills --skill build -a claude-code2Manually: put the files in place
~/.claude/skills/build/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/build/
1Skills CLI (Vercel)
npx skills add fayazara/macos-app-skills --skill build -a codex2Manually: put the files in place
.agents/skills/build/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add fayazara/macos-app-skills --skill build -a cursor2Manually: put the files in place
.cursor/skills/build/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install fayazara/macos-app-skills build2Manually: put the files in place
.github/skills/build/SKILL.md1Skills CLI (Vercel)
npx skills add fayazara/macos-app-skills --skill build -a gemini-cli2Platform CLI
gemini skills install https://github.com/fayazara/macos-app-skills --path buildManually: put the files in place
.devin/skills/build/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add fayazara/macos-app-skills --skill build -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about macos-build
How to install macos-build in Claude Code?
Run npx skills add fayazara/macos-app-skills --skill macos-build -a claude-code in your terminal.
What does macos-build do?
It instructs agents how to locate Xcode projects, execute debug builds with xcodebuild, and isolate compilation issues.
How does it handle missing package dependencies?
It advises running xcodebuild -resolvePackageDependencies first to resolve SPM packages before building.