Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

wear-compose-m3

БесплатноБез исполняемых скриптовНе проверен

Guidance for Wear OS Compose Material3 (Wear Compose Material 3 / Wear Compose Material3) Android watch and wearable apps. Covers creating, updating, and…

androidот android★ 10 827 звёзд на GitHub

Об этом скилле

Prerequisites and compatibility

  1. Current Wear OS Compose version in-use: To find the installed library version, read gradle/libs.versions.toml or build.gradle.kts directly. Don't run ./gradlew dependencies or other shell commands to resolve versions.
  2. Wear OS Compose Material3 version: If an internal tool is available to establish the latest stable version {VERSION} of androidx.wear.compose:compose-material3, use that tool.
  3. Strict compliance: If a version is listed as stable, you MUST use it, unless overridden by the user. Do not downgrade based on initial "Unresolved reference" errors in the editor or outdated web search results.
  4. Kotlin & Compose compiler: Use Kotlin 2.0.0+ with the org.jetbrains.kotlin.plugin.compose Gradle plugin.
  5. Min SDK: Ensure minSdk is at least 25.
  6. Compile SDK & AGP: Ensure 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.

Gotchas

  1. Mandatory sync and validation: After updating versions in 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.
  2. Prohibition of guessing (error protocol): If you encounter an 'Unresolved Reference' or API mismatch after a successful sync, do not attempt to 'fix' it by downgrading the library version.

Capabilities and tools

Capability 1: Migration, updates, and adding features

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.

  1. Unless otherwise indicated by the developer, use the latest stable version of Wear Compose Material3 from {VERSION} (superseding any literal version strings in the migration guide).
  2. When migrating from Material 2.5 or Horologist, read the migration guide and use its official component mappings.
  3. Before refactoring any component (for example, Chip -> Button), check the parameter names, slot types, and "Expressive" design tokens.
  4. Do not use the Horologist Composables, Compose Layout, or Compose Material libraries; replace Horologist components with Wear Compose M3 equivalents (AppScaffold -> M3 AppScaffold, ScreenScaffold -> M3 ScreenScaffold, ScalingLazyColumn -> TransformingLazyColumn, ResponsiveListHeader -> ListHeader, PagerScreen -> HorizontalPagerScaffold, Chip -> Button, Confirmation -> ConfirmationDialog).
  5. Always check against the component guidance in Capability 3.
  6. Expect screenshot tests to fail when migrating or updating components: expected defaults for padding and positioning will have changed. Do not seek to artificially match the previous screenshot, but give preference to the Material3 defaults.

Capability 2: Component samples

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.

Material 3 components in androidx.wear.compose.material3.*

Component / Symbol Reference Samples
AlertDialog, AlertDialogDefaults AlertDialogSample
AnimatedPage, HorizontalPagerScaffold, VerticalPagerScaffold OneHandedGestureSamples, PageIndicatorSample, PagerScaffoldSample
AnimatedText, rememberAnimatedTextFontRegistry AnimatedTextSample
AppCard CardSample
AppScaffold ListHeaderSample, PagerScaffoldSample, ScaffoldSample, [
Полный SKILL.md на GitHub

Установить wear-compose-m3 в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/android/training/wearables/compose/migrate-to-material3.mdreferences/foundation/AmbientModeSample.kt.mdreferences/foundation/CurvedWorldSample.kt.mdreferences/foundation/ExpandableSample.kt.mdreferences/foundation/HierarchicalFocusSample.kt.mdreferences/foundation/PagerSamples.kt.mdreferences/foundation/RotarySamples.kt.mdreferences/foundation/SwipeToDismissBoxSample.kt.mdreferences/foundation/TransformingLazyColumnSample.kt.mdreferences/material3/AlertDialogSample.kt.mdreferences/material3/AnimatedTextSample.kt.mdreferences/material3/ButtonGroupSample.kt.mdreferences/material3/ButtonSample.kt.mdreferences/material3/CardSample.kt.mdreferences/material3/CheckboxButtonSample.kt.mdreferences/material3/ConfirmationDialogSample.kt.mdreferences/material3/CurvedTextSamples.kt.mdreferences/material3/DatePickerSample.kt.mdreferences/material3/DynamicColorSchemeSample.kt.mdreferences/material3/EdgeButtonSample.kt.mdreferences/material3/FadingExpandingLabelSample.kt.mdreferences/material3/IconButtonSample.kt.mdreferences/material3/IconToggleButtonSample.kt.mdreferences/material3/LevelIndicatorSample.kt.mdreferences/material3/LinearProgressIndicatorSample.kt.mdreferences/material3/ListHeaderSample.kt.mdreferences/material3/OneHandedGestureSamples.kt.mdreferences/material3/OpenOnPhoneDialogSample.kt.mdreferences/material3/PageIndicatorSample.kt.mdreferences/material3/PagerScaffoldSample.kt.mdreferences/material3/PickerGroupSample.kt.mdreferences/material3/PickerSample.kt.mdreferences/material3/PlaceholderSample.kt.mdreferences/material3/ProgressIndicatorSample.kt.mdreferences/material3/RadioButtonSample.kt.mdreferences/material3/ScaffoldSample.kt.mdreferences/material3/ScrollAwaySample.kt.mdreferences/material3/ScrollIndicatorSample.kt.mdreferences/material3/SliderSample.kt.mdreferences/material3/StepperSample.kt.md

FAQ

Что делает скилл wear-compose-m3?

Guidance for Wear OS Compose Material3 (Wear Compose Material 3 / Wear Compose Material3) Android watch and wearable apps. Covers creating, updating, and migrating projects (Material 2.5 and Horologist migration) using androidx.wear.compose.material3, androidx.wear.compose.foundation, and androidx.wear.compose.navigation3, including AppScaffold, ScreenScaffold, TransformingLazyColumn, one-handed gestures, ambient mode, and previews. Don't use for mobile, tablet, or TV Compose apps.

Как установить скилл wear-compose-m3?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл wear-compose-m3 запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить wear-compose-m3 с