# Measure Space

> >-

- **Type:** Skill
- **Install:** `agentstack add skill-sumitaich1998-jarvisvr-measure-space`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [sumitaich1998](https://agentstack.voostack.com/s/sumitaich1998)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [sumitaich1998](https://github.com/sumitaich1998)
- **Source:** https://github.com/sumitaich1998/jarvisvr/tree/main/skills/navigation/measure-space

## Install

```sh
agentstack add skill-sumitaich1998-jarvisvr-measure-space
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Measure Space

Report a spatial measurement and render a `measuring_tape` between the relevant
world points. Points come from detected objects, gaze hits, or user-placed taps.

## Steps

1. **Determine the endpoints.** Two detected objects, two gaze/tap points, or a
   span the user indicates. `measure` will pick two scene points if none given.
2. **Call `measure`.** Returns `data.distance_m`, `from`, `to`, and a
   `measuring_tape` directive (`mode:"distance"`).
3. **Speak the result** with sensible units; render the tape.
4. **Refine interactively:** `add_point` / `move_point` events extend or adjust
   the measurement → recompute and `holo.update`.
5. For `area`/`angle`, set the tape `mode` accordingly with 3+ points.

## Helper script

To compute distance from raw coordinates without a live scene (tests, planning),
use the bundled stdlib helper:

```
python3 scripts/distance.py 0,1,0.5 0,1,1.2          # -> 0.70 m
python3 scripts/distance.py --unit cm 0,1,0 1,1,0    # -> 100.0 cm
```

It mirrors the backend's Euclidean distance so props match what `measure` emits.

## Output

`measuring_tape` (`measure`, props per registry.json):

```json
{ "widget_type": "measuring_tape",
  "transform": { "anchor": "world" },
  "props": { "points": [ [0.0,1.0,0.0], [1.0,1.0,0.0] ], "unit": "m",
             "distance_m": 1.0, "mode": "distance", "label": "Desk width" },
  "interactions": ["grab","tap","drag","dwell"] }
```

`agent.speech`: `{ "text": "That's about 1.0 meter across.", "final": true }`

## Bundled resources

- `scripts/distance.py` — pure-stdlib distance/area helper for `x,y,z` points.

## Edge cases

- **Too few points** → `measure` falls back to a span in front of the user; tell
  the user to look at / tap the two endpoints for accuracy.
- **No depth** → estimates are rougher; say "about" and offer to refine with taps.
- **Unit conversion** → present in the unit the user asked (`m|cm|ft|in`); store
  `distance_m` canonically.
- **Geographic distance** (between cities) → that's `show-map`/`wayfind`, not a
  tape measure.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [sumitaich1998](https://github.com/sumitaich1998)
- **Source:** [sumitaich1998/jarvisvr](https://github.com/sumitaich1998/jarvisvr)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-sumitaich1998-jarvisvr-measure-space
- Seller: https://agentstack.voostack.com/s/sumitaich1998
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
