Capture, inspect, and compare screenshots of screens, windows, regions, web pages, simulators, and CI runs with the right tool, wait strategy, viewport, and output format. Use when (1) you need screenshots for debugging, QA, docs, bug reports, or visual review; (2) desktop, browser, simulator, or headless capture is involved; (3) stable screenshots require fixed viewport, settling, masking, or animation control.
Use when the task needs a screenshot of a desktop app, browser page, simulator, region, window, or full screen, especially for debugging, QA, documentation, release notes, bug reports, visual review, or before/after comparison.
This skill is about taking the right screenshot reliably, not about editing images after the fact.
| Context | Best default | Why |
|---|---|---|
| macOS desktop or window | screencapture | Built-in, reliable, supports silent, interactive, region, and window capture |
| iOS Simulator | xcrun simctl io booted screenshot | More reliable than generic desktop capture for simulator output |
| Linux Wayland | grim + slurp | X11 tools often fail or behave oddly on Wayland |
| Linux X11 / headless CI | scrot or browser-native capture | Works in minimal or virtual-display environments |
| Windows desktop capture | nircmd savescreenshot or Pillow ImageGrab | Easier than verbose PowerShell screen APIs |
| Web page or web app | Playwright | Best for stable viewport, element, full-page, masked, and regression screenshots |
| Visual diff / screenshot tests | Playwright with fixed viewport | Better control over animations, caret, masks, and reproducibility |
Default to the most native capture path first. Move to browser-native tooling when determinism, masking, element capture, or visual regression matters more than convenience.
screencapture -x out.png for silent capture, -i for interactive selection, -R x,y,w,h for a fixed region.xcrun simctl io booted screenshot out.pnggrim -g "$(slurp)" out.pngInstall with clawhub install <slug> if user confirms:
playwright — Browser automation, DOM interaction, and web screenshotsimage — Post-capture format, cropping, compression, and export decisionsimage-edit — Annotation, cleanup, masking, and targeted edits after capturedocumentation — Turning screenshots into docs, guides, and release assetsvideo — When a flow should be recorded instead of reduced to still imagesclawhub star screenshotclawhub sync