Skip to content

Guide · Agent skill

How to use the Android XR Projected Hardware agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The projected-hardware skill is a set of reference guides that an AI coding agent loads so it can help you build Android apps for Android XR intelligent eyewear, such as audio glasses and display glasses. After this guide you will know what the skill does, how to install it, how to ask for it with plain requests, and what it needs before it applies to your project. The skill only supplies documented patterns to the agent; it does not connect to any device itself.

Android XR Projected Hardwareandroid/skills · Apache-2.0

Quick start

  1. 1Check your compileSdk. Confirm your Android project uses compileSdk 36 or higher before you start.
  2. 2Download and unzip the skill. Download the projected-hardware ZIP from this page and unzip it to get the projected-hardware folder.
  3. 3Place the skill folder. Copy the folder into ~/.claude/skills/ for personal use, or into your project's .claude/skills/ folder for one project.
  4. 4Or upload it in the Claude apps. In the Claude apps, go to Settings → Capabilities → Skills and upload the skill.
  5. 5Ask a specific glasses question. Describe the task with Android XR, glasses, ProjectedContext, camera or microphone named in the request.
  6. 6Review the output against the docs. Compare the agent's code with the referenced guides on projected context, availability and permissions.

What is an agent skill and what does this one do?

An agent skill is a folder containing a SKILL.md file and supporting reference files. When a task matches the skill's description, the agent loads those files into its context and follows the instructions in them.

This skill covers accessing hardware on Android XR projected devices. Its guidance covers connecting to glasses through ProjectedContext, managing connection lifecycles, declaring and requesting camera and microphone runtime permissions, and capturing a photo with the glasses' camera using a ProjectedContext.

  • Connection and lifecycle: monitor whether glasses are connected to the host phone and release resources accordingly.
  • Permissions: declare camera and microphone permissions in the Android Manifest, request them in different scenarios, and handle the results.
  • Camera capture: the patterns for taking a photo with the glasses camera with CameraX.

How do you install the projected-hardware skill?

Download the skill ZIP from this page and unzip it. Then place the resulting folder in one of two locations, depending on how you want to use it.

For a personal setup available across projects, put it in your user skills folder at ~/.claude/skills/. For a single project, put it in that project's .claude/skills/ folder so it applies only there.

You can also upload the skill in the Claude apps under Settings → Capabilities → Skills.

  • Personal: ~/.claude/skills/
  • Single project: .claude/skills/ inside your project
  • Claude apps: Settings → Capabilities → Skills, then upload the skill

What does your project need before the skill applies?

The skill has a hard prerequisite: your Android project must use a compileSdk of 36 or higher. If it targets a lower value, the guidance will not match your setup.

The bundled docs refer to the Android XR Jetpack XR SDK, and testing needs Android XR glasses hardware or an emulator. You also need an Android toolchain, because the output is code-level guidance rather than a finished app.

  • Android project with compileSdk 36 or higher
  • Android XR Jetpack XR SDK, as referenced in the bundled docs
  • Android XR glasses hardware or an emulator for testing
  • Uses no scripts and no network access

How do you trigger the skill with natural requests?

You do not need a special command. The skill's description tells the agent when to use it, so describe your task in plain terms that mention glasses, Android XR, or the hardware you need. Mentioning ProjectedContext, camera, microphone or permissions also helps the agent match the skill.

Good requests name both the platform and the task. Vague requests about general Android camera code may not trigger the glasses-specific guidance.

  • "Using ProjectedContext, help me capture a photo from the audio glasses camera in my Android XR app."
  • "Add microphone permission handling for my display glasses companion app."
  • "How should I handle glasses disconnecting while my Android XR activity is running?"
  • "Explain how to get a projected context in my glasses app."

What can you expect the agent to produce?

The agent reads the matching reference file for your question and applies its patterns to your code. For connection handling, it points to the guides on projected contexts and on checking device availability. For permissions, it follows the guide on declaring and requesting hardware permissions. For photos, it follows the CameraX capture pattern.

Check the output against the referenced docs, since the skill is reference guidance and does not verify your build.

  • Connection state handling based on the Device Availability API and Lifecycle.State values
  • Manifest declarations and runtime permission request flows for camera and microphone
  • Photo capture through a ProjectedContext

What are the safety notes?

The skill runs no scripts and makes no network calls. It only loads the bundled markdown reference files into the agent's context. It does not access any device, so the agent cannot read your glasses' camera or microphone through this skill.

The licence is Apache-2.0, and the complete terms are in the LICENSE.txt file referenced by the skill. Review generated code before you ship it, especially permission handling and camera use.

  • No scripts are run by this skill
  • No network use by this skill
  • Camera and microphone access in your app should be declared and requested as the docs describe

What people use it for

  • Setting up a ProjectedContext and handling glasses disconnects in a companion app.
  • Declaring camera and microphone permissions in the Android Manifest and requesting them at the right time.
  • Capturing a photo from the glasses camera with CameraX through a projected context.
  • Learning which projected context pattern fits audio glasses versus display glasses.

Frequently asked questions

What is the projected-hardware agent skill?

It is a set of reference guides for an AI coding agent covering hardware access on Android XR projected devices such as audio and display glasses. It covers ProjectedContext, connection lifecycles, camera and microphone permissions, and photo capture. It only supplies documented patterns and does not access any device.

What are the requirements to use this skill?

Your Android project must use a compileSdk of 36 or higher. You also need the Android XR Jetpack XR SDK referenced in the docs, and glasses hardware or an emulator for testing. Without those, the guidance will not apply.

Is the projected-hardware skill free?

The skill is licensed under Apache-2.0. The complete terms are in the LICENSE.txt file that the skill references. Check that file for the full terms.

How do I install the projected-hardware skill?

Download the ZIP from this page and unzip it. Put the folder in ~/.claude/skills/ for personal use or in a project's .claude/skills/ folder, or upload it in the Claude apps under Settings → Capabilities → Skills.

Does the skill run code or use the network?

No. The skill runs no scripts and uses no network. It loads bundled markdown reference files into the agent's context.

Why doesn't my agent use the skill?

Check that the skill folder is in the correct location and that your request names Android XR, glasses, ProjectedContext, camera or microphone. Also confirm your project targets compileSdk 36 or higher, because the skill's stated prerequisite is not met otherwise.

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

Use this skill if you are an Android developer building glasses companion features and want the agent to follow the official hardware access patterns for ProjectedContext, lifecycles and permissions. Skip it if you are not working on an Android project, if your compileSdk is below 36, or if your hardware is not an Android XR projected device.

Download the skill