mobilewright-cli

mobilewright-cli is a skill for Claude Code from mobile-next/mobilewright. It costs 29 tokens per session (1,355 once invoked), scanned A, original, Apache-2.0.

A command-line tool for exploring and testing iOS and Android apps on simulators, emulators, and real devices. It can launch an app, inspect its screen structure, perform actions such as tapping and filling fields, and record those actions as test code.

In plain words
What is it for?
Use it to automate sign-in and other app flows, inspect screen elements, interact with controls, and turn explored actions into Mobilewright tests.
Why use it?
It provides a repeatable way to check how a mobile app behaves across screens and devices. Screen snapshots help identify controls and confirm that actions produce the expected visible result.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to automate sign-in and other app flows, inspect screen elements, interact with controls, and turn explored actions into Mobilewright tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mobile-next/mobilewright/mobilewright-cli
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mobile-next/mobilewright --skill mobilewright-cli
Clone the repo
git clone --depth 1 https://github.com/mobile-next/mobilewright

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mobilewright-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/mobile-next/mobilewright/mobilewright-cli/github.svg)](https://agentmods.dev/skills/mobile-next/mobilewright/mobilewright-cli)
Your own site
<a href="https://agentmods.dev/skills/mobile-next/mobilewright/mobilewright-cli"><img src="https://agentmods.dev/badge/skills/mobile-next/mobilewright/mobilewright-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mobilewright-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/mobile-next/mobilewright/mobilewright-cli"><img src="https://agentmods.dev/badge/skills/mobile-next/mobilewright/mobilewright-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,355 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.01355
Opus 5.5 $0.00012 $0.00542
Sonnet 5.5 $0.00006 $0.00271
Haiku 4.5 $0.00003 $0.00136

Measured 2mo ago against content hash 57a114eec97a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mobilewright-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/cli/skills/mobilewright-cli/SKILL.md · 159 lines

How it starts

The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mobile automation with mobilewright-cli

Quick start

# see which devices are online (one online device is picked automatically)
mobilewright-cli devices
# launch the app under test
mobilewright-cli launch com.example.app
# snapshot prints the screen tree with refs; actions link a fresh one under .mobilewright-cli/
mobilewright-cli snapshot
mobilewright-cli fill e7 "[email protected]"
mobilewright-cli tap e9
mobilewright-cli expect visible --text "Welcome back"

After every action the CLI prints:

### Ran Mobilewright code
```js
await screen.getByRole('button', { name: 'Sign in' }).tap();
```
### Device
- Device ID: 6A557392-1480-4355-9EBC-B1D12A0F665D
- App: com.example.app
### Snapshot
- [Snapshot](.mobilewright-cli/screen-2026-09-14T20-13-21-867Z.yml)

Read the snapshot file to learn the refs. A snapshot line looks like - button "Sign in" [ref=e9] [testid="login"]. Roles are button, textfield, text, image, switch, checkbox, radio, slider, progressbar, alert, combobox, list, listitem, tab, link, header. Attributes: testid, placeholder, value, hidden, disabled, checked, selected, focused.

Collect the Ran Mobilewright code lines to write a test: they are the exact calls a Mobilewright test makes.

Commands

Devices and apps

mobilewright-cli devices
mobilewright-cli --device Pixel_9_Pro launch com.example.app   # remembered for later commands
mobilewright-cli apps
mobilewright-cli app-install ./app.apk
mobilewright-cli app-install ./app.ipa
mobilewright-cli launch com.example.app
mobilewright-cli terminate com.example.app
mobilewright-cli url myapp://checkout/42
mobilewright-cli fold half-open        # foldables: folded, half-open, open, or 0-180 degrees

Reading the screen

mobilewright-cli snapshot
# find prints only matching elements, with refs
mobilewright-cli find --text "Sign in"
mobilewright-cli find --text "/sign (in|up)/i"
mobilewright-cli find --role button --name "Sign in"
mobilewright-cli find --test-id login
mobilewright-cli find --label "Password"
mobilewright-cli find --placeholder Email
mobilewright-cli find --role listitem --has-text Milk --first
mobilewright-cli find --role listitem --nth 2
mobilewright-cli screenshot
mobilewright-cli screenshot e5 -o element.png

Read the full file on GitHub · 159 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +1 lines 57a114eec97a
  2. 2mo ago Changed 1bf134076192
  3. 2mo ago First seen · 158 lines · 29 tokens per session scan A a45409d6efb5

Subscribe to this mod's changes

mobilewright-cli is a skill published in the GitHub repository mobile-next/mobilewright (498 stars, last pushed 5d ago), licensed Apache-2.0. It adds 29 tokens to every session and 1,355 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-17.

Related

mobilewright-cli compared with skills from other repositories

mobilewright-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mobilewright-climobile-next/mobilewrightSkill4985d agoApache-2.0A29Claude Code
argent-test-ui-flowsoftware-mansion/argentSkill3.3ktodayApache-2.0A44Claude Code, Codex
mobile-automationmobile-next/mobile-mcpSkill11k5d agoApache-2.0A58Claude Code, Codex
argent-qa-e2esoftware-mansion/argentSkill3.3ktodayApache-2.0A91Claude Code, Codex
argent-create-e2esoftware-mansion/argentSkill3.3ktodayApache-2.0A96Claude Code, Codex
flutterericrisco/rsc-harnessSkill6824d agoMITA91Claude Code, Codex
Appium Mobile TestingPramodDutta/qaskillsSkill25227d agoMITA32Claude Code, Codex