Maestro install
Skill katsanva/maestro-testing-skills/skills/maestro-install
Agent skills for Maestro end-to-end testing for Mobile and Web apps
npx -y skills add katsanva/maestro-testing-skills --skill maestro-installAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Install, update, repair, verify, or pin the Maestro CLI on macOS, Linux, Windows, or WSL2. Use when the user asks to install Maestro, when maestro is missing from PATH, when a machine must be prepared for Maestro testing, or when the Maestro CLI must be updated or locked to a specific version.
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
6.3 KB, as published. Nobody here has run it
Maestro Install
Overview
Use this skill to make the local machine ready for Maestro CLI usage. Start by checking whether maestro already exists, then choose the smallest install, update, or repair path that matches the platform and the user's preferred package manager.
When to Use
- The user asks to install Maestro.
maestrois missing from PATH.- The local Maestro CLI is broken, outdated, or needs to be pinned to a specific version.
- Another Maestro skill depends on a local CLI that is not ready yet.
When Not to Use
- The local Maestro CLI already works and the user only needs help writing or debugging flows. Use
$maestro-testingfor testing work. - The task is about a different toolchain and does not involve Maestro CLI setup.
- The user only wants documentation links without any environment checks or install guidance.
Inputs to Gather First
- The platform: macOS, Linux, Windows, or WSL2.
- Whether
maestroalready exists withcommand -v maestroandmaestro --version. - The installed Java version from
java -version. - The user's preferred install path, if they already manage Maestro through a package manager such as Homebrew.
Quick Start
- Detect the platform and shell. On Unix-like systems, identify the relevant shell rc file only if PATH changes are needed.
- Check whether the CLI is already available with
command -v maestroandmaestro --version. - Verify Java prerequisites with
java -version. Maestro requires Java 17 or newer, andJAVA_HOMEshould point at that installation. - If the user wants
maestro-testingand the CLI is missing, install Maestro before continuing with any flow authoring or runs. - After install or update, verify with
maestro --versionandmaestro --help.
Install Decision Tree
macOS
- Prefer the official install script unless the user specifically wants Homebrew or already manages Maestro through Homebrew.
- Script install:
curl -fsSL "https://get.maestro.mobile.dev" | bash
- Homebrew install:
brew tap mobile-dev-inc/tap
brew install mobile-dev-inc/tap/maestro
- Verify:
maestro --help
- If the user plans to drive iOS simulators locally, confirm Xcode and Xcode Command Line Tools are current.
Linux
- Ensure Java 17+ is installed first.
- Official install:
curl -fsSL "https://get.maestro.mobile.dev" | bash
- Verify:
maestro --help
Windows
- Prefer the official install script when a shell environment supports it.
- Script install:
curl -fsSL "https://get.maestro.mobile.dev" | bash
- Manual install fallback:
- Download the latest
maestro.zipfrom GitHub releases. - Extract it into a stable folder such as
C:\\maestro. - Add
C:\\maestro\\binto the user PATH:
setx PATH "%PATH%;C:\maestro\bin"
- Restart the terminal.
- Verify:
maestro --help
WSL2
- Use WSL only when it is strictly necessary. Maestro's docs recommend native macOS, Windows, or Linux when possible.
- Install Java 17+ first:
sudo apt update
sudo apt install openjdk-17-jdk
- Ensure shell environment variables:
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
export PATH=$PATH:$HOME/.maestro/bin
- Install Maestro:
curl -fsSL "https://get.maestro.mobile.dev" | bash
- If the user also needs Android emulators through WSL, load references/core/installing-and-updating-maestro-cli.md and follow the WSL ADB bridging notes.
Update and Repair
- First determine how Maestro was originally installed.
- If it was installed with the official script on macOS, Linux, or WSL2, rerun:
curl -fsSL "https://get.maestro.mobile.dev" | bash
- If it was installed with Homebrew on macOS, run:
brew update
brew upgrade mobile-dev-inc/tap/maestro
- If it was installed manually on Windows, replace the existing files with the latest
maestro.zipcontents. - If the user needs a pinned version for team or CI compatibility, run:
export MAESTRO_VERSION={version}
curl -Ls "https://get.maestro.mobile.dev" | bash
Replace {version} with the requested Maestro CLI version and verify with maestro --version.
Execution Rules
- Prefer doing the install work directly when the user asked to install or repair Maestro. Do not stop at documentation unless the user explicitly wants instructions only.
- Installs and updates typically need network access. If a
curl,brew, or download command fails because of sandbox, permission, or network restrictions, request the required access and continue. - Do not overwrite the user's preferred package-manager choice unless it is clearly broken or unsupported on the current platform.
- If
maestrois already installed and the user only wants to use it, avoid reinstalling. Verify the version and move on. - When install succeeds but the shell still cannot find
maestro, inspect PATH before retrying. Only edit shell rc files when required by the install method or current environment.
Validation
maestro --versioncompletes successfully.maestro --helpcompletes successfully.- Java 17 or newer is available and
JAVA_HOMEis consistent with that installation when required by the platform. - The shell can locate
maestrowithout relying on a stale or temporary path.
Common Failure Modes
- Java is missing or older than version 17.
- The install method succeeded but the shell PATH was not updated.
- The user already manages Maestro through a different package manager than the one chosen for repair.
- WSL2 setup tries to drive emulators without the required host integration or ADB bridging.
- A pinned version was requested but the installed version was never verified afterward.
References
- Load references/core/installing-and-updating-maestro-cli.md for the official commands, WSL cautions, PATH notes, and version pinning examples.