Command Palette

Search for a command to run...

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

computer-use

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

Operate apps on a desktop host through Computer Use, whether surfaced as Okou Desktop or the still-supported legacy Zero Desktop, when APIs are not enough…

okou-aiот okou-ai★ 81 звезда на GitHub

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

Computer Use

Overview

Use okou computer-use <command> to inspect and operate apps on the connected desktop host. Current clients present this as Okou Desktop; still-supported legacy clients may call it Zero Desktop. Treat it as an accessibility-first GUI control surface: read the app state, act through accessibility elements, and inspect screenshots only when visual information is required or the accessibility state is insufficient.

--app accepts an app bundle id only, such as com.apple.Safari or com.google.Chrome. App names like Safari, Google Chrome, Slack, or WeChat are display labels only and must not be passed to --app.

Core Workflow

  1. List apps and choose the target app's bundleId:
okou computer-use list-apps

Use the name field only to identify the app for yourself, then copy the bundleId field. Apps listed without a bundleId cannot be targeted.

  1. Set the bundle id you found:
app_bundle_id="com.apple.Safari"
  1. If the app is not running, open it by bundle id:
okou computer-use open-app --app "$app_bundle_id" --timeout 10
  1. Inspect the target app by bundle id:
okou computer-use get-app-state --app "$app_bundle_id" --timeout 10
  1. Read the JSON result:
  • snapshotId is required for follow-up actions against the same state.
  • appState is expected to be a local file path containing the full accessibility tree. Read or filter that file to find element indexes, roles, labels, URLs, and the focused element.
  • screenshot is a local image path under /tmp/vm0/computer-use/.... Do not inspect it by default; use the image viewer only when visual judgment matters or the accessibility tree does not expose a usable target.
  • During rollout, older CLI versions may still return appState as an inline string. If it is not a path, save the JSON output to a temp file and extract/filter the inline string.
  1. Act on elements first, using the same bundle id and snapshot:
okou computer-use click --app "$app_bundle_id" --snapshot-id <snapshotId> --element-index <index>
okou computer-use set-value --app "$app_bundle_id" --snapshot-id <snapshotId> --element-index <index> --value "text"
okou computer-use type-text --app "$app_bundle_id" --snapshot-id <snapshotId> --text "literal text"
okou computer-use press-key --app "$app_bundle_id" --snapshot-id <snapshotId> --key Command+L
okou computer-use scroll --app "$app_bundle_id" --snapshot-id <snapshotId> --element-index <index> --direction down --pages 1
  1. Re-read state after every meaningful UI change. Element indexes and coordinates can become stale after navigation, scrolling, or opening a new window.

If a post-action command returns a new snapshotId and appState, use that new snapshot. Otherwise, explicitly run get-app-state again before choosing the next element index or coordinate.

Accessibility-First Policy

  • Start with the appState accessibility tree. For routine forms, buttons, lists, links, and navigation, do not inspect the screenshot when accessibility roles and labels provide enough information to act safely.
  • If the UI behaves unexpectedly, re-read and filter the latest appState before falling back to the screenshot.
  • Inspect the screenshot when the accessibility tree is incomplete or ambiguous, the task depends on visual appearance or layout, or no useful accessibility element exists and coordinate input is required.
  • Use coordinates only after inspecting the screenshot from the same snapshot. Return to element-index actions as soon as the accessibility tree exposes a reliable target.

App Identity Rules

  • Always run list-apps before targeting an app unless you already know the exact bundle id from the same host.
  • Always pass the bundleId value to --app.
  • Never pass display names such as Slack, Safari, Google Chrome, or WeChat to --app.
  • If a command fails with app_not_found and the --app value looks like a name, re-run list-apps, find the app record, and retry with its bundleId.
  • If the target app has no bundleId in list-apps, report that it is not targetable through Computer Use.

To search the list-apps output for a likely target:

apps_json=/tmp/computer-use-apps.json
okou computer-use list-apps > "$apps_json"
node -e "const fs=require('fs'); const q=(process.argv[2]||'').toLowerCase(); const apps=JSON.parse(fs.readFileSync(process.argv[1],'utf8')).apps || []; for (const a of apps) { if (!q || String(a.name || '').toLowerCase().includes(q)) console.log([a.name || '', a.bundleId || 'NO_BUNDLE_ID', a.running ? 'running' : 'not running'].join('\t')); }" "$apps_json" "Slack"

Copy the exact bundleId from the matching row into app_bundle_id.

Reading App State

Accessibility trees can be very large. Prefer the appState file returned by the command:

app_bundle_id="com.apple.Safari"
state_json=/tmp/computer-use-state.json
okou computer-use get-app-state --app "$ap
Полный SKILL.md на GitHub

Установить computer-use в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл computer-use?

Operate apps on a desktop host through Computer Use, whether surfaced as Okou Desktop or the still-supported legacy Zero Desktop, when APIs are not enough. Not for remote browser sessions (`okou browser use`), surfaced as Okou Browser or legacy Zero Browser.

Как установить скилл computer-use?

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

Скилл computer-use запускает скрипты?

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

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

Сравнить computer-use с