# Android UI

> Android UI is an open-source agent skill for developer tools. Lets an agent inspect Android screen UI hierarchies and locate elements via android-adb. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/amit-nayar/android-adb-skill/tree/main/skills/android-ui
- **Repository:** https://github.com/amit-nayar/android-adb-skill
- **GitHub stars:** 37
- **License:** MIT
- **Skill name:** android-ui
- **Collection:** https://github.com/amit-nayar/android-adb-skill
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill gives an AI coding agent a way to read the layout of an Android screen. It directs the agent to run android-adb ui dump for a JSON overview of the current hierarchy, and android-adb ui find to search for a specific element by resource ID, text or content description.

The skill sets a search order: resource ID first, then text, then content description. When several elements match, the agent is asked to report the best candidate and note the ambiguity. Matching can be limited to whole text with an exact flag instead of substring matching. Results can include bounds, center coordinates, clickable and enabled state, and class name.

It expects the android-adb command-line tool and adb to be available in the shell, since the allowed tools are limited to those commands. If an element is not on screen, the skill suggests scrolling with android-scroll or checking a different screen. The skill is a single SKILL.md file with no scripts, and is distributed through the android-adb-skill Claude Code plugin marketplace.

## When your agent uses it

> Inspect the Android UI hierarchy through android-adb ui dump and ui find.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/amit-nayar/android-adb-skill/tree/HEAD/skills/android-ui)
- [Asks for: Bash(android-adb:*), Bash(adb:*)](https://github.com/amit-nayar/android-adb-skill/blob/HEAD/skills/android-ui/SKILL.md)
- [License: MIT](https://github.com/amit-nayar/android-adb-skill/tree/HEAD/skills/android-ui)

## Features

- **UI hierarchy dump:** Produces a JSON overview of the elements currently on an Android screen.
- **Element lookup:** Finds a specific element by resource ID, text or content description.
- **Search priority rules:** Guides the agent to prefer resource IDs, then text, then content descriptions.
- **Ambiguity reporting:** Asks the agent to flag when multiple elements match a query.
- **Coordinates and state:** Reports bounds, center coordinates, clickable and enabled state, and class.
- **Scroll fallback:** Suggests android-scroll or another screen when an element is missing.

## Good for

- Find the login button on the current Android screen
- List the elements visible on the screen I am testing
- Get the tap coordinates for a settings toggle
- Check whether a text field is enabled and clickable
- Identify why a UI element cannot be found on a screen

## Install

### Claude Code

This skill ships in the `android-adb-skill` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add amit-nayar/android-adb-skill
/plugin install android-adb-skill@android-adb-skill
```

Or copy only this skill to `~/.claude/skills/android-ui`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/amit-nayar/android-adb-skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/android-ui &&
cp -R "$tmp/skills/android-ui" ~/.claude/skills/android-ui &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/android-ui` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/android-ui` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/amit-nayar/android-adb-skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/android-ui &&
cp -R "$tmp/skills/android-ui" ~/.agents/skills/android-ui &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/android-ui` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/android-ui` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/amit-nayar/android-adb-skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/android-ui &&
cp -R "$tmp/skills/android-ui" ~/.cursor/skills/android-ui &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/android-ui` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/amit-nayar/android-adb-skill.git --path skills/android-ui
```

Or copy the folder to `~/.gemini/skills/android-ui` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/android-ui`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/amit-nayar/android-adb-skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/android-ui &&
cp -R "$tmp/skills/android-ui" ~/.copilot/skills/android-ui &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/android-ui` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/amit-nayar/android-adb-skill.git
```

Then copy `android-adb-skill/skills/android-ui` into your agent's skills folder as `android-ui`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Android UI need to run?

It is limited to the android-adb and adb shell commands, so both tools need to be available to the agent.

### What does the agent get back from a lookup?

The skill asks for the best match, any ambiguity, and when relevant the bounds, center coordinates, clickable and enabled state, and class.

### Does Android UI use exact or partial text matching?

Matching is by substring by default; the --exact option restricts matching to the whole text.

### What if the element is not visible?

The skill suggests using android-scroll or switching to a different screen.

### How do I install Android UI in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/android-ui to use it in all your projects, or to .claude/skills/android-ui in one project. Or install the android-adb-skill plugin, which includes it: /plugin marketplace add amit-nayar/android-adb-skill, then /plugin install android-adb-skill@android-adb-skill.

### Does Android UI run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Android UI?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Android UI?

The closest alternatives to Android UI are Android navigate, Android, Android screenshot, Android scroll and Android tap.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Android navigate](https://ai-powered.com/skills/android-navigate): Android navigate is an open-source agent skill for developer tools.
- [Android](https://ai-powered.com/skills/android-amit-nayar): Android is an open-source agent skill for developer tools.
- [Android screenshot](https://ai-powered.com/skills/android-screenshot): Android screenshot is an open-source agent skill for developer tools.
- [Android scroll](https://ai-powered.com/skills/android-scroll): Android scroll is an open-source agent skill for developer tools.
- [Android tap](https://ai-powered.com/skills/android-tap): Android tap is an open-source agent skill for developer tools.
- [Android debug](https://ai-powered.com/skills/android-debug): Android debug is an open-source agent skill for developer tools.
- [Android gesture](https://ai-powered.com/skills/android-gesture): Android gesture is an open-source agent skill for developer tools.
- [Android device](https://ai-powered.com/skills/android-device): Android device is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/android-ui
