Communityコーディング&開発github.com

agent-device

iOS、tvOS、macOS 向け Apple プラットフォームアプリと Android デバイスの操作を自動化します。アプリの操作、スクリーンショット撮影、タップ、タイピング、スクロール、UI 情報の抽出など、モバイル、TV、デスクトップを横断して利用してください。

agent-device とは?

agent-device は、iOS、tvOS、macOS および Android デバイス上のアプリを AI エージェントが操作するためのスキルです。主に Claude Code や Cursor などのエージェント環境で使用し、UI の探索、テキスト入力、スクロール、スクリーンショット取得といった操作を自動化します。このスキルは常に参照ファイル (bootstrap-install.md と exploration.md) を最初に読み込む必要があり、安全で決定論的なセットアップを確立してから UI の操作を行います。操作は原則として読み取り専用から始め、必要に応じて snapshot -i で対話的な操作に移行します。デバッグや検証、macOS デスクトップ操作、リモートテナンシーなど、特定のユースケース向けの追加参照も用意されており、目的に応じて段階的に読み込みます。これにより、エージェントは複数のプラットフォーム間で一貫性のある、予測可能な UI 操作を実行できます。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/callstackincubator/agent-skills/tree/main/plugins/vendored/.agents/skills/agent-device

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

agent-device は何をしますか?

このスキルはルーターとして使用し、必須のデフォルト設定に従ってください。最初にこのファイルを読んでください。通常のデバイスタスクでは、必ず references/bootstrap-install.md と references/exploration.md をロードしてから行動してください。bootstrap を使用して決定論的なセットアップを確認または確立し、アプリセッションが開いたら exploration を UI の検査、操作、および検証に使用します。

デフォルトの動作ルール

  • 控えめに開始する。UI を変更する前に、読み取り専用の検査を優先する。
  • 画面上に現在表示されているテキストや構造を確認するタスクでは、通常の snapshot を使用する。
  • 要求されたアクションや特定のクエリのために @e3 のようなインタラクティブな参照が必要な場合にのみ snapshot -i を使用する。
  • 推測による変更は避ける。検査を進めるため、または要求されたタスクを完了するために必要な、最小限の元に戻せる UI 操作(ポップアップの消去、アラートのクローズ、意図しない画面のクリアなど)のみ実行してもよい。
  • ユーザーから明示的に依頼されない限り、ウェブの閲覧や外部ソースの使用は行わない。
  • 意味のある UI 変更後は、古い参照を使い回さずに再度スナップショットを取得する。
  • 生の座標よりも @ref またはセレクタによるターゲット指定を優先する。
  • 操作を開始する前に、正しいターゲットがピン留めされ、アプリセッションが開いていることを確認する。
  • ループを短く保つ: open -> 検査/操作 -> 必要に応じて検証 -> close。

デフォルトフロー

  1. 通常のデバイスタスクを実行する前に、references/bootstrap-install.md と references/exploration.md をロードする。
  2. 最初に bootstrap を使用して、正しいターゲット、アプリのインストール、アプリセッションのオープンを確認または確立する。
  3. アプリセッションが開いて安定したら、exploration を検査、操作、検証に使用する。
  4. 表示内容を読み取りまたは確認する目的の場合は、最初に通常の snapshot を使用する。
  5. インタラクティブな探索や要求されたアクションのために参照が必要な場合にのみ snapshot -i にエスカレーションする。
  6. UI を変更する前に、読み取り専用のコマンドで質問に答えられる場合は get、is、または find を使用する。
  7. 必要に応じて証拠をキャプチャして終了し、close する。

QA モード

必須の参照

  • すべての通常のデバイスタスクでは、このファイルを読んだ後、まず references/bootstrap-install.md をロードし、次に references/exploration.md をロードしてから行動する。
  • bootstrap を使用して、特にサンドボックス環境やクラウド環境において、決定論的なセットアップを確認または確立する。
  • アプリセッションが開いて安定したら exploration を使用する。
  • そのスコープが必要な場合にのみ、追加の参照をロードする。

決定ルール

  • テキストが表示されているかどうかを確認する必要がある場合は、通常の snapshot を使用する。
  • 主にインタラクティブな探索と参照の選択には snapshot -i を使用する。
  • UI の状態を変更せずに質問に答えられる場合は、get、is、または find を使用する。
  • テキストを置き換えるには fill を使用する。
  • テキストを追加するには type を使用する。
  • タスクが「戻る」ことを要求する場合、予測可能なアプリ所有のナビゲーションには通常の back を使用し、プラットフォームの戻るジェスチャーやボタンセマンティクスには back --system を予約する。
  • 入力が速すぎると文字が欠落するデバウンス付き検索フィールドには、type --delay-ms または fill --delay-ms を使用する。
  • シミュレータがない、アプリがインストールされていない、またはアプリセッションがまだ開いていない場合は、セットアップ手順を即興で行う代わりに bootstrap-install.md に切り替える。
  • 一時的な UI が検査を妨げる場合は、最初に最小限の解除アクションを使用する。ただし、ユーザーがその操作を要求した場合を除き、UI にデータを表示させるためだけにナビゲーション、検索、新しいテキストの入力を行ってはならない。
  • ユーザーが要求した場合を除き、画面上のデータの欠落を補うために外部参照を使用してはならない。
  • 必要な情報が画面上に表示されていない場合は、追加のナビゲーション、テキスト入力、またはウェブ検索で補う代わりに、その旨を明確に伝える。
  • 生の座標よりも @ref またはセレクタによるターゲット指定を優先する。

追加の参照

  • ログ、ネットワーク、アラート、権限、障害トリアージが必要な場合: references/debugging.md
  • スクリーンショット、差分、録画、リプレイメンテナンス、パフォーマンスデータが必要な場合: references/verification.md
  • デスクトップサーフェス、メニューバーの動作、macOS 固有の操作ルールが必要な場合: references/macos-desktop.md
  • リモート HTTP トランスポート、--remote-config による起動、リモート macOS ホスト上のテナントリースが必要な場合: references/remote-tenancy.md

Individual skills in this repo

This repo contains 15 individual skills — each has its own dedicated page.

assess-react-native-migration

Assesses whether and how an existing mobile product should migrate to React Native. Use when auditing one or more product repositories for migration readiness, including products whose iOS, Android, and other clients live in separate directories or repositories; choosing brownfield, greenfield, or a checkpoint-based path; defining a representative trial; or preparing a baseline and ROI decision before implementation. When product scope or material evidence is unavailable, grills the stakeholder with exactly one question per turn instead of sending a questionnaire.

callstackincubator/github

GitHub patterns using gh CLI for pull requests, stacked PRs, code review, branching strategies, and repository automation. Use when working with GitHub PRs, merging strategies, or repository management tasks.

callstackincubator/validate-skills

Validates skills in this repo against agentskills.io spec and Claude Code best practices. Use via /validate-skills command.

create-react-native-library

Scaffolds React Native libraries with create-react-native-library for standalone libraries or local native modules and views. Use when creating or working on React Native libraries or adding native functionality in an existing app.

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. Produces a structured report with reproducible evidence: screenshots, optional repro videos, and detailed steps for every issue.

github-actions

GitHub Actions workflow patterns for React Native iOS simulator and Android emulator cloud builds with downloadable artifacts. Use when setting up CI build pipelines or downloading GitHub Actions artifacts via gh CLI and GitHub API.

react-native-best-practices

Provides React Native performance optimization guidelines for FPS, TTI, bundle size, memory leaks, re-renders, and animations. Applies to tasks involving Hermes optimization, JS thread blocking, bridge overhead, FlashList, native modules, or debugging jank and frame drops.

react-native-brownfield-migration

Implements an accepted incremental brownfield migration from native iOS or Android to React Native or Expo using @callstack/react-native-brownfield. Use after the brownfield path has been selected, when setting up the integration, packaging XCFramework or AAR artifacts, or adding React Native surfaces to native hosts.

react-native-testing

Write tests using React Native Testing Library (RNTL) v13 and v14 (`@testing-library/react-native`). Use when writing, reviewing, or fixing React Native component tests. Covers: render, screen, queries (getBy/getAllBy/queryBy/findBy), Jest matchers, userEvent, fireEvent, waitFor, and async patterns. Supports v13 (React 18, sync render) and v14 (React 19+, async render). Triggers on: test files for React Native components, RNTL imports, mentions of "testing library", "write tests", "component tests", or "RNTL".

react-native-tv-best-practices

Reviews React Native TV apps for focus/D-pad navigation, 10-foot UI layout, TV playback/DRM integration, low-memory TV performance, and TV accessibility. Use when building, debugging, or reviewing react-native-tvos, Expo TV, Amazon Vega/Kepler, or React Native web TV targets where the issue depends on remote input, TV focus, TV packaging, TV hardware, or TV playback constraints.

react-navigation

Provides React Navigation UI patterns for stacks, tabs, drawers etc. Use when building navigation UIs with React Navigation, configuring headers, bottom sheets or handling safe areas and insets.

upgrading-react-native

Upgrades React Native apps to newer versions by applying rn-diff-purge template diffs, updating package.json dependencies, migrating native iOS and Android configuration, resolving CocoaPods and Gradle changes, and handling breaking API updates. Use when upgrading React Native, bumping RN version, updating from RN 0.x to 0.y, or migrating Expo SDK alongside a React Native upgrade.

validate-skills

Validates skills in this repo against agentskills.io spec and Claude Code best practices. Use via /validate-skills command.

vercel-react-native-skills

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

writing-user-docs

House style for user-facing documentation — voice, scope, structure, and what to leave out. Use this skill whenever writing, editing, or reviewing anything a user reads to learn how to use a tool — help center articles, getting-started guides, tutorials, feature docs, README usage sections, in-app help, release notes, or FAQ entries. Trigger it even when the request is phrased plainly — "document this feature", "write docs for X", "explain this to users", "write a README for this library", "turn these notes into a guide" — and even when no style guidelines are mentioned. Also use it to review existing docs for tone, bloat, or leaked implementation detail. Do not use it for internal engineering docs, architecture write-ups, RFCs, or code comments.

関連スキル