Smart screenshot capture

From sillsdev/FieldWorks · View interactive version

Smart screenshot capture is an AI agent skill from the GitHub repository sillsdev/FieldWorks. Capture high-quality screenshots with MCP tools. Use when the user asks to take a screenshot, show the screen, capture a window, document UI evidence, collect before/after images, inspect browser output, or verify a desktop app visually with WinForms MCP, WinApp MCP, browser screenshots, image previ

How to use this skill

Skill file

Smart Screenshot Capture

Use this skill to capture clear, reviewable screenshots without making the user

manually crop, upload, or explain the screen. Prefer focused captures of the

target app, window, browser page, or element over whole-desktop images.

Core Rules

FieldWorks dialog, a named app, a browser page, or a before/after UI state.

capture is likely.

appropriate image preview tool.

window, too small to read, or missing the state the user asked to document.

just to make a screenshot easier.

Target Selection

Choose the narrowest useful target:

  1. FieldWorks or another WinForms desktop app: capture by process id or window

handle when the MCP tool supports it.

  1. A visible Windows app where WinForms MCP cannot attach: use WinApp MCP and a

specific appId or windowHandle.

  1. Browser content controlled by the integrated browser: use screenshot_page

for the whole viewport or an element-specific capture.

  1. A UI element that needs visual callouts: capture the app window, then use

annotation tools when available.

  1. Whole desktop: use only when the user asks for desktop context or no focused

capture path exists.

When capturing a desktop app, inspect the UI tree or window list first if there

is any risk of targeting the wrong window.

Output Paths

For this repository, FieldWorks evidence folders (transient vs committed vs

parity bundles) are defined in

../fieldworks-winapp/navigation/screenshot-evidence.md — use those. Otherwise:

Create the folder if needed. Do not put scratch screenshots in committed

evidence folders unless the user asks for review-ready evidence.

Naming

Use sorted, descriptive names:

../fieldworks-winforms-to-avalonia-migration/references/parity-evidence.md §6

(visual.legacy.png, visual.avalonia.png,

visual.diff.png, ...) under

openspec/changes/<change-id>/evidence/parity/{scenarioId}/{bundleId}/;

manual captures use a bundleId like manual-YYYYMMDD

Keep generated names short, lowercase, and kebab-case. Prefer 2-5 meaningful

words over timestamps unless ordering or uniqueness requires a timestamp.

Tool Preference

Use the best available tool for the current target:

winforms_take_screenshot (PrintWindow capture; no foregrounding needed).

matters, otherwise mcp_winapp_take_screenshot.

Prefer MCP screenshot tools over shell commands. Do not use the upstream

macOS-specific screencapture, sips, or AppleScript workflow on Windows.

Capture Workflow

  1. Identify the target and output path.
  2. Inspect the app/page/window when needed to confirm the target is visible.
  3. Capture to a deterministic filename.
  4. Inspect the saved image.
  5. Retake or annotate if the first capture does not communicate the requested

state clearly.

  1. Report the saved path and any useful capture metadata, such as dimensions or

diff percentage.

For before/after work, capture the before state first whenever it is available.

If the before state is unavailable in the current worktree, say so and capture

the fixed or current state with a clear filename.

Multi-Screenshot Workflows

Use multiple captures when one image cannot tell the story:

screenshot;

For migration parity bundles, keep framing, DPI, zoom, and window size matched across WinForms and Avalonia captures whenever density, wrapping, or spacing is under review.

For a parity bundle, pair the visual captures with the matching semantic snapshot and workflow/accessibility evidence for the same scenarioId (folder layout and file names per ../fieldworks-winforms-to-avalonia-migration/references/parity-evidence.md §6); a screenshot pair alone is not a full parity claim.

For sequences, keep the same target, window size, and framing across captures

unless the task is specifically about responsive or layout behavior.

Quality Checklist

Before considering the screenshot done, verify:

requested state;

If a screenshot tool produces a cropped, blank, or wrong-window capture, switch

drivers in this order: focused WinForms capture, WinApp optimized capture,

browser capture, then whole-window or whole-desktop fallback.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.