Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

measure-telemetry-span

БесплатноЗапускает вложенные скриптыНе проверен

Use when measuring a Sentry performance span locally with an agent-device replay flow on iOS simulator or Android emulator.

Expensifyот Expensify★ 5 115 звёзд на GitHub

Об этом скилле

Measure Telemetry Span

Pattern: from repo root, run one command with a span name and platform → stdout is a small summary table (avg / min / max + sample ms list). The script measures whatever Git checkout is currently active: it never runs git checkout or otherwise switches branches. To compare this branch with main (or any other revision), check out each commit/branch in turn—or use two worktrees/clones—and run measure.sh separately, then compare the two printed summaries.

Layout

measure-telemetry-span/
├── measure.sh                        # the runner
├── flows/                            # one .ad flow per measured journey
└── scripts/replay-with-deadline.mjs  # wall-clock deadline around `agent-device replay`

Each flow under flows/ declares the spans it owns with # @span <SpanName> and names the span the runner looks up. Flows here do not own application lifecycle, so they are not inputs for agent-device test; the runner opens the app and prepares the session.

Setup and navigation helpers live in .claude/skills/agent-device/flows/macros/, and @reset headers point at them. The .ad metadata spec, selector rules, and recording workflow live in agent-device/flows/README.md — read it before adding or healing a flow here.

Command

.claude/skills/measure-telemetry-span/measure.sh <span-name> [runs] [platform] [--boot]
Argument Default Description
<span-name> — Must match # @span <span-name> on a flow under .claude/skills/measure-telemetry-span/flows/.
[runs] 10 Measured replays after one warmup inside the script.
[platform] ios ios or android — must match the simulator/emulator you use.
--boot off Before open, runs agent-device boot --platform <platform> so a simulator/emulator is started when nothing was connected (adb devices empty, etc.).

To pick a specific Android AVD or iOS simulator, use the same global flags agent-device already supports (for example --device "Pixel_7_API_34") on boot and on later commands — either run agent-device boot --platform android --device "…" yourself before measure.sh, or rely on agent-device config (~/.agent-device/config.json). --boot inside this script only passes --platform through to boot.

Environment: APP_ID overrides the app bundle (default com.expensify.chat.dev). REPLAY_TIMEOUT_MS sets the per-replay wall-clock deadline and defaults to 120000. The repository wrapper enforces it outside the Agent Device daemon and exits with code 124 on timeout, including on Agent Device 0.20.1 through 0.20.6 where the CLI timeout can leave the request running. AGENT_DEVICE_STATE_DIR selects the isolated session directory and defaults to $HOME/.agent-device-expensify-headless; do not point it at an interactive daemon because timeout cleanup stops that daemon. If the scenario declares # @param KEY …, set AD_KEY to pass -e KEY=VALUE to replay.

Output: table + Samples: …ms line; stderr has progress (Using flow:, runs, optional reset).

Before you run

Must have Notes
agent-device (global install, version per repo agent-device skill)
Metro on 8081 (npm run start)
Dev build on device
iOS agent-device react-devtools attached so Hermes console.debug reaches logs.
Android Span line visible in adb logcat at debug once you verify manually.

If you see no Android device (adb devices empty): append --boot to the measure command, or run manually first:

agent-device boot --platform android (optional --device "<AVD name>"). For iOS, agent-device boot --platform ios or agent-device ensure-simulator --boot when you need a created simulator instance.

Platform coverage

The bottom tab items carry no unique selector on either native platform, so the three flows that must press a tab (switch-home-to-inbox, switch-home-to-reports, and the switch-to-home reset macro) can fail to resolve a single target.

On narrow layouts the app renders two NavigationTabBar instances at once: one from TabNavigatorBar and a second from TabBarBottomContent, which HomePage and BaseSidebarScreen pass as bottomContent for the swipe-back animation. Both copies sit at the same rect and both are hittable, so label="Inbox" matches four nodes and label="Inbox" hittable=true still matches two. On iOS the tab items additionally carry no role="tab", because React Native maps that role to no iOS accessibility trait. Newer Agent Device versions reject an ambiguous press outright, which is the correct outcome but means these three flows cannot run as

Полный SKILL.md на GitHub

Установить measure-telemetry-span в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(.claude/skills/measure-telemetry-span/measure.sh)
Read
Grep
Glob

Вложенные файлы

flows/create-expense-manual.adflows/open-create-expense.adflows/open-report.adflows/open-search-router.adflows/scan-receipt-init.adflows/send-message.adflows/submit-expense.adflows/switch-home-to-inbox.adflows/switch-home-to-reports.admeasure.shscripts/replay-with-deadline.mjsscripts/replay-with-deadline.test.mjs

FAQ

Что делает скилл measure-telemetry-span?

Use when measuring a Sentry performance span locally with an agent-device replay flow on iOS simulator or Android emulator.

Как установить скилл measure-telemetry-span?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл measure-telemetry-span запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить measure-telemetry-span с