Authors, validates, and executes Maestro E2E test flows for iOS Simulators, Android, and Web. Covers YAML flow authoring, MCP-driven interactive testing, offline syntax checks, and CI suite management.
Ships in use-sentry. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Author, validate, execute, and diagnose E2E tests with Maestro across iOS Simulators (macOS host or Maestro Cloud), Android emulators or physical devices (Linux, macOS, Windows), and Web (Chromium, Beta). This skill owns declarative YAML flow authoring, single interactive actions through Maestro's MCP server, offline syntax checks, local and cloud/SSH execution, artifact retrieval, failure diagnosis, and growing a reusable suite over time. It does not own building the app binary, Maestro Cloud billing, or backend test fixtures.
Facts here were verified against the Maestro 2.11.0 source (latest release, 2026-09-29) and docs.maestro.dev. If maestro --version differs, re-check the version-sensitive rules.
maestro mcp) from Claude Code, Cursor, Codex, or Gemini CLImaestro hierarchy or MCP inspect_screenmaestro check-syntax (or automatically inside MCP run)Physical iOS devices are not yet supportedtest-by-mcpc-cli); this skill drives Maestro's own maestro mcp servermaestro --version. Install if missing: curl -fsSL "https://get.maestro.mobile.dev" | bash (needs java, unzip, curl). Latest is 2.11.0. Java 17+ is required (17 or 21 recommended); $JAVA_HOME is optional because the launcher falls back to java on PATH.maestro --help, maestro test --help, maestro cloud --help, maestro hierarchy --help, maestro start-device --help, maestro list-devices --help. maestro check-syntax takes only <file> or -; maestro mcp takes --no-viewer, --viewer-port=<port>, --working-dir=<dir> and has no --help.maestro studio only prints a download URL). Terminal inspection uses maestro hierarchy (JSON, or --compact CSV); agents use MCP inspect_screen; maestro test -c re-runs one flow on save.https://docs.maestro.dev/llms.txt is the docs index and every docs page has a .md variant. MCP: https://maestro.dev/mcp.| Need | Linux host | macOS host | Maestro Cloud |
|---|---|---|---|
| Android emulator / device | Yes (KVM + x86_64 image, headless) | Yes | Yes (APK with arm64-v8a) |
| Web (Chromium, Beta) | Yes | Yes | n/a |
| iOS Simulator | No | Yes (full Xcode) | Yes (simulator .app, zipped) |
| Physical iPhone | No | No (2.11.0) | No |
iOS needed while authoring on Linux:
maestro cloud --app-file app.zip --flows .maestro/flows (or MCP run_on_cloud). Needs a Cloud plan/trial plus maestro login or MAESTRO_CLOUD_API_KEY. The simulator .app must be built on a Mac or a cloud builder; .ipa and device builds are rejected.macos-* runner, EC2 Mac): run the Maestro CLI there, typically over SSH. This SSH recipe is this skill's own construction, not a documented Maestro mode.On a Linux agent host the cleanest iOS setup is a maestro-ios MCP server whose command is ssh <mac> ... maestro mcp (verified), with Metro on Linux tunnelled to the Mac's localhost:8081. Read iOS over SSH for the route details and Android and Local iOS for the Linux headless emulator setup.
| # | Rule | Why |
|---|---|---|
| 1 | Single actions go through MCP run with inline YAML | Since 2.5.0 the granular tools (tap_on, input_text, ...) are gone; run takes { "device_id": "...", "yaml": "appId: com.example.app\n---\n- tapOn: \"Log In\"" } and validates syntax first. Inline YAML must carry the appId: header and ---; a bare command list fails with Config Section Required (verified on 2.11.0, despite the tool description showing a bare example). |
| 2 | Boot the device before any MCP call | No MCP tool boots a device. list_devices also lists launchable devices; use only entries with connected: true. |
| 3 | Never plan local iOS on Linux | iOS Simulators need macOS + Xcode (xcrun simctl, xcodebuild). Route to Maestro Cloud or a Mac. |
| 4 | Export the toolchain explicitly in non-interactive shells | SSH, agent shells, and MCP clients skip profile files. Set JAVA_HOME to a 17+ JDK and put ~/.maestro/bin on PATH. On a Mac also check xcode-select -p points at full Xcode. |
| 5 | Always pass --device <id> when more than one device is attached | maestro test silently uses the first connected device; maestro hierarchy errors with Multiple devices connected. Get ids from adb devices or xcrun simctl list devices booted --json. |
| 6 | Every flow file, including subflows, starts with an appId: (or url:) header and --- | runFlow rejects a file without it (Config Section Required), yet maestro check-syntax passes it, so a green syntax check is not proof for subflows. |
| 7 | Parameterize subflows with runFlow.env | env bindings are scoped per runFlow/runScript, but the JS output object is global across the whole flow. Namespace output keys. A plain header env: value beats -e; write KEY: ${KEY || "default"} to allow overrides. |
| 8 | Hierarchy-backed selectors | Inspect maestro hierarchy or inspect_screen first. text: is a full-string, case-insensitive regex (.*Log In.* for partial copy). Never put start:/end: in element selectors (rejected since 2.11.0). |
| 9 | Pick the reset strategy by build type | Standalone/EAS builds: launchApp with clearState/clearKeychain (iOS; this wipes the whole simulator keychain). Expo Go cannot use launchApp with a custom appId; Expo Dev Client builds launch normally and then need the dev server entered (see Expo and State). |
| 10 | Preserve exit status and the full artifact tree | Keep both --test-output-dir and the report (--output, default report.xml in the cwd). Never convert a test failure into success. |
maestro mcp)Maestro embeds an MCP server over STDIO exposing 10 tools: list_devices, inspect_screen, take_screenshot, run, cheat_sheet, open_maestro_viewer, list_cloud_devices, run_on_cloud, get_cloud_run_status, describe_cloud_run. Exact parameters are in CLI and Artifacts.
https://maestro.dev/mcp)claude mcp add maestro -- maestro mcpcodex mcp add maestro -- maestro mcpgemini mcp add -s user maestro maestro mcp (default scope is project, which writes .gemini/settings.json in the cwd)~/.cursor/mcp.json or .cursor/mcp.json:
{ "mcpServers": { "maestro": { "command": "maestro", "args": ["mcp"], "env": { "JAVA_HOME": "/path/to/java17+" } } } }
~/.gemini/config/mcp_config.json) and Windsurf (~/.config/devin/mcp_config.json) use their own config files; see the reference."--working-dir", "<repo>" to args so relative files/dir arguments resolve against the repository.list_devices and take a device_id with connected: true (e.g. emulator-5554, a simulator UDID, or chromium).inspect_screen (compact ui_schema + elements). Copy txt into text: or rid into id:; a11y is not a selector key.run with one command or a short chain. Inline YAML must start with the appId: header and --- (a bare - tapOn: list is rejected with Config Section Required). Add - launchApp only when the app is not already open; omit it to act on the screen that is showing.
{ "device_id": "emulator-5554", "yaml": "appId: com.example.app\n---\n- tapOn: \"Sign In\"" }
{ "device_id": "emulator-5554", "yaml": "appId: com.example.app\n---\n- tapOn:\n id: \"email_input\"\n- inputText: \"[email protected]\"\n- hideKeyboard\n- tapOn: \"Continue\"" }
The result is JSON (success, commands_executed); isError means the step failed.inspect_screen again, or take_screenshot (JPEG, max 2000 px).open_maestro_viewer returns a local viewer URL. Give it to the user; do not open a browser yourself.cheat_sheet before using an unfamiliar command.┌─────────────────────────────────────────────────────────────────────────────┐
│ Host Machine (Agent / CI) │
└──────────────────────────────────────┬──────────────────────────────────────┘
┌──────────────────────────┴──────────────────────────┐
▼ ▼
[macOS Workstation] [Linux Host]
• Android emulators / devices (ADB) • Android emulators (KVM, headless) / devices
• iOS Simulators (full Xcode) • Web (Chromium)
• Web (Chromium) ───────────────────────────────
iOS Simulators CANNOT run here:
1. Maestro Cloud:
maestro cloud --app-file app.zip --flows .maestro/flows
2. A Mac you control (e.g. over SSH):
run the Maestro CLI there
Maestro reads config.yaml only from the directory you pass to maestro test, and its default flows glob is top-level only. Run the whole workspace as maestro test .maestro and list the flows explicitly:
.maestro/
├── config.yaml # flows glob, includeTags/excludeTags, executionOrder
├── flows/ # entry flows (each is a test)
│ ├── 01-auth-smoke.yaml
│ └── 02-checkout.yaml
├── subflows/ # reusable blocks (not run directly)
│ ├── login-user.yaml
│ └── clear-cart.yaml
└── scripts/
└── generate-test-data.js
# .maestro/config.yaml
flows:
- "flows/*"
excludeTags:
- flaky
subflows/login-user.yaml)Subflows need their own header. Required inputs come from the caller; do not bake credentials into the file.
appId: com.example.shop
env:
USER_EMAIL: ${USER_EMAIL || "[email protected]"}
---
- tapOn:
id: "login_email_input"
- inputText: ${USER_EMAIL}
- tapOn:
id: "login_password_input"
- inputText: ${USER_PASSWORD} # supplied with -e USER_PASSWORD=... or a CI secret
- hideKeyboard
- tapOn: "Sign In"
- assertVisible: "Dashboard"
flows/02-checkout.yaml)appId: com.example.shop
tags:
- smoke
- checkout
env:
CHECKOUT_ITEM: "Wireless Headphones"
onFlowStart:
- launchApp:
clearState: true
clearKeychain: true
- runFlow:
file: ../subflows/login-user.yaml
env:
USER_EMAIL: "[email protected]"
USER_PASSWORD: ${USER_PASSWORD}
onFlowComplete:
- runFlow: ../subflows/clear-cart.yaml
---
- tapOn: ${CHECKOUT_ITEM}
- tapOn: "Add to Cart"
- tapOn: "Cart"
- assertVisible: ${CHECKOUT_ITEM}
- tapOn: "Proceed to Checkout"
- assertVisible: "Order Confirmation"
- takeScreenshot: checkout_success # saved under <flow artifact dir>/takeScreenshot/checkout_success.png
Run: maestro test .maestro -e USER_PASSWORD="$USER_PASSWORD" --test-output-dir artifacts.
- runFlow:
when:
platform: iOS
commands:
- tapOn:
text: "Allow While Using App"
optional: true
- runFlow:
when:
platform: Android
commands:
- tapOn:
text: "While using the app"
optional: true
Prefer pre-granting permissions with launchApp.permissions (allow/deny work on both platforms; always/inuse/never are iOS only and silently revoke on Android).
list_devices → inspect_screen → run one step at a time.flows/NN-name.yaml with appId, tags, and ---. Re-run the whole file with run (files) or maestro test.subflows/, parameterized by env. Keep one concern per subflow.smoke, pr-gate) and a feature tag. Tags are OR-combined; there is no AND.id, add extendedWaitUntil/waitForAnimationToEnd where the hierarchy lags, and use retry sparingly (cap 3). Move a still-unstable flow to the flaky tag and exclude it from the gating run instead of retrying blindly.maestro check-syntax each file, then maestro test .maestro locally, then wire the same command into CI (see Suites and CI).inputRandom* commands or runScript helpers rather than fixed personal data.| Task Intent | Read First |
|---|---|
| CLI flags, MCP tool parameters, artifact layout, hierarchy | CLI and Artifacts |
| Flow YAML commands, selectors, platform limits | Flows and Selectors |
| iOS from a Linux authoring host (Cloud or a Mac over SSH) | iOS over SSH |
| Android emulators, Linux headless setup, local iOS Simulator, Web | Android and Local iOS |
| JavaScript, HTTP helper, dynamic test data | GraalJS Scripting |
| Missing elements, keyboard races, animations, scrolling | Mobile Flakiness |
| Expo Dev Client, Keychain tokens, auth resets | Expo and State |
| Tags, config.yaml, sharding, GitHub Actions, report gates | Suites and CI |
# .maestro/smoke.yaml
appId: com.example.demo
---
- launchApp:
clearState: true
- assertVisible: "Welcome"
- tapOn:
id: "email_input"
- inputText: "[email protected]"
- hideKeyboard
- tapOn: "Continue"
- assertVisible: "Dashboard"
- takeScreenshot: dashboard_loaded
maestro check-syntax .maestro/smoke.yaml
mkdir -p artifacts
maestro --device "$DEVICE_ID" test .maestro/smoke.yaml \
--test-output-dir artifacts \
--format JUNIT \
--output artifacts/report.xml
Exit code 0 means every step passed. Artifacts: artifacts/<timestamp>/<flow>/ holds manifest.json (artifact index), commands.json, logs, the failing-step screenshot, and takeScreenshot/ output; the JUnit report is at artifacts/report.xml.
maestro --version, java -version, and the runtime (adb devices, xcrun simctl list devices booted --json, or --platform=web).--device <id> when more than one is attached.list_devices → inspect_screen → run.maestro check-syntax <flow> (MCP run validates automatically).maestro test with --test-output-dir and --format JUNIT --output <path>; on Linux with iOS needed, maestro cloud or the Mac route.maestro hierarchy or inspect_screen; read commands.json and the failing screenshot.Every test execution report states:
android, ios, web), and resolved device id/name-e or CI secrets.maestro cloud exits non-zero on failed flows; with --async it exits 0 immediately, so poll get_cloud_run_status before claiming success.assertWithAI, assertNoDefectsWithAI, extractTextWithAI) are experimental, need a Maestro Cloud login, and default to optional: true (they do not fail the run) unless set to optional: false.agents/openai.yaml (opens in a new tab)references/commands/cli-and-artifacts.md (opens in a new tab)references/commands/flows-and-selectors.md (opens in a new tab)references/guides/android-and-local-ios.md (opens in a new tab)references/guides/graaljs.md (opens in a new tab)references/guides/ios-over-ssh.md (opens in a new tab)references/patterns/suites-and-ci.md (opens in a new tab)references/troubleshooting/expo-and-state.md (opens in a new tab)references/troubleshooting/mobile-flakiness.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
maestro, e2e-testing, mobile-testing, web-testing, test-automation
/yigitkonur-use-sentry:test-by-maestrofrom use-sentry
Generated from the plugin's indexed repository (yigitkonur/skills-by-yigitkonur) — no native marketplace selected
npx claudepluginhub p/yigitkonur-use-sentry31 skills in this plugin
/audit-agentic-cliUse if auditing or designing a CLI for agent/LLM use — JSON output, exit codes, non-interactive./audit-agentic-mcpUse if auditing or designing an MCP server for agent-readiness — framework, security, context./audit-completionUse if verifying claimed-done work or auditing session/plan/branch completion with evidence./audit-skill-by-derailmentUse if testing a skill with an agent execution trace; never for ordinary code, PR, or workflow review./audit-ui-uxUse if auditing web or mobile UI/UX via vision-first screenshot evaluation across design precision, usability heuristics, and cognitive laws./build-chrome-extensionUse if building or debugging a Chrome MV3 extension — manifest v3, service_worker, content_scripts.Other plugins' skills for the same job