name: build description: Build the project
Build project
Preferred — Xcode MCP (xcode), when running inside Xcode. It returns a small
structured result, so call it directly (no subagent needed):
- Get the workspace
tabIdentifierfrommcp__xcode__XcodeListWindows. - Run
mcp__xcode__BuildProjectwith thattabIdentifier. - On failure, call
mcp__xcode__GetBuildLogwith the sametabIdentifierandseverity: "error"to list the errors.
Fallback — make, when the MCP isn't available. Delegate to a Haiku subagent
(Agent tool, subagent_type: general-purpose, model: haiku) so the verbose output
stays out of your context. Do not run it yourself. Prompt the subagent to:
Run `mkdir -p .build && make build > .build/last-build.log 2>&1`, check the exit
status, and report ONLY:
- Status: succeeded or failed
- Error and warning counts
- Each error/warning as `file:line — message` (omit if none; warnings are errors)
- On failure, the log path `.build/last-build.log`
Do not paste raw logs or successful-compilation output.
After fixing any issues, re-invoke this skill to re-check.