Skip to content
Skills Library
Programming · Testing

device-use

/device-use

Drive iOS simulators and Android emulators for a job: make your own device, install and open the app, tap / type / swipe by what's on screen, capture proof, then shut down and delete what you made. Use when a task says simulator, emulator, iPhone, Android, 앱 화면, 시뮬레이터, 에뮬레이터, or needs the mobile app checked. The user watches and can drive the same device in the app's 디바이스 hub.

Repository
ondra ↗
Licence
MIT
Last repository change
14.11.2026

Assessment and security

95/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content30 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 14.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Drive iOS simulators and Android emulators for a job: make your own device, install and open the app, tap / type / swipe by what's on screen, capture proof, then shut down and delete what you made. Use when a task says simulator, emulator, iPhone, Android, 앱 화면, 시뮬레이터, 에뮬레이터, or needs the mobile app checked. The user watches and can drive the same device in the app's 디바이스 hub.

Original author description

Drive iOS simulators and Android emulators for a job: make your own device, install and open the app, tap / type / swipe by what's on screen, capture proof, then shut down and delete what you made. Use when a task says simulator, emulator, iPhone, Android, 앱 화면, 시뮬레이터, 에뮬레이터, or needs the mobile app checked. The user watches and can drive the same device in the app's 디바이스 hub.

How it works

  1. 1. Your own device, never someone else's
  2. 2. Drive it by meaning, not by pixels
  3. 3. Proof
  4. 4. Clean up
Original SKILL.md headings · 77 lines, 499 words
SKILL.md preview
---
name: device-use
description: >
  Drive iOS simulators and Android emulators for a job: make your own device,
  install and open the app, tap / type / swipe by what's on screen, capture proof,
  then shut down and delete what you made. Use when a task says simulator,
  emulator, iPhone, Android, 앱 화면, 시뮬레이터, 에뮬레이터, or needs the mobile app
  checked. The user watches and can drive the same device in the app's 디바이스 hub.
metadata:
  ondra-tools: 'device'
  ondra-commands: '\b(xcrun simctl|adb|idb|maestro)\b'
---

# Device use

Prefer the `device` tool (start → do → look → stop): it does all of this for you
and keeps the job on its own device (an Android one is a fresh copy of an AVD,
with no app data or logins from anywhere else). **Call `stop` before your final answer**,
every time, unless the user asked to keep the device: a device left running
holds memory and CPU on the user's Mac. Use the commands below only if that tool is missing.

Tools: `xcrun simctl` (iOS), `adb` and `emulator` from `~/Library/Android/sdk`
(Android), and `agent-device` (taps, typing, accessibility snapshots on both).
If `agent-device` is missing: `npm i -g agent-device`.

## 1. Your own device, never someone else's

Each of the user's spaces is a separate workspace with its own
devices. Booted devices may belong to another space, to other jobs or to the
user. Don't control, shut down or delete a device you didn't make. The devices
this job's space has are in `$ONDRA_DEVICES_ALLOWED` (ids, names, serials); the
app refuses commands that name any other device, `booted`, `all`, or `adb`
without `-s`.

```bash
# iOS: a fresh simulator named after this job
UDID=$(xcrun simctl create "ondra-$APP_WORKER_ID" "iPhone 17")
xcrun simctl boot "$UDID" && xcrun simctl bootstatus "$UDID" -b
# Android: boot an AVD of this space ($ONDRA_DEVICES_ALLOWED) that nobody runs
"$ANDROID_HOME/emulator/emulator" -avd <name> -no-snapshot-save -no-window -gpu auto-no-window -no-audio -no-boot-anim &   # no window: the user sees it in Ondra's device hub; auto-no-window draws on the GPU, not the CPU
~/Library/Android/sdk/platform-tools/adb wait-for-device
```

If `$APP_WORKER_ID` is empty, use a short name for the task (`ondra-login-check`).

## 2. Drive it by meaning, not by pixels

Use one agent-device session per job, named like the device:

```bash
S=ondra-$APP_WORKER_ID
agent-device open com.example.app --platform ios --udid "$UDID" --session $S   # or --platform android --serial emulator-5554
agent-device snapshot -i --session $S          # what's on screen, with @refs
agent-device press @e12 --settle --session $S  # tap by ref
agent-device fill @e7 "test@example.com" --settle --session $S
agent-device scroll down --settle --session $S
agent-device back --settle --session $S
```

Coordinates (`press <x> <y>`, in points) only when the snapshot has no target.
After each action read the diff it returns; snapshot again only when needed.
Install builds with `xcrun simctl install "$UDID" <App.app>` or `adb -s <serial> install -r <apk>`.

## 3. Proof

Save screenshots in `$APP_ARTIFACTS_DIR` and point to them:

```bash
xcrun simctl io "$UDID" screenshot --type=png "$APP_ARTIFACTS_DIR/login-ok.png"
adb -s emulator-5554 exec-out screencap -p > "$APP_ARTIFACTS_DIR/login-ok.png"
```

Then `{"type":"shot","path":"…","caption":"로그인 뒤 홈 화면"}` and the same path as
`{"kind":"shot","ref":"…"}` in the done evidence. The app checks the file exists
and isn't empty.

## 4. Clean up

When the job is done (or handed off with nothing left to check on the device):

```bash
agent-device close --session $S
xcrun simctl shutdown "$UDID" && xcrun simctl delete "$UDID"
adb -s emulator-5554 emu kill            # Android emulator you started
```

Leave a device running only if the user asked to keep it, and say so in the
summary.

Versions

The database has no other skills named device-use.

Database snapshot: 13.11.2026 · package version c9c957f6cd2e (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100phonedock
    Drive Android emulators, iOS simulators and real phones through PhoneDock's MCP tools (or its CLI) to build, install, launch and test mobile apps; read the screen, tap, type and swipe; check login and other flows; take screenshots for PR evidence or the App Store; debug crashes…
  • 95dorker
    Use when a task needs a headless Android emulator - running or screenshotting an app, UI or instrumentation tests, sharding tests across emulators, CI device setup, a Dorkerfile, or the `dorker` CLI.
  • 100test-mobile
    Drive the mobile app on an iOS simulator or Android emulator against this checkout's local stack: keep the development client in step with the native fingerprint, start Metro, sign in for real and capture evidence with `agent-device`. Use to see a mobile change working, not just tested.
  • 90ios-simulator
    Drive an iOS Simulator headlessly on macOS: discover and boot a device, install and launch an app, drive its UI by accessibility (AXe) rather than brittle coordinates, capture screenshots, and navigate the simulator's own chrome, menus, and execution modes. The iOS analog of…
  • 100mobile-test
    Test mobile apps (Android/iOS) — drive a real Android device or emulator via adb, install builds, capture screenshots and logs, generate mobile-specific test cases and checklists. Use when the user is testing a mobile app, APK, Android or iOS application.
  • 100tizen-device-manager
    Tizen device manager, 타이젠 디바이스 관리, 디바이스 연결, sdb devices, 디바이스 찾기, 에뮬레이터 중지, TV 에뮬레이터, Samsung TV emulator, TV emulator. Use this skill ONLY to find connected Tizen devices via sdb or stop/shut down running emulator VMs. NOT for problem reports — a crash, error, freeze, high CPU…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.