UI Screenshot Feedback
Use this skill when a UI app needs automatic screenshots, control-centre review artifacts, or comment-driven iteration.
Canonical references:
docs/guides/UI_SCREENSHOT_FEEDBACK_METHODOLOGY.mddocs/workflows/ui-screenshot-feedback-loop.md
Procedure
- Create or continue a session and write the relevant user journeys.
- Add stable UI markers:
data-screenshot-subject,data-screenshot-route, readiness marker, and metric selectors. - Choose the capture rig:
- Puppeteer for deterministic automated screenshots and
analysis.json. - Prefer
scripts/ui/lib/screenshotCapture.jsfor route-set captures; expose--save-screenshots,--no-screenshots, and--save-dom-snapshots. - Electron for persistent control-centre/operator review or desktop-shell-specific behavior.
- Playwright/MCP for exploratory visual inspection that should later be promoted into a script if it becomes repeatable.
- Puppeteer for deterministic automated screenshots and
- Save active screenshots to
docs/sessions/<session>/screenshots/. - Use the Control Center
/?app=screenshot-reviewpanel to browse savedanalysis.jsonruns and write comments. - Write
SCREENSHOT_REVIEW.mdwith image embeds and evidence notes. - Write
SCREENSHOT_COMMENTS.mdso the user can comment and future agents know where to look. - Before later UI edits, read
SCREENSHOT_COMMENTS.md,.agent/pending_comments.md, and SVGagent-commentgroups. - Recapture after changes and record the visual judgement plus validation commands.
Validation
- screenshot script exits cleanly.
- PNGs are non-empty and linked from
SCREENSHOT_REVIEW.md. analysis.jsonreports readiness, browser events, overflow, loading states, and key feature metrics.- responsive work includes desktop and mobile route entries.
- unresolved comments are either addressed or explicitly left pending.