kotlin-multiplatform-compose-state-container

Installation
SKILL.md

When to Use This Skill

Use when you need to:

  • Decide whether state belongs in remember, rememberSaveable, or a ViewModel
  • Understand what "survives recomposition" vs "survives config change" actually means
  • Implement a custom Saver for rememberSaveable with a non-bundleable type
  • Scope a ViewModel to a nav back-stack entry vs the whole nav graph
  • Diagnose state being lost on screen rotation or back navigation

Trigger keywords: remember vs ViewModel, rememberSaveable, state container, when to use ViewModel, ephemeral state, state survival, config change state, process death state, custom Saver, nav-scoped ViewModel, state lost on rotation.

Freshness rule: Compose state survival and nav-scoped ViewModel APIs change with lifecycle and navigation releases — recheck the Jetpack and CMP docs before upgrading.


Recommendation First

Installs
13
GitHub Stars
2
First Seen
Jun 18, 2026
kotlin-multiplatform-compose-state-container — ronjunevaldoz/kmp-agent-skills