/kenji:test-visual-regressionfrom kenji skills
Sets up Playwright screenshot baselines and CI diffing to catch unintended UI changes pixel by pixel. Use when adding visual regression tests or catching UI regressions.
Ships in kenji skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Degree of freedom: MIXED — what to baseline [HIGH freedom];
determinism loop and 3× clean runs [LOW freedom — run exactly].
playwright-cli / project runner — never Playwright MCP.
Establish a screenshot baseline for important UI states and wire diffing so unintended visual change fails CI.
Functional tests prove the button works; visual tests prove it didn't move, shrink, lose styling, or overlap the next element.
Use playwright-cli (npx --yes @playwright/cli@latest) and the project's
Playwright test runner — never Playwright MCP. Read
protocol-browser-anti-stall before any headed session.
| Skill | Owns |
|---|---|
| test-visual-regression (this) | Pixel baselines + CI diff artifacts |
test-playwright | Drive the app like a user; fix functional pain |
audit-responsive | Find linearized layout; this locks the fix |
audit-ui-states | Design empty/error states; this locks them |
audit-uiux-design-system | Token/component compliance (not screenshot CI) |
test-qa | Exploratory CRUD QA |
Observe: dashboard spec screenshots the whole page; a relative "Updated 3s ago" label sits in the header. Interpret: every CI run diffs that label. Classify: must mask (or freeze time) — not a product regression. Fix:
maskthe timestamp; prove ≥3 consecutive local runs with zero diff.
Prefer the repo's existing Playwright. Do not add a second visual vendor if Playwright screenshots already work.
audit-responsive breakpoints)audit-ui-states: empty, error, loadedExclude volatile content (timestamps, live feeds, mid-animation). Mask or freeze it — otherwise every run is a false positive.
prefers-reduced-motion; disable transitionsProve stability: ≥3 consecutive local runs with zero diff before calling the harness done.
--update-snapshots)Save ad-hoc captures under .playwright-mcp/, not the repo root.
test-playwright.playwright-mcp/ for ad-hoc; baselines in the harness diraudit-responsive / audit-ui-states — what to locktest-playwright / test-qa — functional, not pixelprotocol-browser-anti-stall — headed sessionsaudit-cicd — CI minutes / artifact retentionWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub kensaurus/skills --plugin kenji162 skills in this plugin
/audit-accessibilityWCAG 2.2 AA audit via playwright-cli: axe-core, keyboard, contrast, target size, focus, ARIA. Use when "audit accessibility", "check a11y", "WCAG audit", "check keyboard nav", or "test screen reader".
/audit-agent-speedMeasure and fix a slow coding-agent setup: status line, hooks, instruction bloat, effort, worktree pile-up, antivirus and indexer scans. Use when "Claude is slow" or "CPU is pinned". App speed → audit-performance.
/audit-analyticsRead-only audit of product-analytics events (PostHog, Amplitude, Mixpanel, GA4): taxonomy, funnels, consent-gated firing, dead or duplicate events. Use when "audit our analytics", "are we tracking the right events", or "funnel instrumentation".
Other plugins' skills for the same job