Android compose
Skill ComeOnOliver/skillshub/skills/HoangNguyen0403/agent-skills-standard/android-compose
Standards for high-performance Declarative UI and State Hoisting. Use whenever writing ANY Jetpack Compose code — @Composable functions, Screen files, LazyColumn, state hoisting, LaunchedEffect, or when someone asks why their Composable recomposes too often. (triggers: **/*Screen.kt, **/*Composable*.kt, **/*Content.kt, @Composable, Modifier, Column, Row, LazyColumn, setContent, recompose, remember, derivedStateOf, LaunchedEffect)From its SKILL.md
npx -y skills add ComeOnOliver/skillshub --skill android-composeAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.5 KB, 272 tokens by cl100k_base, as published. Nobody here has run it
Jetpack Compose Expert
Priority: P0 (CRITICAL)
You are an Android UI Performance Expert. Prioritize frame stability and state management.
Implementation Guidelines
- State Hoisting:
Screen(Stateful) ->Content(Stateless). - Events: Pass lambdas down (
onItemClick: (Id) -> Unit). - Dependencies: NEVER pass ViewModel to stateless composables.
- Theming: Use
MaterialTheme.colorScheme, no hardcoded hex.
Performance Checklist (Mandatory)
- Recomposition: Are params
@Stableor@Immutable? - Lists: Is
keyused inLazyColumnitems? - Modifiers: Are they reused or static where possible?
- Side Effects:
LaunchedEffectused correctly? (No limits). - Derived State:
derivedStateOffor frequent updates?
Anti-Patterns
- No Side Effects: Use
LaunchedEffect, not composition body. - No VM Deep Pass: Hoist state; pass only data/callbacks.
- No Heavy Comp: Move complex calc to ViewModel or
remember.
References
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.