Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Validate screenshot and viewer HTML quality for PR evidence. Run this after adding or modifying images under .agents/evidence/pr/ or .agents/recordings/, or after generating a new viewer HTML file. Combines image quality checks (resolution, blankness, file size) with Playwright-based viewer rendering verification.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 31% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -19% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -54% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -35% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -37% | 0% |
Validate that evidence images and viewer HTML files meet quality standards before committing. This catches issues that would otherwise fail CI or produce misleading PR evidence.
Checks PNG/JPG/GIF/WEBP files for:
bashuv run python scripts/check_screenshots.py .agents/evidence/pr/ uv run python scripts/check_screenshots.py .agents/recordings/ uv run python scripts/check_screenshots.py path/to/specific-image.png
bashscripts/check_screenshots.sh
This shell wrapper automatically finds staged PNG/JPG files and runs the quality check on them — useful as a pre-commit sanity check.
Uses Playwright (headless Chromium) to verify that generated viewer HTML files actually render correctly — not just raw JSON or Python errors.
Checks:
bashuv run python scripts/verify_screenshots.py .traces/trace_*.html
Requires Playwright to be installed (uv pip install playwright && playwright install chromium).
After generating new evidence for a PR:
bash# 1. Check image quality uv run python scripts/check_screenshots.py .agents/evidence/pr/ # 2. If you generated new viewer HTML, verify it renders uv run python scripts/verify_screenshots.py .traces/trace_*.html # 3. If all passes, stage and commit git add .agents/evidence/pr/
| Failure | Fix | |---------|-----| | very small image (WxH; minimum is 400x400) | Retake screenshot at a larger viewport or higher resolution | | narrow desktop viewport (Wpx < 1280px) | Resize browser window to >= 1280px wide before capturing | | mostly blank/white image | Ensure the screenshot captures actual content, not an empty page | | No sidebar — viewer not rendered | Viewer HTML is broken; regenerate from trace JSONL | | JS errors | Check viewer.html for syntax errors in embedded data |
Other measured skills in the registry, with their headline benchmark lift.