maestro
БесплатноБез исполняемых скриптовНе проверенMaestro is an open-source UI testing framework that drives Android, iOS and web apps from short YAML flows (launchApp, tapOn, assertVisible). Use when the…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Maestro
Overview
Maestro tests an app the way a user sees it: it reads the screen through the platform accessibility layer and taps, types and scrolls by text or id. Flows are plain YAML interpreted at run time (no compile step), the same syntax covers React Native, Flutter, native Android/iOS and web, and built-in waiting removes most manual sleep calls. Checked against CLI 2.11.0 (29 September 2026).
Pieces to know: the open-source CLI (maestro test, maestro mcp), Maestro Studio (a free desktop app for building flows visually; the old maestro studio command was removed from the CLI in 2.6), Maestro Viewer, and Maestro Cloud (paid parallel runs on hosted devices).
Instructions
Install
Maestro needs Java 17+ (java -version, and JAVA_HOME must point to it).
# macOS
brew tap mobile-dev-inc/tap
brew install mobile-dev-inc/tap/maestro
# Linux / CI: download the release zip and check it against the published checksum
curl -fsSLO https://github.com/mobile-dev-inc/maestro/releases/download/cli-2.11.0/maestro.zip
curl -fsSL https://github.com/mobile-dev-inc/maestro/releases/download/cli-2.11.0/checksums_sha256.txt | sha256sum -c -
unzip -q maestro.zip -d "$HOME/.maestro-cli"
export PATH="$HOME/.maestro-cli/maestro/bin:$PATH"
maestro --version
The docs also show an install script (curl ... get.maestro.mobile.dev | bash); prefer the package manager or the checksum-verified zip above. On Windows, unzip maestro.zip and add its bin folder to PATH.
Devices
maestro list-devices # emulators/simulators and connected devices
maestro start-device --platform android # create and boot a default emulator
maestro start-device --platform ios --device-os iOS-18-2
maestro --device emulator-5554 test flows/login.yaml # pick one device explicitly
A basic flow
The header holds appId (Android package or iOS bundle id; for web use url: instead). Everything after --- is a command list.
# flows/login.yaml
appId: com.brightbasket.shop
env:
EMAIL: ${EMAIL || "[email protected]"}
---
- launchApp:
clearState: true
- tapOn: "Email"
- inputText: ${EMAIL}
- tapOn: "Password"
- inputText: ${PASSWORD}
- tapOn: "Log In"
- assertVisible: "Welcome back"
Pass values with -e or export shell variables prefixed MAESTRO_ (CLI only). Parameters arrive as strings; env: in the flow defines constants and defaults.
maestro test -e PASSWORD="$QA_PASSWORD" flows/login.yaml
Scrolling, conditions and sub-flows
# flows/checkout.yaml
appId: com.brightbasket.shop
---
- launchApp
- runFlow: # dismiss a popup only if it shows up
when:
visible: "Allow Notifications"
commands:
- tapOn: "Not Now"
- runFlow:
when:
platform: Android
file: subflows/android-permissions.yaml
- tapOn: "Electronics"
- scrollUntilVisible:
element: "Wireless Headphones"
direction: DOWN
timeout: 20000
- tapOn: "Wireless Headphones"
- tapOn: "Add to Cart"
- assertVisible: "Added to cart"
- takeScreenshot: cart-added
Other useful commands: assertNotVisible, extendedWaitUntil (custom timeout), retry, repeat, swipe, back, hideKeyboard, openLink, setPermissions, runScript/evalScript (JavaScript), startRecording. Selectors accept text, id, index, point, relational (below, childOf) and state (enabled, checked) matchers; prefer id (accessibility identifier) when text is ambiguous or localized.
Running suites and reports
maestro test flows/ # every flow in a folder
maestro test --include-tags=smoke flows/ # tags are set in each flow header
maestro test --format junit --output report.xml flows/ # JUNIT or HTML reports
maestro test --shard-split 2 flows/ # spread flows over 2 connected devices
maestro test --continuous flows/login.yaml # re-run on file change while authoring
maestro record --local flows/login.yaml # render an MP4 on your machine
Screenshots, logs and commands.json land in ~/.maestro/tests unless --test-output-dir is set. A workspace config.yaml can set flows, tags, executionOrder and onFlowStart/onFlowComplete hooks.
Maestro MCP for coding agents
The MCP server ships inside the CLI, so an agent can inspect a live device, tap, assert and write flows:
claude mcp add maestro -- maestro mcp
codex mcp add maestro -- maestro mcp
CI on GitHub Actions (Android emulator)
# .github/workflows/maestro.yml
name: Maestro E2E
on: [pull_request]
jobs:
maestro:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with: { distribution: temurin, java-version: 17 }
- name: Install Maestro 2.11.0 (checksum verified)
run: |
base=https://github.com/mobile-dev-inc/maestro/releases/dow
Установить maestro в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл maestro?
Maestro is an open-source UI testing framework that drives Android, iOS and web apps from short YAML flows (launchApp, tapOn, assertVisible). Use when the user wants to write mobile UI tests, set up Maestro in CI, debug a flaky flow, or let a coding agent run flows through the Maestro MCP server. For React Native gray-box testing see detox; for code-based cross-platform automation see appium.
Как установить скилл maestro?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл maestro запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic