<< All versions
Skill v1.0.0
currentAutomated scan82/100leionion/clawforge/mac-terminal
──Details
PublishedJune 18, 2026 at 03:15 AM
Content Hashsha256:ff85b1873784c74e...
Git SHA7a9a1f51dae6
──Files
Files (1 file, 1.3 KB)
SKILL.md1.3 KBactive
SKILL.md · 41 lines · 1.3 KB
version: "1.0.0" name: mac-terminal description: "Opens macOS Terminal.app and executes a shell command in a new or existing window, with optional automatic sudo password entry via System Events. Use when the user asks to open a terminal, run a shell command, execute a CLI command in Terminal, launch Terminal.app, or run something with sudo on macOS."
mac-terminal — macOS Terminal Automation
Opens Terminal.app and executes shell commands via AppleScript, with optional automatic password entry for sudo commands.
Usage
bash
# Open Terminal and run a commandpython3 mac_terminal.py "命令"# Run a sudo command with automatic password entry (requires Accessibility permission)python3 mac_terminal.py "sudo 命令" "密码"
Examples
bash
# Check versionpython3 mac_terminal.py "openclaw-cn --version"# Restart a servicepython3 mac_terminal.py "openclaw-cn gateway restart"
How it works
- Activates or opens Terminal.app via
osascript - Executes the command in the frontmost Terminal window (or creates a new one)
- If a password argument is provided, waits for the sudo prompt and types it via System Events keystroke simulation
Requirements
- macOS with Terminal.app
- Accessibility permission required for automatic password entry (System Preferences > Privacy & Security > Accessibility)