Skip to content

aldefy/compose-skill / skills/compose-expert

compose-expert

Unverified

Compose and Compose Multiplatform expert for UI development across Android, Desktop, iOS, and Web. Use whenever the user mentions Compose APIs (@Composable, remember, LaunchedEffect, NavHost, MaterialTheme, LazyColumn, Modifier, recomposition), Compose Multiplatform (commonMain, expect/actual, Res.*, ComposeUIViewController, UIKitView, ComposeViewport), Android TV (tv-material, D-pad, focus, Carousel), Material 3 motion, atomic design systems, design-to-code workflows, Paging 3, or navigation. Activates Review Mode on GitHub PR URLs and review phrases ("review this PR", "what's wrong with this"). Auto-detects Compose projects on session_start. Backed by actual androidx/androidx and JetBrains/compose-multiplatform-core source receipts. See "## When this skill applies" in SKILL.md for the full trigger surface.

FileKindSize
SKILL.mdskill md24.8 KB
agents/openai.yamlconfig278 B
references/accessibility.mdmarkdown11.2 KB
references/adaptive-layout-input.mdmarkdown5.2 KB
references/agentic-ui-a2ui.mdmarkdown4.7 KB
references/agsl-shaders.mdmarkdown11.5 KB
references/animation.mdmarkdown41.7 KB
references/appfunctions.mdmarkdown5.8 KB
references/appstate.mdmarkdown3.9 KB
references/atomic-design.mdmarkdown10.7 KB
references/auto-init.mdmarkdown1.6 KB
references/car-compose.mdmarkdown6.7 KB
references/composition-locals.mdmarkdown6.9 KB
references/deprecated-patterns.mdmarkdown8.3 KB
references/design-to-compose.mdmarkdown23.5 KB
references/graphics-modern.mdmarkdown2.6 KB
references/ink.mdmarkdown5.1 KB
references/lists-scrolling.mdmarkdown14.5 KB
references/material3-motion.mdmarkdown14.9 KB
references/media3-compose.mdmarkdown1.7 KB
references/ml-kit-agentic.mdmarkdown5.5 KB
references/modifiers.mdmarkdown13.6 KB
references/multiplatform.mdmarkdown21.1 KB
references/navigation-migration.mdmarkdown14.6 KB
references/navigation.mdmarkdown11.0 KB
references/official-android-skills.mdmarkdown2.7 KB
references/paging-mvi-testing.mdmarkdown6.4 KB
references/paging-offline.mdmarkdown6.4 KB
references/paging.mdmarkdown11.1 KB
references/performance.mdmarkdown22.7 KB
references/platform-specifics.mdmarkdown20.2 KB
references/pr-review.mdmarkdown14.1 KB
references/production-crash-playbook.mdmarkdown25.3 KB
references/remote-compose.mdmarkdown3.7 KB
references/side-effects.mdmarkdown13.0 KB
references/source-code/cmp-source.mdmarkdown17.8 KB
references/source-code/foundation-source.mdmarkdown560.9 KB
references/source-code/material3-source.mdmarkdown836.1 KB
references/source-code/navigation-source.mdmarkdown118.8 KB
references/source-code/runtime-source.mdmarkdown449.0 KB
references/source-code/ui-source.mdmarkdown313.1 KB
references/state-management.mdmarkdown17.6 KB
references/styles-experimental.mdmarkdown14.5 KB
references/text-editing.mdmarkdown3.8 KB
references/theming-material3.mdmarkdown13.0 KB
references/tv-compose.mdmarkdown30.2 KB
references/view-composition.mdmarkdown20.0 KB
references/wear-compose.mdmarkdown2.0 KB
references/xr-compose.mdmarkdown5.1 KB

references/xr-compose.md

View on GitHub
# Compose for Android XR and Projected Displays

Android XR spans headsets, wired optical displays, and intelligent eyewear.
Choose APIs by device capability rather than treating XR as one UI target.

## Release maturity (AndroidX XR, checked 2026-11-06)

| Library | Channel | Version observed |
|---|---|---|
| `androidx.xr.runtime`, `androidx.xr.scenecore`, `androidx.xr.arcore` | Stable | `1.0.0` |
| `androidx.xr.compose` | Beta | `1.0.0-beta02` |
| `androidx.xr.glimmer` | Alpha | `1.0.0-alpha22` |
| `androidx.xr.projected` | Alpha | `1.0.0-alpha14` |

Core runtime, SceneCore, and ARCore are stable; the Compose spatial layer is
beta, and Glimmer and projected activities are alpha. Pin versions per library,
gate alpha/beta APIs behind a feature flag or separate module, and re-check the
release page before documenting a version — alpha APIs break between releases.

## Tooling and devices (Android Developer Summit 2026)

- **Emulators:** Android XR emulators in Android Studio are stable. Use them to
  validate layouts for XR glasses, audio glasses, and display glasses without
  hardware.
- **Engine Hub:** the Android XR Engine Hub is stable for Unity, Godot, and
  Unreal. It scaffolds projects with pre-configured OpenXR extensions and
  validated settings, and adds profiling (system traces, thermal limits, frame
  budgets across CPU/GPU) inside the engine. Setup and profiling for those engines
  belong there, not in Compose. Availability by OS was Windows-only when first
  introduced; check the current docs before promising other platforms.
- **XREAL AURA:** the first wired XR glasses on Android XR (under 95 g, portable
  compute puck). Existing Android apps run on it out of the box, so start from the
  adaptive 2D baseline and add spatial APIs where they help.
- **Geospatial:** ARCore for Jetpack XR Geospatial APIs are stable, for anchoring
  content to real-world coordinates.

## Existing 2D Compose UI

Start with an adaptive, resizable 2D activity. Existing Android UI can run in a
spatial panel with minimal changes, but it still needs keyboard, trackpad,
controller, and accessibility support.

Use normal Compose for application chrome and business UI. Introduce spatial
APIs only where depth, anchoring, or 3D content adds value.

## Compose Glimmer

Jetpack Compose Glimmer provides components for see-through projected displays.
Black may be transparent and real-world lighting is uncontrolled, so ordinary
phone colors and elevation assumptions do not transfer directly.

- Use Glimmer color helpers and verify contrast across bright/dark backgrounds.
- Use depth deliberately to separate overlapping content.
- Keep interaction targets simple and readable at a glance.
- Prefer pagers/button groups designed for the projected interaction model.

Glimmer is not Material 3 with a different theme; route Glimmer-specific work
to this reference.

## Projected activities and device context

Projected activities let a phone-hosted app provide content or audio to
intelligent eyewear. CameraX and other device-aware libraries may require a
projected device context to select peripherals on the glasses rather than the
phone.

Handle capability absence: not every display has a camera, screen, touch input,
or the same on-device model support.

## Spatial Compose and engines

Subspace composables place panels and entities in 3D space. Anchors can follow
tracked objects or geospatial positions. Keep continuously ticking 3D engines
decoupled from Compose state—forwarding every engine frame into snapshot state
causes continuous recomposition.

When embedding Unity or Godot:

- isolate engine lifecycle and failure from the host UI;
- communicate through a narrow state/event interface;
- use another process when crash isolation justifies the IPC cost;
- do not duplicate rendering loops in Compose.

SceneCore mesh APIs support custom and dynamic geometry. Update only changed
vertex ranges instead of recreating the entire mesh/entity.

## Accessibility

Design accessibility at the interaction-model stage:

- offer seated/reduced-motion and reach alternatives;
- provide snap turning or equivalent comfort controls;
- expose high-contrast outlines and scalable content;
- pair spatial audio with visual/directional captions;
- avoid interactions that require precise head or full-body movement;
- test with users with motor, visual, auditory, and cognitive disabilities.

## Sources

- Android XR: https://developer.android.com/develop/xr
- Dev Summit XR tools announcement: https://developer.android.com/blog/posts/build-android-xr-devices-tools
- AndroidX XR release notes: https://developer.android.com/jetpack/androidx/releases/xr-scenecore
- Glimmer: https://developer.android.com/develop/xr/jetpack-xr-sdk/compose-glimmer
- Dev Summit Glimmer session: https://developer.android.com/events/dev-summit/talks/build-world-anchored-experiences-for-xreal-aura-wired-xr-glasses
- Embedded engines: https://developer.android.com/events/dev-summit/talks/elevate-immersive-experiences-with-3d-engines-in-jetpack-compose-for-xr
- XR accessibility: https://developer.android.com/events/dev-summit/talks/xr-is-for-everyone-designing-accessible-spatial-experiences
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall