Compose Performance
Expert guidance on diagnosing and fixing Jetpack Compose performance problems using recomposition tracing, stability/immutability annotations, and Compose compiler metrics. Use this for jank, slow lists, or recomposition complaints.
Install
npx skills add PanPanFR/oh-my-openkilo --skill compose-performancegit clone --depth 1 https://github.com/PanPanFR/oh-my-openkilo.git /tmp/oh-my-openkilo
mkdir -p ~/.claude/skills
cp -r /tmp/oh-my-openkilo/archive/skills/android/compose-performance ~/.claude/skills/compose-performancePersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Compose Performance — Stability, Recomposition, Metrics
## Reference map
Deep dives live in `references/`: `state-and-stability.md`, `layouts.md`, `lazy-layouts.md`, `animation.md`, `effects-and-threading.md`, `graphics-performance.md`, plus `references/android/` framework docs. Load the file matching the reported symptom.
## Instructions
Compose is fast **when it can skip**. Most performance complaints are stability problems in disguise. Measure first; fix the root cause.
### 1. Generate Compose Compiler Reports
Add to each Compose module's `build.gradle.kts`:
```kotlin
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
compilerOptions.freeCompilerArgs.addAll(
"-P", "plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=${layout.buildDirectory.get()}/compose-reports",
"-P", "plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=${layout.buildDirectory.get()}/compose-metrics",
)
}
```
Build and inspect `build/compose-reports/*-classes.txt`. You want:
- Every data class used as Compose state: `stable`.
- Every screen composable: `skippable` and `restartable`.
- Zero `unstable parameter:` lines in hot paths.
### 2. Common Instability Causes and Fixes
| Cause | Fix |
|---|---|
| `List<T>` parameter | Use `ImmutableList<T>` from `kotlinx.collections.immutable`. |
| `LocalDateTime`, `LocalDate` | Annotate a wrapper `@Immutable data class` or map to `Long`. |Details
- Skill name
compose-performance- Repository
- PanPanFR/oh-my-openkilo
- Path
archive/skills/android/compose-performance/SKILL.md- License
- MIT
- Repo updated
- 2 November 2026
FAQ
What does the Compose Performance skill do?
Expert guidance on diagnosing and fixing Jetpack Compose performance problems using recomposition tracing, stability/immutability annotations, and Compose compiler metrics. Use this for jank, slow lists, or recomposition complaints.
How do I install the Compose Performance skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add PanPanFR/oh-my-openkilo --skill compose-performance. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Compose Performance popular?
It lives in PanPanFR/oh-my-openkilo, which has 9 GitHub stars and 1 forks.
Related skills
Adaptive
9PanPanFR/oh-my-openkilo
Instructions to make or update an app's UI so that it adapts to different Android devices including phones, tablets, foldables, laptops, desktop, TV, Auto, and XR. It includes how to handle different window sizes, pointing devices (such as mouse) and text entry devices (such as keyboard) using the Compose MediaQuery API, and how to preserve UI, navigation, scroll, and media playback state across configuration changes (such as folding/unfolding a foldable, rotating a device, or resizing a window). It also covers multi-pane layouts using Navigation3 Scenes, adaptive UI components (such as button
Agentmemory
9PanPanFR/oh-my-openkilo
Index for agentmemory internals: how it is wired into a host agent, its architecture and ports, configuration flags, capture hooks, MCP tool surface, and REST fallback. Use when installing or debugging agentmemory itself, when a memory tool name or parameter is unclear, or when capture is not recording. For normal recall and save work, use agentmemory-ops instead.
Agentmemory History
9PanPanFR/oh-my-openkilo
Read past work: resume the last session, recap recent sessions, list agent-linked commits, trace a line back to the session that wrote it, or compact the current conversation for handoff. Use when the user says "where were we", "resume", "recap", "session history", "what did we do", "why is this code here", "who wrote this", or "handoff".
Compose State Management
9PanPanFR/oh-my-openkilo
Manage Compose state, remember APIs, side effects, snapshots, and screen-level state, events, reducers, and ViewModel holders without leaks or loops.
Compose Navigation
9PanPanFR/oh-my-openkilo
Expert guidance on Compose Navigation using typed routes with kotlinx.serialization, NavHost setup, deep links, and navigation-scoped ViewModels. Use this for any navigation task.
Display Glasses with Jetpack Compose Glimmer
9PanPanFR/oh-my-openkilo
Provides guidelines for developing projected Android XR apps for display glasses using the Jetpack Compose Glimmer UI toolkit. Covers Glimmer design principles, workflows, and interaction models for the glasses form factor. Use this skill to build an Android XR Augmented Experience app with Jetpack Compose Glimmer. Don't use for audio-only AI glasses without a display, non-glasses Android XR headsets (spatial panels or 3D volumes with Jetpack Compose for XR), or phone and tablet Material 3 UIs.
Browse the most popular Claude skills, all mobile development skills, or write your own with the skills generator.