Skills

Compose State And Effects

Use when writing or reviewing Jetpack Compose state ownership, remember state, state...

Install

npx skills add chrisbanes/skills --skill compose-state-and-effects -g -a claude-code -y
Repository
chrisbanes/skills1.1k
Category
Writing
Updated
3d ago
License
Apache-2.0
Context cost
Lightabout 975 tokens
Runs scripts
No, instructions only

What it does

Use when writing or reviewing Jetpack Compose state ownership, remember state, state hoisting, screen state holders, LaunchedEffect, DisposableEffect, SideEffect, Flow collection, navigation, snackbar, analytics, or focus requests.

Compose state and effects

Core principle

Give every piece of UI state one lowest responsible owner, then run imperative work through the effect whose lifecycle follows that owner. Composition renders; state and effects make rendering change safely.

A screen-ownership review is incomplete until it names the plain, previewable content composable that receives immutable state and event callbacks separately from app wiring and composition-owned runtime objects.

Procedure

Read the whole SKILL.md on GitHub

More in Writing