# Android debug

> Android debug is an open-source agent skill for developer tools. Guides an agent through Android debugging with device, screenshot, app and log commands. 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-debug
- **Repository:** https://github.com/amit-nayar/android-adb-skill
- **GitHub stars:** 37
- **License:** MIT
- **Skill name:** android-debug
- **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 walks an agent through a structured Android debugging session using the android-adb command-line tool. It starts by gathering device details, the foreground app and a screenshot, then optionally clears the log buffer before reproducing a bug so that only relevant output remains.

Logs are collected with the debug commands, which can be narrowed by package and severity level. The skill notes a practical limit: package filtering only works while the app is running, so after a crash the agent should drop the package filter and filter for error-level entries to locate the AndroidRuntime stack trace. The agent then matches log evidence against the current screen and the user's report.

The expected output is a short write-up covering what happened, the strongest evidence, the likely root cause and a suggested next step. Raw adb calls are reserved for diagnostics the android-adb command layer does not yet cover. The skill needs the android-adb tool and adb installed on the machine, and it is distributed under the MIT license.

## When your agent uses it

> Debug Android issues using android-adb device, screenshot, app, and debug commands.

## 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-debug)
- [Asks for: Bash(android-adb:*), Bash(adb:*)](https://github.com/amit-nayar/android-adb-skill/blob/HEAD/skills/android-debug/SKILL.md)
- [License: MIT](https://github.com/amit-nayar/android-adb-skill/tree/HEAD/skills/android-debug)

## Features

- **Device context capture:** Gathers device information, the current foreground app and a screenshot in JSON form.
- **Log clearing and collection:** Resets the log buffer before reproducing a bug and then pulls logs filtered by package or level.
- **Crash stack trace lookup:** Explains how to find AndroidRuntime stack traces after an app has crashed.
- **Structured debugging report:** Directs the agent to report what happened, evidence, root cause and the next step.
- **Raw adb fallback:** Permits plain adb commands only for diagnostics the android-adb layer does not cover.

## Good for

- Investigate why an Android app crashed on launch
- Pull error logs for a bug I just reproduced on a device
- Find the stack trace behind a crash after the app has closed
- Check which screen and app are active when a UI problem occurs
- Summarize likely root causes from Android device logs

## 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-debug`:

```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-debug &&
cp -R "$tmp/skills/android-debug" ~/.claude/skills/android-debug &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/android-debug` 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-debug &&
cp -R "$tmp/skills/android-debug" ~/.agents/skills/android-debug &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/android-debug` 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-debug &&
cp -R "$tmp/skills/android-debug" ~/.cursor/skills/android-debug &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/android-debug` 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-debug
```

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

### VS Code

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

```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-debug &&
cp -R "$tmp/skills/android-debug" ~/.copilot/skills/android-debug &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/android-debug` 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-debug` into your agent's skills folder as `android-debug`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It uses the android-adb command layer and allows Bash calls to android-adb and adb, so both tools must be available to the agent.

### Why does the skill drop the package filter after a crash?

The package flag only works while the app is running. After a crash the agent should omit it and filter by error level to find the AndroidRuntime stack trace.

### Does the skill run any scripts of its own?

No. The folder contains only the SKILL.md file and no bundled scripts.

### What does the skill change on the device?

Its workflow clears the log buffer before reproducing a bug; otherwise it reads device, app, screenshot and log data.

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

Copy the skill folder from GitHub to ~/.claude/skills/android-debug to use it in all your projects, or to .claude/skills/android-debug 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 debug 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 debug?

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 debug?

The closest alternatives to Android debug are Android, Android test, Android screenshot, Android device and Android navigate.

## Where this comes from

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

## Alternatives

- [Android](https://ai-powered.com/skills/android-amit-nayar): Android is an open-source agent skill for developer tools.
- [Android test](https://ai-powered.com/skills/android-test): Android test 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 device](https://ai-powered.com/skills/android-device): Android device is an open-source agent skill for developer tools.
- [Android navigate](https://ai-powered.com/skills/android-navigate): Android navigate is an open-source agent skill for developer tools.
- [Android install](https://ai-powered.com/skills/android-install): Android install is an open-source agent skill for developer tools.
- [Android UI](https://ai-powered.com/skills/android-ui): Android UI 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.

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