common-web-visual-testing
БесплатноБез исполняемых скриптовНе проверенStandardizes visual audits, multi-viewport ergonomics, composited contrast, and behavioral testing for web apps. Use to verify web UI changes, responsive…
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
🌐 Web Visual & Behavioral Testing
Priority: P1 (HIGH)
[!IMPORTANT] Tier 2 (Methodology): Strategy web UI/UX audit, responsive inspection, rendered acceptance. Tier 3 (Domain): Responsive, A11y (WCAG), Browser Engine quirk, Multi-viewport Ergonomics.
🧪 Testing Mindset: Three Evidence Lanes
Never conflate software functionality, visual design quality, and model efficacy:
- Functional Technical Smoke: Automated checks (
snapshot --aria, DOM inspection, console/network clean; form/CSRF governance ONLY when explicitly exercised). Proves observed scoped behaviors, NOT unexercised policies or visual beauty. - Visual & Human Acceptance: Real screenshot/video audit across viewports covering hierarchy, type scale, density, composited surfaces, and action reachability. Human maintainer alone grants appearance acceptance; no automated tool or score can sign off. Expert critique != user study.
- Model Efficacy Receipts: Paired same-state same-viewport captures with source identity and actual loaded guidance under controlled protocol. Local refinement is not model generation efficacy.
🔄 Comparative Audit Loop
- Baseline (Before): Capture
snapshot --aria+screenshotprod/main. - Implementation (After): Capture same local/feature.
- Audit: Compare state for visual regression, CLS, Aria drift, and side-effects. Label captures Before and After.
📐 Multi-Viewport & Zoom Ergonomics
- Benchmark Defaults: Audit across Desktop (
1440×900), Tablet (768×1024), and Mobile (375×812). Benchmark defaults, not universal product mandates. Target sizes: minimum 24×24px (WCAG 2.5.8 AA, with spacing/inline exceptions); 44×44px is separate AAA guideline. - Real Screen Inspection: Verify primary CTA reachability, content clipping, and intentional local scrolling (documented 2D exceptions like data tables permitted). DOM bounding box inside view != unclipped readable text.
- Desktop 200% Zoom Check: Chosen benchmark scenario for text scaling (WCAG 1.4.4); NOT complete WCAG 1.4.10 320px reflow proof. Test genuine browser-level zoom (observable zoom indicator/metrics; dSF, pageScaleFactor, or CSS viewport resize are NOT browser zoom). Record
NOT RUN: genuine browser zoom unavailableif browser driver lacks native zoom mechanism.
🎨 Rendered Critique & Composited Contrast
- Critique Loop:
Observation → Impact (labeled hypothesis) → Smallest Change → Preserve Constraint. Referencecommon-ui-designfor token roles, palette direction, and design critique (do NOT duplicate color checklists). - Composited Background Contrast: Measure WCAG AA (4.5:1 text, 3:1 large text/active UI cues) against actual composited pixels under gradients and alpha overlays across text spans, not endpoints alone. Inactive/disabled controls explicitly exempt under WCAG 1.4.3/1.4.11.
- State Contrast: Verify active
:hover,:focus-visible(min 2px solid, 3:1 contrast against adjacent background). Automated a11y tools catch only a limited subset of issues; automated pass != complete a11y compliance.
📋 Scenario Matrix
| Change Type | Scenarios to Run |
|---|---|
| CSS/Layout | Multi-Viewport Audit (15) + Hover (3) + CLS Check |
| Forms/Input | Validation Msg (8) + Focus State (6) + Error (5) |
| Navigation | URL Sync + Sticky Header + 200% Zoom Check (16) |
| Assets/Fonts | Lazy Load + Icon Check + LCP / Layout Shift |
| Accessibility | Tab Order + Composited Contrast (17) + Aria Diff |
| Visual Review | Rendered Acceptance Walkthrough (18) + Diffs |
🛡 Browser Origin & Native Form Governance
- Native Form & State-Changing Submission Governance: State-changing forms (login, credentials, payments) must adhere to origin policy in real browsers (standard GET/top-level navigations omit
Origin). Never grant CORS waivers fornullorigins or bypass CSRF. - Actual Populated State & Narrow Scope: Real-browser DOM assertion is required for auth/session issuance. Saved-auth (
local-auth.json) and renderer-only fixtures (jsdom) are valid only for post-login speedup or unit layout tests, never full login governance proof. - Strict CSRF Enforcement: Test harnesses must not disable CSRF middleware, origin checks, or cookies.
🚫 Anti-Patterns
- Automated Aesthetic Sign-off: Never claim tests or AI evaluation pass visual/aesthetic quality without human acceptance.
- Single-Viewport Verification: Never verify Desktop only. Audit mobile (375px) and tablet (768px).
- CSS Viewport or dSF as Zoom: Never equate window resizing, deviceScaleFactor, or CSS zoom with genuine browser zoom reflow.
- Endpoint Contrast Assumption: Never evaluate gradient/overlay contrast using bare CSS endpoint values.
- DOM Bounds as Visual Proof: Never assume bounding box containment proves unc
Установить common-web-visual-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл common-web-visual-testing?
Standardizes visual audits, multi-viewport ergonomics, composited contrast, and behavioral testing for web apps. Use to verify web UI changes, responsive design across viewports, zoom reflow, or conduct comparative audits; separates automated smoke from human visual acceptance.
Как установить скилл common-web-visual-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл common-web-visual-testing запускает скрипты?
Нет, скилл состоит только из инструкций (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