Project rules
Kotlin Android Rules
Project rules for Android in Kotlin: Jetpack Compose UI, ViewModel with StateFlow, Hilt injection, structured coroutines and tests.
CLAUDE.md
1Architecture
2- One feature per package with `ui`, `domain` and `data` layers. Composables render a single immutable `UiState`; they send events up as lambdas.
3- A `ViewModel` exposes `StateFlow<UiState>` built with `stateIn` or `MutableStateFlow` and a `.asStateFlow()` view. One-off effects go through a `Channel` or are modeled as state.
4- Repositories return `Flow` or suspend results and hide Room, Retrofit and DataStore details.
5Compose
kotlin
#
Kotlin Android Rules
Project ruleskotlin
Free