4nrry/mobile-agent
What fails silently when an agent works on a mobile app: device layer (adb, emulator, UI dumps, mirroring a phone) and bundler layer (Expo, Metro, prebuild). Narrow PreToolUse guards that warn and never block, and the Maestro MCP server for driving UI flows on a device.
Covers what fails silently when an agent drives an Android device or emulator — UI dumps that serve stale state, GL surfaces invisible to accessibility, screenshots that exhaust session memory, adb tunnels that drop on their own, and processes that belong to someone else. Use before automating any on-device flow, and again when a screen seems stuck with no error. For the android CLI itself, use android skills add and android docs search, which Google maintains.
Mirrors and controls a physical Android device's screen on a Linux PC with scrcpy over the wireless debugging already connected, without installing a second adb that drops the tunnels. Covers what does not work (KDE Connect, Phone Link, DeX for Linux), installing without shadowing the SDK's adb, proving it works without a window, and Wayland, hybrid-GPU and secure-screen traps. Use when you need to see a real phone without holding it, record a test on video, or when the mirror "won't connect" and adb drops with it.
Covers what fails silently in an Expo / React Native project — a prebuild that does not run and says nothing, a Metro serving another checkout's bundle, a missing node_modules that breaks only the bundler while tsc and jest pass, native modules that never reached the device, and EXPO_PUBLIC_ variables that ship secrets inside the APK. Use before a local build, before editing app.json or a config plugin, and when a change "has no effect" with no error.
Writing and running Maestro UI flows on a phone or emulator, through the Maestro MCP server or the CLI — reading the screen before writing selectors, env defaults inside flows, clearState and what it wipes, loading a dev client, a device listed twice, and finding why a step failed. Use when asked to write, fix or run an end-to-end test, a Maestro flow, or a .maestro/ suite.
Checks what is already running before starting an emulator, bundler or adb tunnel — devices, reverse tunnels, bundler ports, AVD locks, free memory — and which checkout owns each process. Read-only. Use before starting mobile tooling, especially with several checkouts, worktrees or agent sessions on one machine.