Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

visual-baseline-conventions

БесплатноБез исполняемых скриптовНе проверен

Use when planning or auditing visual regression coverage: which stories or pages get baselines, which breakpoints, masking vs thresholds, when to add or drop…

testlandот testland★ 18 звёзд на GitHub

Об этом скилле

visual-baseline-conventions

Reference catalog for how to design visual coverage. Pairs with the engine-specific skills (percy-visual-regression-testing, chromatic-visual-regression-testing, playwright-snapshots, storybook-visual-regression-testing) - those tell you the how of running baselines; this tells you which baselines and where.

Engine selection

Pick before authoring any baseline. Mixing engines is fine in a large project - see the breakpoint-matrix reference in playwright-snapshots (references/responsive-breakpoints.md) and visual-baseline-gate for the mechanics of running and gating multiple engines together.

Use case Preferred engine Why
Design system / component library; story-driven coverage Chromatic (or Percy + @percy/storybook) Story → snapshot is automatic; per-story granularity.
Application UI, page-driven full-flow coverage Playwright snapshots or Percy + Playwright SDK Page-level pixel diffs; full-page scroll capture.
Already on BrowserStack; want hosted UI + cross-browser Percy First-party BrowserStack integration; AI noise-filtering review mode.
Free / no SaaS dependency; OK with diff-image artifacts in CI Playwright snapshots Self-hosted; baselines committed to repo.
Storybook + free / self-hosted @storybook/test-runner postVisit + Playwright snapshots Per-story coverage with the Playwright snapshot mechanics.

Anti-pattern: running both Percy and Chromatic on the same project "to compare" - duplicate snapshot quota cost without a useful signal. Pick one hosted engine; if you need self-hosted depth, add Playwright snapshots alongside.

Story / page selection - what gets a baseline?

Author baselines for states the user actually sees and skip internal-only states.

Layer Coverage
Atoms (Button, Input, Badge) Each variant × each size × disabled & loading states.
Molecules (Card, Modal, Toast) Default state plus the single most common variant.
Templates (page-level layouts) Empty state, populated state, loading state, error state.
Pages (routes) Logged-out home, logged-in home, one representative app page.
Marketing pages Each above-the-fold section; below-the-fold only if it has interactive elements.

Skip:

  • Pure-prose long pages (Terms, Privacy) unless visual layout is a business concern.
  • Internal admin tooling not seen by external users.
  • Stories that exist only to satisfy @storybook/addon-controls combinatorics - the per-prop combination matrix is exponential and catches very few real bugs.

Breakpoint selection - what widths?

The starter set most teams converge on:

Breakpoint Width Rationale
Mobile 375 px iPhone SE-class baseline (smallest popular).
Tablet 768 px iPad portrait (rarely the bottleneck but cheap to add).
Desktop 1280 px Modal mid-range desktop / laptop.
Wide-desktop 1920 px Full-HD; catches large-screen layout bugs.

Add a 1024 px breakpoint when iPad-landscape is a heavy-traffic device. Add 320 px (Galaxy Fold inner display) only if analytics show meaningful traffic at that width.

Anti-pattern: snapshotting at 12+ breakpoints "for safety". The matrix ships every story × every breakpoint × every browser = combinatorial blow-up; quota cost rises faster than bug discovery.

Masking, threshold, or wait?

A snapshot can become noisy in three ways. The fix differs:

Source of noise Right tool
Animated GIF / SVG / video freezeAnimatedImage (Percy) or Playwright animations: 'disabled'.
Caret blink, focus rings, hover states caret: 'hide' (Playwright); avoid :hover in story render.
Live data (timestamps, counters, A/B variants) Mask the element (mask / ignoreRegionSelectors).
Anti-aliasing, sub-pixel font rendering Threshold - bump maxDiffPixels (50 - 200) or threshold (0.2 default → 0.3 max).
Async content that hasn't loaded Wait before snapshot (page.waitForSelector, await expect(loc).toBeVisible()).

Order of preference: wait → mask → threshold. Reaching for threshold first hides real regressions; waiting / masking surgically removes the known noise without inflating

Полный SKILL.md на GitHub

Установить visual-baseline-conventions в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.tessl-plugin/plugin.json

FAQ

Что делает скилл visual-baseline-conventions?

Use when planning or auditing visual regression coverage: which stories or pages get baselines, which breakpoints, masking vs thresholds, when to add or drop a baseline, and how to choose between Percy, Chromatic, Playwright and Storybook test-runner.

Как установить скилл visual-baseline-conventions?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл visual-baseline-conventions запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить visual-baseline-conventions с