Programmatic screenshot automation for macOS that actually works. Uses Swift's CoreGraphics to get real window IDs, AppleScript to control application state (zoom levels, scroll position, sheet selection in Excel), then screencapture to grab the pixels. The documentation is refreshingly honest about what fails: System Events can't get the right window format, PyObjC isn't worth the dependency hassle, and you need Screen Recording permissions or nothing works. If you're building documentation pipelines or need to capture specific states of Excel workbooks without clicking around manually, this gives you the three-step workflow that doesn't fight the OS. Just remember to add sleep delays between AppleScript commands and captures.

skills.sh installs
1.1K
GitHub stars
1.5K
last updated
Aug 21, 2026

Install

$ npx -y skills add daymade/claude-code-skills --skill capture-screen --agent claude-code

Installs into .claude/skills of the current project.

Files

Capture Screen

Programmatic screenshot capture on macOS: find windows, control views, capture images.

Select observation or foreground control

For an existing view, enumerate and capture the exact window without activating it. Skip Step 2 when no view change is needed. A window image proves visible content in that capture, not keyboard focus, input delivery or a successful business action.

Before opening/raising windows, scrolling, selecting, changing zoom or sending keys, the executing agent checks user activity and other agents' ownership. Use a concrete task handoff or an existing explicit idle-desktop authorization; under the latter, coordinate exclusive access and proceed without asking again. Idle input alone is not ownership. Busy/unknown occupancy or unexpected input stops foreground actions; continue independent reads and do not restore old focus after human takeover.

Sponsors

Details

Repository
github.com/daymade/claude-code-skills
Categories
Documentation, Mobile Development, Design & UI/UX, CLI & Terminal
First seen
Jun 3, 2026

More from daymade/claude-code-skills

All 53
1rstackjs avatarrslib-best-practicesrstackjs/agent-skillsRslib best practices for config, CLI workflow, output, declaration files, dependency handling, build optimization and toolchain integration. Use when writing, r1.1Kskills.sh installs
2asyrafhussin avatarlaravel-owasp-securityasyrafhussin/agent-skillsOWASP Top 10 security audit and secure coding guidelines for Laravel + React/Inertia.js applications. Use when auditing for vulnerabilities ("run OWASP audit", 1.1Kskills.sh installs
3inference-sh avatarai-marketing-videosinference-sh/skillsCreate AI marketing videos for ads, promos, product launches, and brand content. Models: Veo, Seedance, Wan, FLUX for visuals, Kokoro for voiceover. Types: prod1.1Kskills.sh installs
4inference-sh avatarprompt-engineeringinference-sh/skillsMaster prompt engineering for AI models: LLMs, image generators, video models. Techniques: chain-of-thought, few-shot, system prompts, negative prompts. Models:1.1Kskills.sh installs
5vibe-motion avatarruler-progress-rendervibe-motion/skillsClone or update https://github.com/sxhzju/ruler-progress-animator and render a ruler progress video with default parameters. Use when users ask for requests lik1.1Kskills.sh installs
6cxuu avatargo-declarationscxuu/golang-skillsUse when declaring or initializing Go variables, constants, structs, or maps — including var vs :=, reducing scope with if-init, formatting composite literals, 1.1Kskills.sh installs