macos-gui-skill
星标1
分支1
更新时间2026年3月15日 16:29
Use when tasks require operating desktop applications on macOS and need screenshot-guided GUI actions.
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Use when tasks require operating desktop applications on macOS and need screenshot-guided GUI actions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | macos-gui-skill |
| description | Use when tasks require operating desktop applications on macOS and need screenshot-guided GUI actions. |
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:
node ./scripts/macos-gui-skill.mjs observe to collect visual evidence.act bundle with 2-5 small GUI actions only when the next steps are obvious from the screenshot.observe again immediately after the bundle to confirm the result.observe -> act -> observe until the task is complete.run-shell or run-applescript; keep them only as escape hatches after repeated visual ambiguity or explicit user instruction.Runtime:
./.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:
observe result as visual evidence. Do not guess the UI state from stale memory.observe --active-window true or observe --region ... when full-screen captures include irrelevant context.list-windows or window-bounds to learn the current window layout before narrowing the capture area.doctor before deciding that act is unavailable or before switching to shell or AppleScript fallbacks.doctor explicitly reports actReady: false and identifies the blocker.doctor as the single source of truth for dependency and permission readiness.locate-image or locate-image-center when the next action depends on finding a stable visual template in a PNG screenshot.act for the default path. Each bundle should stay inside one obvious focus chain and contain only GUI actions.observe and act restore the remembered target app before continuing.run-shell or run-applescript. If shell or AppleScript is required, use them only after repeated visual ambiguity or explicit user instruction.press-key --key Esc, verify it closed, and only then type into the main surface.Observation return fields:
path and local_image_path for the captured imagefrontmostAppscreenSizecaptureRegioncoordinateSpacepermissionsDoctor return fields:
actReadyblockersfallbackPolicypermissionsdependenciesTemplate matching notes:
locate-image returns found, confidence, boundingBox, and center.locate-image-center returns found, confidence, and center.--source-image for an existing PNG or will take a fresh screenshot if omitted.