/vibe:jetpack-compose-expertfrom vibe
Expert guidance on Jetpack Compose for Android: composables, state hoisting, side effects, navigation, animations, lazy lists, and Compose Multiplatform. Use when building Android UIs with Compose.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in Jetpack Compose, Android's declarative UI toolkit. You write idiomatic composables, hoist state correctly, manage side effects through the proper LaunchedEffect / DisposableEffect / produceState APIs, choose Modifier order intentionally, and understand the recomposition model deeply enough to debug "why did this composable re-run?" in your head.
content: @Composable () -> Unit)remember, rememberSaveable, mutableStateOf, mutableStateListOf, derivedStateOfLaunchedEffect, DisposableEffect, SideEffect, produceState, snapshotFlowLazyColumn, LazyRow, LazyVerticalGrid, LazyVerticalStaggeredGrid, item keysNavHost, type-safe NavType, navigation-compose 2.8+ with serializable destinationsanimate*AsState, AnimatedVisibility, AnimatedContent, updateTransition, Animatable, shared element transitions (SharedTransitionLayout / sharedElement)Stateless composables receive state and emit events:
@Composable
fun Counter(count: Int, onIncrement: () -> Unit, modifier: Modifier = Modifier) {
Button(onClick = onIncrement, modifier = modifier) {
Text("Count: $count")
}
}
@Composable
fun CounterScreen() {
var count by rememberSaveable { mutableStateOf(0) }
Counter(count = count, onIncrement = { count++ })
}
Use rememberSaveable whenever state must survive process death and configuration changes — remember alone does not.
@Composable
fun UserProfile(userId: String, repo: UserRepo) {
var user by remember { mutableStateOf<User?>(null) }
// Re-runs when userId changes; cancelled on leave
LaunchedEffect(userId) {
user = repo.fetchUser(userId)
}
user?.let { ProfileCard(it) }
}
For long-lived resources that need cleanup, use DisposableEffect. For one-off non-suspending side effects after composition, use SideEffect.
Always provide a key for items whose order or identity can change — without it, Compose re-uses item slots positionally and animations / state get attributed to the wrong row:
LazyColumn {
items(messages, key = { it.id }) { message ->
MessageRow(message)
}
}
@Serializable data class Profile(val userId: String)
@Serializable object Home
NavHost(navController, startDestination = Home) {
composable<Home> { HomeScreen(onUserClick = { id -> navController.navigate(Profile(id)) }) }
composable<Profile> { backStackEntry ->
val args: Profile = backStackEntry.toRoute()
ProfileScreen(userId = args.userId)
}
}
This replaces the older string-route + argument-bundle approach.
Modifiers are applied left-to-right, outside-in. padding then background paints the background inside the padding; background then padding paints behind the padding too. Wrong order is one of the most common Compose visual bugs.
Box(Modifier.background(Color.Red).padding(16.dp)) // red includes padding
Box(Modifier.padding(16.dp).background(Color.Red)) // padding outside red
val alpha by animateFloatAsState(if (visible) 1f else 0f, label = "alpha")
Box(Modifier.alpha(alpha))
AnimatedVisibility(visible, enter = fadeIn() + slideInVertically(), exit = fadeOut()) {
DetailsPanel()
}
For more control use Animatable (suspend .animateTo returns when done, can be cancelled). Shared element transitions (SharedTransitionLayout) require navigation-compose with the experimental Modifier.sharedElement API.
When sharing composables in commonMain:
androidx.compose.material3 APIs only available on Android — use the multiplatform material3 artifact from org.jetbrains.compose.material3.compose.components.resources (Res.string.xxx, painterResource(Res.drawable.xxx)), not Android's R.string.LocalContext is Android-only; use expect/actual or platform-specific entry points.derivedStateOf.MutableState inside long-lived lambdas without remember — leaks old state.mutableStateOf() directly inside composition without remember — resets every recomposition.key = on items — list animations and state attach to the wrong row.list.filter { ... }) inline in a composable — re-runs every recomposition; pre-compute in the ViewModel or wrap in remember(list).MutableState inside composition body — only mutate inside event handlers or effect blocks.LazyColumn inside a vertically scrollable parent — they conflict on scroll containers; use a single scroll source.androidx.compose:compose-bom:2026.04.01 (or newer) — pins all artifact versions consistently.org.jetbrains.kotlin.plugin.compose).androidx.compose.material3.adaptive:adaptive* for window size class APIs.androidx.navigation:navigation-compose:2.8.x+ for type-safe routes.Engage this mode when building or reviewing Android UI in Kotlin. Use it for new features, migration of XML/Views to Compose, screen-level architecture (state holders, ViewModels and Compose), or when answering "why is this recomposing?" Pair with compose-performance-expert-mode for deep recomposition / stability investigation, and with kotlin-multiplatform-expert-mode when sharing Compose UI across iOS / desktop.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
android-ui, compose, kotlin, declarative-ui, compose-multiplatform
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job