screenshot

Capture screenshots from browser pages, iOS simulators, TUI sessions, and macOS windows.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/nclandrei/dotfiles --skill screenshot-nclandrei
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: screenshot
Source: https://github.com/nclandrei/dotfiles/tree/main/config/skills/screenshot
Command: npx skills add https://github.com/nclandrei/dotfiles --skill screenshot-nclandrei

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires swift, screencapture, xcrun, tmux, and includes scripts (resource) components.

What problem does it solve?

Capture reliable screenshots across browser pages, iOS Simulator, Ghostty or TUI sessions, and generic macOS windows or screens. Use as a composable primitive when another skill needs a screenshot saved to an absolute path.

Core Features & Use Cases

  • Cross-backend screenshot capture for web, mobile, terminal UIs, and native macOS apps.
  • Returns the absolute output path and the backend used, enabling deterministic workflows.
  • Useful as a primitive for UI verification, visual documentation, and automated test reporting.

Quick Start

Invoke the screenshot skill with the target type to capture and receive the absolute path of the resulting PNG.

Frequently Asked Questions about screenshot

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate screenshot capture for macOS windows and iOS simulators?

Automate screenshot capture by invoking a cross-backend script targeting browser pages, iOS simulators, Ghostty sessions, and macOS windows. It returns the absolute output path of the saved PNG file and identifies the backend used.

Can I capture terminal UI screenshots from a Ghostty or tmux session?

Yes, you can capture terminal UI screenshots from Ghostty or tmux sessions. The tool identifies the active session backend and saves the visual output as a PNG file to a deterministic absolute path.

What is the best way to get deterministic output paths for automated UI testing screenshots?

Use a screenshot automation primitive that returns the absolute output path and the backend used. This enables deterministic workflows for UI validation, visual regression testing, and automated documentation.

Do I need Swift and xcrun to capture screenshots across different macOS backends?

Yes, Swift, xcrun, and screencapture are required dependencies. They provide the underlying system-level execution environment needed to capture windows, iOS simulators, and terminal sessions.

Does this screenshot tool save images in formats other than PNG?

No, the screenshot capture tool saves images in PNG format by default. It applies this format across all supported backends including web, mobile, terminal UIs, and native macOS applications.