developer-device-platform-basics
できること
Googleの開発者向けデバイスプラットフォームから、テスト用のリモートAndroidデバイスを借りる開発者を支援します。自前の端末を持たずに実機が必要なアプリのチーム向けです。
使う場面
- ✓テストのためにリモートのAndroidデバイスを予約したいとき。
- ✓デバイスのセッションの状態を確認したり、トンネル経由で接続したりしたいとき。
- ✓デバイスのリースを延長またはキャンセルしたいとき。
スキルのリンク
https://github.com/google/skills/blob/main/skills/cloud/developer-device-platform-basics/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“アプリをテストするために、リモートのAndroidデバイスを1時間予約して、接続方法を教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、参照ファイルにある正確なAPIの手順とcurlコマンドに従い、デバイスのセッションを予約、確認、延長、またはキャンセルします。どのリクエストの前にも、gcloud CLIが設定されているかを確認します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Developer Device Platform
Developer Device Platform (DDP) is a Google fully managed, global infrastructure providing access to a wide variety of physical and virtual devices.
[!WARNING] Developer Device Platform (DDP) is currently at Preview.
[!IMPORTANT] For all devicerun and devicestreaming API operations (reserving, status checking, stopping/canceling, updating, or listing a session), always verify and use the exact instructions and curl commands provided in the linked reference
.mdfiles.
Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read Usage Attribution. For commands executed
directly in the terminal (never in generated scripts, Terraform, or user code),
prefix gcloud with
CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:developer-device-platform-basics)"
and append agent-skills/1.0 (skill:developer-device-platform-basics) to User-Agent headers.
Authentication & Setup
CRITICAL: Before running any requests, you MUST ensure the environment is correctly initialized by following these steps:
Before running any requests, verify if the gcloud executable is present. If
missing, refer to the official
Google Cloud CLI Installation Guide
to install it on the current platform (Linux, macOS, Windows, etc.).
Google Cloud Authentication: Authenticate with your Google Cloud credentials and configure active Application Default Credentials (ADC) for the Developer Device Platform:
gcloud auth login --no-browser gcloud auth application-default login --no-browserEnable APIs (if not already enabled):
gcloud services enable devicerun.googleapis.com devicestreaming.googleapis.com testing.googleapis.com --quiet
[!NOTE] Cloud Testing API is needed for Device Streaming API during Preview.
Enable gcloud beta component:
gcloud components install betaSetup Environment Variables: Set up the required project variable and access token:
export PROJECT_ID=$(gcloud config get project) export ACCESS_TOKEN=$(gcloud auth application-default print-access-token 2>/dev/null)Python Environment: For instructions on setting up the python virtual environment, see [start_adb_forwarder.md].
Listing Available Devices
To find the correct modelCode and osVersion to use when starting a session,
you can list the available devices:
List Models: Run the following command to list available Android device models:
gcloud beta device-run devices listUse the
IDcolumn to find the value for theCATALOG_IDparameter to describe a specific device (e.g.,shiba-36).Describe a Model: Run the API request to get more details about a specific model (e.g., supportedProducts, resolution). Always rely on the exact curl command and instructions provided in [describe_device.md].
Starting a Device Session
When the user asks to reserve or connect to a device:
Check Device Availability:
Look up
CATALOG_IDof the device usingListing Available Devicesinstructions. Check the device availability of theCATALOG_IDby using the exact curl command and instructions provided in [describe_device.md]. The device MUST contain "deviceStreaming" in "supportedProducts" to be reserved.If no specific device is specified, use
CATALOG_ID=shiba-34(Pixel 8 on SDK 34).If
OS_VERSIONwas not specified by the user, ask the user to select a version from the device list (preferring the version with the highest availability {"available": "AVAILABILITY_HIGH" }).If
OS_VERSIONis unavailable fordeviceStreaming, do not reserve one. Prompt the user for an alternativeOS_VERSION.Extract Parameters:
model_id:modelCodefrom device details. Required.version_id:osVersionfrom device details. Required.
Reserve Device:
Rule: Explicit User Confirmation Required. Reserving a device incurs billing charges and creates cloud resources. The agent MUST ALWAYS warn the user explicitly about the billing costs that will be incurred on the active Google Cloud project (e.g.,
${PROJECT_ID}). You MUST STOP and ask for explicit approval be
よくある質問
このプラットフォームは一般に提供されていますか?
いいえ。スキルは、Developer Device PlatformがPreviewであると説明しています。
iPhoneにも対応していますか?
いいえ。Androidデバイス用で、iOSや手元のハードウェアは対象外です。
Google Cloud CLIが必要ですか?
はい。最初にgcloudを確認し、なければインストールを手伝います。
詳細
作者による元の説明
Provides guidance and instructions on managing remote devices on Developer Device Platform (DDP). Use when reserving remote Android devices, establishing connection tunnels, checking session status, or extending/cancelling leases. Don't use for iOS or local device/hardware inquiries.
repo: google/skills
人気
- GitHubのスター
- 22k
- ランキング
- #10254
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
finding-google-skills
22kセットアップ作業に合うGoogleの公式ガイドを探すようエージェントを支援します。ホスティング、データベース、ストレージ、サインイン、AIモデルの提供などが対象です。
gcloud
22kエージェントが、Google CloudのgcloudコマンドについてWeb検索に頼らず、正確な構文を確かめてから書いたり確認したりできるよう支援します。
google-cloud-recipe-auth
22kエージェントが、Google Cloudのアイデンティティとアクセス(人やサービスがどうサインインし、どの権限を得るか)について、手順を案内できるよう支援します。
google-cloud-recipe-onboarding
22k新しい開発者が、プロジェクトの選択、請求の設定、最初のリソースのデプロイなど、Google Cloudの最初の手順を進められるよう案内します。
似ているスキル
test-driven-development
311k機能や修正を作る前に、まず失敗するテストを書き、それが失敗するのを確認してから、合格させる最小のコードを書くようエージェントに教えます。
verification-before-completion
311kタスク、修正、ビルドが完了した、または合格したと主張する前に、実際のチェックを実行し、その出力を読むようエージェントに教えます。
migrate-to-shoehorn
310kテストファイル内の危険な型キャストを、shoehornライブラリに置き換え、テストが部分的なデータを使いつつ型チェックを通るようにします。