compose-state-authoring
CommunityWrite Compose state that never resets.
Software Engineering#code review#state management#jetpack compose#recomposition#mutableStateOf#snapshot state#ReadOnlyComposable
Authorsoygabimoreno
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents subtle Jetpack Compose bugs where UI state resets or fails to update because local variables are not correctly backed by Compose state.
Core Features & Use Cases
- Correct recomposition-safe local state: Ensure
varin a composable survives recomposition and triggers updates viaremember { mutableStateOf(...) }ormutableStateListOf/mutableStateMapOf. - Proper handling of state collection mutations: Avoid patterns like
remember { mutableStateOf(mutableListOf(...)) }followed by.add(...)that bypass snapshot observation; usemutableStateListOf/mutableStateMapOfor replace the value. - Apply
@ReadOnlyComposablesafely: Mark composables as read-only only when they truly only read composition state and never allocate UI/layout nodes, callremember, or call non-read-only composables.
Quick Start
Use the compose-state-authoring skill to review a Compose @Composable and verify every local var is backed by remember + mutableStateOf (or the correct mutableStateListOf / mutableStateMapOf) and that any @ReadOnlyComposable function only performs valid read-only operations.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: compose-state-authoring Download link: https://github.com/soygabimoreno/Los-ANDROIDES/archive/main.zip#compose-state-authoring Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.