Operate desktop applications on macOS, Windows and Linux through native accessibility trees, using the agent-desktop CLI. Use when an AI agent must see or act on a desktop GUI: click buttons, fill forms, read UI state, navigate menus, toggle checkboxes, scroll, drag, type text, press shortcuts, take screenshots, manage windows, use the clipboard, launch or close apps, read notifications. Triggers on: "click button", "fill form", "open app", "read UI", "computer use", "operate desktop", "accessibility tree", "snapshot app", "type into field", "navigate menu", "toggle checkbox", "take screenshot", "desktop automation", "agent-desktop", or any desktop GUI task on macOS, Windows or Linux.
Ships in yus-all-departments. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
yus note. Requires the
agent-desktopCLI (install it yourself from vercel-labs/agent-desktop; this skill never installs it). It can read and operate every app in your desktop session, so use it only when the user asked for desktop automation, and confirm before actions that send, delete, buy or change settings.
agent-desktop is a CLI that reads and operates desktop apps through the OS accessibility tree. Every command prints one JSON envelope (ok, data or error). It is a tool, not an agent: the observe, act and verify loop runs in you.
Examples use a POSIX shell. In PowerShell, quote every ref ('@s8f3k2p9:e1'), because a bare @token is the splatting operator. Use $env:NAME = 'value' instead of export, and | ConvertFrom-Json instead of $(...) and jq. The Windows skill has the PowerShell forms.
agent-desktop status. It reports the platform, permissions and supported_surfaces.agent-desktop skills get platform. It loads the skill for the OS the binary runs on (macOS, Windows or Linux).agent-desktop <command> --help. This skill does not repeat flag lists.Use find when you know the role or exact name. Otherwise map the app first and drill into one region.
agent-desktop snapshot --skeleton --app "Notes" -i --compact # shallow map, children_count on cut branches
agent-desktop snapshot --root @s8f3k2p9:e3 -i --compact # drill into one region
agent-desktop click @s8f3k2p9:e12 # act on a qualified ref
agent-desktop snapshot --root @s8f3k2p9:e3 -i --compact # verify: re-read the same region
snapshot -i.-i keeps interactive nodes only, so a row's static-text label is dropped. To tell which row a repeated button belongs to, drill that row's container with --root and leave out -i. On Windows and Linux that reads the row but does not make its button actionable: a button repeated in other rows is a twin in the window and its ref is refused (see Refs).--root drill adds its refs to the same snapshot id. Refs outside the drilled subtree, and the drilled root itself, stay valid; refs that were already inside it are replaced, so an old ref there returns STALE_REF.--surface menu, sheet, alert). A surface is already focused.data.surfaces. Target that overlay next.wait (see commands-system.md). A fixed sleep is a race.@<snapshot_id>:e<N>, for example @s8f3k2p9:e1. Pass them to later commands as they are.--headed mouse-click --xy X,Y can choose one, it takes the foreground, and a Linux Wayland session refuses it.STALE_REF: the element is gone or no longer matches. details.kind is saved_ref_absent, or retained_object_stale on macOS. Take a fresh snapshot and use the new ref.AMBIGUOUS_TARGET: an identical element appeared (saved_ref_ambiguous), or the ref was not proven unique at capture (identity_not_unique). Repeating the ref or re-snapshotting identical twins gives the same refusal; act on a control that is unique in the window. identity_not_unique also follows a snapshot that could not read the whole window in time: retake it with a larger --timeout-ms.TIMEOUT with details.kind: resolution_identity_unknown: a live read did not answer, so identity is unproven. Nothing was sent; retry.SNAPSHOT_NOT_FOUND: the snapshot id expired. Snapshot again.Action results carry data.disposition and errors carry error.disposition, each with delivery and retry. Observation commands such as snapshot have none on success; their errors, and every INVALID_ARGS refusal, carry not_delivered and retry: safe.
disposition.retry is safe. Only not_delivered is safe.toggle can undo itself.get, is, or a fresh snapshot) and decide from that. details.post_state helps when present.error.code and error.disposition. Message and suggestion text can change.details.retryable: false means waiting cannot change the outcome. Try a different approach.Ref actions are headless by default. They use semantic accessibility calls and do not take focus, move the cursor, synthesize keys or use the clipboard. If no semantic path exists, the action fails closed. Use the global --headed flag only when the user explicitly permits physical input, such as double-click, hover, drag, or focus. Never switch to headed mode to recover from a headless failure. Raw coordinates (--xy) never imply focus. Which actions need --headed differs by OS: read the platform skill.
A sandbox is a desktop a provider manages on your machine. The provider is macos: a macOS VM on an Apple Silicon Mac running macOS 13 or later. Linux and Windows have no provider; to run agent-desktop in a container you manage yourself there, follow agent-browser.dev/desktop/guides/docker-container.
agent-desktop sandbox install # report the provider's state
agent-desktop sandbox install macos # compile and sign the VM host and guest agent, then report ready
agent-desktop sandbox create demo --provider macos --set from=base # clone a set-up sandbox; or --set ipsw=latest to install
agent-desktop sandbox start demo # start it headless; add --window to show its desktop
agent-desktop sandbox status demo # state, message and next command
agent-desktop sandbox list # every sandbox and its state
agent-desktop sandbox exec demo -- status # run a command in the guest
agent-desktop sandbox stop demo # stop the sandbox
agent-desktop sandbox rm demo # remove it
Names are 1–32 lowercase letters, digits or hyphens, starting with a letter or digit. exec returns the guest's envelope and exit status; a provider failure returns a host error. rm refuses a sandbox reported as running; stop it first. create needs exactly one source: --set from=<sandbox>, --set ipsw=latest or --set ipsw=<path>. start answers working, or needs_setup when the guest agent is not answering; wait for status to report running before exec.
Read state, message and optional next; ok: true alone does not mean the sandbox is ready.
unavailable: satisfy the host requirements in message and next.missing: install the provider.ready: create a sandbox.working: repeat the command in next until the work finishes.needs_setup: have a person complete guest setup, then check status.running: run guest commands, or stop before removal.stopped: start the sandbox to use it, or remove it.broken: follow next; a broken sandbox may need removal.A sandbox separates the desktop, not the network or the host. Sandboxes on one host share a virtual network, and a guest can reach the host's network services; keep one trust level per host. The host reaches the guest over the virtual machine's own socket device: only the process that runs the VM can open that connection, and agent-desktop-guest refuses any caller that is not the host. The host sends commands only to the agent whose key it recorded at setup, so another guest account cannot answer in its place. The agent runs the guest's agent-desktop with the arguments after -- and never a shell. In the guest, Accessibility belongs to agent-desktop-guest.
Cloning a configured macOS VM has been tested end to end. Installing the first VM from a macOS image is experimental and has not been verified end to end. Provider setup steps and limits are in the docs: agent-browser.dev/desktop/sandboxes/macos.
Load one only when you need it: agent-desktop skills get desktop <reference>.
| Reference | Open it when |
|---|---|
commands-observation | You need snapshot, find, get, is, screenshot, list-surfaces semantics, partial trees, or the --root rules |
commands-interaction | You choose between click, type, set-value, select, toggle, scroll, press and mouse commands, or you debug an action error |
commands-system | You launch or close apps, manage windows, use the clipboard, wait, batch, sessions, multi-agent cursors, tracing, or load skills |
workflows | You want worked patterns (forms, menus, dialogs, waiting for a new window, scroll-find, drag) and the anti-patterns list |
What SKILL.md sets; muted values are Claude Code's defaults
/yus-all-departments:agent-desktopfrom yus-all-departments
npx claudepluginhub yusei21/yus --plugin yus-all-departments310 skills in this plugin
/accessibilityDesign, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels, accessibility traits and hints, focus management, contrast, target size, and screen-reader support. Use when building or auditing UI for accessibility compliance, keyboard navigation, or screen-reader support./agent-architecture-auditFull-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.Other plugins' skills for the same job
/agent-eval3 plugins in one repository ship this exact skill · first indexed Nov 17, 2026