Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

developer-device-platform-device-run

БесплатноБез исполняемых скриптовНе проверен

Runs automated, non-interactive jobs on remote Android devices with Developer Device Platform (DDP) Device Run using `gcloud beta device-run sessions`: native…

googleот google★ 25 380 звёзд на GitHub

Об этом скилле

Developer Device Platform: Device Run

Device Run executes a job on remote DDP devices and returns its artifacts (logs, pulled files) to a Cloud Storage bucket. One session fans out to one job per requested device.

[!WARNING] Developer Device Platform (DDP) is currently in Preview. The gcloud beta device-run commands might change without notice.

When to use this skill

The user wants to... Use
Run a native binary or shell script on remote devices This skill (android-executable)
Run an Android instrumentation test APK on remote devices This skill (instrumentation)
Reserve a device, connect with adb, stream the screen developer-device-platform-basics
Extend or cancel an interactive device lease developer-device-platform-basics
Work with a device connected over USB Neither (not DDP)

The setup below is complete; this skill doesn't depend on another skill for authentication, project selection or API enablement.

Requests this skill does not handle

For interactive use (reserve a device, adb, screen streaming, leases):

  • If developer-device-platform-basics is installed: do not submit a Device Run session; switch to developer-device-platform-basics, and note that interactive reservations are also billed to the active project.
  • If developer-device-platform-basics is not installed: reply in a single message without calling any tools (no commands, searches, file reads or scheduling), then stop:
    1. Say that Device Run is for non-interactive batch jobs, so you will not submit a Device Run session.
    2. Point the user to an interactive Device Streaming reservation with the developer-device-platform-basics skill (or https://docs.cloud.google.com/device-streaming/docs/overview.md.txt), and suggest installing the skill.
    3. Warn that an interactive reservation is also billed to the active Google Cloud project.

Keep answers fast

Prefer this skill and gcloud beta device-run ... --help over broad web searches for Device Run syntax. If gcloud or the beta component is not installed, fall back to the official documentation at https://docs.cloud.google.com/developer-device-platform/device-run.md.txt and https://docs.cloud.google.com/sdk/gcloud/reference/beta/device-run. For dry runs, show the commands instead of running them.

Usage Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read and follow the instructions in Usage Attribution.

Setup

Run these checks once per environment. Do not assume tools are installed, and do not install or update software without the user's approval.

  1. gcloud CLI: Check that gcloud is installed and has Device Run commands:

    gcloud --version
    gcloud beta device-run sessions submit android-executable --help >/dev/null
    

    If gcloud is missing, point the user to https://docs.cloud.google.com/sdk/docs/install-sdk.md.txt. If the beta component or the Device Run commands are missing, ask the user before running gcloud components install beta or gcloud components update.

  2. Authentication: Check the active account. On a Compute Engine or other remote VM, the active account may be the VM's default service account ([email protected]), which often lacks the scopes Device Run and billing calls need (No service account scopes specified). If there is no active account, or only such a service account, ask the user to sign in. --update-adc also updates Application Default Credentials in the same flow; add --no-launch-browser in SSH or remote terminals:

    gcloud auth list --filter=status:ACTIVE --format="value(account)"
    gcloud auth login --update-adc
    
  3. Project: Use the user's active project, or the one they name. Never hardcode a project, and don't change the active project without asking.

    export PROJECT_ID=$(gcloud config get project)
    # Only if the user asks to switch:
    gcloud config set project PROJECT_ID
    
  4. Billing: Device Run is billed to the project. Check that billing is enabled; if it isn't, stop and tell the user.

    gcloud billing projects describe "${PROJECT_ID}" \
      --format="value(billingEnabled)"
    
  5. Enable the Device Run API (if not already enabled; ask first):

    gcloud services enable devicerun.googleapis.com --project="${PROJECT_ID}"
    
  6. IAM roles: The user needs roles/devicerun.admin, roles/serviceusage.serviceUsageConsumer and roles/viewer on the project. To read inputs from a bucket in another project, grant the DDP service agent roles/storage.objectViewer on that bu

Полный SKILL.md на GitHub

Установить developer-device-platform-device-run в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/android_executable.mdreferences/attribution.mdreferences/device_selection.mdreferences/instrumentation.mdreferences/multi_config_runs.mdreferences/results.mdreferences/session_lifecycle.mdreferences/troubleshooting.md

FAQ

Что делает скилл developer-device-platform-device-run?

Runs automated, non-interactive jobs on remote Android devices with Developer Device Platform (DDP) Device Run using `gcloud beta device-run sessions`: native Android executables or shell scripts (for example CLI tools, custom runners, test harnesses or benchmarks) and Android instrumentation tests, on one or many devices, then waits for completion and collects per-device outputs and logs. Use when running a binary or test suite on remote devices without an interactive connection. Don't use it for interactive device reservations, adb tunnels or screen streaming (use developer-device-platform-basics), or for local devices.

Как установить скилл developer-device-platform-device-run?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл developer-device-platform-device-run запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить developer-device-platform-device-run с