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★ 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-runcommands 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-basicsis installed: do not submit a Device Run session; switch todeveloper-device-platform-basics, and note that interactive reservations are also billed to the active project. - If
developer-device-platform-basicsis not installed: reply in a single message without calling any tools (no commands, searches, file reads or scheduling), then stop:- Say that Device Run is for non-interactive batch jobs, so you will not submit a Device Run session.
- Point the user to an interactive Device Streaming reservation with the
developer-device-platform-basicsskill (or https://docs.cloud.google.com/device-streaming/docs/overview.md.txt), and suggest installing the skill. - 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.
gcloud CLI: Check that gcloud is installed and has Device Run commands:
gcloud --version gcloud beta device-run sessions submit android-executable --help >/dev/nullIf gcloud is missing, point the user to https://docs.cloud.google.com/sdk/docs/install-sdk.md.txt. If the
betacomponent or the Device Run commands are missing, ask the user before runninggcloud components install betaorgcloud components update.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-adcalso updates Application Default Credentials in the same flow; add--no-launch-browserin SSH or remote terminals:gcloud auth list --filter=status:ACTIVE --format="value(account)" gcloud auth login --update-adcProject: 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_IDBilling: 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)"Enable the Device Run API (if not already enabled; ask first):
gcloud services enable devicerun.googleapis.com --project="${PROJECT_ID}"IAM roles: The user needs
roles/devicerun.admin,roles/serviceusage.serviceUsageConsumerandroles/vieweron the project. To read inputs from a bucket in another project, grant the DDP service agentroles/storage.objectVieweron that bu
Установить developer-device-platform-device-run в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic