Skip to content
Back to skills

Automate Macos Gui

ASecurity

- **Screen Reading**: Capture screenshots and OCR text

  • 37 stars
  • 0 votes
  • 0 copies
  • 17 views
  • Added September 19, 2026
ai-agentsgobashsecurity

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add rondoflow/rondoflow --skill automate-macos-gui --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Automate Macos Gui?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Automate Macos Gui
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rondoflow-automate-macos-gui/badge)](https://www.skillsdirectory.com/skills/rondoflow-automate-macos-gui)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: automate-macos-gui
description: "- **Screen Reading**: Capture screenshots and OCR text"
category: "Community"
author: community
version: "1.0.0"
icon: puzzle
---

# macOS GUI Automation Skill

## Capabilities

- **Screen Reading**: Capture screenshots and OCR text
- **Mouse Control**: Click, double-click, right-click, move, drag
- **Keyboard Input**: Type text, press keys, shortcuts
- **Window Management**: List windows, focus, resize, close
- **App Control**: Launch, quit, bring to front

## Tools Available

### cliclick (Mouse/Keyboard)
```bash
# Click at coordinates
cliclick c:x,y

# Double click
cliclick dc:x,y

# Right click
cliclick rc:x,y

# Move mouse
cliclick m:x,y

# Drag from to
cliclick dr:x1,y1:x2,y2

# Type text
cliclick t:"text"

# Press key (Enter, Tab, etc.)
cliclick kp:enter
```

### screencapture + tesseract (Screen Reading)
```bash
# Capture region to file
screencapture -R x,y,w,h /tmp/screen.png

# Capture full screen
screencapture /tmp/screen.png

# OCR from image
tesseract /tmp/screen.png stdout

# OCR with Chinese support
tesseract /tmp/screen.png stdout -l chi_sim+eng
```

### osascript (AppleScript - Window/App Control)
```bash
# List all windows
osascript -e 'tell application "System Events" to get name of every process'

# Get window position/size
osascript -e 'tell application "Finder" to get bounds of window of front window'

# Click menu item
osascript -e 'tell application "System Events" to click menu item "Save" of menu "File" of process "TextEdit"'
```

## Usage Patterns

### Read Screen Text
```bash
# 1. Capture screen
screencapture -R 100,100,800,600 /tmp/region.png

# 2. OCR
tesseract /tmp/region.png stdout
```

### Click Button at Position
```bash
cliclick c:500,300
```

### Type in Field
```bash
# Click field first
cliclick c:400,200
# Then type
cliclick t:"hello world"
cliclick kp:enter
```

### Find and Click (OCR + Click)
```bash
# 1. Capture and OCR
screencapture /tmp/screen.png
text=$(tesseract /tmp/screen.png stdout)

# 2. Parse coordinates from OCR result or use image recognition

# 3. Click
cliclick c:x,y
```

## Limitations

- Coordinates are absolute (screen resolution dependent)
- No built-in image recognition (need to add OpenCV/sikuli for that)
- OCR accuracy depends on screen DPI and font
- Some apps may not be scriptable via AppleScript

## Security Notes

- Requires Accessibility permissions in System Settings
- Run `tccutil reset Accessibility` if permissions issues
- Some apps (browsers, secure apps) may block automation

Files in this skill

  • SKILL.md2.5 KB
  • manifest.json251 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.