XcodeBuildMCPdocs
Install

Agent Skills

Prime your agent with XcodeBuildMCP's conventions so it stops guessing flag names.

XcodeBuildMCP ships with two optional agent skills:

  • MCP Skill: how to call MCP tools. Optional when you're already using the MCP server, because Claude Code already receives equivalent guidance via server instructions.
  • CLI Skill: how to navigate the CLI. Recommended when your agent drives the terminal.

Install#

shell
xcodebuildmcp init

This auto-detects installed AI clients (Claude Code, Cursor, Codex) and installs the CLI skill into the right directory for each.

Options#

FlagDescription
--skill cliInstall the CLI skill (default).
--skill mcpInstall the MCP skill.
--client claudeInstall to Claude only. Other targets: cursor, codex.
--dest /path/to/dirInstall to a custom directory.
--forceOverwrite an existing skill.
--remove-conflictAuto-remove a conflicting variant (MCP vs CLI).
--uninstallRemove an installed skill.
--printPrint skill content to stdout instead of installing.
Claude Code + MCP skill

When installing --skill mcp in auto-detect mode, Claude Code targets are skipped: Claude already receives MCP guidance through server instructions. Pass --client claude explicitly to force install.

Unsupported clients#

For clients without a skills directory, print the skill and pipe it where you need it:

shell
xcodebuildmcp init --print --skill mcp > my-mcp-skill.md

Then paste it into your client's instructions area, or feed it as system prompt context.

Why skills#

The skills prime the agent with:

  • Tool names and their CLI equivalents
  • Session-defaults workflow (session_set_defaults first, then minimal calls)
  • Build-and-run as the preferred one-shot instead of separate build/install/launch
  • Structured next-step hints after each tool call

Agents without the skill still work; they just spend more tokens rediscovering conventions.