What problem does it solve?
This Skill provides a robust template and guidance for implementing the Model-View-Intent (MVI) architectural pattern in Android Activities using Jetpack Compose, ensuring clear separation of concerns and predictable state management.
Core Features & Use Cases
- MVI Pattern Implementation: Structure Android Activities with distinct layers for UI, state, actions, and events.
- Jetpack Compose Integration: Build declarative UIs that react to immutable state changes.
- State Management: Utilize
StateFlow for UI state and SharedFlow for one-time events (navigation, messages).
- Use Case: When creating a new feature screen in an Android app that requires complex user interactions and dynamic data display, use this Skill to scaffold the Activity, Screen, and ViewModel following MVI best practices.
Quick Start
Use the mvi-activity skill to generate the boilerplate code for a new Android Activity screen following the MVI pattern with Jetpack Compose.