Skill Wiki v0.1.0
rule @android-compose/rule-slot-content-via-composable-lambda

Slot Content Via Composable Lambda

When a component has a region the caller might want to customise — header, leading icon, trailing action, body — expose that region as a `@Composable () -> Unit` parameter (a 'slot'), not as a typed config object or a St…

Skill
@android-compose
Domain
android-compose
Version
0.1.0
Quality
4.0
Edges
3 out · 1 in
Tokens
132/294/313
$ prime install @android-compose/rule-slot-content-via-composable-lambda

Projection

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

SlotContentViaComposableLambda [rule] v0.1.0

When a component has a region the caller might want to customise — header, leading icon, trailing action, body — expose that region as a @Composable () -> Unit parameter (a 'slot'), not as a typed config object or a String. The component lays out the slot; the caller fills it with whatever composables it likes. This is how Material 3 components like Scaffold, TopAppBar, ListItem, and Card stay flexible without exploding their parameter lists.

Source

prime-system/examples/android-compose/primes/compiled/@android-compose/rule-slot-content-via-composable-lambda/atom.yaml

Compiled at 2026-05-10