agent-device-evidence
БесплатноБез исполняемых скриптовНе проверенRecords iOS/Android native MP4 evidence for test/repro flows extracted from an Expensify GitHub PR or issue. Use when the user asks to "record the flow for PR
от Expensify★ 5 115 звёзд на GitHubОб этом скилле
agent-device-evidence
Records iOS: Native and Android: Native MP4 evidence for the test or repro steps declared in an Expensify GitHub PR or issue. The source of truth is the test/repro steps themselves, not the surrounding code or context - the skill works equally well on a PR's ### Tests section, an issue's ## Action Performed: block, or any future Markdown body where steps are clearly authored.
Specializes the agent-device skill: delegates device lifecycle (bundle ID, Metro, device pick, session, open) to its Bring-up, then captures one artifact per declared flow per platform, writes a JSON manifest, and surfaces local file paths.
The skill is autonomous and non-interactive. It never pauses for user input mid-run. All inputs are provided at invocation time; all failures surface as structured errors with exit codes.
HybridApp-only (the parent skill's pre-flight enforces this). Standalone (non-HybridApp) builds are out of scope - production mobile evidence runs against HybridApp.
Scope
In scope: iOS: Native (iOS Simulator), Android: Native (Android Emulator), HybridApp dev build only. Inputs may come from PRs or issues - the skill does not gate on code changes.
Out of scope: Android: mWeb Chrome, iOS: mWeb Safari, iOS: mWeb Chrome, Windows: Chrome, MacOS: Chrome / Safari. Decline with EXIT 4 and point to a browser-driver skill (playwright-app-testing). Standalone (non-HybridApp) builds. Decline with EXIT 7 BRING_UP_FAILED per the parent skill's gate.
Inputs
| Input | Source | Required |
|---|---|---|
| Source URL (PR or issue) | First positional arg, e.g. https://github.com/Expensify/App/pull/89475 or .../issues/89855 |
Yes |
--platforms ios,android |
Flag | No (default: derived) |
-e KEY=VALUE step-param overrides |
Repeatable | No |
Bare numbers are rejected (PRs and issues share the GitHub number namespace; the URL path is the safe disambiguator). No interactive prompts.
Triage gates (run in order, before any device work)
Detect source kind from the URL:
/pull/N→ PR,/issues/N→ issue. Anything else → exit8 BAD_INPUT.Fetch the source body:
- PR:
gh pr view <num> --json title,body - Issue:
gh issue view <num> --json title,body,labels
- PR:
Platform resolution - in priority order:
--platformsarg (CSV, wins all).- PR source: explicit prose markers in title or
### Testsbody -iOS only,Android only,On iOS:,On Android:. - Issue source: the
## Platforms:checkbox list. Filled boxes denote where the bug reproduces; restrict to the matching native platforms. - Default: both
iosandandroid.
Aliases:
iOS: Native≡iOS: App(both →ios);Android: Native≡Android: App(both →android). All mWeb / Windows / MacOS variants are out of scope.If the only platforms matched are out of scope (e.g. an issue checks only
MacOS: Chrome / Safari), exit4 PLATFORM_UNSUPPORTED.Steps parsing - extract the steps section and produce a flow list (see below). If the flow list is empty, exit
3 NO_FLOWS.
Steps parsing
See references/steps-parsing.md.
Phase 1 cache
Simple map: flow steps → .ad script. If the steps haven't changed, reuse the cached script and skip the warm-up.
- Path:
~/.cache/agent-device-evidence/.ad-cache/<fingerprint>.ad - Fingerprint:
sha256(precondition + json(steps) + platform). Platform is included so iOS and Android don't share an entry (different selectors). - Hit → copy to
$TEST_FLOW.ad, markcached: truein the manifest, skip Phase 1, proceed to Phase 2. - Miss → run Phase 1, write the script to the cache on success.
The skill does not delete, invalidate, or retry cache entries. If a cached .ad is stale, the flow is marked phase2_failed. To recover, edit the steps (which changes the fingerprint) or wipe ~/.cache/agent-device-evidence/.ad-cache/ externally.
Capture loop (per flow per platform)
Two phases per flow. Lifecycle delegated to the parent skill's bring-up. Phase 1 is skipped on cache hit (see above).
Shared setup (run once per platform, before the first flow)
- Run the agent-device bring-up for the target platform. The parent skill resolves bundle ID, starts Metro, picks/confirms the device, manages session, and opens the app for sanity verification. Capture the resolved
$APP_ID(bundle ID) and$DEVICE_NAMEfor re-opens in Phases 1 and 2.- If bring-up fails for any reason (HybridApp gate, missing dev build, Metro start, simulator boot, etc.), exit
7 BRING_UP_FAILEDand surface the parent skill's error verbatim. - Selector discipline (id > role+label, no coordinate fallback unless 0 a11y nodes) follows the parent skill's
flows/README.md. - **Non-interactive ove
- If bring-up fails for any reason (HybridApp gate, missing dev build, Metro start, simulator boot, etc.), exit
Установить agent-device-evidence в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(agent-device *)Bash(gh pr view *)Bash(gh issue view *)Bash(mkdir -p *)Bash(file *)Bash(test *)Bash(date *)ReadWriteВложенные файлы
FAQ
Что делает скилл agent-device-evidence?
Records iOS/Android native MP4 evidence for test/repro flows extracted from an Expensify GitHub PR or issue. Use when the user asks to "record the flow for PR
Как установить скилл agent-device-evidence?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-device-evidence запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic