CL

claude-mobile-ios-testing

An automated testing strategy for iOS, combining React Native component testing with simulator-level management.

Install

mkdir -p .claude/skills/claude-mobile-ios-testing && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/263" && unzip -o skill.zip -d .claude/skills/claude-mobile-ios-testing && rm skill.zip

Installs to .claude/skills/claude-mobile-ios-testing

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Use when testing iOS apps on simulator, capturing screenshots for validation gates, automating UI testing with expo-mcp and xc-mcp, or verifying visual correctness - combines expo-mcp autonomous testing (React Native level) with xc-mcp simulator management (iOS level)
268 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Automate iOS simulator lifecycle with xc-mcp
  • Execute React Native UI tests via expo-mcp
  • Perform visual regression testing using AI analysis
  • Verify accessibility trees and element states
  • Run multi-device test suites on iOS simulators

How it works

The skill orchestrates a hybrid workflow where xc-mcp manages the iOS simulator lifecycle while expo-mcp handles React Native component interaction and visual verification.

Inputs & outputs

You give it
Test script defining simulator device and interaction sequence
You get back
Pass/fail report with visual validation and accessibility logs

When to use claude-mobile-ios-testing

  • Automating UI interaction in React Native apps
  • Managing iOS simulator lifecycle during testing
  • Performing automated visual regression tests

About this skill

iOS Testing Automation - expo-mcp + xc-mcp Hybrid

Overview

Autonomous iOS testing combining expo-mcp (React Native component testing) with xc-mcp (simulator management).

Core principle: expo-mcp for UI testing (testID-based). xc-mcp for simulator lifecycle. AI validates visually.

Announce at start: "I'm using the claude-mobile-ios-testing skill for autonomous iOS testing."

When to Use

  • Testing iOS app with visual verification (Gates 4A, 6A-E)
  • Capturing screenshots with AI analysis
  • Automating UI interactions by testID
  • Multi-device testing (iPhone SE, 14, Pro Max)
  • Verifying React Native components work correctly

Tool Selection Matrix

OperationToolWhy
Install packagesexpo-mcpCorrect Expo SDK versioning + usage docs
Search docsexpo-mcpNatural language Expo documentation search
Screenshotexpo-mcpautomation_take_screenshot (React Native level)
Find elementexpo-mcpautomation_find_view_by_testid (by testID prop)
Tap elementexpo-mcpautomation_tap_by_testid (by testID, React Native level)
Boot simulatorxc-mcpsimctl-boot (iOS simulator management)
Install .appxc-mcpsimctl-install (after xcodebuild)
Launch appxc-mcpsimctl-launch (iOS app lifecycle)
Low-level tapxc-mcpidb-ui-tap (when testID not available, use coordinates)
Accessibility treexc-mcpidb-ui-describe (iOS accessibility API)

Hybrid Workflow

1. Simulator Setup (xc-mcp)

// Boot iPhone simulator
mcp__xc-mcp__simctl-boot({
  deviceId: "iPhone 14",
  waitForBoot: true,
  openGui: true
});

2. Install and Launch (xc-mcp)

// Install .app bundle (after xcodebuild or expo run:ios)
mcp__xc-mcp__simctl-install({
  udid: "booted",
  appPath: "/Users/nick/Desktop/claude-mobile-expo/claude-code-mobile/ios/build/Build/Products/Debug-iphonesimulator/claudecodemobile.app"
});

// Launch app
mcp__xc-mcp__simctl-launch({
  udid: "booted",
  bundleId: "com.yourcompany.claudecodemobile"
});

3. Autonomous Testing (expo-mcp)

Requires: Metro running with EXPO_UNSTABLE_MCP_SERVER=1

Visual Verification:

"Take screenshot of Chat screen empty state"

AI analyzes screenshot:

  • ✅ Purple gradient background (#0f0c29→#302b63→#24243e)?
  • ✅ Input field visible?
  • ✅ Send button visible?
  • ✅ Colors match spec?

Element Verification:

"Find view with testID 'message-input' and verify it's accessible"

expo-mcp returns: {found: true, accessible: true, enabled: true}

Interaction Testing:

"Tap button with testID 'send-button'"

expo-mcp: Taps element successfully

Outcome Verification:

"Take screenshot and verify message appeared in chat"

AI analyzes: Message bubble visible ✅, correct styling ✅

4. Complete Test Cycle

// Test workflow for Chat screen
const tests = [
  "Take screenshot of Chat screen empty state, verify gradient background",
  "Find view with testID 'message-input'",
  "Tap view with testID 'message-input'",
  "Take screenshot and verify keyboard appeared",
  "Find view with testID 'settings-button'",
  "Tap button with testID 'settings-button'",
  "Take screenshot and verify Settings screen loaded",
];

for (const test of tests) {
  // AI executes test via expo-mcp prompt
  // AI analyzes result
  // AI determines pass/fail
}

testID Requirements

ALL interactive elements MUST have testID:

// ✅ CORRECT
<TouchableOpacity testID="send-button" onPress={handleSend}>
<TextInput testID="message-input" />
<Pressable testID="settings-button" onPress={openSettings}>
<FlatList testID="message-list" />

Why: expo-mcp automation_tap_by_testid and automation_find_view_by_testid require testID props

Multi-Device Testing

const devices = ["iPhone SE (3rd generation)", "iPhone 14", "iPhone 14 Pro Max"];

for (const device of devices) {
  // 1. Boot (xc-mcp)
  mcp__xc-mcp__simctl-boot({deviceId: device});
  
  // 2. Install and launch (xc-mcp)
  // ... (same as above)
  
  // 3. Test with expo-mcp
  "Take screenshot of Chat screen on ${device} and verify layout correct"
  
  // 4. AI verifies responsive layout
  
  // 5. Shutdown
  mcp__xc-mcp__simctl-shutdown({deviceId: "booted"});
}

Common Mistakes

MistakeReality
"Use npm install"WRONG. Use expo-mcp "Add package-name".
"Use xc-mcp screenshot"WRONG for RN testing. Use expo-mcp automation_take_screenshot.
"Tap by coordinates always"WRONG. Use expo-mcp automation_tap_by_testid with testID.
"Skip testID props"WRONG. Required for expo-mcp automation.
"Manual visual verification"WRONG. AI verifies screenshots autonomously.

Red Flags

  • "npm install is faster" → WRONG. expo-mcp provides correct versioning.
  • "xc-mcp screenshot is fine" → WRONG. expo-mcp works at React Native level.
  • "testIDs are optional" → WRONG. Required for autonomous testing.
  • "I'll verify manually" → WRONG. AI verifies via screenshot analysis.

All mean: Use expo-mcp for RN testing. Add testIDs. Let AI verify.

Integration

  • Use WITH: @claude-mobile-metro-manager (start Metro with MCP flag)
  • Use WITH: @claude-mobile-validation-gate (complete gate execution)
  • Provides to: Gate 4A, Gates 6A-E (visual validation)

When not to use it

  • Manual visual verification tasks
  • Testing non-React Native iOS applications
  • When testID props are missing from interactive elements

Prerequisites

Metro bundler with EXPO_UNSTABLE_MCP_SERVER=1Xcode installed for simulator managementInteractive elements must have testID props

Limitations

  • Requires testID props on all interactive elements
  • Cannot perform manual visual verification

How it compares

Unlike manual testing or standard automation, this skill uses AI to autonomously verify visual correctness and accessibility states during the test execution.

Compared to similar skills

claude-mobile-ios-testing side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
claude-mobile-ios-testing (this skill)189moNo flagsIntermediate
frontend-mobile-development-component-scaffold14moNo flagsIntermediate
react-native-architecture552moReviewAdvanced
react-native-design332moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

frontend-mobile-development-component-scaffold

sickn33

You are a React component architecture expert specializing in scaffolding production-ready, accessible, and performant components. Generate complete component implementations with TypeScript, tests, s

12

react-native-architecture

wshobson

Build production React Native apps with Expo, navigation, native modules, offline sync, and cross-platform patterns. Use when developing mobile apps, implementing native integrations, or architecting React Native projects.

55109

react-native-design

wshobson

Master React Native styling, navigation, and Reanimated animations for cross-platform mobile development. Use when building React Native apps, implementing navigation patterns, or creating performant animations.

3385

vercel-react-native-skills

vercel-labs

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

2156

agent-spec-mobile-react-native

ruvnet

Agent skill for spec-mobile-react-native - invoke with $agent-spec-mobile-react-native

547

heroui-native

heroui-inc

HeroUI Native component library for React Native (Tailwind v4 via Uniwind). Use when working with HeroUI Native components, installing HeroUI Native, customizing themes, or accessing component documentation. Keywords: HeroUI Native, heroui-native, React Native UI, Uniwind.

535

Search skills

Search the agent skills registry