Skip to content
Back to skills

Rocuronium

ASecurity

Drive this Mac's UI from an agent — read the screen as text, map a window's layout as ASCII, click, type, scroll, drag, press menus, capture windows — without taking the cursor or changing the frontmost app, with evidence on every action. Use when asked to control macOS, read/click/type in a Mac app, automate a desktop workflow, inspect the accessibility tree, see where a window's controls sit, screenshot or wait on a window, park a window on a virtual display, or run any rocuronium verb (sta...

  • 5 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added October 6, 2026
ai-agentsrustgotestingapisecurity

Works with

  • cursor
  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add kageroumado/rocuronium --skill rocuronium --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rocuronium?

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

Security grade badge for Rocuronium
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kageroumado-rocuronium/badge)](https://www.skillsdirectory.com/skills/kageroumado-rocuronium)

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: rocuronium
description: Drive this Mac's UI from an agent — read the screen as text, map a window's layout as ASCII, click, type, scroll, drag, press menus, capture windows — without taking the cursor or changing the frontmost app, with evidence on every action. Use when asked to control macOS, read/click/type in a Mac app, automate a desktop workflow, inspect the accessibility tree, see where a window's controls sit, screenshot or wait on a window, park a window on a virtual display, or run any rocuronium verb (status, read, find, map, click, type, key, menu, shortcut, scroll, wait, screenshot, move, drag, park, plan). Games take hardware input only: activate, then type/key with --allow-hardware-input.
---

# rocuronium

Rocuronium lets an agent see and operate macOS. Two words carry the design:

- **Ghost** delivery reaches an app through accessibility and per-process posted events. It never moves the cursor and never changes the frontmost app, so it is safe while a human is at the keyboard. This is the default.
- **The sting** is real hardware input on the console. It takes the cursor, is opt-in per call (`--allow-hardware-input`), runs only after the ghost tentacles failed, and is put to the human first whenever someone is present.

Every reply says which side delivered the action and, through a computed `verdict`, what observably happened. **Trust `verdict`, never the exit code or the summary.**

## Setup

- The signed **Rocuronium.app** must be running (it holds the Accessibility + Screen Recording grants and does all the work). The CLI and MCP server are thin clients that speak to it over a unix socket.
- CLI: `rocuronium <verb> …`; add `--desktop agent` for the running agent account. Full flag reference: `rocuronium --help`.
- MCP: register `rocuronium mcp` (stdio); desktop tools accept `desktop: "agent"` for the running agent account. Every verb below is exposed as a typed tool with the same name and arguments, and each tool's description carries its own contract.
- First run needs Accessibility granted (check with `rocuronium status`); Screen Recording is needed only for screenshots, OCR, and vision (`rocuronium request-capture` fires the prompt).

## The loop

    status                                   can I see, is anyone here, am I halted
    read --app X                             what is on screen, as text, with a token
    find --app X --label Y [--role button]   which element, where
    click / type / key / menu / scroll       act, ghost first
        → verdict                            confirmed · noEffect · unverifiable
    read --app X --since <token>             what changed, and only that
    wait --app X --label Z                   block until the world catches up

One coordinate frame (points, origin top-left of the main display), one JSON reply shape, one ambiguity rule (ambiguity is refused, never guessed), and a verdict on every act.

## The three verdicts

- **confirmed** — something observably changed (read-back matched, a frame or scroll bar moved, pixels changed in a still window, the window count moved, a tree element appeared/vanished/changed, or the process exited after a quit-shaped press). Proceed.
- **noEffect** — the call reported success and nothing changed. This is the verdict the tool exists for (WebKit's `AXSetValue` lies; background AppKit menus never validate; wheel events are ignored). **Do not retry harder — change mechanism**: read the reply's `suggestion` and `referral` first. A click that must land goes again with `--allow-hardware-input`; the ladder skips the ghost tentacles that just failed, asks the human if one is present, and clicks for real. `activate` does not help a ghost click (posted input reaches the app whether it is frontmost or not) and takes the front window from the human.
- **unverifiable** — nothing to read back and pixels could not testify. **Do not retry blindly** — the action may have landed, and a retry types it twice. Verify through another channel first.

**`attribution: mixed` overrides `confirmed`.** Acting replies carry `humanInput` and, with a verdict, `attribution`. `mixed` means the human clicked, typed, or scrolled in the target app while the action ran or was being checked, so the change may be theirs: verify the specific value before building on it. `humanInput.stopped: true` means a hardware payload yielded to a human hand — wait for them, never re-send it straight away.

→ Full reply contract (all fields, the tentacle ladder, the tree-diff channel, example replies): **reference/reply-contract.md**

## Verb catalog

**Observe** — `status`, `diag`, `apps`, `windows --app X`, `find`, `read`, `map`, `wait`, `screenshot`, `activity`.
**Act (ghost-first)** — `type`, `click`, `key`, `shortcut` (presses the menu item bound to keys), `menu` (by title path), `scroll`, `statusitem`, `launch`, `activate`, `plan`.
**Windows** — `resize` (ghost AX resize/move), `window` (fullscreen/minimize/zoom), `space` (Mission Control Spaces: list/switch/move), `display <acquire|release|status>`, `park`.
**Cursor paths (take the real cursor, presence-gated)** — `move`, `drag`.

→ Targeting (`--app`, the `--label` match tiers, icon-only buttons, `--window`, ambiguity) and the observe verbs in depth: **reference/targeting-and-observing.md**
→ The acting verbs in depth (type/click/key/shortcut/menu/scroll semantics, cursor paths): **reference/acting.md**
→ When the tree is empty — the three vision tiers (accessibility → detector+OCR → local VLM): **reference/vision.md**
→ `plan`: daemon-side multi-step sequences with guards and failure policies: **reference/plans.md**

## Safety and presence

- Ghost verbs (tentacles 0–3) are the default and are safe while a human is present. Cursor-taking verbs (`move`, `drag`, `activate`, `key`/`click` with hardware input) are **refused while the screen is locked**, and while a human is present the overlay asks them on screen: a one-second hold on **Y** (yes), **N** (no), or **A** (yes to this and to everything that would ask for the next 30 minutes). The prompt takes those keys for itself, so a hold types nothing into the focused app. Only the human can give the standing approval; while it stands no prompt is shown and the reply's `consent` field reads `standing-approval`, `status` carries `standingApprovalSeconds`, and ⌃⌥⇧⎋ ends it. When a chain of consent-gated work is ahead, say so in your `busy on --goal` so the human can choose A at the first prompt. `--confirm` asserts the human already approved this in your harness — never pass it to get past a refusal; `consent` then reads `asserted-by-caller`. Hardware delivery additionally needs `--allow-hardware-input`.
- Every reply carries `presence` (`state`, `mayTakeCursor`, `canSee`, `advice`). A human arriving mid-task is visible on the next answer.
- **Tell the human where you are, and say when you are finished.** Only you can end a session on the presence panel; between your calls it reads **Thinking**. So: (1) declare a goal first — `busy on --goal "<what you're trying to do>" [--steps "a|b|c"]` (≤120 chars; `--note` is an alias; say the purpose, "testing the new login flow", not the mechanism), and `busy step` as you move on; (2) batch a sequence you already know — a form fill — as one `plan`: the panel shows its steps, runs them with no Thinking between, and ends Done; (3) mark the last action of a chain `--done` (or call `busy off [--result "<outcome>"]`), so the panel goes Done and fades — its disappearance means "nothing more is coming". `busy wait --for "<what>" [--seconds N]` releases the screen while you wait on something that isn't UI (a build, an API call); the panel comes back with your next action or step. A wait *on the UI* is `wait --label …`, which the panel narrates. Give acting commands a `--why "<this action's purpose>"` (≤120 chars) — the headline when no goal was declared. After 60 s of silence the panel says so; at 90 s it ends by itself — 20 s when you never called `busy on`.
- **The human keeps their Mac.** Input they make while you act is watched (kinds and timing, never content). During hardware input any touch of theirs stops the remaining payload (`humanInput.stopped`); during ghost work, their clicks or keys in your target app mark a confirmation `attribution: mixed`.
- **⌃⌥⇧⎋ is the emergency stop.** It halts the engine mid-action. Afterward every acting/perceiving verb is refused with "halted by the human"; `status`/`activity` still answer with `halted: true`. **Resume is a button in the menu-bar popover and nothing else — no socket verb can clear the halt.** If your verbs are suddenly refused with that message, stop and wait; do not look for a workaround.

→ The refusal catalog (each refusal, the flag that permits it, why it exists) and the presence model: **reference/presence-and-refusals.md**
→ Isolation — the virtual display as a lease, `park`, the park-then-hardware pattern, and the agent session (`session`): **reference/isolation.md**

## Environment facts that trip agents

- **Display asleep is blindness; a locked screen is not.** When the display sleeps every tree collapses to the app element — perception verbs answer "I cannot see", acting verbs wake it first. A locked screen with an awake display is harmless: full trees, ghost input works, only hardware input is refused. The login window, SecurityAgent, and the screen saver are refused as targets by name or pid — a lock is worked through, never talked past.
- **Background apps**: ghost delivery is dependable for accessibility writes and unicode text, best-effort for menu presses (AppKit never validates background menus). When the verdict matters on a background AppKit app, `activate` it first.
- **Electron/Chromium ignore posted keycodes** — `type` (unicode) and `shortcut` (menu item) work; a bare `key` keycode does not.
- **A press that quits/restarts its app** verifies by the process exiting, reported `confirmed`; check `apps` before retrying anything quit-shaped.

→ The rest (the display hold, the demo stage for practice, "could not reach Rocuronium.app"): **reference/environment.md**

Files in this skill

  • SKILL.md8.1 KB
  • reference/acting.md15.5 KB
  • reference/environment.md2.7 KB
  • reference/isolation.md2.9 KB
  • reference/plans.md2.4 KB
  • reference/presence-and-refusals.md4.8 KB
  • reference/reply-contract.md5.7 KB
  • reference/targeting-and-observing.md13.3 KB
  • reference/vision.md2.1 KB

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 ai-agents →

Comments

Loading comments…

Newsletter

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