Skip to content
Development
Skill

/android-compose

Build high-performance declarative UI with Jetpack Compose. Use when writing Composable functions, optimizing recomposition, hoisting state, or working with LazyColumn and side effects; defer deep-link and navigation routing to android-navigation.

From plugin
agent-skills-standard
583200 skills21 agents33 commands1 MCP

Claude Code

$ npx -y skills add hoangnguyen0403/agent-skills-standard --skill android-compose --agent claude-code

SKILL.md

android-compose.SKILL.md
name: android-compose
description: Build high-performance declarative UI with Jetpack Compose. Use when writing Composable functions, optimizing recomposition, hoisting state, or working with LazyColumn and side effects; defer deep-link and navigation routing to android-navigation.
metadata:
  triggers:
    files:
    - '**/*Screen.kt'
    - '**/*Composable*.kt'
    - '**/*Content.kt'
    keywords:
    - "@Composable"
    - Modifier
    - Column
    - Row
    - LazyColumn
    - setContent
    - recompose
    - remember
    - derivedStateOf
    - LaunchedEffect

Jetpack Compose Expert

**Priority: P0 (CRITICAL)**

**Role**: Android UI Performance Expert. Prioritize frame stability and state management.

1. Hoist State Correctly

  • **Screen** (Stateful) -> **Content** (Stateless).
  • Pass lambdas down (`onItemClick: (Id) -> Unit`).
  • NEVER pass ViewModel to stateless composables.
  • Use `MaterialTheme.colorScheme`, no hardcoded hex.

See [implementation examples](references/implementation.md) for state hoisting patterns.

2. Optimize Recomposition

  • Annotate params with `@Stable` or `@Immutable`.
  • Use `key` in `LazyColumn` items for stable identity.
  • Reuse or make Modifiers static where possible.
  • Use `derivedStateOf` for frequently updating derived values.

See [implementation examples](references/implementation.md) for `derivedStateOf` usage.

3. Handle Side Effects Properly

  • Use `LaunchedEffect` for one-shot or keyed side effects — never run side effects in composition body.
  • Move complex calculations to ViewModel or `remember`.

Anti-Patterns

  • **No Side Effects in Composition Body**: Use `LaunchedEffect`, not raw coroutines.
  • **No VM Deep Pass**: Hoist state; pass only data/callbacks.
  • **No Heavy Computation in Composables**: Offload to ViewModel or `remember`.

Verification

  • [ ] All stateless Composables have `@Preview`.
  • [ ] `LazyColumn` items use `key` parameter.
  • [ ] No ViewModel passed below Screen-level Composables.
  • [ ] `./gradlew build` succeeds.

References

  • [Optimization Patterns](references/implementation.md)
Read more
@hoangnguyen0403
Ships withagent-skills-standard

The portable standards layer for AI coding agents. Sync once, then work in your own runtime.

583200 skills21 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
583
Star history of hoangnguyen0403/agent-skills-standard on GitHub, a chart by star-history.com

Other skills on agent-skills-standard.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills12d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react3d252k
@facebook@facebookInstall Skill

Questions about android-compose.

Which coding agents can use android-compose?
android-compose installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.