What problem does it solve?
This Skill helps you avoid inconsistent architecture and fragile UI code when building shared Compose UI across Android, iOS, Desktop, and Web by providing proven patterns for state, navigation, theming, and performance.
Core Features & Use Cases
- State management patterns for Compose: Use a single immutable screen state with
StateFlow, lifecycle-safe collection, and an event-sink approach for complex interactions.
- Type-safe navigation & overlay flows: Implement route modeling with
@Serializable and use dialog/bottom-sheet style navigation declaratively.
- Performance and UI correctness guidance: Improve recomposition behavior with stable types, correct lazy list keys,
derivedStateOf, and reduced allocations.
- KMP platform-specific UI hooks: Use
expect/actual to keep platform differences contained while preserving a common UI layer.
- Theming approach: Select Material 3 dynamic theming and dark/light strategies based on platform capabilities.
Quick Start
Ask an AI to generate a KMP screen that uses a single StateFlow state object, an event-sealed interface, type-safe Compose navigation routes, and a Material 3 theme with dynamic colors where available.