Command Palette

Search for a command to run...

Назад к скиллам
скилл № 04333

desktop

Control macOS desktops like a user — this Mac or any Mac reachable over SSH: list apps and windows, look at a window (Accessibility outline with clickable…

БесплатноЗапускает вложенные скрипты
hyper-code-harnessот hyper-code-harness★ 22 звезды на GitHub

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

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

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

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

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

Desktop (macOS, local or over SSH)

Backend: Cua Driver — /Applications/CuaDriver.app holds the Accessibility and Screen Recording grants; ~/.local/bin/cua-driver mcp is spoken over one persistent connection per host (ssh <host> for remote Macs, nothing else to install there). Every function takes host (an alias from remote.servers, omit for this Mac).

Loop: look → act → look

  1. desktop.windows({ host }) / desktop.apps({ host }) — what is open. desktop.open({ host, app }) launches or un-hides a window (needed for minimized/hidden ones).
  2. desktop.look({ host, app, ocr? , query? }) → outline ([index] Role "label" [actions]), image (read the path to see it), ocr lines with x,y in screenshot pixels.
  3. Act — each accepts element (index from the last look), text (label, resolved via Accessibility, then OCR) or x/y (screenshot pixels):
    • desktop.click({ host, app, text: "Send" }) (button right, count 2, foreground for stubborn apps)
    • desktop.type({ host, app, value, text?: "Message" }), desktop.key({ host, app, key: "return" | "cmd+k" })
    • desktop.scroll({ host, app, direction: "down", amount? }), desktop.setValue({ host, app, element, value }) Actions return a fresh screenshot by default (after: none | tree | screenshot | both).
  4. Look again; element indexes are replaced by each look of that window.

Anything else (drag, zoom, invoke_menu, clipboard, window frames, recording): desktop.tools({ name? }) then desktop.call({ host, tool, args }).

Setup per Mac

  • Install: curl -fsSL https://cua.ai/driver/install.sh | bash -s -- --no-modify-path then ~/.local/bin/cua-driver telemetry disable (telemetry is on by default).
  • Grant: cua-driver permissions grant, approve CuaDriver in Privacy & Security → Accessibility and Screen Recording (someone at the Mac or via Screen Sharing).
  • desktop.check({ host }) verifies; on permissions_pending or stale grants use desktop.check({ host, fix: true }) (restarts the daemon via permissions grant).
  • Fast mode is pinned automatically: on the first connection to each host desktop.ensureDaemon checks the daemon's CUA_DRIVER_WINDOW_CHANGE_TIMEOUT_MS and restarts CuaDriver.app with the desktop.windowChangeTimeoutMs setting (default 250 ms, env DESKTOP_WINDOW_CHANGE_TIMEOUT_MS, 0 = leave the daemon alone) instead of Cua Driver's 1 s, so reboots and updates do not bring the slow mode back. Keys drop from ~1.2 s to ~0.4 s. desktop.check({ host, fast: true }) forces a restart now.

Notes

  • Keep awake: while connected to a remote Mac, the connection runs caffeinate -dims tied to the cua-driver mcp process, so the display does not sleep or auto-lock mid-task; it ends with the connection, which closes after desktop.idleDisconnectMinutes (default 10) without calls. Setting desktop.keepAwake (env DESKTOP_KEEP_AWAKE) turns it off. It cannot unlock an already locked screen.
  • Locked screen: when the target Mac locks, windows disappear from Accessibility (ax_unresolved, empty outline, background input refused) and screenshots show only the wallpaper. Unlock it; keep-awake prevents new locks only while connected.
  • Background delivery: no pointer movement, no focus steal; covered windows work, minimized/hidden ones need open first.
  • Electron apps (Discord, Slack) expose some labelled elements; otherwise look({ ocr: true }) + click({ x, y }) or click({ text }).
  • Labels differ by state/version (Calculator shows "All Clear" or "Clear"); look before guessing.
  • Measured (M-series, Tailscale SSH): look tree ~0.2 s, screenshot ~0.4 s, OCR +2 s, fast-mode key ~0.4 s, click by text ~1.5-2 s (includes a fresh tree lookup), first call per host up to ~3 s when the daemon is restarted into fast mode.
Полный SKILL.md на GitHub

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

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

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

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

  • package.json
  • src/desktop/$setting_idleDisconnectMinutes.ts
  • src/desktop/$setting_keepAwake.ts
  • src/desktop/$setting_windowChangeTimeoutMs.ts
  • src/desktop/AppWindow.ts
  • src/desktop/act.ts
  • src/desktop/apps.ts
  • src/desktop/call.ts
  • src/desktop/check.ts
  • src/desktop/click.ts
  • src/desktop/disconnect.ts
  • src/desktop/ensureDaemon.ts
  • src/desktop/key.ts
  • src/desktop/locate.ts
  • src/desktop/look.ts
  • src/desktop/open.ts
  • src/desktop/resolve.ts
  • src/desktop/scroll.ts
  • src/desktop/setValue.ts
  • src/desktop/tools.ts
  • src/desktop/type.ts
  • src/desktop/windows.ts

FAQ

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

Control macOS desktops like a user — this Mac or any Mac reachable over SSH: list apps and windows, look at a window (Accessibility outline with clickable indexes + screenshot + OCR), click, type, press keys, scroll and fill fields in the background without stealing the pointer. Built on Cua Driver (trycua/cua). Use when a task needs a native or Electron app (Calculator, Notes, Finder, System Settings, Discord, Slack, Figma…) that has no API or plugin. For Chrome pages prefer the browser plugin.

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

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

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

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить desktop с