mobilewright-write-tests

mobilewright-write-tests is a skill for Claude Code from mobile-next/mobilewright. It costs 48 tokens per session (3,697 once invoked), scanned A, original, Apache-2.0.

A guide for writing repeatable Mobilewright tests for iOS and Android apps. It can turn a device-explored flow or a described flow into tests and can add GitHub Actions execution when the repository uses GitHub Actions.

In plain words
What is it for?
Use it to inspect an app's test framework, create Mobilewright tests, verify them on a local device, and configure their CI run.
Why use it?
It replaces one-off manual checks with repeatable smoke, acceptance, or regression tests that follow the project's existing setup.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is - run: ./scripts/build-app.sh # the repository's existing build; produces build/app.ipa.

Part of the mobilewright plugin — 1 skill shipped together

Good fit Use it to inspect an app's test framework, create Mobilewright tests, verify them on a local device, and configure their CI run.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/mobile-next/mobilewright
agentmods
npx agentmods add skills/mobile-next/mobilewright/mobilewright-write-tests

Made for: Claude Code.

Or install mobilewright, the plugin that ships this one along with the rest of its 1 skill.

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-write-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/mobile-next/mobilewright/mobilewright-write-tests/github.svg)](https://agentmods.dev/skills/mobile-next/mobilewright/mobilewright-write-tests)
Your own site
<a href="https://agentmods.dev/skills/mobile-next/mobilewright/mobilewright-write-tests"><img src="https://agentmods.dev/badge/skills/mobile-next/mobilewright/mobilewright-write-tests/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-write-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/mobile-next/mobilewright/mobilewright-write-tests"><img src="https://agentmods.dev/badge/skills/mobile-next/mobilewright/mobilewright-write-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,697 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.00048 $0.03697
Opus 5.5 $0.00019 $0.01479
Sonnet 5.5 $0.00010 $0.00739
Haiku 4.5 $0.00005 $0.00370

Measured yesterday against content hash c6ddcfade567, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mobilewright-write-tests 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 yesterday.

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/mobilewright/skills/mobilewright-write-tests/SKILL.md · 289 lines

How it starts

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

Write Mobilewright tests

Follow the steps in order. Every command and API name below matches the mobilewright version that ships this skill.

1. When to use this skill

Use it when the user wants a flow turned into repeatable Mobilewright tests, optionally running in CI. The flow is one you explored on a device with Mobile MCP, or one the user describes.

The outcome:

  • tests that match the project's existing conventions,
  • tests that pass three runs in a row on a local device,
  • a GitHub Actions workflow, only if the repository uses GitHub Actions,
  • a final message to the user (section 10).

2. Detect the project state

Check the repository with your own file tools before writing anything.

  1. Existing Mobilewright suite. Look for mobilewright.config.ts, .js, .mts, .mjs, .cts or .cjs, and for test files that import from @mobilewright/test or mobilewright. If you find either, go to section 4.

  2. Other UI test frameworks. Look for:

    • XCUITest: *UITests targets or directories,
    • Espresso: androidTest/ directories,
    • Maestro: a .maestro/ directory or Maestro *.yaml flows,
    • Detox: .detoxrc*,
    • Appium: wdio.conf.* or appium in dependencies.

    Leave them untouched. Add Mobilewright next to them. Don't convert, move or delete any existing test.

  3. Nothing found. This is a greenfield project. Go to section 3.

Choose where the tests live:

  • If package.json exists at the repository root, use the root.
  • If not (a native-only Xcode or Gradle repository), create mobile-tests/ with its own package.json, and run every command below from mobile-tests/.
  • In a monorepo, use the package that owns the app. If more than one package could own it, ask the user.

3. Greenfield setup

Use the package manager the lockfile names: package-lock.json is npm, pnpm-lock.yaml is pnpm, yarn.lock is yarn, bun.lock or bun.lockb is bun. With npm:

npm i -D mobilewright @mobilewright/test
npx mobilewright init

Read the full file on GitHub · 289 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. yesterday First seen · 289 lines · 48 tokens per session scan A c6ddcfade567

Subscribe to this mod's changes

mobilewright-write-tests is a skill published in the GitHub repository mobile-next/mobilewright (523 stars, last pushed yesterday), licensed Apache-2.0. It adds 48 tokens to every session and 3,697 once invoked, about $0.0002 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-12-03.

Related

mobilewright-write-tests compared with skills from other repositories

mobilewright-write-tests next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mobilewright-write-testsmobile-next/mobilewrightSkill523yesterdayApache-2.0A48Claude Code
argent-test-ui-flowsoftware-mansion/argentSkill3.3kyesterdayApache-2.0A44Claude Code, Codex
mobile-automationmobile-next/mobile-mcpSkill11k3d agoApache-2.0A58Claude Code, Codex
argent-qa-e2esoftware-mansion/argentSkill3.3kyesterdayApache-2.0A91Claude Code, Codex
argent-create-e2esoftware-mansion/argentSkill3.3kyesterdayApache-2.0A96Claude Code, Codex
flutterericrisco/rsc-harnessSkill7072d agoMITA91Claude Code, Codex
Appium Mobile TestingPramodDutta/qaskillsSkill2531mo agoMITA32Claude Code, Codex