compose-performance

compose-performance is a skill for Claude Code, Codex from GDvega/super-android-kotlin-firebase-skill. It costs 33 tokens per session (642 once invoked), scanned A, original, MIT.

A guide for finding and fixing slow Jetpack Compose screens, the Android UI framework. It focuses on recomposition, scrolling lists, state, tracing, benchmarks, and baseline profiles, which help Android apps start and run smoothly.

In plain words
What is it for?
Use it when a Compose screen drops frames, scrolls poorly, recomposes too often, or needs performance measurement and validation.
Why use it?
It keeps performance work tied to measured symptoms instead of broad rewrites or guesswork. It also calls out common causes such as unstable data, poor list keys, and unnecessary state work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: $skill-name invocation.

Good fit Use it when a Compose screen drops frames, scrolls poorly, recomposes too often, or needs performance measurement and validation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gdvega/super-android-kotlin-firebase-skill/compose-performance
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add GDvega/super-android-kotlin-firebase-skill --skill compose-performance
Clone the repo
git clone --depth 1 https://github.com/GDvega/super-android-kotlin-firebase-skill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for compose-performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/gdvega/super-android-kotlin-firebase-skill/compose-performance.svg)](https://agentmods.dev/skills/gdvega/super-android-kotlin-firebase-skill/compose-performance)
Your own site
<a href="https://agentmods.dev/skills/gdvega/super-android-kotlin-firebase-skill/compose-performance"><img src="https://agentmods.dev/badge/skills/gdvega/super-android-kotlin-firebase-skill/compose-performance.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 642 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.00642
Opus 5 $0.00016 $0.00321
Sonnet 5 $0.00007 $0.00128
Haiku 4.5 $0.00003 $0.00064

Measured 7d ago against content hash 560d67980f66, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

compose-performance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/compose-performance/SKILL.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Purpose

Diagnose and fix measurable Compose performance issues without guessing.

When to use

  • A screen scrolls poorly or drops frames.
  • Recomposition counts spike unexpectedly.
  • Lazy lists, side effects or state reads are suspected performance causes.
  • Baseline profiles, tracing or performance CI are needed.

Inputs to inspect

  • Affected composables and state models.
  • Profiler, compiler report or benchmark evidence if available.
  • Lazy list item models and keys.
  • Build variants and benchmark tasks.

Required workflow

  1. Reproduce or describe the performance symptom.
  2. Inspect state reads, stability, keys and side effects.
  3. Apply the smallest targeted fix.
  4. Measure again with available tools.
  5. Document residual risks and validation gaps.

Rules

  • Measure before large rewrites.
  • Do not add remember everywhere blindly.
  • Do not use @Stable/@Immutable unless the contract is true.
  • Use stable lazy keys and content types when needed.
  • Prefer release-mode measurement for meaningful performance claims.

Local skills to invoke

  • jetpack-compose
  • macrobenchmark-baseline-profiles
  • screen-ux-audit
  • testing

External companion skills to use when installed

Do not assume these companion skills are installed. Prefer the local skills above first, then consult Companion Skills for install and verification commands.

  • aldefy/compose-skill — use for deeper Jetpack Compose, Material 3, design-to-code, theming or Compose architecture guidance.
  • skydoves/compose-performance-skills — use for deeper Compose performance, recomposition, stability or release-mode measurement guidance.

Files commonly touched

  • Compose screens
  • UI models
  • benchmark module
  • baseline-prof.txt
  • build.gradle.kts

Commands to validate

./gradlew assembleRelease
./gradlew connectedBenchmarkAndroidTest
./gradlew test
adb shell am profile start

Common mistakes to avoid

  • Optimizing from intuition only.
  • Ignoring image size/loading.
  • Using unstable mutable models as parameters.
  • Missing lazy item keys.

Read the full file on GitHub · 102 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 102 lines · 33 tokens per session scan A 560d67980f66

Subscribe to this mod's changes

compose-performance is a skill published in the GitHub repository GDvega/super-android-kotlin-firebase-skill (2 stars, last pushed 2mo ago), licensed MIT. It adds 33 tokens to every session and 642 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

android-studio

Operational skill for Android Studio: Gradle projects, emulators, Logcat, build variants, signing configs, and AGP troubleshooting.

alivirgo/Major-AI-Skills · 31 tokens

analyzing-android-malware-with-apktool

Perform static analysis of Android APK malware using apktool for resource decompilation, jadx for Java source recovery, and androguard for manifest inspection, dangerous permission-combination detection, and identification of obfuscated code, dynamic code loading, and reflection-based API calls. Use to statically…

mukul975/Anthropic-Cybersecurity-Skills · 84 tokens

solopi-ai

A command-line framework for testing Android apps and devices with SoloPi, including on-device or cloud AI decision models. It manages devices, test cases, recorded interactions, replays, performance history, and evidence.

alipay/SoloPi · 127 tokens

argent-tv-interact

Control and inspect TV apps via argent — Apple TV (tvOS), Android TV (leanback), and Amazon Fire TV (Vega). Boot the target, read focus, navigate with the D-pad remote, type, screenshot, and on Vega debug the JS runtime (evaluate, console logs, network inspector). Use when a task targets a TV (runtimeKind "tv", or…

software-mansion/argent · 107 tokens

app-store-preflight-compliance

Pre-submission compliance scanner workflow for Apple App Store apps. Use when reviewing iOS, macOS, tvOS, watchOS, or visionOS projects (Swift, Objective-C, React Native, Expo) for App Store rejection risks, submission readiness, privacy compliance, or guideline violations.

RevylAI/greenlight · 65 tokens

ios-slim-bindings

Create iOS slim bindings for MAUI. USE FOR: slim iOS binding, Native Library Interop, Swift/Objective-C wrappers, XcodeGen project.yml, Podfile, CocoaPods static linking, BUILDLIBRARYFORDISTRIBUTION, XcodeProject MSBuild, @objc/[Export] selector crashes, async completion handlers. DO NOT USE FOR: Android bindings…

dotnet/maui-labs · 97 tokens