visual-baseline-update
БесплатноБез исполняемых скриптовНе проверенRegenerate Playwright visual regression baseline screenshots for the extension and web packages after an intentional UI change. User-invoked only.
от lbragile★ 192 звезды на GitHubОб этом скилле
Visual baseline update
The visual regression suite (packages/extension/e2e/tests/visual.spec.ts, packages/web/e2e/visual.spec.ts, both tagged @visual) diffs against committed baseline PNGs under *-snapshots/ directories. Run this whenever a UI change is intentional and the visual regression job should stop flagging it as a diff.
Critical gotcha: Playwright namespaces snapshot filenames by OS (-win32.png, -linux.png, -darwin.png suffixes). Baselines generated locally on Windows will NOT satisfy a Linux CI runner, and vice versa — this repo's CI runs on ubuntu-latest. If you only regenerate locally on Windows, the CI visual-regression job will still fail until Linux baselines also exist and are committed. Options:
- Run this skill inside a Linux container/WSL for baselines that need to match CI exactly.
- Or trigger a one-off
workflow_dispatchrun of the CI visual job with--update-snapshotsand commit the artifact it produces — checkci.yml'svisual-regressionjob for the exact commands it runs before improvising a different invocation.
Confirm the change is intentional — a failing visual test is a signal, not automatically a bug. Look at the diff output (
playwright-report/) before regenerating, to avoid baking in an actual regression as the new baseline.Regenerate extension baselines:
pnpm --filter @tabmerger/extension build pnpm --filter @tabmerger/extension test:visual -- --update-snapshotsRegenerate web baselines:
pnpm --filter @tabmerger/web test:visual -- --update-snapshotsReview the diff before committing —
git diff --staton the*-snapshots/directories should show only the PNGs actually expected to change. A large unexpected set of changed baselines usually means something environment-specific shifted (font rendering, a dependency bump) rather than the intended change — investigate before committing wholesale.Commit the updated baseline PNGs alongside the code change that caused them, in the same PR — a baseline update with no accompanying explanation of what visually changed and why is hard to review later.
Установить visual-baseline-update в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл visual-baseline-update?
Regenerate Playwright visual regression baseline screenshots for the extension and web packages after an intentional UI change. User-invoked only.
Как установить скилл visual-baseline-update?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл visual-baseline-update запускает скрипты?
Нет, скилл состоит только из инструкций (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