본문으로 건너뛰기
cccskills
무료GitHub에 공개

screenshot-validation

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Playwright
설치 방법 보기

포함된 파일(1)

  • SKILL.md2.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Screenshot Validation

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.

Image quality check

Checks PNG/JPG/GIF/WEBP files for:

  • Minimum dimensions: 400x400 pixels (hard fail)
  • Desktop viewport width: >= 1280px (warning if narrower)
  • File size: <= 5MB (warning if larger)
  • Blankness detection (PNG only): fails if > 90% of pixels are white/transparent

Run on specific files or directories

uv 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

Run on git-staged images

scripts/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.

Viewer HTML rendering verification

Uses Playwright (headless Chromium) to verify that generated viewer HTML files actually render correctly — not just raw JSON or Python errors.

Checks:

  • No JavaScript errors on page load
  • Normal traces render a sidebar with entries and a detail panel
  • Empty embedded traces render the explicit "No API calls captured" state
  • Body text doesn't contain raw JSON dumps or Python tracebacks

Run

uv run python scripts/verify_screenshots.py .traces/trace_*.html

Requires Playwright to be installed (uv pip install playwright && playwright install chromium).

Typical workflow

After generating new evidence for a PR:

# 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/

Fixing common failures

FailureFix
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 imageEnsure the screenshot captures actual content, not an empty page
No sidebar — viewer not renderedViewer HTML is broken; regenerate from trace JSONL
JS errorsCheck viewer.html for syntax errors in embedded data

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Run PR-grade real Codex E2E validation through claude-tap, including resume turns, multiple tool calls, optional image input, viewer verification, and screenshot evidence.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

liaohch3/claude-tap3.3천2026년 10월 19일 업데이트

Generate demo assets (GIF/MP4) from real tmux E2E runs and viewer screenshots using asciinema and Playwright

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

liaohch3/claude-tap3.3천2026년 10월 19일 업데이트

e2e-test

무료

Run claude-tap end-to-end tests with pytest

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

liaohch3/claude-tap3.3천2026년 10월 19일 업데이트

Test JS logic embedded in HTML using two-layer strategy - Python unit tests + Playwright browser integration tests

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

liaohch3/claude-tap3.3천2026년 10월 19일 업데이트

Validate maintainer docs structure, standards freshness, manifest paths, and plan state. Run this after modifying any file under .agents/docs/standards/, .agents/docs/plans/, .agents/docs/architecture/, or AGENTS.md — it catches stale metadata, broken manifest paths, and plan state drift before CI does.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

liaohch3/claude-tap3.3천2026년 10월 19일 업데이트

Record browser test videos with Playwright for PR review and bug fix verification

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

liaohch3/claude-tap3.3천2026년 10월 19일 업데이트

liaohch3의 스킬 모두 보기

이 스킬의 문제 신고