wear-compose-m3
O que ela faz
Esta skill orienta a criação, a atualização e a migração de apps Wear OS com a biblioteca Wear Compose Material 3. Ela cobre estruturas base (scaffolds), listas com carregamento sob demanda, modo ambiente e migração do Material 2.5 ou do Horologist. Ela é para desenvolvedores que criam apps para smartwatches.
Quando usar
- ✓Quando você está começando um app Wear OS novo com componentes Material 3.
- ✓Quando você quer migrar um app de relógio do Material 2.5 ou do Horologist para o Wear Compose Material 3.
- ✓Quando você precisa de uma lista com rolagem ou de uma tela em modo ambiente para um app de relógio.
Link da skill
https://github.com/android/skills/blob/main/wear/wear-compose-m3/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Crie uma tela Wear OS com uma lista com rolagem e modo ambiente usando o Wear Compose Material 3.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill verifica as versões atuais da biblioteca e a versão estável mais recente, depois configura os requisitos de Kotlin e de SDK. Em seguida, usa as estruturas base e as listas do Material 3 para criar ou migrar as telas.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Prerequisites and compatibility
- Current Wear OS Compose version in-use: To find the installed library version, read
gradle/libs.versions.tomlorbuild.gradle.ktsdirectly. Don't run./gradlew dependenciesor other shell commands to resolve versions. - Wear OS Compose Material3 version: If an internal tool is available to establish the latest stable version
{VERSION}ofandroidx.wear.compose:compose-material3, use that tool.- Otherwise, fetch the official Maven metadata XML to identify
{VERSION}(highest number, ignoring-alpha,-beta, or-rc).
- Otherwise, fetch the official Maven metadata XML to identify
- 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.
- Kotlin & Compose compiler: Use Kotlin 2.0.0+ with the
org.jetbrains.kotlin.plugin.composeGradle plugin. - Min SDK: Ensure
minSdkis at least 25. - Compile SDK & AGP: Ensure
compileSdkand AGP meet the library's AAR metadata floors (compileSdk >= 35andAGP >= 8.6.0for1.6.x;compileSdk >= 37andAGP >= 9.1.0for1.7.x).
Gotchas
- Mandatory sync and validation: After updating versions in
libs.versions.tomlorbuild.gradle.kts, perform a Gradle sync (or./gradlew assembleDebug) before refactoring, and run./gradlew assembleDebugafter refactoring to verify the build. - 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.
- 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). - When migrating from Material 2.5 or Horologist, read the migration guide and use its official component mappings.
- Before refactoring any component (for example,
Chip->Button), check the parameter names, slot types, and "Expressive" design tokens. - Do not use the Horologist Composables, Compose Layout, or Compose Material libraries; replace Horologist components with Wear Compose M3 equivalents (
AppScaffold-> M3AppScaffold,ScreenScaffold-> M3ScreenScaffold,ScalingLazyColumn->TransformingLazyColumn,ResponsiveListHeader->ListHeader,PagerScreen->HorizontalPagerScaffold,Chip->Button,Confirmation->ConfirmationDialog). - Always check against the component guidance in Capability 3.
- 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](re |
Perguntas frequentes
Qual versão da biblioteca ela usa?
Ela usa a versão estável mais recente, a menos que você peça outra.
Quais são os requisitos mínimos de SDK?
A skill exige minSdk de pelo menos 25 e Kotlin 2.0.0 ou mais novo.
Ela executa comandos de shell para encontrar versões?
Não. Ela lê os seus arquivos de build diretamente e consulta os metadados oficiais do Maven quando necessário.
Detalhes
Descrição original do autor
Guidance for Wear OS Compose Material3 (Wear Compose Material 3 / Wear Compose Material3) 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, ambient mode, and previews.
repo: android/skills
Popularidade
- Estrelas no GitHub
- 10 mil
- Posição no ranking
- #11939
- Licença
- Apache-2.0
- Atualizada em
- 29/10/2026
Comentários
- …
Mais skills deste repositório
agp-9-upgrade
10 milAjuda seu agente a atualizar um app Android para o Android Gradle Plugin 9 e resolver suas mudanças incompatíveis. Não serve para projetos multiplataforma.
camerax
10 milAjuda seu agente a criar recursos de câmera no Android com o CameraX, incluindo gravação de vídeo, controles de hardware, ML Kit e efeitos do Media3.
android-for-cars-parked-apps
10 milAjuda seu agente a adaptar um app Android de vídeo, jogo ou navegador para rodar como app estacionado no Android Auto e no Android Automotive.
appfunctions
10 milAjuda seu agente a encontrar fluxos de trabalho principais de um app Android e expô-los como AppFunctions que agentes de IA e comandos de voz podem executar.
Skills parecidas
android-clean-architecture
280 milFaz seu agente organizar projetos Android de forma eficiente. Ele estrutura o código para facilitar a manutenção e o desenvolvimento de novos recursos.
compose-multiplatform-patterns
280 milAjuda seu agente a usar Compose Multiplatform e Jetpack Compose em projetos KMP. Cobre estado, navegação, temas e performance.
dart-flutter-patterns
280 milFaz seu agente escrever código para apps Dart e Flutter. Ele usa padrões modernos para criar apps robustos e fáceis de gerenciar.