android-ui-automator-preview

Capture Android UI evidence via UIAutomator XML dumps and adb screenshots.

51|6|Updated Mar 10, 2019
One-click install
npx skills add https://github.com/AniTrend/anitrend-v2 --skill android-ui-automator-preview
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-ui-automator-preview
Source: https://github.com/AniTrend/anitrend-v2/tree/main/.agents/skills/android-ui-automator-preview
Command: npx skills add https://github.com/AniTrend/anitrend-v2 --skill android-ui-automator-preview

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you quickly document what’s actually on-screen on a real Android build so you can reproduce UI bugs and avoid guessing when troubleshooting onboarding and navigation issues.

Core Features & Use Cases

  • Deterministic activity launch: Starts the intended AniTrend activity explicitly to avoid random debug side flows.
  • Repeatable post-clear reproduction: Supports a clear-data workflow (pm clear) followed by controlled navigation steps.
  • Paired UI evidence: Captures both UIAutomator XML hierarchy and a matching PNG screenshot, plus optional process-scoped logcat.
  • Quick label validation: Extracts and confirms whether expected UI texts are present directly from the XML dump.
  • Use case: You suspect the navigation drawer is truncating items; capture XML + screenshot after onboarding/permissions prompts and attach the text evidence to your repro notes.

Quick Start

Provide the AniTrend package name and which screen element you want to prove, then run the skill instructions to clear app data, explicitly launch the correct activity, and capture a UIAutomator XML plus PNG screenshot for the exact failing state.

Frequently Asked Questions about android-ui-automator-preview

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I capture an Android UIAutomator XML hierarchy and screenshot for bug reproduction?

To capture an Android UIAutomator XML hierarchy and screenshot, this skill drives deterministic activity launches, clears app data, and executes adb commands to dump the XML view hierarchy and save a matching PNG screenshot for debugging.

What is the best way to reproduce Android navigation bugs after clearing app data?

Reproducing Android navigation bugs after clearing app data requires running adb pm clear, explicitly targeting activities with am start, and capturing UIAutomator XML dumps plus screenshots to document the exact failing state.

Does this skill require an explicit adb pm clear before launching the target activity?

Yes, this skill requires an explicit adb pm clear before launching the target activity to ensure deterministic post-clear reproduction of onboarding, permission prompts, and navigation flows without random debug side effects.

Can I validate expected UI texts directly from a UIAutomator XML dump?

You can validate expected UI texts directly from the UIAutomator XML dump because this skill extracts and confirms whether specific UI labels are present in the captured XML hierarchy, providing quick text evidence for repro notes.

How do I capture process-scoped logcat alongside Android UI screenshots?

To capture process-scoped logcat alongside Android UI screenshots, this skill pairs UIAutomator XML hierarchy dumps and PNG screenshots with optional logcat output filtered to the specific process during activity navigation.

Why does my Android UI bug reproduction fail with random debug side flows?

Android UI bug reproduction often fails with random debug side flows because the intended activity is not launched explicitly; this skill uses deterministic activity launches via am start to target the correct screen and avoid unintended navigation paths.