android-cli-ui-automation-skill
Installation
SKILL.md
Drive the device in a tight launch → observe → act → re-observe loop until the goal is reached.
Prefer android layout for structured UI. Use screenshot mode whenever it is faster or more reliable.
If multiple devices are connected, get the serial with adb devices -l. Pass --device=<serial> to android ... and -s <serial> to adb ....
1. Launch
- URL in a browser:
adb -s <serial> shell am start -a android.intent.action.VIEW -d '<url>' - Already-installed app:
adb -s <serial> shell monkey -p <pkg> -c android.intent.category.LAUNCHER 1 - APK file:
android run --apks=<path> --device=<serial> [--activity=<name>]
2. Observe with android layout
android layout --device=<serial> --pretty --output=/tmp/ui.json