Guide · Agent skill
Jetpack Compose Glimmer for display glasses: agent skill guide
Updated · written with AI from the project's own documentation and checked against our catalogue data
This skill gives your AI coding agent Google's guidelines for building projected Android XR apps that show content on the small in-lens display of display glasses, which are controlled from a paired Android phone. It is for Android developers who want the agent to write Glimmer-based UI instead of phone-style Material 3 UI. After following this guide you will know how to install the skill, how to ask for help in plain language, and what the agent will set up for you.
Quick start
- 1Download the ZIP. Download the skill ZIP from this page. The folder inside should be named display-glasses-with-jetpack-compose-glimmer.
- 2Unzip into a skills folder. Place the folder in ~/.claude/skills/ for all projects, or in .claude/skills/ inside one project.
- 3Or upload it in the Claude apps. Open Settings, go to Capabilities, then Skills, and upload the ZIP.
- 4Check your project setup. Confirm your compileSdk and Glimmer, Google Fonts, and Projected dependency versions meet the minimums in SKILL.md.
- 5Ask for the glasses app in plain language. Describe the display glasses screen you want, for example a glanceable home screen built with Glimmer components.
- 6Review and test on glasses. Read the agent's changes to the manifest, Gradle files, and theme, then build and test with compatible glasses paired to your phone.
What the skill makes the agent do
Once the skill is loaded, the agent follows Glimmer design principles, workflows, and interaction models for the glasses form factor. It steers you away from Material 3 styling and toward Glimmer components, GlimmerTheme, focus handling, and text sizes that stay readable on additive (see-through) displays.
The skill also covers setup: Gradle dependencies, the projected activity manifest entry, and the Google Sans Flex font configuration.
- Uses GlimmerTheme and androidx.xr.glimmer components instead of MaterialTheme or Material 3
- Sets the projected activity entry in AndroidManifest.xml
- Configures Google Sans Flex typography with createGoogleSansFlexTypography()
- Keeps text at or above the minimum readable size of 18sp (0.6 degrees)
How to install the display glasses Glimmer skill
Download the ZIP for this skill from this page. Unzip it so the folder is named display-glasses-with-jetpack-compose-glimmer and sits in one of two places: ~/.claude/skills/ to make it available across your projects, or the .claude/skills/ folder inside a single project to limit it to that project.
You can also upload the skill in the Claude apps. Open Settings, go to Capabilities, then Skills, and upload the ZIP there.
- Personal install: ~/.claude/skills/
- Project install: .claude/skills/ inside your project folder
- Claude apps: Settings → Capabilities → Skills
How to trigger the skill with natural requests
You do not need a special command. Describe the glasses app you want in ordinary language and mention display glasses, Glimmer, or a projected Android XR app. The skill is written to load for requests to build an Android XR Augmented Experience app with Jetpack Compose Glimmer.
Requests that match the skill's scope work best. Be specific about the screen and the action the user takes.
- Build a projected Android XR app with a home screen and a list of cards for display glasses using Jetpack Compose Glimmer.
- Convert this phone Material 3 screen into a glanceable Glimmer layout for XR glasses.
- Add a Launch on Glasses button to my phone app that is disabled when the glasses are disconnected.
- Set up the manifest and Gradle dependencies for a projected activity on display glasses.
What you need before you start
The skill assumes you already work with Android Studio and a Gradle build. Your project must target a compileSdk at or above the level listed in SKILL.md, and it must use the minimum Glimmer, Google Fonts, and Projected artifact versions that file names. Check gradle/libs.versions.toml first. If catalog entries exist, the agent should use them and confirm they meet those minimums.
To run the app you need compatible Android XR display glasses paired to an Android phone.
- Android Studio and a Gradle build setup
- compileSdk at or above the level in SKILL.md
- androidx.xr.glimmer:glimmer and androidx.xr.glimmer:glimmer-google-fonts at the minimum alpha versions in SKILL.md
- androidx.xr.projected:projected at the minimum alpha version in SKILL.md
- Compatible Android XR display glasses paired to an Android phone
What the setup looks like
The projected activity must declare android:requiredDisplayCategory set to android.hardware.display.category.XR_PROJECTED. The launcher intent uses the XR_PROJECTED_LAUNCHER category, as in this manifest entry.
On the phone side, the skill has the agent observe ProjectedContext.isProjectedDeviceConnected to disable a Launch on Glasses button when no glasses are connected. The glasses activity is started with ProjectedContext.createProjectedActivityOptions(context).toBundle().
<activity android:name="com.example.xr.projected.ProjectedMainActivity" android:exported="true" android:requiredDisplayCategory="android.hardware.display.category.XR_PROJECTED"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.XR_PROJECTED_LAUNCHER"/> </intent-filter> </activity>Design rules the agent will follow
On additive displays, pure black renders as fully transparent, so the skill has the agent apply a black background to the root container with Color.Black or GlimmerTheme.colors.background. Material 3 shadow and elevation modifiers are not supported; the skill points to ShadowScope or Depth tokens from Glimmer instead.
The skill also avoids Thin and Hairline font weights, which shimmer on additive lenses. Initial focus is set on focusable content during onCreate so input works from the start.
- Use GlimmerTheme and androidx.xr.glimmer.* components only
- Always pass createGoogleSansFlexTypography() as the typography in GlimmerTheme
- Keep text at 18sp or larger
- Avoid Thin and Hairline weights
- Use ShadowScope or Depth tokens instead of Material 3 elevation
Safety notes: scripts and network
This skill runs no scripts and uses no network access, according to its listing. It contains guidance and reference files that the agent reads while it writes your code.
The agent will still edit your project files and dependency declarations, so review its changes in Git or your normal code review before you build and install the app on glasses.
- Runs scripts: no
- Uses network: no
- Review Gradle and manifest changes before building
Tips for getting better results
Tell the agent which screen you are building and what the wearer should see at a glance. Glasses UI is limited, so short text and few choices work better than a phone layout squeezed onto a small display.
Know what the system handles. The glasses hardware controls such as the camera button, touchpad, and swipe down for back are handled by the system, so your app should not try to replace them.
- Name the screen and the one task it supports
- Ask for focus handling and button states explicitly
- Let the agent check gradle/libs.versions.toml before adding dependencies
- Do not ask for audio-only AI glasses support, which this skill excludes
What people use it for
- Converting a phone screen into a glanceable Glimmer layout for display glasses
- Adding a Launch on Glasses button to a phone app that is disabled when no glasses are connected
- Setting up a projected activity manifest entry and Gradle dependencies for a new XR glasses app
- Applying GlimmerTheme with Google Sans Flex typography and a black background for readable additive display output
- Building focusable buttons, cards, and title chips that suit the glasses input model
Frequently asked questions
How do I install the display glasses Jetpack Compose Glimmer skill?
Download the ZIP from this page and unzip it into ~/.claude/skills/ for personal use, or into .claude/skills/ inside a project. You can also upload the ZIP in the Claude apps under Settings, then Capabilities, then Skills.
What do I need to use this skill?
You need Android Studio with a Gradle build, a project targeting the compileSdk listed in SKILL.md, and the Glimmer, Google Fonts, and Projected dependencies at the minimum versions listed there. To run the app you need compatible Android XR display glasses paired to an Android phone.
Is the Jetpack Compose Glimmer skill free?
This skill's listing shows an Apache-2.0 licence. The SKILL.md file points to LICENSE.txt for the complete terms, so read that file for the exact conditions.
Can I use this skill for audio-only AI glasses?
No. The skill is for display glasses with an in-lens display. It says audio-only AI glasses without a display are out of scope.
Why does the agent avoid Material 3 in my glasses app?
The skill says Material 3 components and MaterialTheme should not be used inside projected activities or Glimmer UI. It directs the agent to GlimmerTheme and Glimmer components, which are designed for additive displays.
What should I use instead for phone or tablet UI or a non-glasses XR headset?
Use Material 3 for phone and tablet UIs. For non-glasses Android XR headsets with spatial panels or 3D volumes, the skill points to Jetpack Compose for XR. This skill excludes both cases.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
This skill is a good fit for Android developers building a projected Android XR app for display glasses, or teams moving a phone-style UI to a glanceable Glimmer interface. It is not the right choice for audio-only AI glasses, non-glasses XR headsets, or phone and tablet Material 3 apps, which need different toolkits.
Download the skill