agent-native-audit
Run comprehensive agent-native architecture review with scored principles
Build and test iOS apps on simulator using XcodeBuildMCP
$ npx -y skills add davekilleen/Dex --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/xcode-testContext preview
What this command does when you run it.
Build and test iOS apps on simulator using XcodeBuildMCP
name: xcode-test description: Build and test iOS apps on simulator using XcodeBuildMCP argument-hint: "[scheme name or 'current' to use default]"
<command_purpose>Build, install, and test iOS apps on the simulator using XcodeBuildMCP. Captures screenshots, logs, and verifies app behavior.</command_purpose>
<role>iOS QA Engineer specializing in simulator-based testing</role>
This command tests iOS/macOS apps by:
<requirements>
</requirements>
<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>
<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:**
</discover_project>
<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>
<build_app>
**Build for iOS Simulator:**
mcp__xcodebuildmcp__build_ios_sim_app({
project_path: "/path/to/Project.xcodeproj",
scheme: "[scheme_name]"
})**Handle build failures:**
**On success:**
</build_app>
<install_launch>
**Install app on simulator:**
mcp__xcodebuildmcp__install_app_on_simulator({
app_path: "/path/to/built/App.app",
simulator_id: "[uuid]"
})**Launch the app:**
mcp__xcodebuildmcp__launch_app_on_simulator({
bundle_id: "[app.bundle.id]",
simulator_id: "[uuid]"
})**Start capturing logs:**
mcp__xcodebuildmcp__capture_sim_logs({
simulator_id: "[uuid]",
bundle_id: "[app.bundle.id]"
})</install_launch>
<test_screens>
For each key screen in the app:
**Take screenshot:**
mcp__xcodebuildmcp__take_screenshot({
simulator_id: "[uuid]",
filename: "screen-[name].png"
})**Review screenshot for:**
**Check logs for errors:**
mcp__xcodebuildmcp__get_sim_logs({ simulator_id: "[uuid]" })Look for:
</test_screens>
<human_verification>
Pause for human input when testing touches:
| Flow Type | What to Ask | |-----------|-------------| | Sign in with Apple | "Please complete Sign in with Apple on the simulator" | | Push notifications | "Send a test push and confirm it appears" | | In-app purchases | "Complete a sandbox purchase" | | Camera/Photos | "Grant permissions and verify camera works" | | Location | "Allow location access and verify map updates" |
Use AskUserQuestion:
**Human Verification Needed** This test requires [flow type]. Please: 1. [Action to take on simulator] 2. [What to verify] Did it work correctly? 1. Yes - continue testing 2. No - describe the issue
</human_verification>
<failure_handling>
When a test fails:
1. **Document the failure:**
2. **Ask user how to proceed:**
**Test Failed: [screen/feature]** Issue: [description] Logs: [relevant error messages] How to proceed? 1. Fix now - I'll help debug and fix 2. Create todo - Add to todos/ for later 3. Skip - Continue testing other screens
3. **If "Fix now":**
4. **If "Create todo":**
</failure_handling>
<test_summary>
After all tests complete, present summary:
## ๐ฑ Xcode Test Results **Project:** [project name] **Scheme:** [scheme name] **Simulator:** [simulator name] ### Build: โ Success / โ Failed ### Screens Tested: [count] | Screen | Status | Notes | |--------|--------|-------| | Launch | โ Pass | | | Home | โ Pass | | | Settings | โ Fail | Crash on tap | | Profile | โญ๏ธ Skip | Requires login | ### Console Errors: [count] - [List any errors found] ### Human Verifications: [count] - Sign in with Apple: โ Confirmed - Push notifications: โ Confirmed ### Failures: [count] - Settings screen - crash on navigation ### Created Todos: [count] - `006-pending-p1-xcode-settings-crash.md` ### Result: [PASS / FAIL / PARTIAL]
</test_summary>
<cleanup>
After testing:
**Stop log capture:**
mcp__xcodebuildmcp__stop_log_capture({ simulator_idA personal operating system for your work. Strategic work management, meeting intelligence, relationship tracking, daily planning โ all configured for your specific role.
Repo: davekilleen/Dex
Run comprehensive agent-native architecture review with scored principles
Create or edit Claude Code skills with expert guidance on structure and best practices
Enhance a plan with parallel research agents for each section to add depth, best practices, and implementation details
Record a video walkthrough of a feature and add it to the PR description