agentsclimarketplace

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

Install
npx -y skills add ComeOnOliver/skillshub --skill android-compose

Assembled 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 @Stable or @Immutable?
  • Lists: Is key used in LazyColumn items?
  • Modifiers: Are they reused or static where possible?
  • Side Effects: LaunchedEffect used correctly? (No limits).
  • Derived State: derivedStateOf for 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.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.