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.
git clone --depth 1 https://github.com/mobile-next/mobilewrightnpx agentmods add skills/mobile-next/mobilewright/mobilewright-write-testsWrote 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.
[](https://agentmods.dev/skills/mobile-next/mobilewright/mobilewright-write-tests)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
-
Existing Mobilewright suite. Look for
mobilewright.config.ts,.js,.mts,.mjs,.ctsor.cjs, and for test files that import from@mobilewright/testormobilewright. If you find either, go to section 4. -
Other UI test frameworks. Look for:
- XCUITest:
*UITeststargets or directories, - Espresso:
androidTest/directories, - Maestro: a
.maestro/directory or Maestro*.yamlflows, - Detox:
.detoxrc*, - Appium:
wdio.conf.*orappiumin dependencies.
Leave them untouched. Add Mobilewright next to them. Don't convert, move or delete any existing test.
- XCUITest:
-
Nothing found. This is a greenfield project. Go to section 3.
Choose where the tests live:
- If
package.jsonexists at the repository root, use the root. - If not (a native-only Xcode or Gradle repository), create
mobile-tests/with its ownpackage.json, and run every command below frommobile-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
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.
- yesterday First seen · 289 lines · 48 tokens per session scan A c6ddcfade567
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.
mobilewright-write-tests compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mobilewright-write-testsmobile-next/mobilewright | Skill | 523 | yesterday | Apache-2.0 | A | 48 | Claude Code |
| argent-test-ui-flowsoftware-mansion/argent | Skill | 3.3k | yesterday | Apache-2.0 | A | 44 | Claude Code, Codex |
| mobile-automationmobile-next/mobile-mcp | Skill | 11k | 3d ago | Apache-2.0 | A | 58 | Claude Code, Codex |
| argent-qa-e2esoftware-mansion/argent | Skill | 3.3k | yesterday | Apache-2.0 | A | 91 | Claude Code, Codex |
| argent-create-e2esoftware-mansion/argent | Skill | 3.3k | yesterday | Apache-2.0 | A | 96 | Claude Code, Codex |
| flutterericrisco/rsc-harness | Skill | 707 | 2d ago | MIT | A | 91 | Claude Code, Codex |
| Appium Mobile TestingPramodDutta/qaskills | Skill | 253 | 1mo ago | MIT | A | 32 | Claude Code, Codex |