
Android UI Verification
FreeAutomate UI testing for Android applications.
Free · Opens the source repo
What Android UI Verification does
The Android UI Verification skill enables developers to automate end-to-end UI testing for React Native applications on an Android emulator using ADB (Android Debug Bridge) commands. This skill is particularly useful for verifying UI changes, debugging layout issues, and ensuring feature functionality without the overhead of manual testing. By leveraging ADB commands, it allows for autonomous interaction with the application, state verification, and visual regression checking, which can significantly speed up the testing process.
To get started, users need to have an Android Emulator running with ADB installed and accessible in their system's PATH. The skill provides a systematic workflow that includes device calibration, UI inspection, interaction commands, and verification reporting. This structured approach ensures that developers can accurately interact with UI elements, capture screenshots for documentation, and monitor console logs for any errors that may arise during testing.
The skill is designed for developers working on React Native or Native Android applications who need to streamline their UI testing process. It is especially beneficial in scenarios where rapid feedback is essential, such as during continuous integration or development cycles. By automating repetitive tasks, developers can focus on more complex issues and improve overall productivity.
While the Android UI Verification skill is powerful, it is important to recognize its limitations. It should not be used as a substitute for thorough environment-specific validation or expert review. Additionally, users should be cautious when interpreting the outputs, as they may not account for all edge cases or unique application behaviors. This skill is best utilized in conjunction with other testing strategies to ensure comprehensive coverage of application functionality.
When to use it
Use this skill when you need to verify UI changes or debug layout issues in React Native or Native Android apps, especially when manual testing is too slow.
When not to use it
Avoid this skill for tasks that require detailed environment-specific validation or when expert review is necessary, as it cannot replace thorough testing practices.
What you can build with it
Verifying UI Changes
When you implement UI updates in your React Native app, use this skill to quickly verify that the changes appear as expected.
Automated Debugging
If you encounter layout issues during development, this skill can autonomously interact with your app to help identify and debug those issues.
Documentation for PRs
Capture automated screenshots of your app's UI after changes, which can be included in pull request documentation for better clarity.
How to install Android UI Verification
View source1. Install with the skills CLI
npx skills add sickn33/agentic-awesome-skills/android_ui_verification --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by sickn33Android UI Verification Skill
This skill provides a systematic approach to testing React Native applications on an Android emulator using ADB commands. It allows for autonomous interaction, state verification, and visual regression checking.
When to Use
- Verifying UI changes in React Native or Native Android apps.
- Autonomous debugging of layout issues or interaction bugs.
- Ensuring feature functionality when manual testing is too slow.
- Capturing automated screenshots for PR documentation.
🛠 Prerequisites
- Android Emulator running.
adbinstalled and in PATH.- Application in debug mode for logcat access.
🚀 Workflow
1. Device Calibration
Before interacting, always verify the screen resolution to ensure tap coordinates are accurate.
adb shell wm size
Note: Layouts are often scaled. Use the physical size returned as the base for coordinate calculations.
2. UI Inspection (State Discovery)
Use the uiautomator dump to find the exact bounds of UI elements (buttons, inputs).
adb shell uiautomator dump /sdcard/view.xml && adb pull /sdcard/view.xml ./artifacts/view.xml
Search the view.xml for text, content-desc, or resource-id. The bounds attribute [x1,y1][x2,y2] defines the clickable area.
3. Interaction Commands
- Tap:
adb shell input tap <x> <y>(Use the center of the element bounds). - Swipe:
adb shell input swipe <x1> <y1> <x2> <y2> <duration_ms>(Used for scrolling). - Text Input:
adb shell input text "<message>"(Note: Limited support for special characters). - Key Events:
adb shell input keyevent <code_id>(e.g., 66 for Enter).
4. Verification & Reporting
Visual Verification
Capture a screenshot after interaction to confirm UI changes.
adb shell screencap -p /sdcard/screen.png && adb pull /sdcard/screen.png ./artifacts/test_result.png
Analytical Verification
Monitor the JS console logs in real-time to detect errors or log successes.
adb logcat -d | grep "ReactNativeJS" | tail -n 20
Cleanup
Always store generated files in the artifacts/ folder to satisfy project organization rules.
💡 Best Practices
- Wait for Animations: Always add a short sleep (e.g., 1-2s) between interaction and verification.
- Center Taps: Calculate the arithmetic mean of
[x1,y1][x2,y2]for the most reliable tap target. - Log Markers: Use distinct log messages in the code (e.g.,
✅ Action Successful) to makegrepverification easy. - Fail Fast: If a
uiautomator dumpfails or doesn't find the expected text, stop and troubleshoot rather than blind-tapping.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Frequently asked questions about Android UI Verification
Similar skills
Android App Development
Comprehensive guide for Android and cross-platform app development.
Add App Clip to Expo App
Integrate lightweight iOS App Clips into your Expo project.
APK Reverse
Streamline your Android APK reverse engineering process.
Swift Expert
Master iOS/macOS development with Swift and SwiftUI.
React Native Expert
Build and optimize mobile apps with React Native and Expo.
Kotlin Specialist
Master idiomatic Kotlin with expert patterns and practices.
