App: Skill for Claude Code

.claude/skills/agent-device/SKILL.md

agent-device is a skill for Claude Code from Expensify/App. It costs 45 tokens per session (1,409 once invoked), scanned A, original, MIT.

A device-control and testing workflow for the Expensify mobile app on iOS and Android phones or emulators. It supports checking, reproducing, debugging, profiling, and verifying app behavior.

In plain words
What is it for?
Use it to test app features, reproduce bugs, investigate performance, debug behavior, and verify fixes on supported iOS or Android builds.
Why use it?
It gives developers a defined process for interacting with the mobile app and catches setup problems before device commands are run.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is Expensify/App's own configuration. It tells Claude Code how to work on App itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything App configures →

About the project

Expensify/App is the source code for New Expensify, a financial collaboration application organized around chat. It is used by contributors building and testing the web, iOS, and Android versions of the application. Catalogue add-ons support development workflows such as mobile testing and agent-assisted work on the codebase.

Expensify/App · 5,081 stars · on GitHub · new.expensify.com

Reuse

Borrowing it

Nothing to install: this file belongs to Expensify/App. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Expensify/App/main/.claude/skills/agent-device/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Expensify/App

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-device

README.md
[![agentmods](https://agentmods.dev/badge/skills/expensify/app/agent-device/github.svg)](https://agentmods.dev/skills/expensify/app/agent-device)
Your own site
<a href="https://agentmods.dev/skills/expensify/app/agent-device"><img src="https://agentmods.dev/badge/skills/expensify/app/agent-device/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-device

Your own site · 80×15
<a href="https://agentmods.dev/skills/expensify/app/agent-device"><img src="https://agentmods.dev/badge/skills/expensify/app/agent-device.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,409 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.01409
Opus 5.5 $0.00018 $0.00564
Sonnet 5.5 $0.00009 $0.00282
Haiku 4.5 $0.00005 $0.00141

Measured 21d ago against content hash 4160112d6411, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-device scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 21d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/agent-device/SKILL.md · 127 lines

How it starts

The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.

agent-device

Pre-flight (auto)

These checks evaluate at skill load. If any line shows FAIL, stop and surface the fix before running any device command.

agent-device version: !R=0.20.0; V=$(agent-device --version 2>/dev/null); [ -n "$V" ] && [ "$(printf '%s\n%s\n' "$R" "$V" | sort -V | head -1)" = "$R" ] && echo "OK ($V)" || echo "FAIL (need v$R+, got: ${V:-not installed}). Fix: npm install -g agent-device@latest"

CLI guide: !agent-device help workflow >/dev/null 2>&1 && echo "OK (agent-device help workflow)" || echo "FAIL (agent-device help workflow unavailable). Fix: npm install -g agent-device@latest"

HybridApp mode: !M=$(scripts/is-hybrid-app.sh 2>/dev/null | tail -1); [ "$M" = "true" ] && echo "OK (HybridApp)" || echo "FAIL (got: ${M:-unknown}). This skill only supports the HybridApp build - ensure the Mobile-Expensify submodule is present."

Bring-up

Run this sequence the first time the user asks for device interaction in a session, before any open / snapshot / replay.

1. Platform

If the user prompt names ios or android explicitly, use it. Otherwise ask. Only iOS and Android are supported; reject other platforms.

2. Bundle ID

HybridApp dev builds only (the pre-flight gate enforces this).

Platform Bundle ID Build command from App root
ios com.expensify.expensifylite npm run ios
android org.me.mobiexpensifyg.dev npm run android

3. Confirm dev build is installed

agent-device apps --platform <p> --json

If the resolved bundle ID is missing from the list, STOP and instruct the developer to run the matching build command from the App repository root. The build script detects HybridApp mode and builds the native app from Mobile-Expensify/.

4. Metro

agent-device metro prepare --public-base-url http://localhost:8081 --port 8081 --kind react-native

Read the full file on GitHub · 127 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 21d ago Changed 4160112d6411
  2. 1mo ago Changed · +2 lines 301dfb5dadc9
  3. 2mo ago First seen · 125 lines · 45 tokens per session scan A 77083dd45ba2

Subscribe to this mod's changes

agent-device is a skill published in the GitHub repository Expensify/App (5,081 stars, last pushed today), licensed MIT. It adds 45 tokens to every session and 1,409 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

android_ui_verification

Automated end-to-end UI testing and verification on an Android Emulator using ADB.

sickn33/agentic-awesome-skills · 22 tokens

solopi-ai

A command-line framework for testing Android apps and devices with SoloPi, including on-device or cloud AI decision models. It manages devices, test cases, recorded interactions, replays, performance history, and evidence.

alipay/SoloPi · 82 tokens

eas-simulator

Run and control a user's app on a remote iOS/Android simulator hosted on EAS cloud. Read before running any eas simulator: commands - it has the current syntax for this experimental API. Use whenever the user needs a simulator they can't run locally - 'run my app on a cloud simulator', 'use eas simulator to…

expo/skills · 243 tokens

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.

callstack/agent-device · 55 tokens

ios-simulator

Verify and debug native, React Native, Expo, or Flutter apps on an iOS Simulator with agent-device. Use when an agent needs to launch an app, inspect its live UI, tap, type, scroll, validate a code change, collect failure evidence, or reproduce a workflow on an iPhone or iPad Simulator.

callstack/agent-device · 69 tokens

test-native-extension

Validate a third-party control repo across four automated layers plus one printed manual recipe. Layer 1 asserts native-source structure (Android getName() and iOS +moduleName to manifest nativeModule; @ReactMethod / RCTEXPORTMETHOD to methods; no @ReactModule) plus load/init readiness (ReactPackage public no-arg…

microsoft/power-platform-skills · 211 tokens