/meta-wearables-webapp:ai-glasses-webapp-build [app-name-or-feature] [app-directory]from meta-wearables-webapp
Creates, redesigns, or extends web apps for Meta Ray-Ban Display glasses. Covers architecture, routing, state, API-backed UI, persistence, and offline behavior with a React/Vite/TypeScript toolkit.
Ships in meta-wearables-webapp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use normal React knowledge for APIs, storage, routing, and service workers, then
apply the glasses-specific contract below. Use ai-glasses-webapp-ui for every new
application and UI change unless the user explicitly opts out of the toolkit.
For an empty destination, run the initializer from ai-glasses-webapp-ui before
writing application source. It creates the required React/Vite/TypeScript app
and installs the public npm packages only when they are not already usable. For
an existing app, inspect and preserve its working toolchain, then use the UI
skill's idempotent existing-app installer when the toolkit is absent. Never
introduce a machine-specific checkout, source alias, or file: dependency.
For a Toolkit application, use viewport width=device-width, initial-scale=1.0 (with viewport-fit=cover when appropriate), an app-specific
description, and mrbd-web-app-capable=yes. Give html, body, and #root
full available width and height. Derive layout from available space with
shrinkable grid/flex tracks; never hardcode device or viewport dimensions or
branch on them. Use var(--uit-color-background-window) for the whole window.
Before editing Toolkit application UI, read its
installed wearables-ui-toolkit-web/SKILL.md entrypoint, then load only the
production pattern or direct references it selects. The public repository at
https://github.com/meta/meta-ray-ban-display-ui-toolkit-web/ contains the
documentation and LLM skills. Its UI guidance is authoritative for component
choice, route geometry, typography, and verification; the npm acquisition and
package-scope rules in ai-glasses-webapp-ui take precedence over stale setup
text. An explicit custom-UI opt-out keeps the custom scaffold's own mount
contract.
There is no free cursor or touchscreen. Directional input moves focus and Select/EMG pinch activates the focused semantic control. Keep every command reachable, preserve visible focus, and restore the originating control and scroll position after Escape/Back, route return, or modal dismissal. Do not add an in-app Back button.
Use stable geometry for loading, empty, stale, offline, denied, error, active, and completion states that genuinely apply. Ordinary REST/WebSocket/storage/ offline code needs no separate skill: render a useful shell first, abort stale work, close polling/sockets when hidden, and never bundle secrets.
Follow the selected Toolkit pattern instead of imposing a host-specific screen
blueprint. In particular, keep exactly one vertical owner per route; never put
ListItem in ScrollView or nest VerticalList inside it. Keep a page-level
Panel width="100%" directly inside ScrollView when the selected pattern uses
one. When page commands exist, place them in a sibling bottom ButtonRail or
ButtonGroup dock with a shrinkable content track. Use action-less rows as
ordinary text rather than focus stops.
TextStyle members are exactly NUMERAL1, NUMERAL2, DISPLAY1, HEADING1,
HEADING2, BODY1, BODY1_EMPHASIZED, BODY2, BODY2_EMPHASIZED, LABEL,
LABEL_EMPHASIZED, META1, META1_EMPHASIZED, META2,
META2_EMPHASIZED, and META3. Routine product copy should stay at BODY2
or below; use larger roles only when the selected Toolkit pattern calls for
them.
Use ai-glasses-webapp-optimize-performance before release and whenever an app
is slow or its startup payload grows. Under its device profile, target first
paint under 1 second, usable content under 5 seconds, total first-load transfer
under 300 KB, warm launch under 2 seconds with 0 transferred bytes, fewer than
15 initial requests, and under 128 MB heap. The display is 30 Hz, so the frame
budget is 33 ms; never add a 60 fps loop for this panel.
Run timers, animation frames, sensors, polling, and sockets only while needed; stop them on pause, hide, route exit, and unmount. Use local assets and bundled icons; do not download icon packs.
Use ai-glasses-webapp-device for sensors or glasses-specific input, and
ai-glasses-webapp-webmcp when the wearer should be able to drive the app by
speaking to the assistant. Invoke
ai-glasses-webapp-test after implementation and fix every failure. Before a
release, complete the performance pass and rerun that gate. For Toolkit apps,
the gate runs the official structure validator and requires zero findings.
When the user's prompt asks for a complete app to be created or substantially
redesigned, the goal is not complete when the files and tests are finished.
After ai-glasses-webapp-test passes, start a separate production preview from
the app directory in a persistent terminal session:
npm run preview -- --host 127.0.0.1 --port 4173
The test gate's own preview is temporary and does not satisfy this requirement. Keep the new preview process running, wait for its ready message, and verify the reported loopback URL responds. Port 4173 is preferred, but when it is occupied, use the actual fallback port printed by the server. If a preview of an older build is running, stop it and start the newly validated build.
The final response must include a clickable local URL such as
http://127.0.0.1:4173/, tell the user the app is ready for local review, and
state that the server remains running until stopped. Do not claim the initial
app-build goal is complete without that URL. If the environment cannot keep a
local server running, report that limitation and provide the exact preview
command instead.
This local preview is not publishing. Never invoke Vercel or
ai-glasses-webapp-publish unless the user later explicitly asks to make the
app publicly accessible.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub meta/meta-wearables-webapp --plugin meta-wearables-webapp7 skills in this plugin
/ai-glasses-webapp-deviceAdd Meta Ray-Ban Display glasses-specific sensors and input behavior: motion, orientation, compass, step detection, geolocation, neural-band activation/drag, D-pad game controls, or handwriting/voice text composition./ai-glasses-webapp-optimize-performanceMeasure and speed up a Meta Ray-Ban Display webapp using Chrome DevTools Protocol only — no device required. Use when the user says the app is slow, takes too long to load or start, feels sluggish on glasses, when they ask how big the bundle is or how to make it smaller, when they want a startup budget or to compare two builds, or before shipping. Covers the throttling profile, how to build a measurement you can trust, finding critical CSS, and downscaling images./ai-glasses-webapp-publishValidate and publish a finished Meta Ray-Ban Display glasses web app directly to Vercel production, confirm anonymous HTTPS access, and generate the Meta AI add-to-glasses QR code. No staging or passcode flow./ai-glasses-webapp-testRun the complete deterministic quality gate for a Meta Ray-Ban Display glasses web app: package/UI-toolkit checks, typecheck, production build, responsive viewport containment, local performance smoke checks, Playwright interaction, accessibility, sensors, and screenshots./ai-glasses-webapp-uiInstall and use UI Toolkit for Meta Ray-Ban Display in React web apps. Use whenever creating or changing glasses UI, selecting toolkit components, scaffolding a new app, or migrating custom UI. The toolkit is required by default unless the user explicitly opts out./ai-glasses-webapp-webmcpMake an existing Meta Ray-Ban Display web app controllable by the on-device assistant. Use when the wearer should operate the app by speaking to Meta AI, when the assistant should read or change app state, or for WebMCP, model context, tool registration, or hands-free control.Other plugins' skills for the same job