/android-skills:wear-compose-m3from android-skills
Guides Wear OS Compose Material3 development: libraries, core components (AppScaffold, ScreenScaffold, TransformingLazyColumn), ambient mode, and migration from Material 2.5 and Horologist.
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.kotlinCompilerExtensionVersion in composeOptions, matching the Compose to Kotlin Compatibility Map.minSdk is at least 25.libs.versions.toml or build.gradle.kts, you must perform a Gradle sync before refactoring any code. This ensures the environment has resolved the libraries correctly.Use this guidance when migrating from an older version of Wear OS Compose or Horologist.
{VERSION}.Chip -> Button), check the parameter names, slot types, and "Expressive" design tokens.Use this guidance when the developer asks to update a project which is using an earlier version of Wear OS Compose Material3, or when they ask to add further features.
{VERSION}.Wear Compose includes individual component samples for each and every component,
within the <artifact>-<version>-samples-sources.jar file. Gradle automatically
downloads these JAR files along with the main library JAR when using any of
compose-material3, compose-foundation or compose-navigation3.
Use the canonical component samples whenever adding or adjusting a Wear Compose Material3 component.
STRICT COMPLIANCE: Extraction is NOT optional. You are FORBIDDEN from implementing any code until samples are extracted and read. Bypassing this step with alternative search tools or by assuming library documentation is sufficient is a protocol breach. You MUST verify the local cache by reading a sample file before proceeding.
Exception: You don't need to extract samples if the request is strictly related to tooling (for example, adding @WearPreviewDevices), updating text/colors, or basic refactoring that doesn't involve adding new Wear Compose components.
build.gradle.kts or libs.versions.toml to ensure the Wear Compose version matches {VERSION}./tmp/wear-compose-samples/{VERSION}/. Do NOT choose your own different location..kt files.
Google Maven publishes a -samples-sources.jar alongside every library release.
Download and extract it directly without needing a local Gradle sync or cache
lookup.
Determine the {VERSION} of androidx.wear.compose:compose-material3 from build.gradle.kts or libs.versions.toml.
Define {ARTIFACT} as the items in the list ["material3", "foundation"]. Also include navigation3 if androidx.wear.compose.navigation3 is used.
For each {ARTIFACT}, run the following commands to download and extract
the samples:
# Download the samples-sources JAR
curl -sSL "https://dl.google.com/dl/android/maven2/androidx/wear/compose/compose-{ARTIFACT}/{VERSION}/compose-{ARTIFACT}-{VERSION}-samples-sources.jar" -o {ARTIFACT}-{VERSION}-samples.jar
# Extract and flatten into the cache directory
unzip -q -o {ARTIFACT}-{VERSION}-samples.jar -d /tmp/wear-compose-samples/{VERSION}/{ARTIFACT}/
# Clean up
rm {ARTIFACT}-{VERSION}-samples.jar
If this works, proceed directly to step 4.
.kt sample files.onClick, onLongClick).AppScaffold -> ScreenScaffold).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.transformedHeight modifier.transform = SurfaceTransform(...).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.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 is 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 previews:
WearPreviewDevicesWearPreviewFontScalesAmbient mode
LocalAmbientModeManager instead of AmbientLifecycleObserver.Navigation
SwipeDismissableSceneStrategy() from the Wear Compose compose-navigation3 library.Comments
HorizontalPager or VerticalPager
AppScaffold, HorizontalPagerScaffold, HorizontalPager, AnimatedPage, ScreenScaffold. Or similarly for VerticalPager.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
18 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. 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, run Android apps on devices, 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-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./appfunctionsAnalyzes Android apps to identify key user workflows for AppFunctions such as creating a note, playing media, or sending an automated or AI agent triggered message, voice commands, or system shortcuts, without needing to open the app UI. Generates Kotlin code to expose these workflows to the Android system, allowing agents to discover and execute them on-device. Also refines KDoc documentation to ensure AI agents correctly understand and use the provided functionality./cameraxProvide technical guidance for Android camera development with CameraX. Use when implementing camera features, handling asynchronous recording lifecycles, wiring low-level hardware interop using CameraX, or integrating ML Kit or Media3 effects.npx claudepluginhub rushyop/rushy-claude-plugins --plugin android-skillsOther plugins' skills for the same job