About mobile-harness
mobile-harness is an agent skill for controlling Android and iOS devices through Mobilerun. It guides agents to the relevant platform instructions and provides a common Mobilerun control model for cloud and local devices.
Key features
- 01Android and iOS device control
- 02Mobilerun connection setup
- 03Platform-specific guide routing
- 04Cloud and local device support
Use cases
- 01Automating tasks on Android devices
- 02Automating tasks on iOS devices
- 03Selecting platform instructions for a task
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ droidrun/ mobile-harness --skill mobile-harnessAfter installing, type/mobile-harnessin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
AGENTS.mdREADME.md.gitignoreLICENSEUPDATE.mdinstall.md.claude-plugin/plugin.jsonmarketplace.jsonapps/index.mdapps/android/com.android.chrome/CARD.mdapps/android/com.android.settings/CARD.mdapps/android/com.ebay.mobile/CARD.mdapps/android/com.google.android.gm/CARD.mdapps/ios/com.apple.mobilesafari/CARD.mdapps/ios/com.apple.Preferences/CARD.mdcore/credentials/GUIDE.mdcore/memory/GUIDE.mdlocal/README.mdlocal/credentials/README.mdTEMPLATE.mdlocal/memory/README.mdplatforms/android/GUIDE.mdplatforms/android/recovery/GUIDE.mdplatforms/ios/GUIDE.mdplatforms/ios/recovery/GUIDE.mdDetails
From the project READMEmobile-harness
Use this harness when an agent needs to control Android or iOS devices through Mobilerun.
Start by reading AGENTS.md. It routes you to the smallest platform file for
the current task.
Paths
When Claude Code loads this skill from a plugin, it fills in:
<harness-root>:${CLAUDE_PLUGIN_ROOT}<state-root>:${CLAUDE_PLUGIN_DATA}
If those still read as ${...} placeholders, <harness-root> and
<state-root> are both the directory containing this file.
Primary Control Model
Normal device control always uses:
from mobilerun_core import Mobilerun
Use Mobilerun() to connect to cloud devices, local Android ADB with optional
Portal, local Android Portal HTTP-only, or local iOS HTTP (mobilerun-ios for
USB iPhones, ios-portal for Simulators). Do not import
or call mobilerun_core_local directly for normal agent work. mobilerun-core-local is the
local-driver dependency used internally by mobilerun-core for Android and iOS
local backends.
Load Order
- Read
AGENTS.md. - Read
platforms/android/GUIDE.mdfor Android work. - Read
platforms/ios/GUIDE.mdfor iOS work. - Read recovery, credentials, memory, and app-card files only when routed
there by
AGENTS.mdor the platform guide.
For setup and runtime registration, read install.md.