baibairui/woclaw/macos-gui-skill
Claude Code and agent skill by baibairui/woclaw
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Use when tasks require operating desktop applications on macOS and need screenshot-guided GUI actions.
Install
npx vskill@latest install baibairui/woclaw/macos-gui-skillSKILL.md
The same SKILL.md was published earlier as baibairui/woclaw/macos-gui-skill.
macOS GUI Skill
When the user asks for desktop application operations, run the bundled script in this skill for local macOS execution. Use the script path relative to this skill directory so any agent client that loads the skill can call it directly.
Workflow:
- Start with
node ./scripts/macos-gui-skill.mjs observeto collect visual evidence. - Build one
actbundle with2-5small GUI actions only when the next steps are obvious from the screenshot. - Run
observeagain immediately after the bundle to confirm the result. - Use the loop
observe -> act -> observeuntil the task is complete. - Do not start with
run-shellorrun-applescript; keep them only as escape hatches after repeated visual ambiguity or explicit user instruction.
Runtime:
- local macOS execution from the current workspace
- the host terminal needs Accessibility and Screen Recording permission
- AppleScript-based app activation may also prompt Automation permission
- screenshots are stored under
./.codex/artifacts/desktop/
Examples:
node ./scripts/macos-gui-skill.mjs observe --label inbox --show-cursor truenode ./scripts/macos-gui-skill.mjs observe --active-window truenode ./scripts/macos-gui-skill.mjs observe --region 10,20,300,400node ./scripts/macos-gui-skill.mjs act --steps '[{"type":"activate-app","appName":"Finder"},{"type":"hotkey","keys":["Meta","n"]}]'node ./scripts/macos-gui-skill.mjs click --x 640 --y 420 --button leftnode ./scripts/macos-gui-skill.mjs screenshot --filename desktop-step.png --show-cursor truenode ./scripts/macos-gui-skill.mjs doctornode ./scripts/macos-gui-skill.mjs list-windowsnode ./scripts/macos-gui-skill.mjs window-bounds --app-name Findernode ./scripts/macos-gui-skill.mjs locate-image --image ./button-template.png --active-window truenode ./scripts/macos-gui-skill.mjs locate-image-center --image ./button-template.png --source-image ./capture.pngnode ./scripts/macos-gui-skill.mjs run-applescript --script 'tell application "Finder" to activate'node ./scripts/macos-gui-skill.mjs run-shell --command 'open -a "System Settings"'
Rules:
- Operate the frontmost visible application only.
- Treat every
observeresult as visual evidence. Do not guess the UI state from stale memory. - Prefer
observe --active-window trueorobserve --region ...when full-screen captures include irrelevant context. - Use
list-windowsorwindow-boundsto learn the current window layout before narrowing the capture area. - Run
doctorbefore deciding thatactis unavailable or before switching to shell or AppleScript fallbacks. - Do not claim the skill "lacks dependencies" unless
doctorexplicitly reportsactReady: falseand identifies the blocker. - Do not switch to system-level UI scripts just to probe the environment. Use
doctoras the single source of truth for dependency and permission readiness. - Use
locate-imageorlocate-image-centerwhen the next action depends on finding a stable visual template in a PNG screenshot. - Use
actfor the default path. Each bundle should stay inside one obvious focus chain and contain only GUI actions. - If the host window steals focus between invocations,
observeandactrestore the remembered target app before continuing. - Do not start with
run-shellorrun-applescript. If shell or AppleScript is required, use them only after repeated visual ambiguity or explicit user instruction. - If a search box or command palette keeps focus, dismiss it with
press-key --key Esc, verify it closed, and only then type into the main surface. - If the next action is ambiguous, stop and ask for user direction.
- Before send/delete/submit/payment or other irreversible actions, request confirmation if the user did not state it explicitly.
- If an action fails twice, stop and report the current frontmost app and latest screenshot path.
Observation return fields:
pathandlocal_image_pathfor the captured imagefrontmostAppscreenSizecaptureRegioncoordinateSpacepermissions
Doctor return fields:
actReadyblockersfallbackPolicypermissionsdependencies
Template matching notes:
locate-imagereturnsfound,confidence,boundingBox, andcenter.locate-image-centerreturnsfound,confidence, andcenter.- Both commands accept
--source-imagefor an existing PNG or will take a fresh screenshot if omitted. - Both commands perform PNG template matching only. They do not read text from the UI.
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 repositoryCheckingCodexWorkspace/users/ou-0f4011a1f907740fded0405e61c57292-af23cb4a/agents/default/.codex/skills/macos-gui-skill/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/baibairui/woclaw/macos-gui-skill)