android-compose-ui

Guide Jetpack Compose UI development with stateless composables and Material 3 theming.

1|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/Binh230199/ai --skill android-compose-ui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-compose-ui
Source: https://github.com/Binh230199/ai/tree/main/.github/skills/android-compose-ui
Command: npx skills add https://github.com/Binh230199/ai --skill android-compose-ui

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps teams design, review, and refactor Jetpack Compose UI for Android apps without introducing state, theming, navigation, or performance mistakes.

Core Features & Use Cases

  • Stateless composable patterns and state hoisting for testable, reusable screens.
  • Lifecycle-safe state collection, side effects, navigation, and animation patterns.
  • Material Design 3 theming, recomposition optimization, XML interop, and AAOS-specific UI constraints.
  • Use it when building a new screen, reviewing Compose code, migrating XML layouts, or tuning automotive UI for driver safety.

Quick Start

Ask the AI to review or generate a Compose screen for your Android or AAOS app using hoisted state, Material 3 tokens, lifecycle-safe effects, and automotive touch-target rules.

Frequently Asked Questions about android-compose-ui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce state hoisting and stateless composables in Jetpack Compose?

To enforce state hoisting in Jetpack Compose, design stateless composables by moving state up to the parent. This pattern ensures screens remain testable and reusable without decoupling UI rendering from state ownership.

What is the best way to migrate XML layouts to Jetpack Compose?

The best way to migrate XML layouts to Jetpack Compose involves applying XML interop patterns incrementally. You refactor existing views into composables while maintaining lifecycle-safe state collection and Material 3 theming.

How do I optimize Jetpack Compose recomposition for Android apps?

Optimize Jetpack Compose recomposition by using stable keys and immutable inputs. Ensure correct side-effect handling and lifecycle-safe state collection to prevent unnecessary recompositions and improve app performance.

Does Jetpack Compose work with Android Automotive UI constraints?

Yes, Jetpack Compose works with Android Automotive OS by applying specific UI constraints. You must implement automotive touch-target rules and driver safety patterns alongside standard Material 3 theming for AAOS builds.

When do I need lifecycle-safe state collection in Compose?

You need lifecycle-safe state collection in Compose whenever handling side effects or asynchronous data streams. It prevents memory leaks and ensures state updates only occur when the composable is actively rendering.

Why does my Compose screen fail Material 3 theming standards?

Your Compose screen fails Material 3 theming standards if it bypasses Material 3 tokens. Apply proper theming wrappers and enforce design system tokens during code review to ensure consistent UI styling.