/android:wear-compose-m3from android
Provides guidance for Wear OS Compose Material3 watch and wearable apps, covering project creation, updates, and migrations from Material 2.5 and Horologist.
Ships in android. 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).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.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.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 arisguimera/mobiai-core --plugin android35 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./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, look up official Android documentation, and discover and install official Android skills./android-for-cars-parked-appsAdapt existing Android video streaming apps, games, and web browsers to run as parked apps on Android Auto and Android Automotive OS. Covers manifest configuration, Google Play hardware feature declarations, compatibility mode, back navigation affordances, orientation and display continuity, controllable system bar insets, irregular display cutouts, driver distraction lifecycle handling, MediaSession playback restrictions with CarUxRestrictionsManager, background audio while driving, and browser sensitive data protection. Use this skill when migrating, building, or auditing parked apps for cars to meet Car App Quality guidelines. Don't use for media audio apps, templated Car App Library navigation, point of interest, internet of things, weather, or communication apps designed for use while driving./android-intent-securityBest practices for Android Intent security. Use this skill when auditing component configurations in AndroidManifest.xml activities, services, receivers) or source code handling incoming Intents (getIntent, getParcelableExtra) to prevent Intent Redirection and unauthorized access./android-permissions-securityAudits, detects gaps, and remediates Android permissions and IPC component security vulnerabilities. Use when reviewing AndroidManifest.xml, defining custom permissions, securing Services, Receivers, and Providers, verifying caller signatures and UID using Binder, or implementing runtime permission flows.Other plugins' skills for the same job