Skip to content
Back to skills

Ghostex Computer Use

ASecurity

Use only when the user names Ghostex or its Trycua/cua-driver wrapper. General desktop or GUI automation belongs to cua-driver. It wraps the CLI-first Trycua workflow so agents can drive the computer and desktop apps without the user needing to remember `$cua-driver`.

  • 2 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added December 1, 2026
toolsshellbash

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add PremModhaOfficial/dotfiles --skill ghostex-computer-use --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ghostex Computer Use?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ghostex Computer Use
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/premmodhaofficial-ghostex-computer-use/badge)](https://www.skillsdirectory.com/skills/premmodhaofficial-ghostex-computer-use)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ghostex-computer-use
description: >-
  Use only when the user names Ghostex or its Trycua/cua-driver wrapper. General
  desktop or GUI automation belongs to cua-driver. It wraps the CLI-first Trycua workflow so
  agents can drive the computer and desktop apps without the user needing to
  remember `$cua-driver`.
# CDXC:AgentSkills 2026-09-13 DECISION:
# User: Ghostex Help and all other Ghostex skills must not be agent-invokable, matching the Shepherd skill's explicit-invocation policy.
disable-model-invocation: true
---

> **Availability gate:** the driver half works here — `cua-driver` is installed (0.35.4). The Ghostex runtime at `/opt/ghostex` is not, so the Ghostex-only cross-references in this skill (for example `$ghostex-embedded-browser-use`, Ghostex's built-in panes) are unavailable until you install Ghostex Desktop, which unpacks `gxserver` into `/opt/ghostex`.

# ghostex-computer-use

Use this skill when a task needs native macOS app automation through Ghostex
Desktop Control. This skill is a wrapper around `$cua-driver`: read that skill
first (below), and issue operations through the `cua-driver` CLI.

## Read the cua-driver skill first

Before the first `cua-driver` call, read Trycua's `cua-driver` skill: it is the
source of truth for the installed driver's tools, schemas, safety rules and
platform notes, and this skill only adds Ghostex's guidance on top. Load
`$cua-driver` if your agent offers it; otherwise read its `SKILL.md` and the
reference files it links:

```bash
cat "$(cua-driver skills path)/SKILL.md"
```

From WSL, ask the Windows side for the path and translate it:

```bash
cat "$(wslpath -u "$(powershell.exe -NoProfile -Command 'cua-driver skills path' | tr -d '\r')")/SKILL.md"
```

If the skill is missing, install it with `cua-driver skills install` (through
`powershell.exe` from WSL), or from Settings > Integrations.

Use the CLI, not MCP. Do not configure, register, or invoke a Trycua MCP
server for this workflow.

Route browser work by surface:

- Use `$ghostex-browser-use` for web content in external Chrome, Chromium,
  Edge, or supported Electron apps through Trycua's typed browser tools.
- Use `$ghostex-embedded-browser-use` for browser panes built into Ghostex.
- Continue with this skill for native apps, browser chrome, native browser
  dialogs, or browser engines that do not expose an exact typed page route.

## Requirements

- Trycua must be installed. Ghostex installs it from first-launch setup or
  Settings > Integrations, where the Fast Computer & Browser Use row runs the
  official installer and installs the `$cua-driver` skill with it.
- Trycua must be available as `cua-driver` (see Windows and WSL below).
- macOS Accessibility and Screen Recording permissions must be granted for
  Trycua.

Check the machine state before acting:

```bash
which cua-driver
cua-driver status
cua-driver check_permissions '{"prompt":false}'
```

<!--
CDXC:CuaPermissions 2026-05-29-12:21:
State checks must be read-only. The default Trycua permission check can ask macOS to show missing-grant prompts, so the Ghostex wrapper uses prompt:false and only sends users to System Settings when grants are actually missing.
-->

If the daemon is not running, start it with:

```bash
open -n -g -a CuaDriver --args serve
```

## Windows and WSL

On Windows, Trycua installs on the Windows side. A Ghostex agent session runs
inside the WSL distribution, where there is no Linux `cua-driver` binary, so
`which cua-driver` failing there does not mean Trycua is missing. Call it across
the interop boundary through `powershell.exe` instead:

```bash
powershell.exe -NoProfile -Command "cua-driver status"
powershell.exe -NoProfile -Command "cua-driver check_permissions '{\"prompt\":false}'"
powershell.exe -NoProfile -Command "cua-driver list_windows '{\"pid\":1234}'"
```

The general form is `powershell.exe -NoProfile -Command "cua-driver <tool>
'<JSON>'"`. Inside a bash double-quoted string, escape the JSON's own double
quotes as `\"`; PowerShell then hands the single-quoted JSON to Trycua as one
argument.

Trycua is a Windows process, so every path it reads or writes is a Windows path.
Translate at the boundary:

```bash
powershell.exe -NoProfile -Command "cua-driver start_recording '{\"path\":\"$(wslpath -w /tmp/run.mp4)\"}'"
wslpath -u 'C:\Users\me\Downloads\report.pdf'
```

If Trycua is not installed on the Windows side, install it from Windows
PowerShell, or from WSL through the same interop boundary:

```bash
powershell.exe -NoProfile -Command "irm https://cua.ai/driver/install.ps1 | iex"
```

## Operating Rules

- Use CLI calls: `cua-driver <tool> '<JSON>'`.
- Do not register or rely on a persistent `cua-driver mcp` server for ordinary
  Ghostex Computer Use. The CLI proxies through the signed CuaDriver.app daemon,
  while global MCP registration can leave many stdio helper processes around.
- Do not foreground the user's apps unless the user explicitly asks for that.
- Do not use `open -a`, AppleScript activation, HID event injection, `cliclick`,
  or menu-bar automation for background control.
- Do not rely on coordinates when the accessibility tree gives stable
  `element_index` values.

## Canonical Loop

1. Launch or find the app with Trycua, for example:

   ```bash
   cua-driver launch_app '{"bundle_id":"com.apple.TextEdit"}'
   ```

2. Get the window state:

   ```bash
   cua-driver get_window_state '{"pid":1234,"window_id":5678}'
   ```

3. Choose the target by `element_index` from the snapshot.
4. Perform one action such as click, type, scroll, drag, key press, or set value.
5. Re-run `get_window_state` and verify the expected UI state before continuing.

## Notes

- Keep the user's current foreground app alone. Trycua can launch and drive
  apps in the background when you identify the right app, pid, window id, and
  element indexes.
- Prefer one small verified action at a time. Re-snapshot after every stateful
  action because element indexes can change as the UI updates.
- For full command details, defer to the `cua-driver` skill you read first;
  this wrapper exists so users can ask for `$ghostex-computer-use`.
- When a native-app workflow reaches supported browser page content, switch to
  `$ghostex-browser-use`; switch back here for browser chrome or native dialogs.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.