verify-android-layout

Validate Android UI elements by inspecting layout JSON for text, resource IDs, and states.

7|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/himattm/skills --skill verify-android-layout
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: verify-android-layout
Source: https://github.com/himattm/skills/tree/main/plugins/android/skills/verify-android-layout
Command: npx skills add https://github.com/himattm/skills --skill verify-android-layout

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically verify that Android screens render correctly by inspecting the structured layout JSON returned by android layout, which is faster and more reliable than screenshots.

Core Features & Use Cases

  • Parse and inspect the layout tree to verify element text, resourceId, contentDesc, class, and state.
  • Assess interactions and visibility, including focused, clickable, scrollable, and off-screen elements.
  • Support quick iteration by using the diff capability to spot changes between screen dumps.

Quick Start

Run android layout to fetch the current UI tree, then validate the presence and state of the target element by its resourceId or text.

Frequently Asked Questions about verify-android-layout

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

FAQPage Schema
How do I verify Android UI elements without taking screenshots?

You can verify Android UI elements by parsing the structured layout JSON returned by the android layout command. This approach inspects the layout tree to confirm element text, resourceId, and state, which is faster and more reliable than visual screenshots.

How do I check if an Android UI element is visible or clickable using layout JSON?

To check if an Android UI element is visible or clickable, parse the layout JSON tree to assess element interactions and visibility. The JSON contains attributes for focused, clickable, scrollable, and off-screen states to validate element conditions.

What is the best way to spot UI state changes between Android screen dumps?

The best way to spot UI state changes is to use the diff capability on the layout JSON. By comparing sequential screen dumps, you can quickly identify structural updates to the Android layout tree during rapid iteration.

Can I recover an Android UI verification test if the layout JSON cannot be parsed?

Yes, you can recover an Android UI verification test if the layout JSON cannot be parsed. The verification process allows recovery by automatically switching to a visual check to confirm the screen state.

Do I need to run a specific command before verifying Android UI state via layout JSON?

Yes, before verifying Android UI state you need to run the android layout command. This fetches the current UI tree and generates the structured layout JSON required to validate target elements.