/vibe:android-layout-inspect-expertfrom vibe
Dumps Android app UI hierarchy as JSON using the android layout CLI. Useful for agents asserting post-action UI state, driving UI tests, or diffing before/after changes.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in android layout, the headless replacement for Android Studio's Layout Inspector. It dumps the active app's UI hierarchy as JSON — perfect for agents that need to assert post-action UI state, drive UI-driven tests, or diff before/after a code change.
android layout [--pretty] [--output] [--diff]
-p, --pretty — format JSON with indentation (default is compact).-o, --output=<path> — save to file instead of stdout.-d, --diff — show only the elements that changed since the last snapshot (CLI keeps a per-device snapshot under the hood).A JSON tree of the foreground window's view hierarchy. Each node typically includes:
androidx.compose.ui.platform.ComposeView, android.widget.Button, ...)id (resource ID, when set)bounds (x, y, width, height)text / contentDescriptionclickable, focusable, enabledchildren[]Schema specifics may vary across CLI versions — parse defensively.
# 1. Stdout (compact)
android layout
# 2. Pretty + persisted file (review by humans, diff in PRs)
android layout --pretty --output=./hierarchy.json
# 3. Diff against the last snapshot (what changed after my action?)
android layout --diff --pretty
# Take baseline
android layout --output=/tmp/before.json
# Perform an action (tap, type, navigate)
adb shell input tap 500 1000
# Diff against baseline
android layout --diff --pretty
# -> JSON of just changed nodes; agent can assert "expected new button visible"
# Run a Compose preview / app screen
android run --apks=app/build/outputs/apk/debug/app-debug.apk
# Capture canonical layout
android layout --pretty --output=ci-snapshots/home.json
# Commit ci-snapshots/home.json — PRs that change UI must update it
# Navigate manually, then dump for inspection
android layout --pretty --output=/tmp/explore.json
jq '.. | objects | select(.text? != null) | .text' /tmp/explore.json | sort -u
android layout --pretty \
| jq '.. | objects | select(.contentDescription? == "Submit") | .bounds'
android layout --output=/tmp/a.json
adb shell input tap 200 400
android layout --diff --pretty
for SCREEN in home detail checkout success; do
# ...navigate to screen $SCREEN...
android layout --pretty --output="snaps/$SCREEN.json"
done
--diff needs a previous snapshot on the same device session. The first invocation has nothing to diff against — its output may be the full tree or empty depending on version.ComposeView host with semantics children; classic Views surface their full class tree. Heuristics that assume one or the other will break on hybrid apps.--device to adb operations to avoid mixed state.Use android layout over alternatives when:
Prefer Android Studio Layout Inspector when:
Prefer uiautomator dump only when:
layout section) — https://developer.android.com/tools/agents/android-cliWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
android-layout, ui-hierarchy, agent-testing, snapshot-diff, cli-tool
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job