Command Palette

Search for a command to run...

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

agent-desktop

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

Operate desktop apps on macOS, Windows, and Linux through native accessibility trees with agent-desktop. Use for desktop GUI tasks: observe controls, click…

vercel-labsот vercel-labs★ 27 658 звёзд на GitHub

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

agent-desktop

Critical: headless only by default

Every operation runs headless, which is the default. Add --headed only when the user explicitly asked for a visible, foreground, or physical operation. Some operations exist only in headed mode and return POLICY_DENIED headless. Then stop and tell the user which operation needs headed mode. Never add --headed on your own; never switch to headed mode to recover from a headless failure, even if an error suggestion proposes it.

close-app --force discards unsaved work. Use it only when the user accepts losing unsaved work. A recovery suggestion or a fresh-launch requirement does not supply that consent.

First run

Run agent-desktop status to check permissions and supported_surfaces. If state_root_privacy.ok is false, tell the user the path and the fix that status reports; do not change permissions or delete saved state on your own. If setup blocks the task, read agent-desktop skills get platform:

  • macOS needs Accessibility permission for the launching app, plus Screen Recording for capture.
  • Windows needs an interactive desktop session and sufficient integrity for the target.
  • Linux needs the target's desktop session and a reachable AT-SPI accessibility bus.

Use agent-desktop <command> --help for syntax when you need it. Permission requests run in a bounded isolated helper. Ask the user before opening permission prompts or a visible setup guide.

Observe, act, verify

  1. Observe with agent-desktop snapshot -i --app "<app>". In a large window, take a skeleton and drill the relevant container with --root. Omit -i when you need static labels to distinguish rows.
  2. Act on a qualified ref from that observation. Prefer a semantic ref action over coordinates, and check or uncheck over toggle or click: they verify the state.
  3. Verify the requested outcome with an independent read: a fresh snapshot or a condition-based wait. Wait with wait, never a fixed sleep or a duration-only wait. A field value alone does not prove an application committed a change or saved a file.
  4. On an error, branch on error.code and error.disposition, retry only when disposition.retry is safe, and follow recovery.strategy. Recovery guidance never overrides the headless rule.

get can fall back to saved values, names, bounds, or states, and is can use saved states. Only get bounds report live; use a fresh snapshot for post-action proof.

Fast path: one observation, then one call per step. These forms cover most tasks; replace <...> with values from real output and use --help only for anything else.

agent-desktop launch <program>                 # data.window means a window is ready; without it, wait --window
agent-desktop snapshot -i --app "<app>"        # interactive elements with refs
agent-desktop find --app "<app>" --role button --name "<label>"   # matching elements with refs, no full tree
agent-desktop click '@s8f3k2p9:e12' --wait-for "<role>:<text>"   # act, then return the snapshot showing the result
agent-desktop set-value '@s8f3k2p9:e4' "<text>"  # replaces the whole value; the headless route
agent-desktop type '@s8f3k2p9:e4' "<text>"       # inserts text at the caret and keeps the rest
agent-desktop get '@s8f3k2p9:e4' --property value
agent-desktop close-app "<app>"                # a save prompt keeps the app open; see --force below

If an action reports data.surfaces, inspect the overlay before acting on the window behind it. A menu, sheet, or alert needs its own surface observation. data.details.surfaces: "not_read" means that read failed, so run list-surfaces before assuming no overlay opened. Attached selector waits usually observe the parent window, not a separate popup. A gone match cannot prove that popup closed, and matching text elsewhere can satisfy an appearance wait. Use launch with a program name or path accepted by the platform. A running process or a launch result without window does not prove a window is ready. launch --cdp [<port>] opens a loopback DevTools port on a fresh Chromium-based process and returns data.cdp; a running app returns ACTION_FAILED, so close-app first. agent-desktop never talks to the port: hand it to a CDP client. While the port is open, any local process can control the app's web contents, including processes of other accounts on the same machine, because the DevTools port has no authentication. Request --cdp only for the step that needs it. close-app ends the exposure. launch returns when a window is seen, when the launched process and everything it started have exited without one, or at the timeout. A launcher that hands its work to another process ends the wait with delivered_unverified, no window and a suggestion that points at list-windows. By default launch attaches to a running instance and sends nothing. An attached result carries the pid of an instance this call did not start; never clo

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

Установить agent-desktop в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл agent-desktop?

Operate desktop apps on macOS, Windows, and Linux through native accessibility trees with agent-desktop. Use for desktop GUI tasks: observe controls, click, edit fields, navigate menus, manage windows, launch apps, or read notifications.

Как установить скилл agent-desktop?

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

Скилл agent-desktop запускает скрипты?

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

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

Сравнить agent-desktop с