Implements a robust Model-View-Intent (MVI) architecture for Android Activities using Jetpack Compose to ensure unidirectional data flow.
This skill provides a comprehensive blueprint for structuring Android Activities using the MVI pattern and Jetpack Compose. It guides Claude in generating standardized boilerplates for ViewModels, UI states, sealed classes for actions and events, and Compose screens that remain decoupled from business logic. By enforcing a single entry point for user actions and a reactive state management system using StateFlow and SharedFlow, it helps developers build scalable, testable, and maintainable mobile applications with clear boundaries between the UI and state management layers.
主要功能
01Implements unidirectional data flow (UDF) using immutable state models
02Separates UI components from ViewModel logic for improved testability
03Configures sealed classes for handling user Actions and ViewModel Events
041 GitHub stars
05Generates boilerplate for Activity, ViewModel, and Compose Screen components
06Integrates Jetpack Compose with Hilt for modern dependency injection
使用场景
01Refactoring legacy MVVM codebases to a more predictable MVI pattern
02Standardizing state management and event handling across an Android development team
03Creating a new feature screen from scratch using modern Android architecture