Screenshot Capture Testing
БесплатноБез исполняемых скриптовНе проверенCross-platform desktop and application screenshot capture for visual testing, UI verification, and automated visual comparison across macOS, Linux, and Windows.
от PramodDutta★ 253 звезды на GitHubОб этом скилле
Screenshot Capture Testing
Cross-platform screenshot capture for visual testing, UI verification, and automated comparison. Supports full screen, specific app/window, and pixel region captures.
Tool Priority
- Prefer tool-specific screenshot capabilities when available (Playwright for browsers, Figma MCP for designs)
- Use this skill for whole-system desktop captures or when tool-specific capture cannot get what you need
- Default for desktop apps without a better-integrated capture tool
macOS Capture
Full screen
screencapture -x output/screen.png
Pixel region (x,y,w,h)
screencapture -x -R100,200,800,600 output/region.png
Specific window by ID
screencapture -x -l12345 output/window.png
Interactive selection
screencapture -x -i output/interactive.png
Linux Capture
Using scrot
# Full screen
scrot output/screen.png
# Pixel region
scrot -a 100,200,800,600 output/region.png
# Active window
scrot -u output/window.png
Using gnome-screenshot
gnome-screenshot -f output/screen.png
gnome-screenshot -w -f output/window.png
Using ImageMagick
import -window root output/screen.png
import -window root -crop 800x600+100+200 output/region.png
Windows Capture (PowerShell)
# Full screen
powershell -ExecutionPolicy Bypass -File take_screenshot.ps1
# Pixel region
powershell -ExecutionPolicy Bypass -File take_screenshot.ps1 -Region 100,200,800,600
# Active window
powershell -ExecutionPolicy Bypass -File take_screenshot.ps1 -ActiveWindow
Visual Testing Workflow
- Capture baseline — Take reference screenshots of correct UI state
- Capture current — Take screenshots of current UI state after changes
- Compare — Diff the screenshots to detect visual regressions
- Report — Generate visual diff reports with highlighted changes
Multi-Display Behavior
- macOS: Full-screen captures save one file per display with multiple monitors
- Linux/Windows: Full-screen captures use virtual desktop (all monitors in one image)
- Use
--regionto isolate a single display when needed
Error Handling
- On macOS, check Screen Recording permission before window/app capture
- On Linux, verify tool availability:
command -v scrot,command -v gnome-screenshot - If saving fails with permission errors, check directory permissions
- Always report the saved file path in the response
Best Practices
- Use consistent viewport sizes for comparable screenshots
- Mask dynamic content (timestamps, animations) before comparison
- Set appropriate diff thresholds for anti-aliasing tolerance
- Store baseline screenshots in version control
- Run visual tests in consistent environments (same OS, resolution, DPI)
Установить Screenshot Capture Testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Screenshot Capture Testing?
Cross-platform desktop and application screenshot capture for visual testing, UI verification, and automated visual comparison across macOS, Linux, and Windows.
Как установить скилл Screenshot Capture Testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Screenshot Capture Testing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic