compose-ui
Installation
SKILL.md
Compose UI
24 rules that fix what AI agents consistently get wrong in Jetpack Compose.
CRITICAL rules — get these wrong and the app is broken
1. Edge-to-edge + Scaffold innerPadding
// ✅ Always consume Scaffold's innerPadding
Scaffold(
topBar = { TopAppBar(title = { Text("Screen") }) },
bottomBar = { BottomNavBar() }
) { innerPadding ->
LazyColumn(
modifier = Modifier.fillMaxSize(),
contentPadding = innerPadding // ← pass to content, never ignore
) { ... }
}