/android-review:performancefrom android-review
Audits Android (Kotlin/Compose) apps for performance issues including cold start, UI jank, memory leaks, ANR, Compose recomposition waste, missing baseline profiles, and battery drain. Produces structured findings with prioritized fixes.
Ships in android-review. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Produce a structured audit report with prioritized findings and concrete fixes.
Scan project structure (build.gradle, AndroidManifest.xml, source tree) to determine which categories apply. SKIP categories with no relevant code.
| Category | Skip If |
|---|---|
| Startup | No custom Application class, no splash screen |
| Recomposition | No Jetpack Compose (@Composable not found) |
| Memory | No ViewModel / Repository / singleton patterns |
| ANR | No SharedPreferences / BroadcastReceiver / sync I/O |
| Pagination | No list screens or large data sets |
| Baseline Profiles | NEVER skip — always relevant |
| Battery & Network | No background work, location, or network calls |
Run all relevant categories in PARALLEL using independent Task agents. Each agent:
Merge parallel results into the final report format below.
| Metric | Target | Critical |
|---|---|---|
| Cold start | < 500ms | > 1000ms |
| Warm start | < 300ms | > 600ms |
| Hot start | < 100ms | > 200ms |
| ANR rate | < 0.47% | > 1% |
| Crash rate | < 1.09% | > 2% |
Grep-ready patterns per category. Only search categories that passed triage.
Startup
class \w+ : Application → check onCreate body for heavy sync initContentProvider in manifest → auto-init SDKs blocking startupreportFullyDrawn() anywhere in codebaseRecomposition
List< / MutableList< / ArrayList< in @Composable fun parameters → unstable type, use ImmutableList or @Immutable wrapper{ viewModel. or { \w+ViewModel. inline in Composable call sites → lambda recreated every recomposition, extract with rememberitems( without key = in LazyColumn/LazyRow.value read outside graphicsLayer / Modifier.layout / Modifier.drawBehind → state read triggers full recomposition instead of layout/draw onlycomposeCompiler { reportsDestination } in build.gradle → no compiler metricsMemory
context: or Context field in ViewModel / Repository / object declaration → Activity leakCoroutineScope( without lifecycle-aware cancellationcompanion object or top-level val holding Activity/View/Fragment reference= Rect( / = Paint( / = StringBuilder() inside for / while loop bodyANR
.commit() on SharedPreferences → blocks main thread, use .apply()withContext(Dispatchers.IO) on a path reachable from main threadBroadcastReceiver subclass with onReceive body missing goAsync()Pagination
Column { followed by .forEach or for ( → composes ALL items, use LazyColumnBaseline Profiles
profileinstaller NOT in dependencies (build.gradle / libs.versions.toml):baselineprofile module or BaselineProfileRule test classBattery & Network
AlarmManager usage → should be WorkManager for deferrable workOkHttpClient without .cache( → missing HTTP cacheremoveUpdates[PERF-{CATEGORY}-{NNN}] impact: CRITICAL | HIGH | MEDIUM | LOW
Finding: <root cause>
Location: <file:line> ← required for CRITICAL/HIGH only
Fix: <concrete action>
Metric: <expected improvement>
## Performance Audit Report
### Summary
- Critical: N | High: N | Medium: N | Low: N
- Scanned: N/7 categories (skipped: <list with reasons>)
### Findings
#### Startup
[PERF-STARTUP-001] impact: CRITICAL
Finding: Synchronous SDK init in Application.onCreate
Location: App.kt:15
Fix: Defer via App Startup library or lifecycle observer
Metric: ~400ms cold start reduction
#### ...
### Metrics
| Metric | Estimated | Target | Status |
|--------|-----------|--------|--------|
| Cold start | Xms | <500ms | PASS/FAIL |
| ANR rate | X% | <0.47% | PASS/FAIL |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub liuyi0808/android-review --plugin android-review6 skills in this plugin
/architectureAndroid application architecture standards using Clean Architecture, MVVM/MVI patterns, Hilt dependency injection, and modularization. Use when: designing app structure, creating ViewModel/Repository/UseCase classes, setting up Hilt DI modules, planning module boundaries, reviewing layer dependencies, implementing offline-first data patterns, defining error handling strategy, or starting a new Android feature module./compose-uiJetpack Compose UI best practices and patterns for Material 3. Use when: writing or reviewing Compose UI code, implementing state hoisting, using side effects (LaunchedEffect, DisposableEffect), setting up type-safe navigation, building responsive layouts with WindowSizeClass, implementing accessibility (content descriptions, touch targets, semantics), creating animations (AnimatedVisibility, animateXAsState), or designing reusable composable components./kotlin-qualityKotlin code quality review for Android projects. Covers coroutine structured concurrency, Flow operators, null safety, type design (sealed classes, data classes, value objects), and collection/functional patterns. Use when: reviewing Kotlin code in PRs, auditing coroutine usage, checking null safety patterns, evaluating type design decisions, or improving code readability and correctness./play-storeGoogle Play submission and compliance audit for personal loan apps targeting Africa and Latin America. Covers organization account verification, market-specific licensing, loan restrictions, permissions, mandatory three-way privacy verification (collection, in-app disclosure, and privacy policy), reviewer access, and general Play publishing requirements./security-auditAndroid application security audit based on OWASP MASVS v2.0 and Kotlin secure coding practices. Use when: writing or reviewing code involving sensitive data storage (SharedPreferences, Room), cryptography (encryption keys, Keystore), authentication (biometrics, token management), network security (TLS, cert pinning), WebView hardening, Content Provider security, reverse engineering resilience (root detection, tamper detection), or user privacy (data minimization, consent).Other plugins' skills for the same job