Command Palette

Search for a command to run...

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

pan-computer-use

Read and operate a visible local desktop app (native apps, external browser windows) through `pan computer`: accessibility tree, clicks, typing, keys…

БесплатноБез исполняемых скриптов
eltmonот eltmon★ 36 звёзд на GitHub

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

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

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

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

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

Computer Use

Adapted from Orca's computer-use guide (MIT, Copyright (c) 2026 Lovecast Inc.).

Use this skill to drive a visible app window through pan computer. Prefer a programmatic path (shell, filesystem, git, HTTP, existing CLIs) whenever it can complete the task; use this skill only when a visible window needs GUI control those cannot reach.

Preconditions

  • Prefer --json.
  • Do not push, submit forms, send messages, buy items, delete data, change account settings, or expose secrets unless the user explicitly asked for that action.
  • If an app contains sensitive content, read only what the user requested.
pan computer capabilities --json

Core Loop

pan computer list-apps --json
pan computer get-app-state --app gnome-calculator --json
pan computer click --app gnome-calculator --element-index 12 --json

Use the fresh state returned by each action for the next element index. Element indexes are short-lived and go stale after delays, navigation, focus changes, scrolling, window changes, or app re-rendering. In --json output, read the accessibility tree from result.snapshot.treeText; elementCount is only a count and must not be used to infer indexes.

Reading State Cheaply

In a large window, look for one control with get-app-state --query <text>: it prints only elements whose line contains the text (case-insensitive), with their ancestors. --max-elements <n> caps how many matching lines print, but only together with --query; passed alone it has no effect.

pan computer get-app-state --app gnome-text-editor --query Downloads --json

When a tree is truncated, read a hidden subtree by passing the nearest shown ancestor's index as get-app-state --element-index <n>. On Linux, indexes printed under that read are for the subtree only, numbered from 0 again; the next action returns the whole window again. macOS numbers subtrees differently; see macOS.

pan computer get-app-state --app gnome-text-editor --element-index 12 --json

Waiting

Never sleep between actions. When the UI changes on its own after an action (a save finishes, a dialog opens, a button becomes clickable), wait for the change with wait. It returns as soon as the condition holds and prints the matching lines; it fails with wait_timeout if the condition does not hold in time (default 10 s, --timeout <ms> up to 120000).

pan computer wait --app <app> --text "Saved" --json
pan computer wait --app <app> --enabled "Continue" --json
pan computer wait --app <app> --window-title "Save As" --json
  • --text <text>: a tree line contains the text (case-insensitive, like --query).
  • --enabled <text>: a line contains the text and none of the lines containing it is marked disabled. Use text only the intended control shows; a label that repeats the button text also has to be enabled.
  • --window-title <text>: one of the app's windows has the text in its title, as list-windows reports it.

wait only reads the app; it never acts. The app or window may be missing at first; wait keeps checking until it appears.

App Selectors

Use names from list-apps, or pid:<number> when a name is ambiguous.

pan computer get-app-state --app gnome-calculator --json
pan computer get-app-state --app pid:12345 --json

For apps with multiple windows, run list-windows first and pass --window-index <n> to get-app-state and later actions until the target window changes.

Commands

pan computer capabilities --json
pan computer list-apps --json
pan computer list-windows --app <app> --json
pan computer get-app-state --app <app> --json
pan computer get-app-state --app <app> --restore-window --json
pan computer get-app-state --app <app> --query <text> --max-elements <n> --json
pan computer wait --app <app> --text <t> --timeout <ms> --json
pan computer click --app <app> --element-index <n> --json
pan computer click --app <app> --x <x> --y <y> --json
pan computer click --app <app> --element-index <n> --mouse-button right --click-count 2 --json
pan computer perform-secondary-action --app <app> --element-index <n> --action <name> --json
pan computer set-value --app <app> --element-index <n> --value "text" --json
pan computer type-text --app <app> --text "text" --json
pan computer type-text --app <app> --element-index <n> --text "text" --json
pan computer press-key --app <app> --key Return --json
pan computer hotkey --app <app> --key ctrl+shift+p --json
pan computer paste-text --app <app> --text "text" --json
pan computer scroll --app <app> --element-index <n> --direction down --json
pan computer drag --app <app> --from-element-index <n> --to-element-index <n> --json
pan computer drag --app <app> --from-x 100 --from-y 100 --to-x 300 --to-y 300 --json
pan computer release

Use --no-screenshot only when pixels are not needed. Use --text-stdin or --value-stdin for sensitive text so it does not land in shell history or argv.


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

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

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

  1. 01Bash
  2. 02Read

FAQ

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

Read and operate a visible local desktop app (native apps, external browser windows) through `pan computer`: accessibility tree, clicks, typing, keys, scrolling, dragging and screenshots. Prefer a programmatic path (shell, files, git, HTTP, an existing CLI) whenever one can do the job; use this only when a visible window needs GUI control. Works on Linux desktops, macOS, and Windows through WSL2; needs computer_use.enabled.

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

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

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

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

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

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