compose-performance-audit

Analyze Jetpack Compose code for recomposition issues and guide profiling.

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/siddhantparadox/codexAndroidApp --skill compose-performance-audit-siddhantparadox
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compose-performance-audit
Source: https://github.com/siddhantparadox/codexAndroidApp/tree/main/.agents/skills/compose-performance-audit
Command: npx skills add https://github.com/siddhantparadox/codexAndroidApp --skill compose-performance-audit-siddhantparadox

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses performance bottlenecks in Jetpack Compose applications, such as slow rendering, janky scrolling, and excessive recompositions, by analyzing code and profiling data.

Core Features & Use Cases

  • Code Review: Analyzes composable functions for common performance anti-patterns.
  • Profiling Guidance: Guides users on collecting performance data using Android Studio tools (Layout Inspector, Perfetto).
  • Root Cause Analysis: Identifies specific issues like recomposition storms, unstable keys, and heavy work in composition.
  • Remediation: Provides concrete steps and code examples to fix identified performance problems.
  • Use Case: A developer notices their Compose list is scrolling poorly. They use this Skill to review the list's composables, identify unstable keys causing unnecessary recompositions, and refactor the code for smoother scrolling.

Quick Start

Review the provided Composable code for performance issues and suggest optimizations.

Frequently Asked Questions about compose-performance-audit

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

FAQPage Schema
Why does my Jetpack Compose UI have excessive recompositions and janky scrolling?

Unstable parameters, missing `remember` calls, and layout thrashing cause excessive recompositions and janky scrolling in Jetpack Compose. Auditing your composable code identifies these specific performance bottlenecks for remediation.

How do I find recomposition issues in Jetpack Compose?

To find recomposition issues, analyze composable functions for unstable parameters and heavy work in composition. Collect performance data using Android Studio tools like Layout Inspector and Perfetto to diagnose slow rendering and excessive recompositions.

What is the best way to profile Compose UI performance on Android?

The best way to profile Compose UI performance is by collecting data with Layout Inspector and Perfetto. These tools guide you through identifying slow rendering, janky scrolling, and recomposition storms for targeted remediation.

Do I need to provide my own code to diagnose Jetpack Compose performance issues?

Yes, you must provide user-provided code or profiling data for diagnosis and remediation. The audit requires your composable functions or performance metrics to identify specific issues like missing `remember` calls and unstable parameters.

How do I fix slow rendering and layout thrashing in Jetpack Compose?

Fix slow rendering and layout thrashing by refactoring composables to use `remember` calls and stable parameters. Analyzing your code reveals concrete steps and examples to resolve heavy work in composition and unnecessary recompositions.