android-compose

Installation
SKILL.md

android-compose

Purpose

This skill equips the AI to generate and manipulate Android UI code using Jetpack Compose, focusing on declarative syntax for efficient, reactive interfaces. Use it to handle UI components, state management, and navigation in Android apps.

When to Use

Apply this skill when building or refactoring Android apps that require modern UI patterns, such as dynamic lists, theme-aware designs, or screen navigation. Use it for new projects with Material 3 or to migrate from XML layouts to Compose for better performance and code simplicity.

Key Capabilities

  • Define reusable UI elements with @Composable annotations.
  • Manage state via state hoisting to avoid bugs in recomposition.
  • Render efficient lists with LazyColumn for large datasets.
  • Implement Material 3 components like Button and Scaffold for consistent theming.
  • Access global context with CompositionLocal for sharing data across composables.
  • Handle navigation using navigation-compose for multi-screen apps.

Usage Patterns

To build a UI, start by creating a top-level @Composable function in your Activity or Fragment. Always hoist state to parent composables to enable proper recomposition. For lists, wrap items in LazyColumn to lazy-load content. Use MaterialTheme for styling and CompositionLocalProvider to inject values. When navigating, set up a NavHost with composable destinations.

Related skills
Installs
21
GitHub Stars
5
First Seen
Mar 7, 2026