{"id":"4f47bde6-f751-4d65-876d-e77b3cbd265a","shortId":"XD3Kq7","kind":"skill","title":"android-compose-performance","tagline":"Profile and improve Compose recomposition, layout, scrolling, startup, and rendering performance in Android apps.","description":"# Android Compose Performance\n\n## When To Use\n- Use this skill when the request is about: compose performance issue, recomposition too much android, slow lazycolumn compose.\n- Primary outcome: Profile and improve Compose recomposition, layout, scrolling, startup, and rendering performance in Android apps.\n- Handoff skills when the scope expands:\n- `android-performance-observability`\n- `android-testing-ui`\n\n## Workflow\n1. Identify whether the target surface is Compose, View system, or a mixed interoperability screen.\n2. Select the lowest-friction UI pattern that satisfies responsiveness, accessibility, and performance needs.\n3. Build the UI around stable state, explicit side effects, and reusable design tokens.\n4. Exercise edge cases such as long text, font scaling, RTL, and narrow devices in the fixture apps.\n5. Validate with unit, UI, and screenshot-friendly checks before handing off.\n\n## Guardrails\n- Optimize for stable state and predictable rendering before adding animation or abstraction.\n- Respect accessibility semantics, contrast, focus order, and touch target guidance by default.\n- Do not mix Compose and View system ownership without an explicit interoperability boundary.\n- Prefer measured performance work over premature micro-optimizations.\n\n## Anti-Patterns\n- Embedding navigation or business logic directly in leaf UI components.\n- Using fixed dimensions that break on localization or dynamic text.\n- Ignoring semantics and announcing only visual changes.\n- Porting XML patterns directly into Compose without adapting the mental model.\n\n## Remediation Examples\n### Stabilize list identity\n```kotlin\nLazyColumn {\n    items(tasks, key = { it.id }) { task ->\n        TaskRow(task)\n    }\n}\n```\n\n### Move heavy work out of composition\n```kotlin\n@Composable\nfun TaskBoard(tasks: List<TaskUiModel>) {\n    val visibleTasks = remember(tasks) { tasks.sortedBy { it.title } }\n    LazyColumn { items(visibleTasks, key = { it.title }) { TaskRow(it) } }\n}\n```\n\n### Avoid broad scroll-driven recomposition\n```kotlin\nBox(\n    modifier = Modifier.offset {\n        IntOffset(0, scrollState.value)\n    }\n)\n```\n\n## Examples\n### Happy path\n- Scenario: Profile the Compose task list for unnecessary recomposition hotspots.\n- Command: `cd examples/orbittasks-compose && ./gradlew :app:testDebugUnitTest`\n\n### Edge case\n- Scenario: Evaluate long lists, filter chips, and snackbar churn under repeated state changes.\n- Command: `cd examples/orbittasks-compose && ./gradlew :app:assembleDebug`\n\n### Failure recovery\n- Scenario: Separate performance requests from generic Compose or observability prompts.\n- Command: `python3 scripts/eval_triggers.py --skill android-compose-performance`\n\n## Done Checklist\n- The implementation path is explicit, minimal, and tied to the right Android surface.\n- Relevant example commands and benchmark prompts have been exercised or updated.\n- Handoffs to adjacent skills are documented when the request crosses boundaries.\n- Official references cover the chosen pattern and the main migration or troubleshooting path.\n\n## Official References\n- [https://developer.android.com/develop/ui/compose/performance](https://developer.android.com/develop/ui/compose/performance)\n- [https://developer.android.com/topic/performance/benchmarking/macrobenchmark-overview](https://developer.android.com/topic/performance/benchmarking/macrobenchmark-overview)\n- [https://developer.android.com/topic/performance/baselineprofiles/overview](https://developer.android.com/topic/performance/baselineprofiles/overview)\n- [https://developer.android.com/studio/profile/overview](https://developer.android.com/studio/profile/overview)","tags":["android","compose","performance","agent","skills","krutikjain","agent-skills","android-development","android-skills","androidx","claude-code","codex"],"capabilities":["skill","source-krutikjain","skill-android-compose-performance","topic-agent-skills","topic-android","topic-android-development","topic-android-skills","topic-androidx","topic-claude-code","topic-codex","topic-cursor","topic-jetpack-compose","topic-kotlin","topic-skills"],"categories":["android-agent-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/krutikJain/android-agent-skills/android-compose-performance","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add krutikJain/android-agent-skills","source_repo":"https://github.com/krutikJain/android-agent-skills","install_from":"skills.sh"}},"qualityScore":"0.454","qualityRationale":"deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (3,647 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:13:26.885Z","embedding":null,"createdAt":"2026-05-18T13:20:48.825Z","updatedAt":"2026-05-18T19:13:26.885Z","lastSeenAt":"2026-05-18T19:13:26.885Z","tsv":"'/develop/ui/compose/performance](https://developer.android.com/develop/ui/compose/performance)':403 '/gradlew':305,326 '/studio/profile/overview](https://developer.android.com/studio/profile/overview)':412 '/topic/performance/baselineprofiles/overview](https://developer.android.com/topic/performance/baselineprofiles/overview)':409 '/topic/performance/benchmarking/macrobenchmark-overview](https://developer.android.com/topic/performance/benchmarking/macrobenchmark-overview)':406 '0':287 '1':74 '2':89 '3':104 '4':118 '5':136 'abstract':161 'access':100,163 'ad':158 'adapt':233 'adjac':377 'android':2,17,19,39,57,66,70,346,362 'android-compose-perform':1,345 'android-performance-observ':65 'android-testing-ui':69 'anim':159 'announc':222 'anti':197 'anti-pattern':196 'app':18,58,135,306,327 'around':108 'assembledebug':328 'avoid':276 'benchmark':368 'boundari':186,385 'box':283 'break':213 'broad':277 'build':105 'busi':202 'case':121,309 'cd':303,324 'chang':225,322 'check':145 'checklist':350 'chip':315 'chosen':390 'churn':318 'command':302,323,341,366 'compon':208 'compos':3,8,20,33,42,48,81,177,231,258,295,337,347 'composit':256 'contrast':165 'cover':388 'cross':384 'default':173 'design':116 'developer.android.com':402,405,408,411 'developer.android.com/develop/ui/compose/performance](https://developer.android.com/develop/ui/compose/performance)':401 'developer.android.com/studio/profile/overview](https://developer.android.com/studio/profile/overview)':410 'developer.android.com/topic/performance/baselineprofiles/overview](https://developer.android.com/topic/performance/baselineprofiles/overview)':407 'developer.android.com/topic/performance/benchmarking/macrobenchmark-overview](https://developer.android.com/topic/performance/benchmarking/macrobenchmark-overview)':404 'devic':131 'dimens':211 'direct':204,229 'document':380 'done':349 'driven':280 'dynam':217 'edg':120,308 'effect':113 'embed':199 'evalu':311 'exampl':238,289,365 'examples/orbittasks-compose':304,325 'exercis':119,372 'expand':64 'explicit':111,184,355 'failur':329 'filter':314 'fix':210 'fixtur':134 'focus':166 'font':126 'friction':94 'friend':144 'fun':259 'generic':336 'guardrail':149 'guidanc':171 'hand':147 'handoff':59,375 'happi':290 'heavi':252 'hotspot':301 'ident':241 'identifi':75 'ignor':219 'implement':352 'improv':7,47 'interoper':87,185 'intoffset':286 'issu':35 'it.id':247 'it.title':268,273 'item':244,270 'key':246,272 'kotlin':242,257,282 'layout':10,50 'lazycolumn':41,243,269 'leaf':206 'list':240,262,297,313 'local':215 'logic':203 'long':124,312 'lowest':93 'lowest-frict':92 'main':394 'measur':188 'mental':235 'micro':194 'micro-optim':193 'migrat':395 'minim':356 'mix':86,176 'model':236 'modifi':284 'modifier.offset':285 'move':251 'much':38 'narrow':130 'navig':200 'need':103 'observ':68,339 'offici':386,399 'optim':150,195 'order':167 'outcom':44 'ownership':181 'path':291,353,398 'pattern':96,198,228,391 'perform':4,15,21,34,55,67,102,189,333,348 'port':226 'predict':155 'prefer':187 'prematur':192 'primari':43 'profil':5,45,293 'prompt':340,369 'python3':342 'recomposit':9,36,49,281,300 'recoveri':330 'refer':387,400 'relev':364 'remedi':237 'rememb':265 'render':14,54,156 'repeat':320 'request':30,334,383 'respect':162 'respons':99 'reusabl':115 'right':361 'rtl':128 'satisfi':98 'scale':127 'scenario':292,310,331 'scope':63 'screen':88 'screenshot':143 'screenshot-friend':142 'scripts/eval_triggers.py':343 'scroll':11,51,279 'scroll-driven':278 'scrollstate.value':288 'select':90 'semant':164,220 'separ':332 'side':112 'skill':27,60,344,378 'skill-android-compose-performance' 'slow':40 'snackbar':317 'source-krutikjain' 'stabil':239 'stabl':109,152 'startup':12,52 'state':110,153,321 'surfac':79,363 'system':83,180 'target':78,170 'task':245,248,250,261,266,296 'taskboard':260 'taskrow':249,274 'tasks.sortedby':267 'test':71 'testdebugunittest':307 'text':125,218 'tie':358 'token':117 'topic-agent-skills' 'topic-android' 'topic-android-development' 'topic-android-skills' 'topic-androidx' 'topic-claude-code' 'topic-codex' 'topic-cursor' 'topic-jetpack-compose' 'topic-kotlin' 'topic-skills' 'touch':169 'troubleshoot':397 'ui':72,95,107,140,207 'unit':139 'unnecessari':299 'updat':374 'use':24,25,209 'val':263 'valid':137 'view':82,179 'visibletask':264,271 'visual':224 'whether':76 'without':182,232 'work':190,253 'workflow':73 'xml':227","prices":[{"id":"e67af812-b628-45f5-987a-7bf41f9828f2","listingId":"4f47bde6-f751-4d65-876d-e77b3cbd265a","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"krutikJain","category":"android-agent-skills","install_from":"skills.sh"},"createdAt":"2026-05-18T13:20:48.825Z"}],"sources":[{"listingId":"4f47bde6-f751-4d65-876d-e77b3cbd265a","source":"github","sourceId":"krutikJain/android-agent-skills/android-compose-performance","sourceUrl":"https://github.com/krutikJain/android-agent-skills/tree/main/skills/android-compose-performance","isPrimary":false,"firstSeenAt":"2026-05-18T13:20:48.825Z","lastSeenAt":"2026-05-18T19:13:26.885Z"}],"details":{"listingId":"4f47bde6-f751-4d65-876d-e77b3cbd265a","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"krutikJain","slug":"android-compose-performance","github":{"repo":"krutikJain/android-agent-skills","stars":8,"topics":["agent-skills","android","android-development","android-skills","androidx","claude-code","codex","cursor","jetpack-compose","kotlin","skills"],"license":"mit","html_url":"https://github.com/krutikJain/android-agent-skills","pushed_at":"2026-03-25T05:47:20Z","description":"Android skills repository for Kotlin, Compose, XML, testing, CI, release work, and legacy upgrades","skill_md_sha":"2dca77938df6db11a9864ed21f25b28f529c7880","skill_md_path":"skills/android-compose-performance/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/krutikJain/android-agent-skills/tree/main/skills/android-compose-performance"},"layout":"multi","source":"github","category":"android-agent-skills","frontmatter":{"name":"android-compose-performance","description":"Profile and improve Compose recomposition, layout, scrolling, startup, and rendering performance in Android apps."},"skills_sh_url":"https://skills.sh/krutikJain/android-agent-skills/android-compose-performance"},"updatedAt":"2026-05-18T19:13:26.885Z"}}