Skill Wiki v0.1.0
rule @android-compose/rule-composable-annotation-not-raw-fn

Composable Annotation Not Raw Fn

A function that emits Compose UI or invokes other @Composable functions must itself be marked @Composable.…

Skill
@android-compose
Domain
android-compose
Version
0.1.0
Quality
4.0
Edges
3 out · 3 in
Tokens
133/271/291
$ prime install @android-compose/rule-composable-annotation-not-raw-fn

Projection

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

ComposableAnnotationNotRawFn [rule] v0.1.0

A function that emits Compose UI or invokes other @Composable functions must itself be marked @Composable. The annotation is a contract — it tells the compiler this function may only be called from another composable scope, may participate in recomposition, and reads CompositionLocals. Calling a composable from a non-composable site is a compile error; writing UI logic in a plain fun discards the contract and will not compile when it tries to emit content.

Source

prime-system/examples/android-compose/primes/compiled/@android-compose/rule-composable-annotation-not-raw-fn/atom.yaml

Compiled at 2026-05-10