Claude Code plugin and companion skill for interacting with Xcode projects.
The preferred integration is the xhammer CLI — a standalone tool that communicates with Xcode without triggering a permission dialog on every new session. The Xcode MCP bridge (xcrun mcpbridge) is supported as a manual fallback.
# Install all skills
npx skills add 4rays/xhammer-skill
# Install specific skills
npx skills add 4rays/xhammer-skill --skill xhammer
# List available skills
npx skills add 4rays/xhammer-skill --listThis automatically installs to your .agents/skills/ directory (and symlinks into .claude/skills/ for Claude Code compatibility).
# Add the marketplace
/plugin marketplace add 4rays/xhammer-skill
# Install the plugin
/plugin install xhammer-skillOr load directly from a local path:
claude --plugin-dir /path/to/xhammer-skillgit clone https://github.com/4rays/xhammer-skill.git
cp -r xhammer-skill/skills/* .agents/skills/git submodule add https://github.com/4rays/xhammer-skill.git .agents/xhammer-skill- Fork this repository
- Customize skills for your needs
- Clone your fork into your projects
npx skillkit install 4rays/xhammer-skillbrew tap 4rays/tap
brew install xhammerOpen Xcode > Settings (⌘,) → Intelligence → Enable Xcode Tools under Model Context Protocol.
open MyApp.xcodeproj
# or
open MyApp.xcworkspaceClaude will automatically detect xhammer and use it for all Xcode tasks.
The skill uses the xhammer CLI via the Bash tool. The typical workflow:
# Get a tab ID first
xhammer list-windows
# Then use it in commands
xhammer build windowtab1
xhammer test windowtab1
xhammer build-log windowtab1| Category | Commands |
|---|---|
| Status | status, stop, restart |
| Discovery | list-windows, tools, tool-schema, call |
| Files | read, write, update, ls, glob, grep, mkdir, rm, mv |
| Build & Test | build, build-log, test, test-list, test-run, issues, refresh-issues |
| Advanced | exec, preview, docs |
Full reference: skills/xhammer/SKILL.md
If you prefer the MCP bridge over xhammer, set it up manually:
claude mcp add --transport stdio xcode -- xcrun mcpbridgeNote: this requires approving a permission dialog in Xcode at the start of every new Claude Code session.
- xhammer not found: Install with
brew tap 4rays/tap && brew install xhammer - No tab IDs: Ensure Xcode is running with a project open
- Xcode MCP not enabled: Go to Xcode > Settings > Intelligence > Model Context Protocol
- MCP permission denied: Revoke the process in Xcode Settings and reconnect to retrigger the dialog
MIT