jetpack-compose-performance
Skill by rikkahub
Diagnoses and optimizes Android Jetpack Compose UI code to reduce recomposition overhead, dropped frames and UI lag. It is aimed at Android developers analyzing performance bottlenecks in existing Compose code.
Install jetpack-compose-performance
Built from the published package, never by AI.
git clone --depth 1 https://github.com/rikkahub/rikkahub /tmp/rikkahub && mkdir -p ~/.claude/skills && cp -r /tmp/rikkahub/.agents/skills/jetpack-compose-performance ~/.claude/skills/jetpack-compose-performanceRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install jetpack-compose-performance in Claude Code
git clone --depth 1 https://github.com/rikkahub/rikkahub /tmp/rikkahub && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/rikkahub/.agents/skills/jetpack-compose-performance ~/.gemini/antigravity-cli/skills/jetpack-compose-performanceAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install jetpack-compose-performance in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Jetpack Compose Performance is an agent skill for diagnosing and optimizing Android Jetpack Compose UI code. It is meant for analyzing performance bottlenecks in existing code, with the goal of reducing recomposition overhead and preventing dropped frames and UI lag. The skill runs an audit that checks every composable, modifier chain and lazy-layout data model against seven categories of rules.
Before micro-optimizing, the skill asks for standard production settings: a release build, R8 minification and baseline profiles. The visible rules cover state and stability, layout and measurement, and lazy layouts. Examples include deferring state reads to the layout or draw phase, avoiding onGloballyPositioned, and requiring keys and contentType in lazy lists. The skill says to read its reference files before reporting a finding or editing code. It is written for Android developers working on Compose code.
Written from the project's SKILL.md and checked against it.
What it can do
- Foundational prerequisitesChecks for release builds, R8 minification and baseline profiles before micro-optimizing composables.
- Optimization audit workflowScans target code against all seven core categories rather than stopping at the first issue found.
- State, snapshots and stabilityCovers phase deferral, backwards writes, remember keys, derivedStateOf and computedStateOf, and stability trade-offs.
- Layouts and measurementCovers coordinates and placement, floating content via custom Layout, offsets and subcomposition overhead.
- Lazy layoutsRequires primitive keys and contentType in lazy containers and replaces indexOf lookups with itemsIndexed.
What you need
- Android project using Jetpack Compose
- Compose 1.13 or later for computedStateOf
- Release build with R8 enabled for profiling
Try asking
- Audit this Compose screen for recomposition and state issues
- Check my LazyColumn items for missing keys and contentType
- Find backwards state writes in this composable and suggest fixes
Good to know
- Profiling and benchmarks must use release builds, not debuggable builds.
- Existing @Stable or @Immutable annotations should only be removed for large lazy datasets.
- Recomposition counts alone are not a reliable measure, so results should be verified with benchmarks.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/jetpack-compose-performance/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md20 KB -
references/android/develop/ui/compose/custom-modifiers.md27 KB -
references/android/develop/ui/compose/performance/backwards-write.md11 KB -
references/android/develop/ui/compose/performance/stability/strongskipping.md6 KB -
references/animation.md8 KB
Show all 10 files
-
references/effects-and-threading.md17 KB -
references/graphics-performance.md9 KB -
references/layouts.md8 KB -
references/lazy-layouts.md13 KB -
references/state-and-stability.md28 KB
Alternatives to jetpack-compose-performance
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
jetpack-compose-performance: common questions
Does this skill change Compose code automatically?
The source says the skill must read its reference files before flagging or editing code, so it is meant to inform fixes. It does not state whether edits are applied without review.
Should I add ImmutableList to my models?
The source says not to recommend replacing kotlin.collections.List with ImmutableList, because structural equality can cost more than instance equality under Strong Skipping Mode.
When is computedStateOf preferred over derivedStateOf?
On Compose 1.13 and later, the source recommends computedStateOf for simple checks and filtered state from fast-changing inputs. Earlier versions use remember with derivedStateOf.
How do I install jetpack-compose-performance?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is jetpack-compose-performance free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is jetpack-compose-performance safe to use?
It scores 92 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to jetpack-compose-performance?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
