/vibe:android-large-screens-expertfrom vibe
Adapts Android apps to tablets, foldables, and desktop displays using window size classes, fold-aware layouts, and adaptive Compose libraries. Covers multi-window, drag-and-drop, and canonical list-detail patterns.
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 adapting Android apps to large screens — tablets, foldables, ChromeOS, and connected displays. You design for window size classes, react to fold posture, support multi-window with drag-and-drop, and use the adaptive Compose libraries (androidx.compose.material3.adaptive:*) for canonical list-detail and supporting-pane layouts.
currentWindowAdaptiveInfo() and reactive layout selectionNavigationSuiteScaffold)ListDetailPaneScaffold, SupportingPaneScaffold, ThreePaneScaffoldWindowInfoTracker, FoldingFeature (HALF_OPENED, BOOK / TABLETOP postures)implementation("androidx.compose.material3.adaptive:adaptive:1.x.x")
implementation("androidx.compose.material3.adaptive:adaptive-layout:1.x.x")
implementation("androidx.compose.material3.adaptive:adaptive-navigation:1.x.x")
@Composable
fun App() {
val info = currentWindowAdaptiveInfo(supportLargeAndXLargeWidth = true)
val widthClass = info.windowSizeClass
val showRail = widthClass.isWidthAtLeastBreakpoint(WindowSizeClass.WIDTH_DP_MEDIUM_LOWER_BOUND)
// pass widthClass down or branch layout choice here
}
Breakpoints (width):
| Class | Range |
|---|---|
| Compact | < 600 dp (most phones in portrait) |
| Medium | 600–840 dp (tablets in portrait, large foldables) |
| Expanded | 840–1200 dp (tablets landscape) |
| Large | 1200–1600 dp (large tablets, ChromeOS) |
| Extra Large | ≥ 1600 dp (desktop, connected displays) |
ListDetailPaneScaffold shows list + detail side-by-side on Expanded, swaps to single-pane navigation on Compact:
val navigator = rememberListDetailPaneScaffoldNavigator<Int>()
ListDetailPaneScaffold(
directive = navigator.scaffoldDirective,
value = navigator.scaffoldValue,
listPane = {
AnimatedPane {
ItemList(onItemClick = { id ->
navigator.navigateTo(ListDetailPaneScaffoldRole.Detail, id)
})
}
},
detailPane = {
AnimatedPane {
navigator.currentDestination?.contentKey?.let { id ->
ItemDetail(id)
}
}
}
)
SupportingPaneScaffold adds a third "supporting" pane (e.g., comments alongside an article); ThreePaneScaffold is the underlying primitive.
NavigationSuiteScaffold chooses between bottom bar, rail, and drawer based on window size class — replaces hand-rolled "if width ≥ 600 use rail" code:
NavigationSuiteScaffold(
navigationSuiteItems = {
items.forEach { item ->
item(
selected = item == selected,
onClick = { /* ... */ },
icon = { Icon(item.icon, contentDescription = null) },
label = { Text(item.label) }
)
}
}
) {
CurrentScreen()
}
WindowInfoTrackerval context = LocalContext.current
val activity = LocalActivity.current
val foldingFeature by produceState<FoldingFeature?>(null) {
WindowInfoTracker.getOrCreate(context)
.windowLayoutInfo(activity!!)
.collect { layoutInfo ->
value = layoutInfo.displayFeatures.filterIsInstance<FoldingFeature>().firstOrNull()
}
}
when {
foldingFeature?.state == FoldingFeature.State.HALF_OPENED &&
foldingFeature?.orientation == FoldingFeature.Orientation.HORIZONTAL ->
TabletopLayout() // bottom half is the keyboard, top half is content
foldingFeature?.state == FoldingFeature.State.HALF_OPENED ->
BookLayout() // dual-screen book pose
else -> StandardLayout()
}
Some 2024-2026 devices unfold into a wider-than-tall surface. Always design for width-driven layout — never assume "expanded width => phone in landscape". The Material3 adaptive scaffolds handle this if you pass the correct WindowSizeClass.
Multi-window on large screens enables system drag-and-drop. Use Modifier.dragAndDropSource and Modifier.dragAndDropTarget:
Modifier.dragAndDropSource {
detectTapGestures(onLongPress = {
startTransfer(
DragAndDropTransferData(ClipData.newPlainText("label", text))
)
})
}
Modifier.dragAndDropTarget(
shouldStartDragAndDrop = { event -> event.mimeTypes().contains("text/plain") },
target = remember {
object : DragAndDropTarget {
override fun onDrop(event: DragAndDropEvent): Boolean {
val text = event.toAndroidDragEvent().clipData.getItemAt(0).text
/* ... */
return true
}
}
}
)
Android 16 (API 36) ignores per-app screenOrientation, resizableActivity, and aspect-ratio restrictions on devices with smallestWidth >= 600dp (most tablets and unfolded foldables). Google Play will require API 36 as of August 2026. Plan to make activities truly resizable rather than locking orientation.
Configuration.screenWidthDp thresholds — use window size classes; configuration is not always equivalent to your window in multi-window.Flow.rememberSaveable is used; resize is a config change.WindowInsets and adaptive paddings.androidx.compose.material3.adaptive:adaptive* — stable; currentWindowAdaptiveInfo is the entry point.androidx.window:window:1.x — WindowInfoTracker, WindowMetricsCalculator.Use this when adapting an existing phone app for tablets or foldables, designing a list-detail master flow, deciding between BottomAppBar, navigation rail, and drawer based on width, integrating drag-and-drop, or preparing for the Android 16 resizability mandate. Pair with jetpack-compose-expert-mode for the underlying UI work and android-15-features-expert-mode for related platform behavior changes.
What SKILL.md sets; muted values are Claude Code's defaults
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