android-performance-profiler

Identifies potential performance bottlenecks in Jetpack Compose code including expensive recompositions, unnecessary redraws, and memory issues. Use when code involves lists, animations, complex UI, or when the user asks about performance optimization.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "android-performance-profiler" with this command: npx skills add desquared/agents-rules-skills/desquared-agents-rules-skills-android-performance-profiler

Performance Profiler (Android)

Checklist

Recompositions

  • Composables only recompose when state changes
  • State properly scoped with remember
  • Stable item keys in LazyColumn

Lists

  • Use LazyColumn not Column + verticalScroll for 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 remember for expensive calculations
  • Use derivedStateOf for derived state

Quick Wins

IssueFix
Parent recomposesExtract stable child composables
Expensive bodyUse remember or derivedStateOf
Unstable IDsUse stable keys in LazyColumn
Memory leakAvoid storing Activity/View references
Broad recompositionNarrow state scope

Debug

Use Layout Inspector → Recomposition Counts to visualize recompositions

Severity

  • 🔴 Critical: Visible lag, leaks
  • 🟡 Moderate: Noticeable impact
  • 🟢 Minor: Optimization opportunity

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

shared-bug-investigation

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

ios-accessibility-validator

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

android-accessibility-validator

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

android-compose-architecture-review

No summary provided by upstream source.

Repository SourceNeeds Review