Index of every page on this site: llms.txt
All skills
meta avatar

/ai-glasses-webapp-device

@548f10f
by metameta/meta-wearables-webapp233 stars
39
Run it yourself

Add 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.

  • 1 file
  • 3.4 KB
  • Updated 2 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/meta/meta-wearables-webapp/ai-glasses-webapp-device

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈61 tokens for metadata: the name and description. ≈775 when used: this file.

Description uses 3.0% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈244 characters, or 3.0%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Add glasses device capabilities

Use standard browser APIs. This skill covers only behavior that differs on the glasses; use ai-glasses-webapp-build for the screen and UI toolkit shell.

Sensors and location

  • Request motion/orientation/location from an explicit Start or Enable action. Await DeviceMotionEvent.requestPermission() and DeviceOrientationEvent.requestPermission() where present.
  • Use devicemotion for acceleration/rotation, deviceorientation/deviceorientationabsolute for heading/tilt, and navigator.geolocation.watchPosition() for position and speed.
  • Treat nullable, denied, revoked, stale, inaccurate, and unsupported readings as ordinary states. Never present demo values as live data.
  • Keep stable listener functions and watch IDs. Stop them exactly once on Pause/Stop, visibility loss, route exit, and unmount. A resumable session preserves accumulated metrics and elapsed time while releasing resources.
  • Process raw motion only when required and throttle React/UI commits to 10–30 Hz. Step counting should filter acceleration magnitude and reject implausibly rapid peaks. Label steps as estimated.
  • Use reported geolocation speed when accurate. Otherwise derive distance/speed only from accurate timestamped positions.
  • Provide deterministic injection for tests and, when useful, a clearly labeled desktop Demo action that never requests device permission.

D-pad, pinch, and continuous gestures

Pinch and Enter already map to onClick on a focused toolkit Button. Supply one onClick handler only. Do not add onActivate handlers that synthesize a second click or time-based click debouncing; both create stale or ignored state transitions. Pinch is not a positioned pointer event.

For continuous drag only, put touch-action: none on body in the initial stylesheet, use Pointer Events with pointer capture and client-coordinate deltas, and cancel on pointer cancellation, hide, route exit, and unmount. Pointer Lock is unsupported. Do not enable touch-action: none for apps that do not use continuous drag.

For games, focus the canvas only after Play. While playing, arrow keys control the game and prevent page navigation. Escape pauses/exits, stops the loop, and restores focus to the initiating toolkit action. Keep score/status available as ordinary accessible text. Commit an accepted direction to the observable game state immediately; deterministic/test modes may freeze board advancement, so a direction snapshot must not depend on a later animation tick.

Text composition

Standard text-like <input> and <textarea> controls open the glasses handwriting/voice composer after wearer focus and activation. No proprietary SDK call is needed. Read committed text from input or change; programmatic focus does not open the composer. Use clear labels and keep essential flows usable when composition is unavailable. Do not build a custom keyboard.

Run ai-glasses-webapp-test with granted, denied, unsupported, active, paused, hidden-page, cleanup, and deterministic demo scenarios that apply.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 548f10f. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 2 months ago
argument-hint
[sensors|gestures|game-controls|text-input]

README badge

README badge for meta/meta-wearables-webapp/ai-glasses-webapp-device