macwright: Skill for Claude Code

.claude/macwright-skills/skills/macwright-dev/SKILL.md

macwright-dev is a skill for Claude Code from ruchit-p/macwright. It costs 89 tokens per session (1,290 once invoked), scanned A, original, MIT.

Development instructions for MacWright MCP, a server that exposes tools for controlling a Mac, Safari, the keyboard, the mouse, the clipboard, and notifications. They describe its source layout and available tool areas.

In plain words
What is it for?
Use them when developing or testing MacWright, including browser navigation, screen capture, clicking, typing, scrolling, shell commands, AppleScript, and tool verification.
Why use it?
They help an agent find the right code and understand how to add or fix automation tools without breaking existing behavior.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

This is ruchit-p/macwright's own configuration. It tells Claude Code how to work on macwright itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything macwright configures →

Part of the macwright-skills plugin — 3 skills shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to ruchit-p/macwright. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ruchit-p/macwright/master/.claude/macwright-skills/skills/macwright-dev/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ruchit-p/macwright

Made for: Claude Code.

Or install macwright-skills, the plugin that ships this one along with the rest of its 3 skills.

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 macwright-dev

README.md
[![agentmods](https://agentmods.dev/badge/skills/ruchit-p/macwright/macwright-dev/github.svg)](https://agentmods.dev/skills/ruchit-p/macwright/macwright-dev)
Your own site
<a href="https://agentmods.dev/skills/ruchit-p/macwright/macwright-dev"><img src="https://agentmods.dev/badge/skills/ruchit-p/macwright/macwright-dev/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 macwright-dev

Your own site · 80×15
<a href="https://agentmods.dev/skills/ruchit-p/macwright/macwright-dev"><img src="https://agentmods.dev/badge/skills/ruchit-p/macwright/macwright-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,290 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.00089 $0.01290
Opus 5.5 $0.00036 $0.00516
Sonnet 5.5 $0.00018 $0.00258
Haiku 4.5 $0.00009 $0.00129

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

Security

Grade A, and why

macwright-dev 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 1mo 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.

.claude/macwright-skills/skills/macwright-dev/SKILL.md · 113 lines

How it starts

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

MacWright MCP Server Development

Project Structure

macwright/
├── src/
│   ├── index.ts          — Server entry, registers all tools
│   └── tools/
│       ├── mouse.ts      — click, double_click, right_click, move_mouse, get_mouse_position, drag
│       ├── keyboard.ts   — type_text, press_key
│       ├── screenshot.ts — screenshot (supports x,y,width,height region capture)
│       ├── screen.ts     — get_screen_size
│       ├── scroll.ts     — scroll
│       ├── shell.ts      — run_shell (spawn-based, supports stdin input, timeout, cwd)
│       ├── safari.ts     — safari_url, safari_js, safari_navigate_back, safari_reload,
│       │                   scroll_page, find_element, click_element, wait_for_element,
│       │                   get_page_text, fill_form, get_element_attr, screenshot_element,
│       │                   safari_tabs
│       ├── clipboard.ts  — get_clipboard, set_clipboard
│       ├── applescript.ts — run_applescript
│       ├── notification.ts — send_notification
│       └── wait.ts       — wait
├── src/utils/
│   ├── exec.ts           — execCommand helper
│   └── capture.ts        — afterAction (wait + screenshot chaining)
└── dist/                 — Compiled JS (auto-generated)

Build & Test Workflow

npm run build   # TypeScript → dist/

CRITICAL: After npm run build, the MCP server process must be restarted to pick up new tools. The server runs from dist/index.js — changes only take effect after restart + rebuild. The Claude Code IDE integration will restart on reconnect.

To verify a new tool works: use run_applescript to test the underlying AppleScript first (no restart needed), then rebuild and use the actual MCP tool after restart.

Adding a New Tool

  1. Find the appropriate src/tools/*.ts file (or create one)
  2. Add server.registerTool(name, schema, handler) call
  3. Export the registration function from the file
  4. Import and call it in src/index.ts if new file
  5. npm run build
  6. Test via AppleScript equivalent first to validate logic

Read the full file on GitHub · 113 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. 1mo ago First seen · 113 lines · 89 tokens per session scan A eb2d8c4f0733

Subscribe to this mod's changes

macwright-dev is a skill published in the GitHub repository ruchit-p/macwright (0 stars, last pushed 2mo ago), licensed MIT. It adds 89 tokens to every session and 1,290 once invoked, about $0.0004 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-08-31.