Xpersona
D

Desktop Agent Ops

CLAWHUB · Unverified

Execute cross-platform desktop tasks through a packaged desktop automation skill that guides the main agent to observe the screen, focus apps and windows, ca...

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s176113hcr9bbg6wbzy4wpgpkn83jwxb:desktop-agent-ops
  1. Install using `clawhub skill install s176113hcr9bbg6wbzy4wpgpkn83jwxb:desktop-agent-ops` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/appergb/desktop-agent-ops before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-appergb-desktop-agent-ops/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

93,660 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: desktop-agent-ops
description: Execute cross-platform desktop tasks through a packaged desktop automation skill that guides the main agent to observe the screen, focus apps and windows, call helper scripts for screenshots and input actions, verify each step, clean up task context, and only escalate to multi-agent collaboration when tasks become clearly multi-window or multi-app. Use when the user wants desktop GUI control, native app operation, window focus, screenshots, click and type flows, or cross-platform desktop workflows on macOS, Windows, or Linux.
version: 1.0.2
metadata:
  openclaw:
    requires:
      bins: [python3]
      anyBins: [cliclick, xdotool]
    emoji: 🖥️
    os: [macos, windows, linux]
    install:
      brew: [cliclick, tesseract]
---

# Desktop Agent Ops

Use this skill as a **main-agent operating manual** for desktop GUI tasks.

---

## MANDATORY: Auto-setup gate (FIRST ACTION, every time)

```bash
python3 <SKILL_DIR>/scripts/first_run_setup.py --check
```

If `"ready": false`, run setup (installs EVERYTHING automatically):

```bash
python3 <SKILL_DIR>/scripts/first_run_setup.py
```

**Auto-installs on first run:**
1. Platform detection (macOS / Windows / Linux)
2. `cliclick` + `tesseract` (macOS via brew; Linux guide printed)
3. OCR language packs auto-detected from system locale (中文→chi_sim, 日本語→jpn, etc.)
4. Python venv + pillow, pyautogui, pytesseract, opencv-python, numpy (via uv or pip)
5. OS permissions (Screen Recording, Accessibility, Automation) with auto-open System Settings
6. Smoke test (screenshot + mouse move verification)

After setup, set `$PY` for ALL subsequent calls:
```
PY=<output.env.DESKTOP_AGENT_OPS_PYTHON>
```

**Do NOT proceed if setup is not ready.**

---

## Core Execution Loop

Every desktop task follows this loop. No exceptions.

```
 1. auto-setup gate           ← run once per session
 2. init task context          ← create isolated temp directory
 3. FOCUS the target app       ← bring app to front, confirm frontmost
 4. GET window bounds          ← know exact position and size
 5. CAPTURE that window        ← screenshot ONLY the target window
 6. ANALYZE the capture        ← read screenshot or run OCR
 7. LOCATE target via OCR      ← find text/button within window bounds
 8. VERIFY before acting       ← move cursor, screenshot with cursor, confirm
 9. EXECUTE one action         ← click, type, scroll, press key
10. CAPTURE again              ← screenshot to see result
11. VERIFY the result          ← did the UI change as expected?
12. → if more steps, go to 5
13. CLEANUP                    ← remove task temp directory
```

**Key principles:**
- One action at a time. Never chain blind actions.
- Always verify after each action. If verification fails, recapture and retry — do NOT guess.
- Always work within a specific window. Never click based on full-screen assumptions.

---

## Window-Scoped Targeting (THE CORRECT WAY)

**NEVER do OCR or clicking on a full-screen screenshot.** Alw

_meta.json

{
  "ownerId": "kn79pdbwxh0g5g8g3cgx3jyp1h838xff",
  "slug": "desktop-agent-ops",
  "version": "1.0.3",
  "publishedAt": 1774402292498
}

references/app-wechat-desktop.md

# WeChat Desktop

Use this reference when the task is specifically about WeChat Desktop on macOS or Windows.

## Core send decision rule

Treat sending as a decision ladder, not a hardcoded single action:

1. verify the correct conversation is open
2. verify the draft text is visible in the true composer
3. check whether a visible `发送` send button is available
4. if the send button is visible and verified, click the send button
5. if there is no verified send button, and the host is confirmed to be direct-Enter-to-send, run `desktop_ops.py press --key return`
6. if neither path is verified, do not send yet

This is the required WeChat workflow for this skill, and it should also be generalized to similar desktop chat apps.

## Message composition rule

- use `desktop_ops.py type --text` for ordinary text input
- use `desktop_ops.py insert-newline` for literal line breaks inside the draft
- do not use `type --text` with `\n` as a send surrogate
- keep literal line breaks and send actions as separate operations

## Platform guidance

### Windows WeChat

Windows WeChat commonly exposes a visible `发送` button.

- prefer the verified `发送` button as the primary send action
- only fall back to `press --key return` when no send button is available and Enter-to-send is already confirmed for the host

### macOS WeChat

macOS WeChat may rely more often on direct-Enter-to-send.

- if a verified `发送` button is available, it is still safe to prefer that explicit UI action
- if no verified send button is available, use `desktop_ops.py press --key return` only after the draft is visibly in the true composer and Enter-to-send is known for the host

## Recommended workflow

1. focus WeChat
2. verify the correct conversation is active
3. click the true composer region
4. type message text with `desktop_ops.py type --text`
5. if the message needs a real line break, use `desktop_ops.py insert-newline`
6. verify the full draft is visible in the composer
7. look for a verified visible `发送` button
8. if found, click it
9. otherwise, if Enter-to-send is verified for this host, run `desktop_ops.py press --key return`
10. capture again and verify the outgoing message bubble appears

## Important caution

Do not guess the send action.

- visible send button beats inferred key behavior
- verified Enter-to-send beats unverified assumptions
- if neither path is verified, stop and recapture before sending

## Generalization rule

Apply the same reasoning to similar chat apps:

- first prefer the app's explicit visible send affordance
- if that affordance is absent, use the verified send key path for that host and app
- if the message needs multiple lines, use `insert-newline` and reserve the final send action for the verified send step

references/app-wechat-macos.md

# WeChat on macOS

Use `app-wechat-desktop.md` as the primary WeChat reference.

This file remains only as a compatibility pointer for older reference lists.

references/app-wechat-windows.md

# WeChat on Windows

Use `app-wechat-desktop.md` as the primary WeChat reference.

This file remains only as a compatibility pointer for older reference lists.

Sponsored

Ads related to Desktop Agent Ops and adjacent AI workflows.