Capture reliable screenshots of desktops, browsers, simulators, and CI environments with the right tool, viewport, and stability settings.
npx clawhub@latest install screenshotPlatforms
The Screenshot skill guides your AI agent in capturing, inspecting, and comparing screenshots across every common context — macOS desktops, iOS Simulators, Linux (X11 and Wayland), web pages via Playwright, and headless CI runs. It codifies tool selection, stabilization strategies, viewport consistency, noise removal, and output format best practices so every screenshot is actually useful, not just technically produced. This skill is focused on taking the right screenshot reliably, not on editing or annotating images after the fact.
npx clawhub@latest install screenshotClick the Install button at the top of this page for one-click setup
image-edit or image skill instead.video skill instead.playwright skill instead.Recommends the best capture tool per context: screencapture for macOS, xcrun simctl for iOS Simulator, grim+slurp for Linux Wayland, scrot for X11/headless CI, Playwright for web pages, and nircmd/Pillow for Windows. Defaults to the most native path before reaching for heavier tooling.
Instructs the agent to wait for network idle, specific elements, or explicit UI state before capturing — never blindly sleeping. For browser captures, it leverages Playwright stability features: fixed viewport, disabled animations, hidden caret, and masked sensitive regions.
Enforces consistent viewport size, zoom level, device scale, and theme (light/dark) across baseline and comparison captures. Prevents meaningless diffs caused by environmental drift between runs.
Guides the agent to hide or mask unstable UI elements — cursors, carets, toasts, timestamps, notifications, and randomized content — as well as secrets, tokens, and personal data before the shutter fires.
Defaults to PNG for UI, code, and text-heavy captures. Explicitly discourages JPEG for screenshots (blurs text and edges) and treats WebP as acceptable for sharing when the consumer supports it.
Prescribes saving a screenshot immediately on failure before retrying, using stable filenames for baselines and timestamps for ad hoc captures, and preferring browser-native screenshots over host-display grabs in headless environments.
When reproducing a bug, the skill selects the right tool (e.g., Playwright for a web app), waits for the broken UI state to fully render, masks any sensitive data in sidebars or URLs, and saves a PNG with a stable filename — producing evidence that is immediately useful to the reporter and reviewer.
In a CI pipeline, the skill fixes the viewport, disables animations, and captures element or clipped-region screenshots as baselines. On subsequent runs it applies the same settings so diffs reflect real UI changes, not environmental noise.
Uses xcrun simctl io booted screenshot to capture a simulator frame reliably, avoiding the artifacts that appear when desktop screenshot tools grab the simulator window instead of its actual output buffer.
Captures a fixed-viewport 'before' screenshot, applies a UI change, then captures an identical 'after' screenshot with the same zoom, theme, and state — producing a clean comparison suitable for pull request reviews or user-facing documentation.
npx clawhub@latest install screenshotPlatforms
Log in to write a review
No reviews yet. Be the first to share your experience!