Back to Skills

screenshot

Use when the user explicitly asks for a desktop or system screenshot (full screen, specific app or window, or a pixel region), or when tool-specific capture capabilities are unavailable and an OS-level capture is needed.

19,227stars1,277forksUpdated 5/16/2026

Security Assessment

Safe(100/100)
Security Score100/100

About screenshot

The 'screenshot' skill is designed to capture visual representations of a user's desktop, applications, or specific screen regions at the operating system level. It serves as a fallback mechanism when tool-specific capture options are unavailable or when the user explicitly requests a system-level screenshot. This ensures that the AI can reliably obtain the visual context needed for tasks, inspections, or verification, regardless of the application's native export or capture capabilities.

Key features of this skill include the ability to capture full-screen screenshots, individual windows, or defined pixel regions. Users can specify exact paths for saving captures, rely on OS default locations, or use temporary storage for inspection purposes. On macOS, the skill includes a preflight permission helper to streamline Screen Recording authorization and minimize repeated prompts. The skill supports advanced options such as listing window IDs, capturing active or focused windows, and capturing multiple displays simultaneously. It is implemented with bundled Python and shell scripts, enabling cross-platform functionality for macOS and Linux systems, and integrates seamlessly with workflows requiring automated or repeatable screenshot tasks.

Typical use cases include automated visual inspection by the AI, documenting application states, capturing designs or UI elements from third-party tools, and providing quick visual feedback for troubleshooting or code review. The target users range from developers and designers to AI operators who need consistent, reliable screenshots without manually managing OS-level commands. Its flexibility and automation capabilities make it suitable for scenarios where precision, repeatability, and integration with other tools are important.

FAQ

How do I capture a specific application window on macOS?

You can use the Python helper script with the '--app' option followed by the app name. For example: 'python3 <path-to-skill>/scripts/take_screenshot.py --app "Codex"'. Substring matches are supported, and multiple windows can be captured simultaneously.

Where are screenshots saved if I don't specify a path?

If no path is provided, the skill saves screenshots to the operating system's default screenshot location. Temporary captures for AI inspection are stored in a temp directory.

Does the skill require special permissions on macOS?

Yes, the skill uses a preflight helper script to request Screen Recording permissions once before capturing windows or applications. This helps avoid repeated prompts during multiple captures.

Can I capture a specific pixel region instead of an entire window?

Yes, you can specify a pixel region using the '--region x,y,w,h' option with the Python script to capture a defined area of the screen.

Is this skill compatible with Linux?

Yes, the Python helper script supports both macOS and Linux. Some advanced window-specific options, such as window title capture, are macOS-only.

All Files

11 files
assets/screenshot-small.svg1.0 KB
View
scripts/macos_permissions.swift0.9 KB
View
LICENSE.txt10.5 KB
View
scripts/take_screenshot.ps14.8 KB
View
agents/openai.yaml0.3 KB
View
scripts/macos_display_info.swift0.5 KB
View
SKILL.md7.6 KB
View
scripts/ensure_macos_permissions.sh1.7 KB
View
scripts/take_screenshot.py19.2 KB
View
assets/screenshot.png0.8 KB
View
scripts/macos_window_info.swift3.5 KB
View

Install screenshot

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

openai/skills