Skill Wiki v0.1.0
rule @android-compose/rule-no-side-effects-in-composables

No Side Effects In Composables

A @Composable function's body is called by the runtime on a schedule it controls — many times per second during animations, possibly with stale snapshots, possibly aborted half-way.…

Skill
@android-compose
Domain
android-compose
Version
0.1.0
Quality
4.0
Edges
3 out · 5 in
Tokens
143/315/334
$ prime install @android-compose/rule-no-side-effects-in-composables

Projection

Always in _index.xml · the agent never has to ask for this.

NoSideEffectsInComposables [rule] v0.1.0

A @Composable function's body is called by the runtime on a schedule it controls — many times per second during animations, possibly with stale snapshots, possibly aborted half-way. The body must therefore be a pure function of its inputs and remembered state. Anything that touches the world — network calls, navigation, analytics events, mutating ViewModel state, registering listeners — goes inside a controlled effect: LaunchedEffect, DisposableEffect, SideEffect, or rememberCoroutineScope.

Source

prime-system/examples/android-compose/primes/compiled/@android-compose/rule-no-side-effects-in-composables/atom.yaml

Compiled at 2026-05-10