compose-performance-audit

Audit Jetpack Compose runtime performance via code review and profiling.

1|Updated Sep 7, 2025
One-click install
npx skills add https://github.com/sahuadarsh0/Wallet --skill compose-performance-audit-sahuadarsh0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compose-performance-audit
Source: https://github.com/sahuadarsh0/Wallet/tree/main/.cursor/skills/compose-performance-audit
Command: npx skills add https://github.com/sahuadarsh0/Wallet --skill compose-performance-audit-sahuadarsh0

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Jetpack Compose UIs can suffer from jank, slow renders, and excessive recompositions that degrade user experience and frustrate users.

Core Features & Use Cases

  • Instrumentation and baselining to quantify recomposition counts and frame drops for Compose screens.
  • Root-cause analysis with concrete remediation steps to fix slow rendering, jank, and heavy recompositions.
  • End-to-end workflow from code review to profiling and optimization in both development and production contexts.

Quick Start

Run an initial Compose performance audit on the target screen to identify bottlenecks and reproduce the issue.

Frequently Asked Questions about compose-performance-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix excessive recompositions in Jetpack Compose?

Fix Jetpack Compose jank and slow rendering by diagnosing root causes through code review and profiling with Layout Inspector and Perfetto. Remediation involves architectural changes to reduce recomposition counts and optimize rendering performance in release builds.

What is the best way to profile Jetpack Compose scrolling jank?

Profile Jetpack Compose scrolling jank using Perfetto and Macrobenchmark to quantify frame drops and trace rendering bottlenecks. Capture system traces during scrolling interactions to pinpoint slow layout phases and heavy recompositions causing the jank.

How do I baseline and measure Compose recomposition counts?

Baseline Compose recomposition counts by instrumenting target screens with Layout Inspector to track recomposition frequency and identify unnecessary UI invalidations. Quantify these metrics before and after optimization to validate performance improvements in release builds.

Why does my Jetpack Compose UI render slowly in release builds?

Jetpack Compose UIs render slowly in release builds due to heavy recompositions, inefficient layout phases, or unoptimized state management. Audit the architecture using Perfetto traces and Macrobenchmark to identify runtime bottlenecks and apply targeted remediation steps.

Can I use Macrobenchmark to validate Jetpack Compose performance optimizations?

Use Macrobenchmark to validate Jetpack Compose performance optimizations by measuring frame timing and recomposition metrics across release builds. Baseline metrics before remediation and re-run benchmarks after applying fixes to confirm reduced jank and improved rendering.