Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

wear-widgets

Skill by android

Creates, migrates, updates and verifies Wear OS widgets using Glance Wear and Remote Compose in an Android project. Built for Android developers who build watch widgets or move legacy ProtoLayout TileService tiles to widgets.

  • Score 93
  • 11k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install wear-widgets

Built from the published package, never by AI.

git clone --depth 1 https://github.com/android/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/wear/wear-widgets ~/.claude/skills/wear-widgets

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install wear-widgets in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The wear-widgets skill guides an AI assistant through building Wear OS widgets with androidx.glance.wear (GlanceWearWidget and GlanceWearWidgetService) and androidx.compose.remote (Remote Compose). It covers manifest and provider XML setup with SMALL and LARGE containers, Remote Compose layouts, local state and PendingIntent click actions, WearWidgetPreview functions, and rectangular picker PNG previews. It also covers migrating legacy ProtoLayout TileService tiles.

The skill states that Remote Compose evaluates UI and state inside the Wear OS host process, so it avoids in-memory Compose state. It tells the assistant to resolve current library versions and to run ./gradlew :app:assembleDebug to verify the build. It is for Android developers building Wear OS widgets. It excludes mobile home screen widgets, watch face complications and full-screen Wear OS activities.

Written from the project's SKILL.md and checked against it.

What it can do

  • Widget service setupRegisters GlanceWearWidgetService in the manifest with a wearwidget-provider XML containing SMALL and LARGE containers.
  • Remote Compose layoutsBuilds adaptive layouts with RemoteBox, RemoteColumn, RemoteRow, RemoteText and RemoteImage.
  • Local state and actionsUses rememberMutableRemoteInt, valueChange and pendingIntentAction for state and click handling.
  • Widget previewsAdds WearWidgetPreview functions and rectangular picker PNG previews for each container.
  • Legacy tile migrationMigrates ProtoLayout TileService tiles to GlanceWearWidgetService and GlanceWearWidget.
  • Build verificationRuns ./gradlew :app:assembleDebug and unit tests to check the widget compiles and passes.

What you need

  • Android project with compileSdk 37 or higher
  • Compose enabled in the build (buildFeatures compose = true)
  • Access to Google Maven to resolve library versions

Try asking

  • Create a Wear OS widget with GlanceWearWidget and SMALL and LARGE containers
  • Migrate my legacy TileService tile to a Wear OS widget
  • Add a RemoteButton that increments a counter with rememberMutableRemoteInt

Good to know

  • Not for mobile home screen AppWidgetProvider or GlanceAppWidget implementations.
  • Does not cover watch face complications or full-screen Wear OS activities.
  • Picker PNGs must be 448x168 px for SMALL and 464x288 px for LARGE.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: wear/wear-widgets/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md13 KB
  • references/previews-and-testing.md5 KB
  • references/remote-compose-layouts.md8 KB
  • references/state-and-actions.md6 KB
  • references/widget-service-and-manifest.md5 KB

Alternatives to wear-widgets

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

wear-widgets: common questions

Can I use this skill for mobile home screen widgets?

No. The source says not to use it for mobile home screen AppWidgetProvider or GlanceAppWidget implementations.

What size should the widget picker previews be?

The source gives 448x168 px for SMALL and 464x288 px for LARGE, both at 320 dpi.

Can it migrate old Wear OS tiles to widgets?

Yes. The source covers migrating legacy ProtoLayout TileService tiles to GlanceWearWidgetService and GlanceWearWidget.

How do I install wear-widgets?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is wear-widgets free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is wear-widgets safe to use?

It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to wear-widgets?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

wear-widgets Install

Add to stack

Loading.