xhammer

Automates common Xcode workflows including builds, edits, and searches via CLI.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/4rays/xhammer-skill --skill xhammer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xhammer
Source: https://github.com/4rays/xhammer-skill/tree/main/skills/xhammer
Command: npx skills add https://github.com/4rays/xhammer-skill --skill xhammer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

xhammer enables AI agents to interact with Xcode projects, automating builds, tests, file access, and code navigation without triggering per-session permission dialogs when using the xhammer CLI.

Core Features & Use Cases

  • Automates common Xcode workflows: build, test, read/write files, search code, and render SwiftUI previews using xhammer.
  • Provides guidance and fallback options for enabling MCP bridge when CLI access is insufficient for a project.
  • Use Case: A developer asks the agent to run a full build and fetch the latest test results for a given workspace.

Quick Start

Install the xhammer CLI and enable your agent to manage Xcode tasks from the command line.

Frequently Asked Questions about xhammer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Xcode builds and tests from an AI assistant?

You can automate Xcode builds and tests by orchestrating xhammer CLI commands through your AI assistant, which executes build workflows and fetches test results without requiring manual permission dialogs per session.

What is the best way to run SwiftUI previews automatically during AI-assisted development?

The best way to render SwiftUI previews automatically is by using xhammer to orchestrate preview generation, allowing your AI agent to trigger and view SwiftUI interface states directly from the command line.

Does Xcode need to be running for AI agents to read and write project files?

Yes, Xcode must be running with a project open for xhammer to execute file operations, search code, and manage builds, with an optional MCP bridge available for environments lacking CLI-only access support.

Can I use xhammer to search code across an entire Xcode workspace?

Yes, xhammer enables AI agents to perform code search and navigation across open Xcode workspaces, automating file access and reading operations through the CLI without triggering session permission interruptions.

Why does my AI agent need an MCP bridge for Xcode project automation?

An MCP bridge is needed when your environment does not support CLI-only access, providing a fallback configuration that allows the AI agent to interact with Xcode tasks when direct xhammer CLI execution is insufficient.