Skip to content
Skills Library
Programming · Testing

droid

/droid

This skill should be used when the user asks to "test Android app", "automate Android emulator", "tap button on Android", "take Android screenshot", "interact with Android UI", "ADB automation", "fill Android form", "swipe on emulator", "validate Android UI flow", or needs to control an Android device/emulator via ADB. Provides a unified CLI with JSON output optimized for LLM consumption.

Licence
MIT
Last repository change
11.08.2026

Assessment and security

100/ 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.
Content35 / 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
34
Scripts
25
HTML comments
0
URLs in SKILL.md
1
Deprecation

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

Licence

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

What to check before installing
  • 25 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: droid-cli/droid.cmd, droid-cli/droid.ps1, droid-cli/src/commands/clear.ts, droid-cli/src/commands/current.ts, droid-cli/src/commands/fill.ts, droid-cli/src/commands/hide-keyboard.ts, droid-cli/src/commands/info.ts, droid-cli/src/commands/key.ts

What it does and when to use it

This skill should be used when the user asks to "test Android app", "automate Android emulator", "tap button on Android", "take Android screenshot", "interact with Android UI", "ADB automation", "fill Android form", "swipe on emulator", "validate Android UI flow", or needs to control an Android device/emulator via ADB. Provides a unified CLI with JSON output optimized for LLM consumption.

Triggers from the description

test Android appautomate Android emulatortap button on Androidtake Android screenshotinteract with Android UIADB automationfill Android formswipe on emulator
Original author description

This skill should be used when the user asks to "test Android app", "automate Android emulator", "tap button on Android", "take Android screenshot", "interact with Android UI", "ADB automation", "fill Android form", "swipe on emulator", "validate Android UI flow", or needs to control an Android device/emulator via ADB. Provides a unified CLI with JSON output optimized for LLM consumption.

How it works

  1. CLI Discovery
  2. Prerequisites
  3. Quick Start
  4. Core Commands
  5. Form Workflow Commands
  6. Other Commands
  7. Testing Workflow
  8. Error Handling
Original SKILL.md headings · 161 lines, 586 words
SKILL.md preview
---
name: droid
description: This skill should be used when the user asks to "test Android app", "automate Android emulator", "tap button on Android", "take Android screenshot", "interact with Android UI", "ADB automation", "fill Android form", "swipe on emulator", "validate Android UI flow", or needs to control an Android device/emulator via ADB. Provides a unified CLI with JSON output optimized for LLM consumption.
---

# Droid

Unified Android testing tool with **JSON output** for LLM-friendly automation.

## CLI Discovery

The CLI is located at `./droid-cli/` relative to this SKILL.md file.

| Platform         | Script                                     |
| ---------------- | ------------------------------------------ |
| Unix/Linux/macOS | `droid`                                    |
| Windows          | `droid.cmd` (`droid.ps1` also available)   |

## Prerequisites

- Bun runtime (https://bun.sh)
- ADB (Android Debug Bridge) in PATH
- Connected Android device or running emulator
- USB debugging enabled on device

## Quick Start

```bash
# Check device connection
droid info

# Screenshot + UI elements (most useful command)
droid screenshot

# Tap by text (no coordinates needed!)
droid tap -t "Book Now"

# Fill a form field in one command
droid fill "Email" "user@example.com"

# Wait for element to appear
droid wait-for -t "Success" -s 5
```

## Core Commands

### screenshot
Capture screenshot AND UI elements. Returns element coordinates for tapping.

```bash
droid screenshot
droid screenshot --clickable      # Only clickable elements
droid screenshot --no-ui          # Fast, no element dump
```

**Response:** `{"ok":true,"screenshot":"/tmp/screenshot.png","elements":[{"text":"Book","class":"Button","clickable":true,"x":540,"y":350,"bounds":[400,300,680,400]}]}`

### tap
Tap by text or coordinates.

```bash
droid tap -t "Book Now"           # By text
droid tap -t "State" --prefer-input  # Prefer input fields over labels
droid tap -t "Submit" --clickable    # Only clickable elements
droid tap 540 960                 # By coordinates
```

### fill
Fill text field in one command (tap + clear + type + hide-keyboard).

```bash
droid fill "Enter your email" "user@example.com"
```

### wait-for
Wait for element to appear (with timeout).

```bash
droid wait-for -t "Welcome" -s 10
# Returns: {"ok":true,"found":true,"element":{...}} or {"ok":true,"found":false,"timeout":true}
```

## Form Workflow Commands

### clear / type / hide-keyboard

```bash
droid clear                       # Clear focused field
droid type "hello@example.com"    # Type into focused field
droid hide-keyboard               # Dismiss keyboard (use instead of 'key back')
```

### key
Send key events.

| Key | Purpose |
|-----|---------|
| `back` | Navigate back |
| `enter` | Submit/confirm |
| `move_home` | Cursor to start of text |
| `move_end` | Cursor to end of text |
| `delete` | Backspace |
| `app_home` | Android home screen |

```bash
droid key back
droid key move_home
```

## Other Commands

| Command | Purpose | Example |
|---------|---------|---------|
| `swipe` | Scroll | `droid swipe up` |
| `longpress` | Long press | `droid longpress -t "Item"` |
| `launch` | Launch app | `droid launch com.example.app` |
| `current` | Current activity | `droid current` |
| `info` | Device info | `droid info` |
| `wait` | Wait ms | `droid wait 1000` |
| `select-all` | Select text | `droid select-all` |

See `references/commands.md` for full documentation.

## Testing Workflow

### Recommended Pattern

```bash
# 1. Screenshot to see current state
droid screenshot

# 2. Read the screenshot image with Claude's Read tool
# 3. Tap by text when possible
droid tap -t "Book Now" -w 1000

# 4. Verify the action worked
droid wait-for -t "Booking Confirmed" -s 5
```

### Form Filling Pattern

```bash
# Use fill command for efficiency
droid fill "Email" "user@example.com"
droid fill "Password" "secret123"
droid tap -t "Sign In" --clickable
droid wait-for -t "Welcome" -s 10
```

### Tips

- **Use `--prefer-input`** when tapping form fields to avoid hitting labels
- **Use `--clickable`** when tapping buttons to ensure element is interactive
- **Use `hide-keyboard`** not `key back` to dismiss keyboard
- **Use `wait-for`** instead of blind `wait` for reliable verification

## Error Handling

All errors return JSON with `"ok":false`:

```bash
droid tap -t "NonexistentButton"
# {"ok":false,"error":"No element found matching 'NonexistentButton'"}
```
Files in this package (34)
  • SKILL.md 4 KB
  • droid-cli/.gitignore 1 KB
  • droid-cli/biome.json 1 KB
  • droid-cli/bun.lock 3 KB
  • droid-cli/droid 1 KB
  • droid-cli/droid.cmd 1 KB
  • droid-cli/droid.ps1 1 KB
  • droid-cli/package.json 1 KB
  • droid-cli/tsconfig.json 1 KB
  • droid-cli/src/index.ts 2 KB
  • droid-cli/src/commands/clear.ts 1 KB
  • droid-cli/src/commands/current.ts 1 KB
  • droid-cli/src/commands/fill.ts 2 KB
  • droid-cli/src/commands/hide-keyboard.ts 1 KB
  • droid-cli/src/commands/info.ts 1 KB
  • droid-cli/src/commands/key.ts 1 KB
  • droid-cli/src/commands/launch.ts 1 KB
  • droid-cli/src/commands/longpress.ts 3 KB
  • droid-cli/src/commands/screenshot.ts 2 KB
  • droid-cli/src/commands/select-all.ts 1 KB
  • droid-cli/src/commands/swipe.ts 2 KB
  • droid-cli/src/commands/tap.ts 3 KB
  • droid-cli/src/commands/type.ts 1 KB
  • droid-cli/src/commands/wait-for.ts 1 KB
  • droid-cli/src/commands/wait.ts 1 KB
  • droid-cli/src/lib/adb.ts 3 KB
  • droid-cli/src/lib/keycodes.ts 1 KB
  • droid-cli/src/lib/output.ts 1 KB
  • droid-cli/src/lib/sleep.ts 1 KB
  • droid-cli/src/lib/ui-element.ts 2 KB
  • droid-cli/src/lib/ui-hierarchy.ts 3 KB
  • droid-cli/src/types/index.ts 2 KB
  • references/commands.md 7 KB
  • references/keycodes.md 2 KB

Versions

The database has no other skills named droid.

Database snapshot: 13.11.2026 · package version f4fc00dfa1b7 (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

  • 85android-emulator-qa
    Use when validating Android feature flows in an emulator with adb-driven launch, input, UI-tree inspection, screenshots, and logcat capture.
  • 100mobiai-android-device
    Use when interacting with an Android device or emulator — run adb commands, automate UI, capture screenshots, read logcat, manage emulators.
  • 100getting-started
    How to list AVDs, boot an emulator, target a device with the serial argument, and run a first interaction with adb-mcp. Use when starting a new Android automation task, or when no device/emulator is booted yet.
  • 100manta-emulator-android
    Android device and emulator control from inside Manta over adb, with the live device view in Manta's emulator pane. Use when driving an adb-connected emulator or phone on Windows, Linux, or macOS: booting AVDs, taps, swipes, typing, hardware buttons, rotation, app install and…
  • 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.
  • 98mobile-emulator-test
    QA a native Android or Expo dev-client build on the emulator: UI, Supabase, Sentry per CRUD step. Use for "test on emulator", "QA Android build", "white screen", or "adb reverse".

Feedback and reports

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