compose-performance-audit

Analyze Jetpack Compose code to diagnose recomposition storms and jank.

Updated Nov 3, 2025
One-click install
npx skills add https://github.com/devanfer02/telnetquiz --skill compose-performance-audit-devanfer02
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compose-performance-audit
Source: https://github.com/devanfer02/telnetquiz/tree/main/.claude/skills/compose-performance-audit
Command: npx skills add https://github.com/devanfer02/telnetquiz --skill compose-performance-audit-devanfer02

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill analyzes and optimizes Jetpack Compose runtime performance, guiding code review and architecture decisions to reduce recompositions, layout thrashing, and jank.

Core Features & Use Cases

  • Code-First Review: evaluate target Composable code, data flow, state handling, and reproduction steps to identify recomposition storms, unstable keys, and heavy work during composition.
  • Guided Profiling: provide instructions to collect Layout Inspector data, enable Recomposition Highlights, and capture Perfetto traces or macrobenchmark results.
  • Remediation Guidance: suggest fixes like stabilizing state, memoizing expensive computations, stabilizing keys in Lazy lists, and simplifying layout structures.
  • Use Case: imagine a slow-scrolling screen; apply this skill to diagnose root causes and outline concrete fixes with expected impact.

Quick Start

Provide the target Composable code and a minimal reproduction scenario to begin the audit.

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 Jetpack Compose slow scrolling and jank caused by recomposition storms?

Fix Jetpack Compose slow scrolling by analyzing data flow and state handling to identify recomposition storms. Stabilize state, memoize expensive computations, and stabilize keys in Lazy lists to reduce layout thrashing and eliminate jank.

How do I capture Perfetto traces to diagnose Android Compose performance issues?

Capture Perfetto traces by following guided profiling instructions to record runtime data during scrolling or startup. Combine Perfetto traces with Layout Inspector recomposition counts and macrobenchmark results to verify rendering improvements.

Why does my Jetpack Compose UI recompose excessively during screen startup?

Jetpack Compose UI recomposes excessively during startup due to unstable keys and heavy work executed during composition. Conduct a code-first review of target Composable code to isolate unstable state and architecture bottlenecks causing the recomposition storm.

Can I use Layout Inspector to find Jetpack Compose layout thrashing?

Yes, you can use Layout Inspector to find Jetpack Compose layout thrashing by enabling Recomposition Highlights. This visual tool pinpoints exactly which Composables are recomposing excessively so you can apply targeted remediation.

What's the best way to audit Jetpack Compose code for slow rendering?

The best way to audit Jetpack Compose slow rendering is a code-first review evaluating target Composable code, data flow, and reproduction steps. Provide the Composable code and minimal reproduction scenario to receive structured root-cause analysis and concrete fixes.

Do I need macrobenchmarks to verify Jetpack Compose performance improvements?

Yes, you need macrobenchmarks to verify Jetpack Compose performance improvements quantitatively. Capture macrobenchmark results alongside Perfetto traces to measure rendering speeds before and after applying remediation guidance like stabilizing keys and memoizing computations.