Skills
agent-desktop ships guides written for AI agents: the observe, act, and verify loop, the retry rules, and what differs on each OS. They are compiled into the binary, so the instructions an agent reads always match the version it runs. The skills command prints them. It needs no permission and no desktop session.
Bootstrap an agent
Run these three commands before the first action:
To make this automatic, put the bootstrap in your agent's instructions file (AGENTS.md or equivalent):
The skills command
Every form prints the JSON envelope. A skill's Markdown is in data.content.
| Command | Description |
|---|---|
agent-desktop skills | List skills, the same as skills list |
agent-desktop skills list | List every bundled skill with its aliases and references |
agent-desktop skills get <name> | Print one skill's main guide |
agent-desktop skills get <name> <reference> | Print one reference file of that skill |
agent-desktop skills get <name> --full | Print the main guide followed by every reference, each introduced by a --- references/<file>.md --- line |
agent-desktop skills path | Report that skills are embedded, and list the available names |
--full is the only flag the command adds, and it has no effect when you pass a reference. To read a skill as plain Markdown, extract data.content:
skills path confirms there is no skills directory on disk:
Available skills
<name> accepts the canonical name or an alias.
| Name | Alias | Covers |
|---|---|---|
agent-desktop | desktop | The core guide for every OS: the snapshot and ref loop, verification and retry rules, and when to open each reference. Load it first. |
agent-desktop-macos | macos | What differs on macOS: permissions, Notification Center, troubleshooting. |
agent-desktop-windows | windows | What differs on Windows: PowerShell quoting, elevation, shell surfaces, Chromium and Electron, troubleshooting. |
agent-desktop-linux | linux | What differs on Linux: the AT-SPI bus, X11 and Wayland, window lifecycle, capture and clipboard, shell and notifications, troubleshooting. |
agent-desktop-ffi | ffi | Embedding agent-desktop through the C library: build and link, errors, ownership, threading. |
jev-desktop | jev | An optional helper that drives an app from a plain-language goal. It needs a clone of the repository and an API key, and it is not part of the native CLI. |
platform resolves to the skill for the OS the binary runs on. skills list marks platform skills with platform and current; this is the Linux entry on a Linux machine:
An unknown name returns INVALID_ARGS and lists every alias:
References
The core and platform guides are standalone. For an FFI reference, use its path (references/ownership.md), file name (ownership.md), or stem (ownership):
| Skill | References |
|---|---|
desktop | None |
macos | None |
windows | None |
linux | None |
ffi | build-and-link, error-handling, ownership, threading |
An unknown reference returns INVALID_ARGS and lists the available ones.
Install a skill in an agent harness
A harness that supports skills can also install a static copy with npx skills add:
You can also add --skill agent-desktop-ffi or the platform skill for your OS (agent-desktop-macos, agent-desktop-windows, or agent-desktop-linux). An installed copy can go stale when you upgrade the CLI, so prefer agent-desktop skills get, which always matches the binary you run.