/android-skills:wear-compose-m3from Android Skills
Provides guidance for building Wear OS apps with Compose Material3, including project setup, migration from Material 2.5/Horologist, and usage of AppScaffold, TransformingLazyColumn, one-handed gestures, and ambient mode.
Ships in Android Skills. 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.
Read when SKILL.md points to them.
gradle/libs.versions.toml or build.gradle.kts directly. Don't run ./gradlew dependencies or other shell commands to resolve versions.{VERSION} of androidx.wear.compose:compose-material3, use that tool.
{VERSION} (highest number, ignoring -alpha, -beta, or -rc).org.jetbrains.kotlin.plugin.compose Gradle plugin.minSdk is at least 25.compileSdk and AGP meet the library's AAR metadata floors (compileSdk >= 35 and AGP >= 8.6.0 for 1.6.x; compileSdk >= 37 and AGP >= 9.1.0 for 1.7.x). Whenever you upgrade androidx.wear.compose to 1.7.x in libs.versions.toml or build.gradle.kts, you MUST also update compileSdk = 37 (or higher) in app/build.gradle.kts.libs.versions.toml or build.gradle.kts, perform a Gradle sync (or ./gradlew assembleDebug) before refactoring, and run ./gradlew assembleDebug after refactoring to verify the build. Do NOT rely on ./gradlew compileDebugKotlin alone, because it skips :app:checkDebugAarMetadata and hides compileSdk mismatches.Use this guidance when migrating from an older version of Wear OS Compose or Horologist, updating an existing Wear Compose Material3 project, or adding features.
{VERSION} (superseding any literal version strings in the migration guide).Chip -> Button), check the parameter names, slot types, and "Expressive" design tokens.AppScaffold -> M3 AppScaffold, ScreenScaffold -> M3 ScreenScaffold, ScalingLazyColumn -> TransformingLazyColumn, ResponsiveListHeader -> ListHeader, PagerScreen -> HorizontalPagerScaffold, Chip -> Button, Confirmation -> ConfirmationDialog).Use this table of reference to find canonical samples for Wear Compose components. When working with a Wear Compose component, you must use the samples linked from the table to ensure you know how to correctly use it.
Important: Symbols marked with [alpha], [beta], or [rc] are only
available in that pre-release track and are not in stable {VERSION}. Do
not use them unless the project explicitly targets that pre-release version.
androidx.wear.compose.material3.*androidx.wear.compose.foundation.*androidx.wear.compose.navigation3.*| Component / Symbol | Reference Samples |
|---|---|
rememberSwipeDismissableSceneStrategy | SwipeDismissableSceneStrategySample |
Mandatory: Use this capability as a checklist against any component use. It provides more holistic guidance on how to use each component in practice, beyond the component syntax.
AppScaffold and ScreenScaffold
AppScaffold as the outer container, with ScreenScaffold children.AppScaffold and any number of ScreenScaffold.ScalingLazyColumn - Use TransformingLazyColumn instead.
TransformingLazyColumn - You will need the following imports:
import androidx.wear.compose.foundation.lazy.TransformingLazyColumn
import androidx.wear.compose.foundation.lazy.TransformingLazyColumnDefaults
import androidx.wear.compose.foundation.lazy.rememberTransformingLazyColumnState
// ...
import androidx.wear.compose.material3.lazy.rememberTransformationSpec
import androidx.wear.compose.material3.lazy.transformedHeight
Canonical example:
val columnState = rememberTransformingLazyColumnState()
val transformationSpec = rememberTransformationSpec()
ScreenScaffold(
scrollState = columnState
) { contentPadding ->
TransformingLazyColumn(
state = columnState,
contentPadding = contentPadding
) {
item {
ListHeader(
modifier = Modifier
.fillMaxWidth()
.transformedHeight(this, transformationSpec)
.minimumVerticalContentPadding(ListHeaderDefaults.minimumTopListContentPadding),
transformation = SurfaceTransformation(transformationSpec)
) {
Text(text = "Header")
}
}
// ... other items
item {
Button(
modifier = Modifier
.fillMaxWidth()
.transformedHeight(this, transformationSpec)
.minimumVerticalContentPadding(ButtonDefaults.minimumVerticalListContentPadding),
transformation = SurfaceTransformation(transformationSpec),
onClick = { /* ... */ },
icon = {
Icon(
imageVector = Icons.Default.Build,
contentDescription = "build",
)
},
) {
Text(
text = "Build",
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
}
}
}
}
TransformingLazyColumn instead of ScalingLazyColumn.contentPadding parameter from ScreenScaffold to the TransformingLazyColumn.minimumVerticalContentPadding modifier to achieve required padding top and bottom.
ButtonDefaults, CardDefaults, ListHeaderDefaults.TransformingLazyColumnItemScope.TransformingLazyColumn, not the list itself):
Modifier.transformedHeight(this, transformationSpec).transformation = SurfaceTransformation(transformationSpec).flingBehavior and rotaryScrollableBehavior together:val columnState = rememberTransformingLazyColumnState()
ScreenScaffold(scrollState = columnState) { contentPadding ->
TransformingLazyColumn(
state = columnState,
flingBehavior = TransformingLazyColumnDefaults.snapFlingBehavior(columnState),
rotaryScrollableBehavior = RotaryScrollableDefaults.snapBehavior(columnState)
) {
// ...
// ...
}
}
ScreenScaffold
scrollIndicator with !LocalScrollCaptureInProgress.current (androidx.compose.ui.platform).EdgeButton
TransformingLazyColumn. Instead, use the slot in ScreenScaffold.TransformingLazyColumn, add the required overscroll behavior:val columnState = rememberTransformingLazyColumnState()
ScreenScaffold(
scrollState = columnState,
edgeButton = {
EdgeButton(
onClick = { /* TODO */ },
modifier = Modifier.scrollable(
columnState,
orientation = Orientation.Vertical,
reverseDirection = true,
// Apply overscroll to the EdgeButton for proper scrolling behavior.
overscrollEffect = rememberOverscrollEffect(),
)
) {
Text("More")
}
}
) { contentPadding ->
TransformingLazyColumn(
contentPadding = contentPadding,
state = columnState,
) {
// ...
// ...
}
}
Column
ScreenScaffold if the screen will never scroll, even with the largest system font.TransformingLazyColumn instead for all other cases.Styles
typography from MaterialTheme.colorScheme from MaterialTheme.Use component defaults:
Button have a corresponding ButtonDefaults object.*Defaults object for any component when working with padding and styling values, in preference to hard-coded values.Use Wear-specific preview annotations
(androidx.wear.compose.ui.tooling.preview):
@WearPreviewDevices@WearPreviewFontScalesandroidx.wear.compose:compose-ui-tooling dependency is included.Ambient mode
LocalAmbientModeManager (provided by CompositionLocalProvider and rememberAmbientModeManager()) instead of AmbientLifecycleObserver.Navigation
androidx.wear.compose:compose-navigation3).rememberSwipeDismissableSceneStrategy() / SwipeDismissableSceneStrategy (androidx.wear.compose.navigation3).Comments
HorizontalPager or VerticalPager
AppScaffold, HorizontalPagerScaffold, HorizontalPager, AnimatedPage, ScreenScaffold. Or similarly for VerticalPager.One-handed gestures (androidx.wear.compose.material3.onehandedgesture)
1.7.0+ and compileSdk = 37):
rememberOneHandedGestureConfiguration(action = OneHandedGestureAction.Primary, gestureId = "...")remember { OneHandedGestureClickIndicatorState() }Modifier.oneHandedGesture(gestureConfiguration = gestureConfig, onGestureLabel = "...", interactionSource = interactionSource, onGestureAvailable = { ... }, onGesture = { ... })OneHandedGestureClickIndicator(gestureConfiguration = gestureConfig, state = indicatorState) { ... }OneHandedGestureClickIndicator inside the button or card content slot (wrapping the inner Icon, Text, or ButtonDefaults.Content), NEVER around the outer Button, IconButton, or Card (wrapping the outer component hides its background and border during the hint animation).MutableInteractionSource instance to both the clickable component and Modifier.oneHandedGesture.1.7.x, guard showIndicator() in onGestureAvailable with a remembered boolean flag (resetting on Lifecycle.Event.ON_STOP using LifecycleEventEffect) or remember the Modifier.oneHandedGesture instance so recompositions (such as toggling "play"/"pause" labels) do not replay the hint animation.gestureId string to rememberOneHandedGestureConfiguration when a gesture-enabled component is inside conditional if/else branches, and you must provide CompositionLocalProvider(LocalOneHandedGestureEnabled provides enabled) when the control has an enabled parameter.references/android/training/wearables/compose/migrate-to-material3.md (opens in a new tab)references/foundation/AmbientModeSample.kt.md (opens in a new tab)references/foundation/CurvedWorldSample.kt.md (opens in a new tab)references/foundation/ExpandableSample.kt.md (opens in a new tab)references/foundation/HierarchicalFocusSample.kt.md (opens in a new tab)references/foundation/PagerSamples.kt.md (opens in a new tab)references/foundation/RotarySamples.kt.md (opens in a new tab)references/foundation/SwipeToDismissBoxSample.kt.md (opens in a new tab)references/foundation/TransformingLazyColumnSample.kt.md (opens in a new tab)references/material3/AlertDialogSample.kt.md (opens in a new tab)references/material3/AnimatedTextSample.kt.md (opens in a new tab)references/material3/ButtonGroupSample.kt.md (opens in a new tab)references/material3/ButtonSample.kt.md (opens in a new tab)references/material3/CardSample.kt.md (opens in a new tab)references/material3/CheckboxButtonSample.kt.md (opens in a new tab)references/material3/ConfirmationDialogSample.kt.md (opens in a new tab)references/material3/CurvedTextSamples.kt.md (opens in a new tab)references/material3/DatePickerSample.kt.md (opens in a new tab)references/material3/DynamicColorSchemeSample.kt.md (opens in a new tab)references/material3/EdgeButtonSample.kt.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub android/skills --plugin android-skills2 plugins ship this exact skill · first indexed Nov 24, 2026
42 skills in this plugin
/adaptiveInstructions to make or update an app's UI so that it adapts to different Android devices including phones, tablets, foldables, laptops, desktop, TV, Auto, and XR. It includes how to handle different window sizes, pointing devices (such as mouse) and text entry devices (such as keyboard) using the Compose MediaQuery API, and how to preserve UI, navigation, scroll, and media playback state across configuration changes (such as folding/unfolding a foldable, rotating a device, or resizing a window). It also covers multi-pane layouts using Navigation3 Scenes, adaptive UI components (such as buttons) with varying target sizes, and adaptive layouts (including navigation areas - nav rails and nav bars) using the Compose Grid and FlexBox APIs. It also covers desktop experiences with keyboard shortcuts, tooltips and custom cursors./agp-9-upgradeUpgrades, or migrates, an Android project to use Android Gradle Plugin (AGP) version 9. Do not use this skill for migrating Kotlin Multiplatform (KMP) projects./android-cliProvides instructions for installing and using the `android` CLI. The `android` command-line tool is a critical tool for Android development and helps you create new Android projects, install APKs onto devices and emulators and launch and run apps on them, manage and interact with Android virtual devices (including screenshots and UI inspection), manage Android SDK components, inspect built artifacts (APK, AAB, JAR, AAR) for build and optimization details, render Compose previews, look up official Android documentation, and discover and install official Android skills.Other plugins' skills for the same job