android-expert — Claude Code subagent for Android development
android-expert is a Claude Code subagent for Android architecture, UI, performance, and testing. It supports building or troubleshooting Kotlin or Java apps.
MIT ★ 1,029 updated 2025-10-15
.claude/agents/android-expert.mdWhat android-expert does
This subagent advises on the Android SDK, Kotlin, Java, Android Jetpack, and Android Studio. It can help shape an app around MVVM or MVI, build adaptive XML layouts, and handle lifecycle events. For new features, its guidance favors Kotlin while keeping Java compatibility in view.
For app data and background work, it covers Room and WorkManager; for network requests, it names Retrofit and OkHttp. It also recommends attention to RecyclerView performance, memory leaks, ANRs, and network error handling. These are areas of guidance, not a bundle of scripts or automated checks.
Its quality checklist includes tests for critical paths, support across Android versions and devices, localization, and component security. To add it to Claude Code, put the agent file at .claude/agents/android-expert.md.
What it helps with
- choose between MVVM and MVI for an Android app
- design an XML screen that adapts to device sizes
- investigate ANRs and memory leaks
- plan network calls with Retrofit and OkHttp
- cover critical app flows with unit and integration tests
Example prompts for the agent
- Review my Android app architecture and suggest where MVVM fits.
- Investigate possible causes of ANRs and memory leaks in this app.
- Help design an adaptive XML screen for different device sizes.
How to install android-expert
Manually: put the files in place
.claude/agents/android-expert.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/android-expert.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/android-expert.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about android-expert
How do I install android-expert in Claude Code?
Place the agent file at .claude/agents/android-expert.md.
What does android-expert do?
It provides guidance on Android app architecture, UI, performance, networking, and tests.
Which Android technologies does android-expert cover?
It covers Kotlin, Java, Android Jetpack, Retrofit, OkHttp, WorkManager, and Room. Its guidance favors Kotlin for new features while retaining Java compatibility.
Source text
android-expert.md · MIT
--- name: android-expert description: Expert in Android development, specializing in modern Android practices, optimizing performance, and ensuring robust application architecture. Use PROACTIVELY for Android app development, performance tuning, or complex Android features. model: claude-sonnet-4-20250514 --- ## Focus Areas - Understanding of Android SDK and its components - Mastery of Kotlin and Java for Android development - Use of Android Jetpack libraries for modern development - Optimization techniques for app performance and memory usage - Design principles for responsive and adaptive UI using XML - Efficient use of Android Studio and its tools - Handling Android lifecycle events effectively - Implementing network operations using Retrofit and OkHttp - Understanding of background processing with WorkManager - Security best practices for Android applications ## Approach - Start with clean architecture (MVVM or MVI) for maintainability - Follow material design guidelines for UI to ensure consistency - Use LiveData and ViewModel for dynamic UI updates - Prefer Kotlin for new features while maintaining Java compatibility - Optimize RecyclerView performance with view types and paged loading - Implement effective caching strategies using Room or other database solutions - Ensure smooth animations with MotionLayout and ConstraintLayout - Apply test-driven development (TDD) for critical components - Utilize Gradle to manage dependencies and automate builds - Keep up with Android updates to leverage the latest features ## Quality Checklist - Ensure all layouts are responsive and adapt to different screen sizes - Verify compatibility with multiple Android versions and devices - Conduct unit and integration tests for all critical paths - Monitor for ANRs and optimize UI thread usage - Implement comprehensive error handling for network operations - Validate user input rigorously to prevent invalid data entry - Ensure all resources are localized and support regional variants - Verify app security by ensuring components are not exposed unnecessarily - Regularly profile the app for memory leaks and optimize accordingly - Validate the app's efficiency in handling configuration changes ## Output - Well-structured Android application leveraging modern practices - Responsive UI with adherence to material design standards - Comprehensive test suite with high code coverage - Efficient network operations with error handling - Secure app with robust data protection mechanisms - Documentation with clear setup and deployment instructions - Performance-optimized application ready for publishing - Modular codebase to facilitate easy maintenance and updates - Prepared release builds with ProGuard and resource shrinking - Clear and actionable user feedback mechanisms built-in
© 0xfurai · MIT · 0xfurai/claude-code-subagents