Skip to content

Programmatic macOS screenshot capture: find window IDs, drive app views, and capture windows with screencapture.

CCM score
67 of 100
skills.sh installs
1.1K
GitHub stars
1.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers window ID lookup via a Swift CoreGraphics script, AppleScript view control (zoom, scroll, select), and screencapture output
  • Includes scripts/get_window_id.swift for listing or filtering windows, plus a multi-shot Excel workflow example
  • Enforces an ownership and idle check before any foreground action, and stops on human takeover or host refusal
  • Designed for documentation screenshots and automated visual workflows on macOS, with timeout guards on osascript calls

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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.

Details

Repository
github.com/daymade/claude-code-skills
First seen
Jun 3, 2026

Questions

What does the capture-screen skill do?

The capture-screen skill takes programmatic screenshots on macOS. It finds window IDs with a Swift CGWindowListCopyWindowInfo script, controls app windows through AppleScript such as zoom, scroll and select, and captures them with screencapture. Use it for automating screenshots or building multi-shot visual workflows.

How do I install the capture-screen skill?

Run npx -y skills add daymade/claude-code-skills --skill capture-screen -y in a project to install it. Once installed, the agent can capture application windows for documentation and run multi-shot visual sequences on macOS.

Who is capture-screen for, and what does it need to run?

It is for developers who need to automate screenshots or capture application windows for documentation on macOS. It relies on Swift, AppleScript through osascript, and the built-in screencapture tool, and foreground control requires an authorized handoff and Automation permission.

More from daymade/claude-code-skills

All 50

Similar to Capture Screen