qa-screenshot-validation
БесплатноБез исполняемых скриптовНе проверенEvaluate captured screenshots for layout issues, masked elements, and rendering problems. Use after taking screenshots to validate visual correctness and…
Об этом скилле
QA Screenshot Validation Skill
Validate captured screenshots for layout correctness and handle masked or clipped elements.
Validation Process
After capturing each screenshot, evaluate it for:
- Element visibility - Is the target element fully visible?
- Layout integrity - Does the layout appear correct?
- Clipping/masking - Are elements unexpectedly cut off?
- Overlapping - Are elements overlapping incorrectly?
- Rendering issues - Missing images, broken icons, etc.
Common Issues to Detect
Masked/Clipped Elements
| Issue | Indicators | Action |
|---|---|---|
| Horizontal clipping | Element cut off on right edge | Resize viewport wider |
| Vertical clipping | Element cut off at bottom | Scroll or resize taller |
| Overflow hidden | Content abruptly ends | Check parent container |
| Modal cutoff | Dialog extends beyond viewport | Resize to fit modal |
Layout Problems
| Issue | Indicators | Action |
|---|---|---|
| Overlapping elements | Text over images, buttons over content | Document as bug |
| Misaligned elements | Uneven spacing, broken grid | Document as bug |
| Missing elements | Expected element not visible | Verify selector, check visibility |
| Broken responsive | Desktop layout on mobile viewport | Document as bug |
Automatic Resize Logic
When an element appears clipped on desktop viewport:
IF element is clipped AND viewport is desktop (>1024px):
1. Try increasing viewport width by 200px
2. Retake screenshot
3. If still clipped, try 1920x1080 (full HD)
4. If still clipped, document as layout bug
Playwright Resize Commands
// Get current viewport
const viewport = page.viewportSize();
// Resize wider
await page.setViewportSize({
width: viewport.width + 200,
height: viewport.height
});
// Standard breakpoints
await page.setViewportSize({ width: 1920, height: 1080 }); // Full HD
await page.setViewportSize({ width: 1440, height: 900 }); // Laptop
await page.setViewportSize({ width: 1280, height: 720 }); // HD
Mobile/Tablet Testing Rules
IMPORTANT: Do NOT auto-resize for mobile or tablet viewports.
| Viewport | Width Range | Auto-Resize? |
|---|---|---|
| Mobile | 320-480px | NO - Document as bug |
| Tablet | 768-1024px | NO - Document as bug |
| Desktop | >1024px | YES - Try resize first |
Why No Auto-Resize for Mobile/Tablet?
If an element is clipped on mobile/tablet viewport, it indicates a real responsive design bug:
- The design should adapt to smaller screens
- Clipping means the responsive CSS is broken
- Auto-resizing would hide the actual problem
Mobile/Tablet Clipping Response
IF element is clipped AND viewport is mobile/tablet (<1024px):
1. DO NOT resize viewport
2. Document as responsive design bug
3. Capture screenshot as evidence
4. Note: "Element clipped at {width}px viewport - responsive issue"
Validation Checklist
Run this checklist on each screenshot:
## Screenshot Validation: {filename}
### Element Visibility
- [ ] Target element fully visible
- [ ] No unexpected clipping on edges
- [ ] Element not obscured by other elements
### Layout Check
- [ ] Spacing appears consistent
- [ ] Alignment looks correct
- [ ] No overlapping content
- [ ] Text is readable (not truncated)
### Responsive Behavior
- [ ] Layout appropriate for viewport size
- [ ] No horizontal scrollbar (unless expected)
- [ ] Touch targets adequate size (mobile)
### Rendering
- [ ] Images loaded correctly
- [ ] Icons displaying properly
- [ ] Fonts rendered correctly
- [ ] No missing assets (broken image icons)
### Result
- [ ] PASS - Screenshot valid
- [ ] FAIL - Issue detected (describe below)
- [ ] RETRY - Resized viewport and retaking
Detection Heuristics
Clipping Detection
Look for these visual indicators:
Horizontal clipping:
- Element touches right edge of viewport
- Text/content appears cut mid-word
- Button or input field partially visible
- Scrollbar appears unexpectedly
Vertical clipping:
- Element touches bottom edge
- Modal/dropdown extends beyond visible area
- Form fields cut off
- Footer missing or partial
Overlap Detection
Overlapping indicators:
- Text appearing over images
- Multiple elements at same position
- Z-index conflicts (wrong element on top)
- Shadow/border appearing over content
Viewport Breakpoints Reference
Standard Testing Viewports
| Device | Width | Height | Use Case |
|---|---|---|---|
| iPhone SE | 375 | 667 | Small mobile |
| iPhone 14 | 390 | 844 | Standard mobile |
| iPhone 14 Pro Max | 430 | 932 | Large mobile |
| iPad Mini | 768 | 1024 | Small tablet |
| iPad Pro | 1024 | 1366 | Large tablet |
| Laptop | 1280 | 800 | Small desktop |
| Desktop | 1440 | 900 | Standard desktop |
| Full HD | 1920 | 1080 | Large desktop |
Breakpoint Classification
Установить qa-screenshot-validation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл qa-screenshot-validation?
Evaluate captured screenshots for layout issues, masked elements, and rendering problems. Use after taking screenshots to validate visual correctness and automatically resize viewport if elements are unexpectedly clipped.
Как установить скилл qa-screenshot-validation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл qa-screenshot-validation запускает скрипты?
Нет, скилл состоит только из инструкций (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