← Back to Skills Marketplace
pry520okgpt

macOS Desktop Control Enhanced

by PRY520OKGPT · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
88
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install macos-desktop-control-enhanced
Description
macOS Desktop Control Enhanced provides system-wide desktop automation on macOS, including screenshot capture, process management, clipboard operations, syst...
README (SKILL.md)

When to Use This Skill

  • You need to capture the screen or a region programmatically.
  • You need to query or control running processes.
  • You need to read or modify the clipboard content.
  • You need to retrieve system information (e.g., battery level, OS version).
  • You need to open, focus, or close applications by bundle ID.
  • You need to move the mouse, click, drag, or simulate keyboard input.
  • You need to integrate macOS desktop automation into larger workflows (e.g., testing, data collection, accessibility).

Overview

macOS Desktop Control Enhanced offers the following core capabilities:

1. Screenshot

  • screenshot([options]) – Capture the entire screen or a specified region; returns image path.

2. Process Management

  • get_front_process() – Returns information about the currently frontmost process.
  • kill_process(pid) – Terminates the process with the given PID.
  • launch_app(bundle_id) – Launches an application identified by its bundle ID.

3. Clipboard

  • get_clipboard() – Retrieves current clipboard text.
  • set_clipboard(text) – Overwrites the clipboard with the given text.

4. System Information

  • get_system_info() – Returns a dictionary with macOS version, battery level, and other relevant system metrics.

5. Application Control

  • focus_app(bundle_id) – Brings the specified application to the foreground.
  • terminate_app(bundle_id) – Force‑closes the application with the given bundle ID.

6. Mouse Control

  • move_mouse(x, y) – Moves the cursor to the given screen coordinates.
  • click(x, y, button='left') – Performs a mouse click at the given coordinates.
  • drag(x1, y1, x2, y2, button='left') – Drags from (x1, y1) to (x2, y2).

7. Keyboard Control

  • type_text(text) – Types the given string using the system keyboard.
  • press_key(key) – Sends a single keyboard key event.

Structure

This skill follows a Capabilities‑Based structure, grouping functionality by core features. Each capability section lists the available functions, their purpose, and brief usage notes.

References

  • references/api_reference.md – Complete function signatures, parameter details, and return values.
  • scripts/example_mouse.py – Sample Python script demonstrating mouse movement and clicking.
  • assets/example_asset.png – Example asset showing a captured screenshot.

License

MIT‑0 (Free to use, modify, and redistribute. No attribution required.)

Usage Guidance
This skill appears to implement the advertised macOS automation features, but several red flags and practical issues mean you should be cautious before installing or enabling it: - Metadata mismatch: the skill is clearly macOS‑only (it calls macOS utilities) but the registry lists no OS restriction and declares no required binaries. Ask the publisher to mark it macOS-only and declare dependencies. - Sensitive capabilities: it can read/overwrite the clipboard, capture screenshots, kill processes, and synthesize mouse/keyboard input. Only install if you trust the author and intend to run it on a trusted, isolated macOS machine. These capabilities can be abused to exfiltrate secrets or drive the UI to perform actions without your consent. - Code quality issues: the included Python has bugs (e.g., uses re.search without importing re, duplicate/contradictory terminate_app definitions, potentially incorrect open/osascript invocations). These are likely to cause errors or unexpected behavior and suggest the package was not thoroughly tested. - No source/homepage: there is no homepage or canonical source. Prefer skills with a linked repository or vendor page so you can audit changes and provenance. - Operational safety: macOS will require explicit Screen Recording and Accessibility permissions for many of these operations—verify what permissions will be requested. Test the scripts in a sandbox or disposable environment first. Recommended next steps before installing: 1) Request the publisher add OS restriction to macOS and list required system commands. 2) Ask for a canonical source (GitHub repo or homepage) and release history. 3) Request fixes for the code issues (import re, correct AppleScript/shell invocation, remove duplicate functions) and a clearer README on permission requirements. 4) Limit autonomous invocation for this skill or require explicit user confirmation before running functions that control input, manage processes, or access the clipboard/screenshots. If you cannot obtain those assurances, treat this skill as potentially risky and avoid installing it on any machine with sensitive data.
Capability Analysis
Type: OpenClaw Skill Name: macos-desktop-control-enhanced Version: 1.0.0 The skill provides high-privilege macOS desktop control (UI automation, process management, clipboard access), but the implementation in `scripts/desktop_control.py` is highly vulnerable to command and AppleScript injection. Specifically, functions like `terminate_app`, `set_clipboard`, and `type_text` use f-strings to interpolate user-controlled input directly into scripts executed via `osascript` or shell commands without any sanitization. Furthermore, the script contains functional bugs, such as a missing `re` import in `get_system_info` and invalid AppleScript syntax in `terminate_app`, suggesting these are unintentional security flaws rather than intentional malware.
Capability Assessment
Purpose & Capability
The code and SKILL.md consistently implement macOS-specific capabilities (screenshot, app/process control, clipboard, mouse/keyboard). However the registry metadata lists no OS restriction and declares no required binaries while the implementation depends on macOS commands (screencapture, osascript, pmset, sw_vers, pkill, kill, open). The missing macOS-only designation and absent declared binaries are inconsistent with the skill's purpose.
Instruction Scope
Runtime instructions and scripts perform sensitive system operations: reading and setting the clipboard, capturing screenshots, killing processes, launching/terminating apps, and synthesizing mouse/keyboard events. Those actions are within the stated purpose but are inherently high‑impact. The SKILL.md does not limit when or how these functions should be used, and the code contains implementation errors (see details) that could cause unexpected behavior.
Install Mechanism
There is no install spec (instruction-only), so nothing will be downloaded or installed by the platform. The skill includes local Python scripts which the agent may execute; this is low installation risk but means the scripts will run on the host if invoked.
Credentials
No environment variables, credentials, or config paths are requested. The absence of requested secrets is appropriate for the stated functionality.
Persistence & Privilege
The skill is not marked 'always' and defaults allow autonomous invocation. Autonomous invocation combined with the ability to control input, clipboard, screenshots, and processes increases the blast radius if the agent runs the skill without explicit user oversight. Consider limiting autonomous use for such capabilities.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install macos-desktop-control-enhanced
  3. After installation, invoke the skill by name or use /macos-desktop-control-enhanced
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release - macOS desktop automation including screenshot, process management, clipboard, system info, app control, mouse and keyboard simulation
Metadata
Slug macos-desktop-control-enhanced
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is macOS Desktop Control Enhanced?

macOS Desktop Control Enhanced provides system-wide desktop automation on macOS, including screenshot capture, process management, clipboard operations, syst... It is an AI Agent Skill for Claude Code / OpenClaw, with 88 downloads so far.

How do I install macOS Desktop Control Enhanced?

Run "/install macos-desktop-control-enhanced" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is macOS Desktop Control Enhanced free?

Yes, macOS Desktop Control Enhanced is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does macOS Desktop Control Enhanced support?

macOS Desktop Control Enhanced is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created macOS Desktop Control Enhanced?

It is built and maintained by PRY520OKGPT (@pry520okgpt); the current version is v1.0.0.

💬 Comments