What problem does it solve?
This Skill solves the common pain point of inconsistent, unoptimized shared UI code in Kotlin Multiplatform and Jetpack Compose projects, where teams lack standardized patterns for state management, navigation, theming, and performance tuning across Android, iOS, Desktop, and Web targets.
Core Features & Use Cases
- Standardized State Management: Provides battle-tested patterns for ViewModel + StateFlow integration, event sink design, and stable type usage to reduce bugs and unnecessary recomposition.
- Type-Safe Navigation: Implements modern Compose Navigation 2.8+ type-safe routing, plus dialog and bottom sheet navigation patterns for KMP and Android projects.
- Cross-Platform UI Consistency: Includes expect/actual patterns for platform-specific composables, Material 3 dynamic theming, and slot-based composable design for reusable design systems.
- Performance Optimization: Covers recomposition best practices, Lazy list keying, and derivedStateOf usage to eliminate jank and unnecessary allocations.
- Use Case Example: For a KMP e-commerce app, use these patterns to implement a shared product list screen with search functionality, type-safe navigation to product detail pages, and platform-specific status bar styling that works natively on Android and iOS.
Quick Start
Ask your AI assistant to implement a type-safe navigation flow for your Compose Multiplatform app using the patterns defined in this skill.