Skills Prompts Hues

Popular categories

Agent skill · Android Skills

/jetpack-compose-performance Find and fix the Compose code that drops frames

jetpack-compose-performance has the agent audit composables against seven categories: state and stability, layouts, lazy lists, animation, effects and threading, graphics, and custom modifiers. It must read the matching reference file before flagging or editing anything, and it pushes back on common folklore, such as adding stability annotations to collection models, in favour of cheaper composables and deferred state reads.

Works with

  • Android CLI
  • Claude Code
  • Codex

Used forAndroid, Expo and React Native

When to use it

  • A scrolling feed or animation stutters on real devices.
  • You want a structured performance review of Compose code before release.
  • Someone proposes adding Immutable annotations everywhere and you want a second opinion.

How it works

  1. 1
    Check the basics

    The agent confirms profiling happens on release builds with R8 on and baseline profiles generated for key journeys.

  2. 2
    Scan everything

    Every composable, modifier chain and lazy list model is checked against all seven categories rather than stopping at the first issue.

  3. 3
    Read before fixing

    For any matching rule it opens the category's reference file to get the approved fix pattern and its scope limits.

  4. 4
    Apply targeted fixes

    Typical fixes defer fast-changing reads into layout or draw lambdas, add keys and content types to lazy items and move heavy work off the main thread.

What it steers the agent away from

  • Adding Stable, Immutable or ImmutableList to models that hold collections.
  • Triggering impression analytics from effects inside pre-fetched lazy items.
  • Benchmarking debuggable builds.

Install this skill

It installs with the Android Skills pack.

Android CLI (detected agents)--all installs every skill for each detected agent (Gemini and Antigravity if none are found), while --project puts one skill in a given folder.
android skills add --all
android skills add r8-analyzer --project=.
android skills update --all
Claude CodeInstalls the collection as a Claude Code plugin.
/plugin marketplace add android/skills
/plugin install android-skills@android-skills
CodexInstalls the collection as a Codex plugin.
codex plugin marketplace add android/skills
codex plugin add android-skills@android-skills

Commands come from the author’s README; check it for changes before you run them.

Questions

Does it tell me to chase recomposition counts?

No. It says skipping is not free and focuses on making composables cheap and verifying with benchmarks.

Does it cover Modifier.Node?

Yes. One category covers migrating Modifier.composed modifiers to Modifier.Node implementations.

More guides from Android Skills

Also in this pack

All 37 skills →

Summary by trendhub. The skill itself lives in android/skills/jetpack-compose/jetpack-compose-performance by Android (Apache-2.0); read the full, current text there.