using-mac

A guide for controlling a remote Mac test computer through screenshots, mouse and keyboard input, shell commands, files, processes, and AppleScript.

In plain words
What is it for?
Use it to inspect the Mac screen, click and type, run long shell commands, manage files and processes, automate with AppleScript, and coordinate access to the test machine.
Why use it?
It helps automate and test Mac applications while accounting for macOS permissions, screen scaling, keyboard shortcuts, and exclusive access between users.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/metahub-tech/agent-fleet/using-mac
Any agent
npx skills add metahub-tech/agent-fleet --skill using-mac
Clone the repo
git clone --depth 1 https://github.com/metahub-tech/agent-fleet

Made for: Claude Code, Codex.

Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,669 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00056 $0.02669
Opus 5 $0.00028 $0.01334
Sonnet 5 $0.00011 $0.00534
Haiku 4.5 $0.00006 $0.00267

Measured 2d ago against content hash 7b3ead2d98c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

using-mac scanned grade A with 1 finding 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 2d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

# 1. Strip Gatekeeper quarantine if downloaded via browser/Safari (curl
platforms/macos/skills/using-mac/SKILL.md · 189 lines

How it starts

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

Using mac-device

Drive a remote Mac test machine via the mac-device MCP server (FastMCP, streamable-http on Tailscale, port 8767). Multi-client native; advisory single-holder coordination; 41 tools spanning state / screen / mouse / keyboard / process / file / search / zsh / AppleScript.

Critical patterns

Screenshot pixels == click pixels (logical / point space)

take_screenshot is sized to logical pixels (e.g. 1440x900 on a Retina MacBook), matching tap(x, y) and get_screen_size. So coordinates from a screenshot can be passed directly to tap without scaling. This is implemented server-side: the raw ImageGrab capture is physical (2880x1800) but the tool resizes before returning.

get_screen_size                       # {"width": 1440, "height": 900}  -- logical
take_screenshot                        # PNG also at 1440x900
tap(x=720, y=450)                      # center; same space as screenshot

If taps miss anyway: usually a permission issue, NOT a coordinate issue. Verify Accessibility is granted (System Settings > Privacy & Security > Accessibility shows Python.app, switch on).

macOS modifiers: cmd, not ctrl

press_key("cmd+s") saves; press_key("cmd+space") opens Spotlight. paste_text already uses Cmd+V internally. Modifier aliases:

You write pyautogui receives
cmd command
option / alt option
ctrl ctrl
shift shift

Long-running tasks: start_process, NOT run_shell

run_shell caps at 60s (max 600s). For builds, installs, slow networks:

{pid} = start_process(command="...", shell="zsh")
read_process_output(pid=..., offset=-200, length=200)   # tail; poll periodically
force_terminate(pid)                                     # if abandoned
list_sessions()                                          # see all started_process slots

run_shell is fine for one-shot < 60s commands like date, port checks, simple file moves.

Controlling other apps: run_applescript

Read the full file on GitHub · 189 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. 2d ago First seen · 189 lines · 56 tokens per session scan A 7b3ead2d98c1

Subscribe to this mod's changes

using-mac is a skill published in the GitHub repository metahub-tech/agent-fleet (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 56 tokens to every session and 2,669 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

smoke-test

End-to-end smoke test skill for DeerFlow. Guides through: 1) Pulling latest code, 2) Docker OR Local installation and deployment (user preference, default to Local if Docker network issues), 3) Service availability verification, 4) Health check, 5) Final test report. Use when the user says "run smoke test", "smoke…

bytedance/deer-flow · 0 tokens

inspector-workbench

Runs Inspector UI work on the standalone Threads state lab so the agent can see the overlay. Use when a CopilotKit employee asks an agent to fix, polish, add, or debug Inspector UI, chrome, panes, overlay actions, launcher, Home, Threads, Playground, Memory, or any visual behavior in @copilotkit/web-inspector. Don't…

CopilotKit/CopilotKit · 112 tokens

develop-web-game

Use when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-based test script with short input bursts and intentional pauses, inspect screenshots/text, and review console errors with rendergametotext.

netease-youdao/LobsterAI · 64 tokens

langbot-testing

Test LangBot WebUI and core product flows with an automated browser and backend logs. Use when validating the configured LangBot frontend, pipeline Debug Chat, model provider setup and test buttons, bot and knowledge-base UI flows, or troubleshooting failed LangBot end-to-end tests.

langbot-app/LangBot · 58 tokens

pod-e2e

ONLY for developing Kiro Crew itself -- if the project you are working on is anything else, ignore this skill: it drives Kiro Crew's own pod tooling, which does not exist in another repository. Runs end-to-end tests (backend API + frontend Playwright) for a Kiro Crew feature worktree against an ISOLATED throwaway pod…

kirodotdev/KiroCrew · 147 tokens

sanity-check

Run the deferred AgentOS E2E smoke test from public npm packages. Use when the user asks to sanity check, smoke test, or verify a release works.

rivet-dev/agentos · 37 tokens