android-viewmodel
new-silvermoon/awesome-android-agent-skills / .github/skills/architecture/android-viewmodel
structures Android ViewModel state with StateFlow and SharedFlow , which improves: avoids replayed events after rotation
score 7/10no risk982 repo stars
Details
- judge’s score
- 7/10
- place
- outside the packs
- publisher
- new-silvermoon
- status
- new
- pinned commit
- 82900ea on GitHub (new tab)
- skill’s last commit
- Jul 11, 2026
- repo stars
- 982
- main type
- Android
Judgement
Clear topic and precise triggering. Mostly known content, though the Explicit Backing Fields part is of interest. Examples inconsistent: `uiState.update` on a property typed StateFlow does not compile.
reservations
- The examples do not compile: `uiState` is typed StateFlow, so `uiState.update {}` and `uiState.value = ...` are invalid. The text also mixes `_uiState` and the new pattern.
- The announced versions (Explicit Backing Fields experimental in Kotlin 2.3, stable in 2.4+) are not sourced and need to be checked.
- A large part of the content is generic and already known to Claude (ViewModel, StateFlow, collectAsStateWithLifecycle).
- No annex provided.
sub-scores
- Triggering
- 2/2
- Added value
- 1/2
- Precision
- 1/2
- Scope
- 2/2
- Quality
- 1/2
Alerts
no alerts
Neither the static scan nor the judge flagged a risk for this skill.
Original description
Best practices for implementing Android ViewModels using Kotlin 2.3+ Explicit Backing Fields, StateFlow for UI state, and SharedFlow for one-off events.
added on Oct 19, 2026 · license Apache-2.0