mac-control/SKILL.md
Use when you need to access your macOS devices - read Apple Notes, control browsers with Playwright, take screenshots, execute shell commands, or automate tasks on registered Macs via SSH
npx skillsauth add leprachuan/pot-o-skills mac-controlInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Remote control your macOS devices via SSH. Register Macs once, then control them by name, alias, or index to access Notes, automate browsers with Playwright, capture screenshots, and execute commands.
Core principle: Multi-Mac support with flexible selection and unified automation interface.
Register each Mac once in ~/.mac-control/macs.json:
{
"name": "macbook-air-m4",
"hostname": "192.168.1.100",
"ssh_user": "username",
"ssh_key_path": "~/.ssh/id_rsa",
"aliases": ["air", "laptop", "main"]
}
Select Mac by: name, alias, or index number (1-based)
| Operation | Method | Example | |-----------|--------|---------| | Navigate URL | Playwright headless | "Go to apple.com on my Mac and screenshot it" | | Screenshot page | Playwright screenshot | "Take a screenshot of google.com on my MacBook" | | Click element | CSS selector click | "Click the login button on the page" | | Extract text | CSS selector extract | "Get all the headlines from that page" | | Screen capture | macOS screencapture | "Capture my Mac screen" | | Fetch note | AppleScript search | "Get 'Dinner Plans' note from my MacBook" | | Shell command | SSH execute | "Check disk usage on my Mac" |
Full headless Chromium browser control via Playwright, running on the Mac:
python3 copilot/mac_control.py --host [email protected] \
--browser-navigate "https://example.com" -o /tmp/page.png
python3 copilot/mac_control.py --host [email protected] \
--browser-screenshot "https://example.com" --full-page -o /tmp/fullpage.png
python3 copilot/mac_control.py --host [email protected] \
--browser-click "https://example.com" --selector "button.submit" -o /tmp/after_click.png
python3 copilot/mac_control.py --host [email protected] \
--browser-extract "https://example.com" --selector "h1, h2, h3"
~/bin/mac_browser_helper.pyCaptures the actual macOS desktop (not just browser).
python3 copilot/mac_control.py --host [email protected] \
--screen-capture -o /tmp/mac_screen.png
⚠️ Requires Screen Recording permission: In System Settings > Privacy & Security > Screen Recording, grant permission to sshd-keygen-wrapper. Without this, screen capture won't work (browser screenshots still work fine via Playwright).
screencapturePattern 1: Screenshot a website
User: "Screenshot apple.com on my MacBook"
→ SSH to Mac → Playwright navigates → screenshots → SCP back → display
Pattern 2: Extract data from a page
User: "Get all the product names from that Amazon page"
→ SSH to Mac → Playwright navigates → extract by selector → return text
Pattern 3: Read a specific note
User: "What's for dinner on my MacBook?"
→ SSH to Mac → AppleScript → search Notes → return content
screencapture (needs TCC permission)~/.mac-control/macs.json file~/bin/mac_browser_helper.py on Macpython3 -m playwright install chromium on MacWhen selecting a Mac, you can use:
data-ai
Interactive GitHub issues kanban board with agent assignments, due dates, and glassmorphism theming. Fully configurable for any GitHub repository.
data-ai
Interactive TODO board for Wee Canvas. Displays TODOs from both GitHub Issues (leprachuan/fosterbot-home) and flat files in two views: list and kanban. Features filtering, drag-and-drop status changes, quick-add, and auto-refresh every 30 seconds. Use when Foster asks to "show TODOs", "open TODO board", "view my tasks", or "TODO kanban".
tools
Web-based terminal tools for Wee Canvas: remote SSH terminal (WebSSH) and local bash terminal (ttyd). Embeds interactive terminal panels in Wee Canvas iframes. Use when the user asks for a 'web terminal', 'local terminal', 'browser SSH', 'webssh', or wants to interact with a host through the WebUI canvas. For browser windows, see the browser-window skill.
development
Use when you need to send WebEx notifications to flipkey-home-bot - supports markdown formatting, auto-retry with backoff, rate limiting, and message history tracking