screenshot

Installation
SKILL.md

Screenshot Skill

Take screenshots using macOS screencapture command via Bash.

Important: Always Resize for Context

Full-resolution screenshots (especially on Retina/5K displays) produce huge base64 that will exceed the model's context length. Always resize before reading.

Take and View a Screenshot

# 1. Capture full screen
/usr/sbin/screencapture -x -t jpg /tmp/alma-screenshot.jpg

# 2. Resize to 1024px wide (critical for context size!)
/usr/bin/sips --resampleWidth 1024 --setProperty formatOptions 60 /tmp/alma-screenshot.jpg --out /tmp/alma-screenshot-thumb.jpg 2>/dev/null

# 3. Get dimensions
/usr/bin/sips -g pixelWidth -g pixelHeight /tmp/alma-screenshot.jpg 2>/dev/null
Related skills

More from ninehills/skills

Installs
38
GitHub Stars
268
First Seen
Feb 16, 2026