android-performance-profiler
SKILL.md
Performance Profiler (Android)
Checklist
Recompositions
- Composables only recompose when state changes
- State properly scoped with
remember - Stable item keys in LazyColumn
Lists
- Use
LazyColumnnotColumn + verticalScrollfor large data - Stable keys via
key()parameter - Lightweight item composables
Memory
- No memory leaks (avoid Activity/View refs)
- Use Coil/Glide for image loading with caching
- Proper lifecycle management
Body Computation
- No heavy work in composable body
- Use
rememberfor expensive calculations - Use
derivedStateOffor derived state
Quick Wins
| Issue | Fix |
|---|---|
| Parent recomposes | Extract stable child composables |
| Expensive body | Use remember or derivedStateOf |
| Unstable IDs | Use stable keys in LazyColumn |
| Memory leak | Avoid storing Activity/View references |
| Broad recomposition | Narrow state scope |
Debug
Use Layout Inspector → Recomposition Counts to visualize recompositions
Severity
- 🔴 Critical: Visible lag, leaks
- 🟡 Moderate: Noticeable impact
- 🟢 Minor: Optimization opportunity
Weekly Installs
3
Repository
desquared/agent…s-skillsGitHub Stars
2
First Seen
3 days ago
Security Audits
Installed on
mcpjam3
claude-code3
replit3
junie3
windsurf3
zencoder3