thebushidocollective avatar

Android Jetpack Compose

Guidance for building declarative Android UIs with Jetpack Compose and state management.

skills.sh installs
2.3K
GitHub stars
201
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Compose UI construction, state handling with remember and mutableStateOf, and declarative UI patterns
  • Designed for Android developers who are building or refactoring screens in Jetpack Compose

Install

$ npx -y skills add thebushidocollective/han --skill android-jetpack-compose -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Android - Jetpack Compose

Modern declarative UI toolkit for building native Android interfaces.

Key Concepts

State Management

Compose provides several ways to manage state:

  • remember: Survives recomposition
  • rememberSaveable: Survives configuration changes
  • mutableStateOf: Creates observable state
  • derivedStateOf: Computed state that updates when dependencies change
@Composable
fun Counter() {
    var count by remember { mutableStateOf(0) }

    Column {
        Text("Count: $count")
        Button(onClick = { count++ }) {
            Text("Increment")
        }
    }
}

// With saveable for configuration changes
@Composable
fun SearchField() {
    var query by rememberSaveable { mutableStateOf("") }

    TextField(
        value = query,
        onValueChange = { query = it },
        placeholder = { Text("Search...") }
    )
}

State Hoisting

Lift state up to make composables stateless and reusable:

Details

Repository
github.com/thebushidocollective/han
Categories
Mobile Apps, Frontend & UI Code

More from thebushidocollective/han

All 14

Similar to Android Jetpack Compose

More Mobile Apps