xiaohongshu
xiaohongshu
android-emulator-skill
Production-ready scripts for Android app testing, building, and automation. Provides semantic UI navigation, build automation, accessibility testing, and emulator lifecycle management. Optimized for AI agents with minimal token output. Android equivalent of ios-simulator-skill.
Full skill instructions
Build, test, and automate Android applications using accessibility-driven navigation and structured data instead of pixel coordinates.
# 1. Launch app
python scripts/app_launcher.py --launch com.example.app
# 2. Map screen to see elements
python scripts/screen_mapper.py
# 3. Tap button
python scripts/navigator.py --find-text "Login" --tap
# 4. Enter text
python scripts/navigator.py --find-type EditText --enter-text "[email protected]"
# 5. Run accessibility audit
python scripts/accessibility_audit.py
All scripts support --help for detailed options and --json for machine-readable output.
--launch, --terminate, --install, --uninstall, --open-url, --list, --state, --jsonemulator_boot.py - Boot emulators with optional readiness verification
--avd, --wait-ready, --timeout, --headless, --list-avds, --jsonemulator_shutdown.py - Gracefully shutdown emulators
--serial, --verify, --timeout, --all, --jsonemulator_create.py ⭐ NEW - Create AVDs dynamically
--device, --api, --name, --abi, --variant, --list-devices, --list-images, --jsonemulator_delete.py ⭐ NEW - Delete AVDs permanently
--name, --list, --jsonemulator_erase.py ⭐ NEW - Factory reset AVDs
--name, --force, --list, --jsonbuild_and_test.py ⭐ NEW - Gradle build automation
--project, --variant, --clean, --test, --verbose, --jsonlog_monitor.py ⭐ NEW - Real-time logcat monitoring
--app, --serial, --severity, --follow, --duration, --output, --clear, --verbose, --jsonscreen_mapper.py - Analyze current screen and list interactive elements
--serial, --verbose, --json, --listnavigator.py - Find and interact with elements semantically
--find-text, --find-type, --find-id, --tap, --enter-text, --list, --serial, --jsongesture.py - Perform swipes, scrolls, long press
--swipe, --from-edge, --duration, --long-press, --scroll, --serial, --jsonkeyboard.py - Text input and hardware buttons
--text, --key, --button, --clear, --serial, --jsonaccessibility_audit.py ⭐ NEW - WCAG compliance checking
--serial, --output, --verbose, --jsonvisual_diff.py - Compare screenshots for visual changes
--image1, --image2, --output, --threshold, --jsontest_recorder.py ⭐ NEW - Automatically document test execution
--test-name, --output, --serial, --inline, --size, --app-nameapp_state_capture.py ⭐ NEW - Complete debugging snapshots
--package, --output, --serial, --logs, --no-logs, --screenshot-size, --jsonprivacy_manager.py ⭐ NEW - App permission management
--grant, --revoke, --list, --package, --serial, --list-permissions, --jsonclipboard.py ⭐ NEW - Clipboard management
--copy, --paste, --serial, --jsonstatus_bar.py ⭐ NEW - Status bar control
--battery, --charging, --wifi, --mobile, --time, --reset, --serial, --jsonpush_notification.py ⭐ NEW - Push notification simulation
--package, --title, --message, --id, --data, --list-channels, --method, --serial, --json| iOS Tool | Android Equivalent | Status |
|---|---|---|
| xcrun simctl | adb / avdmanager / emulator | ✓ Complete |
| IDB | adb shell uiautomator / input | ✓ Complete |
| iOS Simulator | Android Emulator | ✓ Complete |
| xcodebuild | Gradle wrapper | ✓ Complete |
| Accessibility tree | UI hierarchy dump | ✓ Complete |
| simctl privacy | pm grant/revoke | ✓ Complete |
| xcresult | Gradle test reports | ✓ Complete |
# 1. Launch app
python scripts/app_launcher.py --launch com.example.app
# 2. See what's on screen
python scripts/screen_mapper.py
# 3. Interact
python scripts/navigator.py --find-text "Login" --tap
python scripts/navigator.py --find-type EditText --index 0 --enter-text "[email protected]"
python scripts/keyboard.py --button enter
# 4. Verify
python scripts/screen_mapper.py
# 1. Start recording
recorder = TestRecorder("Login Flow")
# 2. Execute test steps
recorder.step("Launch app", screen_name="Splash")
# ... interactions ...
recorder.step("Verify logged in", screen_name="Home")
# 3. Finish
recorder.finish(passed=True)
# 1. Create fresh emulator
python scripts/emulator_create.py --device pixel_7 --api 34 --name test-device
# 2. Boot emulator
python scripts/emulator_boot.py --avd test-device --wait-ready
# 3. Build and test
python scripts/build_and_test.py --project . --test
# 4. Run UI tests
# ... your test scripts ...
# 5. Cleanup
python scripts/emulator_shutdown.py --serial emulator-5554
python scripts/emulator_delete.py --name test-device
# 1. Capture complete state
python scripts/app_state_capture.py --package com.myapp --output debug-snapshots/
# 2. Monitor logs in real-time
python scripts/log_monitor.py --app com.myapp --severity error,warning --follow
# 3. Check accessibility issues
python scripts/accessibility_audit.py --output audit-reports/ --verbose
# 1. Install Android SDK (via Android Studio or command line tools)
# Download from: https://developer.android.com/studio
# 2. Set environment variables
export ANDROID_HOME=$HOME/Library/Android/sdk # macOS
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/emulator
# 3. Verify installation
adb version
emulator -version
# Personal installation
git clone <repository-url> ~/.claude/skills/android-emulator-skill
# Project installation
git clone <repository-url> .claude/skills/android-emulator-skill
Semantic Navigation: Find elements by meaning (text, type, ID) not pixel coordinates. Survives UI changes.
Token Efficiency: Concise default output (3-5 lines) with optional verbose and JSON modes for detailed results. 96% reduction vs raw tools.
Accessibility-First: Built on standard accessibility APIs for reliability and compatibility.
Zero Configuration: Works immediately with Android SDK installed. No complex setup required.
Structured Data: Scripts output JSON or formatted text, not raw logs. Easy to parse and integrate.
Cross-Platform: Works on macOS, Linux, and Windows.
Real Devices: Unlike iOS, works with both emulators and real devices.
Real Device Support: Works with both emulators and physical devices connected via USB/WiFi.
Multiple Emulators: Support for running multiple emulators simultaneously with batch operations.
Flexible Architecture: Works with both x86_64 and ARM emulator architectures.
Gradle Integration: Native integration with Android's Gradle build system.
Advanced Logging: Logcat filtering with regex, severity, and app-specific targeting.
Permission Testing: Programmatic grant/revoke of runtime permissions.
Notification Testing: Simulate push notifications for testing handling logic.
100% Feature Parity Achieved! ✓
This Android skill now provides equivalent functionality to the iOS Simulator Skill:
| Feature Category | iOS | Android | Status |
|---|---|---|---|
| App Management | ✓ | ✓ | Complete |
| Device Lifecycle | ✓ | ✓ | Complete |
| Navigation | ✓ | ✓ | Complete |
| Gestures | ✓ | ✓ | Complete |
| Keyboard Input | ✓ | ✓ | Complete |
| Build Automation | ✓ | ✓ | Complete |
| Log Monitoring | ✓ | ✓ | Complete |
| Accessibility Audit | ✓ | ✓ | Complete |
| Visual Testing | ✓ | ✓ | Complete |
| Test Recording | ✓ | ✓ | Complete |
| State Capture | ✓ | ✓ | Complete |
| Permissions | ✓ | ✓ | Complete |
| Clipboard | ✓ | ✓ | Complete |
| Status Bar | ✓ | ✓ | Complete |
| Push Notifications | ✓ | ✓ | Complete |
New scripts should:
Status: Feature complete! All 20 scripts implemented with full feature parity to iOS Simulator Skill.
Use these scripts directly or let Claude Code invoke them automatically when your request matches the skill description.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience