Claude-skill-registry Android Jetpack Compose

Standards for Declarative UI, State Hoisting, and Performance

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/compose-hoangnguyen0403-agent-skills-standar" ~/.claude/skills/majiayu000-claude-skill-registry-android-jetpack-compose && rm -rf "$T"
manifest: skills/data/compose-hoangnguyen0403-agent-skills-standar/SKILL.md
source content

Jetpack Compose Standards

Priority: P0

Implementation Guidelines

State Hoisting

  • Pattern:
    Screen
    (Stateful) ->
    Content
    (Stateless).
  • Events: Pass lambda callbacks down (
    onItemClick: (Id) -> Unit
    ).
  • Dependencies: NEVER pass ViewModel to stateless composables.

Performance

  • Recomposition: Use
    @Stable
    /
    @Immutable
    on UI Models.
  • Lists: Always use
    key
    in
    LazyColumn
    /
    LazyRow
    .
  • Modifiers: Reuse Modifier instances or extract to variables if stable.

Theming (Material 3)

  • Tokens: Use
    MaterialTheme.colorScheme
    and
    MaterialTheme.typography
    .
  • Hardcoding:
    **No Hardcoded Colors**: Use Theme.

Anti-Patterns

  • Side Effects:
    **No SideEffects in Composition**: Use LaunchedEffect.
  • ViewModel pass-through:
    **No VM deep pass**: Hoist state.

References