agent-device
できること
agent-deviceのコマンドラインツールを使い、アプリを開き、画面を読み取り、タップ、入力、スクロールを行います。AIにモバイルアプリの動作を確認させたい開発者やテスターが対象です。
使う場面
- ✓電話やシミュレーターでアプリを開き、画面を一通り操作させたいとき。
- ✓実機でモバイルアプリの変更を使って確認したいとき。
- ✓モバイルアプリのバグのスクリーンショットや詳細が欲しいとき。
スキルのリンク
https://github.com/callstack/agent-device/blob/main/skills/agent-device/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“iOSシミュレーターでアプリを開き、テスト用のアカウントでログインして、設定画面が読み込まれるか教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントはアプリを開き、画面をターゲットの一覧として読み取り、それらに対して操作します。各ステップの後に変化を読み、依頼された結果を確認します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
agent-device
For a normal app-driving task, start immediately. Do not probe first with --help, --version, devices, appstate, snapshot, or screenshot:
agent-device open <app> --foreground
That starts the session and returns the initial interactive snapshot with @refs.
Loop: act with press|click|fill|longpress <target> ... --settle, scroll <direction> --settle, or back --settle; continue from the printed diff, verify the named expectation (wait text "...", is, get, or find), then run agent-device close, or agent-device close --shutdown if your session booted a local simulator or emulator, unless the user asks to keep it running.
Reaching an off-screen target is one command, not a scroll-and-check loop: scroll down --until <selector> scrolls until that element is on screen, and scroll bottom runs to the end of the content. Repeated bare scroll down calls are the slow way to find something.
Copy refs byte-for-byte: @e12, @e12~s4 — keep the @ and any ~sN. Prefer current refs, then id/label/role selectors; coordinates are a last resort. If snapshot reports sparse/AX-unavailable, its refs and selectors are invalid: run agent-device screenshot, inspect the image, use coordinates, then retry snapshot -i after navigating. Otherwise run snapshot -i only when the diff lacks the next target.
Error output includes corrective hints; follow them instead of re-planning. Only when the task is specialized (for example gestures, scripting, TV, macOS, remote, or debugging) or a command shape is unclear, run agent-device help <topic>. agent-device --help lists topics, but is not a startup step.
To capture network traffic on a Limrun session, see agent-device help remote or the Limrun docs.
よくある質問
エージェントが使う前に、ツールを導入する必要がありますか?
はい。エージェントが使う前に、agent-deviceのコマンドラインツールをあなた自身で導入します。
TVアプリにも対応していますか?
はい。TVのリモコンと、Android TV、Fire TV、Amazon Vega OS TVのアプリを扱います。
作業の後、シミュレーターは終了されますか?
セッションがシミュレーターやエミュレーターを起動した場合、終了時にそれを終了します。ただし、起動したままにするよう頼んだ場合は除きます。
詳細
作者による元の説明
Automates Apple-platform apps (iOS, tvOS, macOS), Android devices (including Android TV and Fire TV on Fire OS), and Amazon Vega OS TV apps in Vega Virtual Devices. Use when navigating apps, taking snapshots/screenshots where supported, driving TV remotes, tapping, typing, scrolling, extracting UI info, collecting evidence, or planning agent-device CLI commands.
repo: callstack/agent-device
人気
- GitHubのスター
- 5.2k
- ランキング
- #15026
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
android-emulator
5.2kエージェントが、エミュレーターでAndroidアプリを開き、画面を確認し、ワークフローをタップで進め、問題が起きたときに証拠を集められるよう支援します。
dogfood
5.2kエージェントが、iOSやAndroidのモバイルアプリをテスターのように探索し、バグや使いにくい点を見つけて、各問題の証拠を保存できるよう支援します。
ios-simulator
5.2kエージェントが、AppleシミュレーターでiPhoneやiPadのアプリを開き、画面を確認して、変更を試す手順を進められるよう支援します。
似ているスキル
android-clean-architecture
280kエージェントがAndroidプロジェクトを効率よく整理できるようにします。コードを構造化して、保守や新機能の開発をしやすくします。
compose-multiplatform-patterns
280kエージェントがKMPプロジェクトでCompose MultiplatformとJetpack Composeのパターンを使えるようにします。状態管理、ナビゲーション、テーマ設定、パフォーマンスを扱います。
dart-flutter-patterns
280kエージェントがDartとFlutterのアプリ向けのコードを書けるようにします。最新のパターンを使い、堅牢で管理しやすいアプリを作ります。