android-jetpack-compose

Build declarative Android UIs with Jetpack Compose and state management.

187|20|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/TheBushidoCollective/han --skill android-jetpack-compose
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-jetpack-compose
Source: https://github.com/TheBushidoCollective/han/tree/main/jutsu/jutsu-android/skills/jetpack-compose
Command: npx skills add https://github.com/TheBushidoCollective/han --skill android-jetpack-compose

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Build modern Android UIs with Jetpack Compose using declarative components and state management.

Core Features & Use Cases

  • State management with remember, mutableStateOf, and derivedStateOf
  • View composition, Composables, and DI-friendly patterns
  • Integration with ViewModels and lifecycle-aware patterns

Quick Start

Create a simple counter using remember and mutableStateOf, then wire up a ViewModel for data persistence.

Frequently Asked Questions about android-jetpack-compose

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

FAQPage Schema
How do I build Android UIs declaratively with Jetpack Compose?

Jetpack Compose enables declarative UI development by replacing XML layouts with composable functions. You define UI as a hierarchy of composables that automatically recompose when state changes, eliminating manual view updates and reducing boilerplate compared to traditional imperative approaches.

How do I manage state in Jetpack Compose without losing data on recomposition?

Use remember for local state within a composable's scope and rememberSaveable to persist state across configuration changes and process death. For complex app-level state, integrate ViewModels with mutableStateOf and derivedStateOf to maintain data consistency across recompositions.

Can I use Jetpack Compose with ViewModels and MVVM architecture?

Yes, Jetpack Compose integrates seamlessly with ViewModels following MVVM patterns. Expose state from ViewModels as observable properties, collect them in composables, and wire UI events back to ViewModel methods for clean separation of concerns.

How do I handle side effects like API calls in Jetpack Compose?

Use LaunchedEffect and related APIs to safely trigger side effects outside the composition scope. LaunchedEffect runs when keys change, ensuring network requests, analytics, or subscriptions execute at the right lifecycle moment without causing recomposition loops.

What's the best way to create reusable UI components in Jetpack Compose?

Build reusable composables by extracting UI logic into parameterized functions that accept state and callbacks. Leverage slot APIs for flexible composition, allowing parent composables to inject custom content while maintaining composability and testability.