What problem does it solve?
Reusable Compose components often end up with rigid APIs: missing root modifiers, proliferating primitive content parameters, and Boolean shape flags that callers cannot adapt. This Skill guides the design and review of component APIs so callers retain placement, content, and policy control while the component owns its invariant structure.
Core Features & Use Cases
- Modifier and layout conventions: Apply a caller
modifier at the component root, order modifier chains correctly, and decide when to hoist conditional layout wrappers.
- Slot API design: Replace unconstrained primitive parameters and Boolean flags with named
@Composable slots, nullable optional slots, and scoped receivers only when caller layout control is a public contract.
- Use Case: When reviewing a
SettingsRow composable, convert fixed title: String and showIcon: Boolean parameters into headlineContent and nullable leadingContent slots so callers supply variable content without a flag matrix.
Quick Start
Ask the assistant to review your Compose component's public API for modifier placement and slot design using the compose-component-design skill.