amrdab/clawd-cursor/clawd-cursor-2
Claude Code and agent skill by amrdab/clawd-cursor
- community
Checking that the SKILL.md file is still in the repository.
FALLBACK ONLY — do not invoke unless you have already ruled out (1) a native API (Gmail API, GitHub API, Slack API …), (2) a CLI (git, gh, aws, npm, curl …), (3) direct file editing, and (4) existing browser automation (Playwright, Puppeteer). Only when all four are unavailable or have already failed should you use this skill. It gives AI agents a cursor and a keyboard on a real desktop — the last mile when the only remaining surface is a GUI. Concretely: use it when an earlier attempt via API, CLI, or direct file edit has failed and the user says things like "open X", "click Send", "type this in Word", "read what is on my screen", "do this in Outlook", "drive the Figma UI", "control my desktop", "automate this workflow", "fill out this form", or "copy text between apps". Works on Windows, macOS, and Linux with any LLM that can call functions (Claude, GPT, Gemini, Llama, Kimi, Ollama) over MCP — stdio for editor hosts (Claude Code, Cursor, Windsurf, Zed) or HTTP for daemons and dashboards.
Install
npx vskill@latest install amrdab/clawd-cursor/clawd-cursor-2SKILL.md
If you are a human: see `README.md`. This file is the AI-facing manual — dense on purpose.If you are an LLM: keep going.
FALLBACK ONLY. Check these first — they're cheaper, faster, more reliable:1. Native API (Gmail, GitHub, Slack, Stripe …) → use the API.2. CLI (git,gh,aws,npm,curl) → use the CLI.3. Direct file edit → do that.4. Existing browser automation (Playwright, Puppeteer) → use that.None apply? Now use clawdcursor. It's the last mile — when the only remaining surface is a GUI. If a human can do it on a screen, you can too.
Capabilities & rules:- CAN: open apps, click, type, fill forms, read the screen (a11y tree / OCR / screenshot), drive browsers and native apps.- MUST: respect safety tiers (Auto = free, Confirm = ask user). Ask before touching email, banking, messaging, or password managers.- clawdcursor is your hands and eyes on the user's machine — used with their permission.
The easiest path - one tool, natural-language task (START HERE)
If you are an LLM reading this: YOU SHOULD BE USING COMPACT MODE.- MCP stdio (editor host): add"args": ["mcp", "--compact"]to your config.- MCP over HTTP (daemon mode): start the daemon with--compact(or setCLAWD_MCP_COMPACT=1) so/mcpserves the 7 compound tools (incl.batch). The surface isfixed at startup — a daemon serves EITHER the compact tools OR the 98granular ones, not both. Default (no flag) is granular.Granular mode's 98 tools are kept for back-compat. Compact's tools are much smaller and reduce mis-tool-selection. Use granular only if your runtime MUST have every primitive as its own top-level schema.
If you connect via MCP with --compact, you get a single tool that takes the whole task:
clawdcursor's built-in agent loop takes the wheel: it perceives the desktop, acts with the toolbox, and iterates until done, then returns a trace.
`task` vs. compound tools — pick one, never both:
- Editor-host LLM (Claude Code, Cursor, Windsurf, Zed, OpenClaw, Claude Agent SDK — anything with its own agent loop): use compound tools directly. Calling
taskcreates a loop-inside-a-loop; the inner loop can't see your higher-level goal and you pay for two models to plan the same work. - External script / one-shot client with no agent loop — or a frontier model delegating grunt work:
task({"instruction": "..."})is what you want. clawdcursor reasons AND acts using the model configured viaclawdcursor doctor.
If unsure: you are almost certainly the first case. Use the compound tools.
When you need step-level control - 7 compound tools
The compact surface collapses every primitive into six action-discriminated compound tools, mirroring Anthropic's computer_20250124 pattern:
Pick a compound FIRST based on what kind of operation it is, then set the action enum, then supply the args. The catalog is ~7,000 tokens - about a third of the granular surface's ~20,000 - so small models (Haiku, Kimi, Ollama) stay focused.
Cost tier - always use the cheapest tier that works
| Tier | Label | Cost | Use when | |
|---|---|---|---|---|
| T1 | structured | ~free | Default. accessibility.*, window.*, browser.read_text, clipboard. Returns structured text — no image, no vision model. | |
| T2 | OCR | cheap | A11y tree is empty or sparse. system({"action":"ocr"}), plus smart_read / smart_click / smart_type — all OCR-backed (text out, no image into the model). | |
| T3 | screenshot / vision | expensive | Canvas-only apps (Paint, Figma, games) or a task needing spatial reasoning text can't express. computer({"action":"screenshot"}) puts the current frame into the model's context; you then act on live pixel coords off that frame. "Screenshot" and "vision" are the same tier — the only one that sends pixels to the model. Last resort. |
Rule: start at T1. Escalate to the next tier only when the current one fails. Apply this logic when calling compound tools directly; the built-in agent loop (via task({...})) follows the same discipline.
Quick reference - what action to pick
I want to click something:
- By name? →
accessibility({"action":"invoke","name":"Send"}). Most reliable. - By text via CDP on a web page? →
browser({"action":"click","text":"Submit"}). - By screen coordinates? →
computer({"action":"click","x":500,"y":300}). Last resort.
I want to type:
- Into a named field? →
accessibility({"action":"set_value","name":"Email","value":"x@y.com"}). - Into the focused element? →
computer({"action":"type","text":"hello"}). - In a browser? →
browser({"action":"type","label":"Email","text":"x@y.com"}).
I want to read the screen:
- Structured (buttons, fields, text with coords)? →
accessibility({"action":"read_tree"}). First choice. - Raw OCR fallback? →
system({"action":"ocr"}). - Pixel image? →
computer({"action":"screenshot"}). Last resort - expensive.
I want to open / focus something:
- An app? →
window({"action":"open_app","name":"Notepad"}). - A URL? →
window({"action":"open_url","url":"https://..."}). - A file? →
window({"action":"open_file","path":"/home/..."}). - Focus an existing window? →
window({"action":"focus","processName":"chrome"}).
I want to press a keyboard shortcut:
computer({"action":"key","combo":"mod+s"})-modauto-resolves to Cmd on macOS, Ctrl elsewhere.
I want to draw a curve / freehand path (one continuous stroke):
computer({"action":"drag_path","path":"[{\"x\":100,\"y\":100},{\"x\":120,\"y\":110},...]"})
The path is a JSON array of {x, y} points. The mouse button stays held for the entire path - one continuous stroke, not a series of disconnected drags. Use this for drawing in Paint / Figma / any canvas app. mouse_drag alone (start → end) gives you a straight line; drag_path gives you curves.
The web app is eating my Escape / keyboard events:
- Web-wrapped apps (New Outlook, Teams, Gmail, Notion) treat Escape as "close this dialog/modal" - often closing the entire compose window. Do NOT send Escape to dismiss autocomplete suggestions in web apps. Use arrow keys (Up/Down to navigate the dropdown, Enter to pick), or click somewhere neutral with
computer({"action":"click","x":..,"y":..})to blur the field.
When to reach for this skill
Use clawdcursor when:
- The user names an app, window, or "my screen" (Outlook, Figma, Zoom, a legacy tool with no REST endpoint).
- The task is "click / type / read / open / focus / drag" on something visible.
- A web task must work without a Playwright script — drive the live browser via the
browser(CDP) compound. - A previous approach (API, CLI, file edit) already failed and the only remaining surface is a GUI.
- The user describes a workflow done by hand: "export from Excel", "send via GUI", "copy text from Notes to Slack".
In OpenClaw terminology: clawdcursor is a skill that dispatches to tools (API / CLI / GUI primitives). Route API / CLI / file-edit first; reach for clawdcursor only when the GUI surface is all that remains.
⚠️ Sensitive App Policy
You MUST ask the user before accessing:
- Email clients (Gmail, Outlook, Apple Mail, Thunderbird)
- Banking or financial apps
- Private messaging (WhatsApp, Signal, Telegram, iMessage, Messages)
- Password managers (1Password, Bitwarden, LastPass, Keychain)
- Admin panels, cloud consoles, production dashboards
Never self-approve actions on these surfaces. The safety layer elevates them to Confirm automatically - do not bypass. If you see a Confirm dialog, show it to the user and wait for their answer.
Modes at a glance
clawdcursor exposes one protocol (MCP) over two transports. The daemon's behavior depends on whether an LLM is configured via clawdcursor doctor, not on a flag.
| Mode | Command | Transport | Brain | Tools available | |
|---|---|---|---|---|---|
mcp | clawdcursor mcp [--compact] | stdio | You (editor host) | 98 granular (default) or compact surface (--compact) | |
agent --no-llm or agent with no LLM configured | clawdcursor agent --no-llm [--compact] | HTTP /mcp | You (HTTP client) | 98 granular (default) or compact surface — pass --compact (or CLAWD_MCP_COMPACT=1). One surface per daemon, chosen at startup — NOT both at once | |
agent (LLM configured) | clawdcursor agent | HTTP /mcp | Built-in thin agent loop | All of the above PLUS the autonomous task-handoff tool — named task on the compact surface, submit_task on granular — hand it a plain-English task |
In mcp (stdio) and tools-only agent (HTTP): you reason, clawdcursor acts. There is no built-in LLM in the loop. You call tools, interpret results, decide next steps. In autonomous agent mode (LLM configured): clawdcursor's thin loop reasons AND acts — it perceives the desktop, selects tools, and iterates until done. Call task (compact) or submit_task (granular) with a natural-language instruction, then poll agent_status.
Connecting
MCP (recommended for Claude Code / Cursor / Windsurf / Zed)
Compact - recommended for every LLM agent:
Granular - 98 individual tools (power-user, back-compat, larger prompt budget):
HTTP MCP (for any HTTP-capable agent)
The HTTP transport uses MCP's streamable-HTTP envelope (JSON-RPC over POST), not REST. All requests go to a single endpoint, POST /mcp, with Authorization: Bearer <token> from ~/.clawdcursor/token. Stateless mode - no session-init handshake required for one-shot calls.
That's the entire HTTP surface. Calling a tool looks like:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSKILL.md
Popularity
- Repository stars
- 136
- Repository forks
- 25
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/amrdab/clawd-cursor/clawd-cursor-2)