| name | android-code-review-expert |
| description | Use when performing a code review for Android pull requests, focusing on architecture, memory safety, and UI excellence. |
| category | quality |
| risk | low |
| source | community |
| date_added | 2026-03-31 |
| metadata | {"triggers":["@code-review","review-pr","diff-analysis","security-check","performance-check"]} |
Android Code Review Excellence 🧐🛡️
A rigorous framework for AI agents and developers to perform high-quality, professional Android code reviews.
⚡ When to Use
- PR Review: Analyzing a Pull Request for logic, style, and regressions.
- Pre-commit Audit: Self-checking code before pushing.
- Architectural Check: Ensuring new features follow the established team patterns.
- Security Audit: Spotting sensitive data exposure or insecure networking.
- Performance Audit: Detecting potential memory leaks or UI jank.
🏗️ Review Checklist
1. Architecture & Design
2. Jetpack Compose (UI)
3. Stability & Networking
4. Performance & Memory
5. Security & Privacy
📜 Reviewer Best Practices
- The "Why", Not Just the "What": Explain the reasoning behind a request (e.g., "Use
remember here to prevent re-calculating on every frame").
- Prioritize: Distinguish between "Critical" (security, crashes) and "Nitpick" (formatting, naming).
- Compliment: Acknowledge good code, elegant solutions, and clear documentation.
🧪 Verification Commands (For Agents)
Check Lint
./gradlew lintDebug
Check Style
./gradlew ktlintCheck
Run Logic Tests
./gradlew testDebugUnitTest
🔗 Related Resources