Skip to content
Skills Library
Personal productivity · Automation

desktop-operator

/desktop-operator

Control the local Windows desktop and Chromium browsers through a persistent Desktop Operator. Use for repeated browser/console actions, native window automation, window capture or OCR, and multi-step UI workflows where starting a new Playwright process for every action would be slow.

Licence
MIT
Last repository change
02.11.2026

Assessment and security

98/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene13 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
2
Deprecation

No signals detected. Repository changed on 02.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Control the local Windows desktop and Chromium browsers through a persistent Desktop Operator. Use for repeated browser/console actions, native window automation, window capture or OCR, and multi-step UI workflows where starting a new Playwright process for every action would be slow.

Original author description

Control the local Windows desktop and Chromium browsers through a persistent Desktop Operator. Use for repeated browser/console actions, native window automation, window capture or OCR, and multi-step UI workflows where starting a new Playwright process for every action would be slow.

How it works

  1. Locate the runtime
  2. Fast path
  3. Operating rules
  4. Boundaries
Original SKILL.md headings · 73 lines, 574 words
SKILL.md preview
---
name: desktop-operator
description: Control the local Windows desktop and Chromium browsers through a persistent Desktop Operator. Use for repeated browser/console actions, native window automation, window capture or OCR, and multi-step UI workflows where starting a new Playwright process for every action would be slow.
---

# Desktop Operator

Use the persistent operator for multi-step UI work. It keeps Playwright, Windows UI Automation, window capture, and Windows OCR in one process. Ordinary browser commands typically return in 10-150 ms instead of restarting a Playwright CLI for each action.

## Locate the runtime

Use `$env:DESKTOP_OPERATOR_HOME` when set; otherwise use
`$HOME\.codex\tools\desktop-operator`:

```powershell
$operatorHome = if ($env:DESKTOP_OPERATOR_HOME) {
    $env:DESKTOP_OPERATOR_HOME
} else {
    Join-Path $HOME '.codex\tools\desktop-operator'
}
$op = Join-Path $operatorHome 'op.ps1'

if (-not (Test-Path -LiteralPath $op)) {
    throw "Desktop Operator not found. Set DESKTOP_OPERATOR_HOME or install https://github.com/gz2008/desktop-operator"
}
```

Read `README.md` in that runtime before using an unfamiliar command. The runtime
deploys its Python environment with `setup.ps1`.

## Fast path

```powershell
& $op system.info
& $op browser.launch_cdp "port=9223" "profile=$HOME\.codex\tmp\cdp-profile" "url=https://example.com"
& $op browser.query "selector=button" "limit=10"
& $op browser.find_text "text=登录"
& $op browser.click "selectors=[\".login-btn\",\"text=登录\"]"
& $op browser.fill "selector=input[name=user]" "value=example"
& $op browser.fill_label "label=云服务器名称" "value=ecs-demo"
& $op browser.pick "label=镜像" "option=Ubuntu" "exact=true"
& $op browser.set_input_files "selector=input[type=file]" "file=D:\path\to\file.zip"
& $op win.list
& $op win.tree "title=记事本" "depth=4" "limit=120"
& $op win.click "title=记事本" "name=保存"
& $op win.capture "title=记事本"
```

The first call starts the daemon automatically. `system.shutdown` stops it; the next call restarts it with current code.

## Operating rules

- Prefer `browser.query` and `browser.find_text`; do not dump a full page snapshot when the target is known.
- For browser work, use CDP first: `browser.launch_cdp` or `browser.attach`, then DOM selectors, `fill`, and `set_input_files`. Do not use OCR + coordinates on a normal web page.
- Never activate, raise, or steal focus from a user's existing app without explicit permission for the current turn. Do not use `win.activate`, `win.topmost`, `mouse.click_capture` with `topmost=true`, or `screen.capture` as routine automation steps. Prefer background CDP/DOM/UIA; if the task cannot proceed without foregrounding the window, stop and ask first.
- For a window covered by another app, use `win.capture` (PrintWindow) instead of screen capture.
- Give click/fill 2-3 candidate selectors and keep the timeout at 3-5 seconds. The operator tries them in order and returns diagnostics on failure.
- Use `batch` for consecutive form actions so one HTTP round trip executes the whole sequence.
- Use `browser.capture_response` for click-triggered APIs, including experiment report checkpoints.
- Prefer `browser.api_get` for report endpoints so the call does not depend on tab state or a UI click.
- Use `browser.fill_label` / `browser.pick` on Chinese console forms; they resolve fields by nearby visible labels and avoid text collisions such as a hidden "密码" nav item.
- Pass `verify=<selector>` when clicking a primary CTA; the operator waits for the post-condition instead of clicking twice.
- The operator clears guide/anti-spam dialogs and retries intercepted clicks. If a modal still blocks, close it explicitly.
- Use `ssh.exec` with a `secret=` name; never put a password in the command line.
- If the CDP page closes, the next browser call re-attaches automatically; `browser.tabs` lists live pages only.
- For a canvas or remote desktop, request permission before screen capture, then use `screen.ocr/find_text/click_text`; coordinates are physical pixels.
- Use `secret.ps1 set/get` for credentials. Never print the value or put it in a tool call.
- Use a separate CDP profile for automation. Do not copy a daily browser profile.
- If the daemon fails, read `operator.log` in `$operatorHome`, run
  `system.shutdown`, then retry.

## Boundaries

- Local machine only; bind stays on `127.0.0.1`.
- Do not use synthetic clicks to bypass a user confirmation or a platform authorization step.
- Ask before destructive clicks, bulk deletes, purchases, or actions affecting an account outside the requested scope.
Files in this package (2)
  • SKILL.md 5 KB
  • agents/openai.yaml 1 KB

Versions

The database has no other skills named desktop-operator.

Database snapshot: 13.11.2026 · package version 7e1c3bf6fe03 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 84deskcrew
    The only way to control this computer. Use it on your own, without being asked, whenever a task needs anything done or seen on the desktop: opening, reading, clicking, typing into, drawing in or arranging any Windows or Mac app or window, checking what is on screen, or testing a…
  • 88powerskills-desktop
    Windows desktop automation. Take full-screen or window screenshots, list/focus/minimize/maximize windows, send keystrokes, launch applications. Use when needing to capture the Windows screen, manage windows, send keyboard input, or start programs.
  • 100computer-automation
    Vision-driven desktop automation using Midscene. Control your local desktop (macOS, Windows, Linux) or a remote Windows desktop over RDP with natural language commands. Operates entirely from screenshots — no DOM or accessibility labels required. Can interact with all visible…
  • 95macos-control-skill
    Triggered when the user asks the AI to directly operate their macOS desktop: open an app, click a button, fill a form inside a native window, read what's currently on screen, automate a local GUI flow. Typical phrasing: "in Finder, please…", "click X in the Y app", "what's on my…
  • 95browser-control
    Drive the user's own Chromium browser (Chrome, Edge, Whale, Brave, Arc, Dia) with the `bctl` CLI — read pages, click, fill forms, borrow logged-in tabs, debug console/network — inside a separate Agent Window. Use when a task needs a real browser with the user's existing logins,…
  • 96computer-use
    Operate native desktop applications through CuaDriver. Use for opening macOS, Windows or Linux apps, desktop UI interactions, system calculator, accessibility trees and desktop screenshots. Web tasks should prefer browser-use.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.