android-ui-states-validation
Checks Android app UI state coverage and recovery UX.
Install
mkdir -p .claude/skills/android-ui-states-validation && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15832" && unzip -o skill.zip -d .claude/skills/android-ui-states-validation && rm skill.zipInstalls to .claude/skills/android-ui-states-validation
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Review Android UI flows for empty, loading, error, offline, and edge-case behavior before release.Key capabilities
- →Confirm user-visible journey and target device behavior
- →Build a state matrix covering various UI states
- →Identify owning screens, activities, destinations, and state holders
- →Validate recovery UX, accessibility, configuration changes, and back-stack behavior
- →Distinguish transient messages, persistent error states, and stale-but-usable content
How it works
The skill confirms the user journey, constructs a state matrix, identifies state owners, and validates recovery and behavior in showcase apps.
Inputs & outputs
When to use android-ui-states-validation
- →Validate android ui states
- →Check loading and error flows
- →Review edge cases in screens
About this skill
Android UI States Validation
When To Use
- Use this skill when the request is about: validate android ui states, check loading empty error flow android, edge cases in android screen.
- Primary outcome: Review Android UI flows for empty, loading, error, offline, and edge-case behavior before release.
- Reach for this skill when the core question is state coverage and recovery UX, not which test framework or assertion library to use.
- This skill decides what the user should see in each branch of the state matrix.
android-testing-uionly validates that design with assertions and screenshots. - Handoff skills when the scope expands:
android-compose-accessibilityandroid-testing-ui
Workflow
- Confirm the user-visible journey, target device behavior, and failure states that matter.
- Build a state matrix that covers loading, content, empty, error, offline, stale-data, denied-permission, and post-action confirmation states as applicable.
- Identify the owning screens, activities, destinations, and state holders for each branch of that matrix.
- Validate recovery UX, accessibility, configuration changes, and back-stack behavior in the showcase apps.
- Hand off to testing only when the missing work is about assertions or automation rather than state design.
Guardrails
- Treat loading, empty, error, offline, and permission-denied states as first-class UI states.
- Do not hide navigation or permission side effects inside reusable UI components.
- Prefer lifecycle-aware APIs over manual callback chains.
- Keep deep links, intents, and permission prompts testable and observable.
- Distinguish transient messages, persistent error states, and stale-but-usable content instead of collapsing them into one generic failure screen.
Anti-Patterns
- Assuming the happy path is enough for product flows.
- Hard-coding request codes or route strings in multiple places.
- Triggering navigation directly from repositories or network layers.
- Shipping flows without recovery UI for denied permissions or broken state.
- Using tests as a substitute for deciding what the product should show in each failure mode.
Examples
Happy path
- Scenario: Validate OrbitTasks loading, content, and success confirmation states.
- Command:
cd examples/orbittasks-compose && ./gradlew :app:connectedDebugAndroidTest
Edge case
- Scenario: Exercise long content, empty lists, and sync failures in the XML fixture.
- Command:
cd examples/orbittasks-xml && ./gradlew :app:connectedDebugAndroidTest
Failure recovery
- Scenario: Avoid misrouting UI validation work to accessibility or testing-only skills.
- Command:
python3 scripts/eval_triggers.py --skill android-ui-states-validation
Done Checklist
- The implementation path is explicit, minimal, and tied to the right Android surface.
- Relevant example commands and benchmark prompts have been exercised or updated.
- Handoffs to adjacent skills are documented when the request crosses boundaries.
- Official references cover the chosen pattern and the main migration or troubleshooting path.
Official References
When not to use it
- →When the request is about macrobenchmark only
- →When the request is about dependency alignment only
- →When the request is about Hilt graph only
Limitations
- →The skill does not focus on which test framework or assertion library to use
- →The skill does not cover macrobenchmarking
- →The skill does not cover dependency alignment
How it compares
This skill focuses on designing and validating the state coverage and recovery UX for Android UI, rather than just testing the implementation, providing a more holistic approach to UI reliability.
Compared to similar skills
android-ui-states-validation side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| android-ui-states-validation (this skill) | 0 | 4mo | Review | Intermediate |
| ios-simulator-skill | 27 | 2mo | Review | Advanced |
| claude-mobile-ios-testing | 18 | 9mo | No flags | Intermediate |
| build-iphone-apps | 14 | 8mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by krutikJain
View all by krutikJain →You might also like
ios-simulator-skill
conorluddy
21 production-ready scripts for iOS app testing, building, and automation. Provides semantic UI navigation, build automation, accessibility testing, and simulator lifecycle management. Optimized for AI agents with minimal token output.
claude-mobile-ios-testing
krzemienski
Use when testing iOS apps on simulator, capturing screenshots for validation gates, automating UI testing with expo-mcp and xc-mcp, or verifying visual correctness - combines expo-mcp autonomous testing (React Native level) with xc-mcp simulator management (iOS level)
build-iphone-apps
glittercowboy
Build professional native iPhone apps in Swift with SwiftUI and UIKit. Full lifecycle - build, debug, test, optimize, ship. CLI-only, no Xcode. Targets iOS 26 with iOS 18 compatibility.
xcodebuildmcp
cameroncooke
Official skill for XcodeBuildMCP. Use when doing iOS/macOS/watchOS/tvOS/visionOS work (build, test, run, debug, log, UI automation).
flutter
alinaqi
Flutter development with Riverpod state management, Freezed, go_router, and mocktail testing
android-kotlin
alinaqi
Android Kotlin development with Coroutines, Jetpack Compose, Hilt, and MockK testing