test-xcode

test-xcode is a command for Claude Code from tajmahal226/compound-engineering-plugin. It costs 18 tokens per session (1,743 once invoked), scanned A, a copy of xcode-test, MIT.

An automated testing command for iOS and macOS apps using Xcode’s simulator, a virtual Apple device.

In plain words
What is it for?
Use it to build and install an app on a simulator, test key screens, capture screenshots and error logs, and support manual checks of external flows.
Why use it?
It checks whether an app builds, launches, and behaves correctly while collecting screenshots and console logs that help reveal problems.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool; mentions Claude Code.

Part of the compound-engineering plugin — 20 skills, 17 commands, 1 MCP server shipped together

Good fit Use it to build and install an app on a simulator, test key screens, capture screenshots and error logs, and support manual checks of external flows.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/tajmahal226/compound-engineering-plugin/test-xcode
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/tajmahal226/compound-engineering-plugin

Made for: Claude Code.

Or install compound-engineering, the plugin that ships this one along with the rest of its 20 skills, 17 commands, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test-xcode

README.md
[![agentmods](https://agentmods.dev/badge/commands/tajmahal226/compound-engineering-plugin/test-xcode/github.svg)](https://agentmods.dev/commands/tajmahal226/compound-engineering-plugin/test-xcode)
Your own site
<a href="https://agentmods.dev/commands/tajmahal226/compound-engineering-plugin/test-xcode"><img src="https://agentmods.dev/badge/commands/tajmahal226/compound-engineering-plugin/test-xcode/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for test-xcode

Your own site · 80×15
<a href="https://agentmods.dev/commands/tajmahal226/compound-engineering-plugin/test-xcode"><img src="https://agentmods.dev/badge/commands/tajmahal226/compound-engineering-plugin/test-xcode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,743 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.01743
Opus 5.5 $0.00007 $0.00697
Sonnet 5.5 $0.00004 $0.00349
Haiku 4.5 $0.00002 $0.00174

Measured 1mo ago against content hash 1c6abb5d178e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

test-xcode scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

97% identical to xcode-test — 7 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/compound-engineering/commands/test-xcode.md · 333 lines

How it starts

The opening of the file, as written. The whole thing — 333 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Xcode Test Command

<command_purpose>Build, install, and test iOS apps on the simulator using XcodeBuildMCP. Captures screenshots, logs, and verifies app behavior.</command_purpose>

Introduction

iOS QA Engineer specializing in simulator-based testing

This command tests iOS/macOS apps by:

  • Building for simulator
  • Installing and launching the app
  • Taking screenshots of key screens
  • Capturing console logs for errors
  • Supporting human verification for external flows

Prerequisites

Main Tasks

0. Verify XcodeBuildMCP is Installed

<check_mcp_installed>

First, check if XcodeBuildMCP tools are available.

Try calling:

mcp__xcodebuildmcp__list_simulators({})

If the tool is not found or errors:

Tell the user:

**XcodeBuildMCP not installed**

Please install the XcodeBuildMCP server first:

\`\`\`bash
claude mcp add XcodeBuildMCP -- npx xcodebuildmcp@latest
\`\`\`

Then restart Claude Code and run `/xcode-test` again.

Do NOT proceed until XcodeBuildMCP is confirmed working.

</check_mcp_installed>

1. Discover Project and Scheme

<discover_project>

Find available projects:

mcp__xcodebuildmcp__discover_projs({})

List schemes for the project:

mcp__xcodebuildmcp__list_schemes({ project_path: "/path/to/Project.xcodeproj" })

If argument provided:

  • Use the specified scheme name
  • Or "current" to use the default/last-used scheme

</discover_project>

2. Boot Simulator

<boot_simulator>

List available simulators:

mcp__xcodebuildmcp__list_simulators({})

Boot preferred simulator (iPhone 15 Pro recommended):

mcp__xcodebuildmcp__boot_simulator({ simulator_id: "[uuid]" })

Wait for simulator to be ready: Check simulator state before proceeding with installation.

</boot_simulator>

Read the full file on GitHub · 333 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 333 lines · 18 tokens per session scan A 1c6abb5d178e

Subscribe to this mod's changes

test-xcode is a command published in the GitHub repository tajmahal226/compound-engineering-plugin (4 stars, last pushed 7mo ago), licensed MIT. It adds 18 tokens to every session and 1,743 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 97% identical to xcode-test, differing in 7 lines, and is treated as a copy.