computer-use-macos

computer-use-macos is a skill for Claude Code, Codex from XiaoLuoLYG/GOD. It costs 53 tokens per session (4,074 once invoked), scanned A, original, Apache-2.0.

A macOS desktop control skill for observing application windows and using their controls through computer-use tools.

In plain words
What is it for?
It helps inspect windows and menus, select applications by name or identifier, capture views, and click or type through the computer-use interface.
Why use it?
It removes the need to manually translate every desktop action into instructions and supports work on a shared or remote Mac.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps inspect windows and menus, select applications by name or identifier, capture views, and click or type through the computer-use interface.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xiaoluolyg/god/computer-use-macos
About the project

GOD is a control room for observing and directing societies of language-model agents running in simulated worlds. It lets researchers inspect replays, question individual agents, alter future events, reset simulations, and export experiments for reuse. The catalogue entries are skills and agents for operating and investigating these simulations.

XiaoLuoLYG/GOD · 1,294 stars · on GitHub · xiaoluolyg.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add XiaoLuoLYG/GOD --skill computer-use-macos
Clone the repo
git clone --depth 1 https://github.com/XiaoLuoLYG/GOD

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for computer-use-macos

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaoluolyg/god/computer-use-macos/github.svg)](https://agentmods.dev/skills/xiaoluolyg/god/computer-use-macos)
Your own site
<a href="https://agentmods.dev/skills/xiaoluolyg/god/computer-use-macos"><img src="https://agentmods.dev/badge/skills/xiaoluolyg/god/computer-use-macos/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for computer-use-macos

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaoluolyg/god/computer-use-macos"><img src="https://agentmods.dev/badge/skills/xiaoluolyg/god/computer-use-macos.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,074 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.04074
Opus 5.5 $0.00021 $0.01630
Sonnet 5.5 $0.00011 $0.00815
Haiku 4.5 $0.00005 $0.00407

Measured 18d ago against content hash ac7e0ba80ff8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

computer-use-macos scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

jiuwenclaw/jiuwenswarm/cua_engine/skills/computer-use-macos/SKILL.md · 196 lines

How it starts

The opening of the file, as written. The whole thing — 196 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Computer Use — macOS

macOS environment

App selectors accept observed IDs, application names, bundle IDs such as com.apple.calculator, and app paths. super is Command; typical shortcuts include super+s and super+o.

Reading and capturing a window do not activate the app. Apps may activate themselves during launch or UI actions.

Application menus can also be read for freshly observed windowless apps. Window captures may expose an overview of related windows; use each window’s own capture for coordinates.

If the user stops sharing a window, pause and ask before resuming.

Call computer_use({"title": title, "code": code}) with Python and top-level await. Use a short title in the user's language describing the intended action.

The environment provides computer, print(*values) and printImage(png). Variables persist between calls. Await operations sequentially. Reads present text; actions present receipts only. Use print() for other values and printImage() for screenshots. The final expression is not printed automatically.

Session cleanup

Call the separate MCP tool computer_use_reset({}) when finished using the computer, or when a fresh Python environment is needed. Do not put this call inside Python or call it between normal task steps. It clears variables, imports, timers, App/Element handles and observation baselines, and waits for this session’s native capture streams to stop. Recreate handles and read again afterwards. It leaves apps, documents, files, saved packages and completed actions intact; it does not undo anything or erase conversation history.

API surface

from __future__ import annotations
from typing import Literal, TypedDict

class Computer:
    # A handle; its first read observes or launches the app.
    def app(self, selector: str) -> App: ...
    async def listApps(self) -> list[AppInfo]: ...
    # Desktop window catalogue and PNG; does not launch apps or require AX.
    async def read(self, options: DesktopReadOptions = {}) -> Observation: ...
    # Desktop input requires exclusive mode and desktop PNG coordinates.
    async def click(self, x: float, y: float, options: ClickOptions = {}) -> ActionResult: ...
    async def scroll(self, x: float, y: float, direction: ScrollDirection, pages: float = 1) -> ActionResult: ...
    async def drag(self, options: DragOptions) -> ActionResult: ...
    async def typeText(self, text: str) -> ActionResult: ...
    async def pressKey(self, key: str) -> ActionResult: ...

class App:
    # Fixed working window and blocking dialogs; {"full": True} forces full presentation.
    async def read(self, options: ReadOptions = {}) -> Observation: ...
    def window(self, ref: str) -> App: ...  # Fixed separate view; no activation.
    def element(self, ref: str) -> Element: ...  # Observed decimal ref, e.g. "42".
    def find(self, path: ElementPath, options: FindOptions = {}) -> Element: ...
    async def click(self, x: float, y: float, options: ClickOptions = {}) -> ActionResult: ...
    async def scroll(self, x: float, y: float, direction: ScrollDirection, pages: float = 1) -> ActionResult: ...
    async def drag(self, options: DragOptions) -> ActionResult: ...
    # Current responder; use Element for a known input target.
    async def typeText(self, text: str) -> ActionResult: ...
    async def paste(self, text: str) -> ActionResult: ...
    async def pressKey(self, key: str) -> ActionResult: ...

class Element:
    async def read(self, options: ElementReadOptions = {}) -> Observation: ...  # Live subtree.
    async def readText(self, options: ReadTextOptions = {}) -> TextPage: ...
    async def click(self, options: ClickOptions = {}) -> ActionResult: ...
    async def openMenu(self) -> ActionResult: ...  # Declared menu, not the primary action.
    async def performAction(self, action: str) -> ActionResult: ...  # Exact Secondary Actions label/name.
    async def scroll(self, direction: ScrollDirection, pages: float = 1) -> ActionResult: ...
    async def focus(self) -> ActionResult: ...
    async def typeText(self, text: str, options: TypeTextOptions = {}) -> ActionResult: ...
    async def paste(self, text: str) -> ActionResult: ...
    # Window/dialog elements address that window's current responder.
    async def pressKey(self, key: str) -> ActionResult: ...

# Read-only result attributes; they also support dictionary key access.
class Observation:
    text: str  # Full compact view of this bounded observation, never a diff.
    details: str  # Captured native facts, actions and relations; no new UI read.
    screenshot: bytearray | None
    overview: bytearray | None  # Multi-window context, not App input coordinates.
class AppInfo:
    id: str
    displayName: str
    isRunning: bool
class ActionResult:
    status: Literal["dispatched", "verified"]
    detail: str
class TextPage:
    text: str
    offset: int  # UTF-16 code units.
    total: int
    next: int | None
class ComputerUseError(Exception):
    code: Literal["stale_target", "snapshot_expired", "ambiguous_target", "blocked_by_modal",
                  "element_not_found", "observation_incomplete", "input_unavailable",
                  "mode_unsupported", "desktop_unavailable", "invalid_request",
                  "execution_failed", "execution_unknown"]
    effect: Literal["none", "possible", "partial"]
    target: str
    detail: str
    next: str

# Options are dictionaries. All fields are optional except DragOptions.
DesktopReadOptions = TypedDict("DesktopReadOptions", {"full": bool}, total=False)
ReadOptions = TypedDict("ReadOptions", {"full": bool, "menuPath": list[str]}, total=False)
FindOptions = TypedDict("FindOptions", {"timeoutMs": int}, total=False)
ElementReadOptions = TypedDict("ElementReadOptions", {"offset": int, "cursor": str}, total=False)  # Use one, as printed by read.
ReadTextOptions = TypedDict("ReadTextOptions", {"offset": int, "length": int}, total=False)
TypeTextOptions = TypedDict("TypeTextOptions", {"replace": bool}, total=False)
ClickOptions = TypedDict("ClickOptions", {"button": Literal["left", "right", "middle"],
                                       "count": Literal[1, 2]}, total=False)  # Default left, 1.
DragOptions = TypedDict("DragOptions", {"fromX": float, "fromY": float, "toX": float, "toY": float})
ElementMatch = TypedDict("ElementMatch", {"role": str, "name": str, "identifier": str}, total=False)
ElementPath = list[str | ElementMatch]
ScrollDirection = Literal["up", "down", "left", "right"]

Read the full file on GitHub · 196 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago First seen · 196 lines · 53 tokens per session scan A ac7e0ba80ff8

Subscribe to this mod's changes

computer-use-macos is a skill published in the GitHub repository XiaoLuoLYG/GOD (1,294 stars, last pushed 6d ago), licensed Apache-2.0. It adds 53 tokens to every session and 4,074 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-13.

Related

computer-use-macos compared with skills from other repositories

computer-use-macos next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
computer-use-macosXiaoLuoLYG/GODSkill1.3k6d agoApache-2.0A53Claude Code, Codex
e2atokencanopy/e2aSkill201todayApache-2.0A64Claude Code
hr-assistantzj-unicom-ai/UniEmployeeSkill88710d agoMITA45Claude Code, Codex
taskuary-setupldbumble/taskuarySkill155todayMITA58Claude Code, Codex
yesmem-cap-buildercarsteneu/yesmemSkill4714d agoApache-2.0A81Claude Code, Codex
meeting-copilotyohey-w/kagemushaSkill162d agoMITA309Claude Code, Codex
meeting-boardyohey-w/kagemushaSkill162d agoMITA453Claude Code, Codex