visual-regression

Solid

Setup visual regression testing with Storybook stories, configuration, and CI/CD workflows. Supports Chromatic, Percy, BackstopJS. Auto-invoke when user says "set up visual regression", "add Chromatic tests", "add screenshot testing", or "set up Percy".

AI & Automation 232 stars 12 forks Updated today

Install

View on GitHub

Quality Score: 85/100

Stars 20%
79
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
0
Description 5%
100

Skill Content

# Visual Regression Testing Setup Skill --- ## Skill Purpose Generate complete visual regression testing setup with Storybook stories, configuration files, and CI/CD workflows. **Supports**: Chromatic, Percy, BackstopJS **Frameworks**: React, Vue, Svelte (TypeScript/JavaScript) **CI/CD**: GitHub Actions, GitLab CI, CircleCI --- ## What This Skill Does 1. **Detects existing setup**: Storybook version, VR tool, CI platform 2. **Validates component**: Extract props, variants, states 3. **Generates stories**: Complete `.stories.tsx` with all variants 4. **Creates config files**: Chromatic, Percy, or BackstopJS configuration 5. **Sets up CI/CD**: Auto-generate workflow files 6. **Provides instructions**: Next steps for API tokens, first baseline --- ## Workflow ### Step 1: Validate Project Setup **Execute**: `vr_setup_validator.py` **Check**: - Framework (React/Vue/Svelte) from package.json - Existing Storybook config (.storybook/ directory) - Existing VR tool (chromatic, percy, backstopjs in dependencies) - CI platform (.github/, .gitlab-ci.yml, .circleci/) - Component file exists and is valid **Output**: ```json { "framework": "react", "storybook_version": "7.6.0", "vr_tool": "chromatic", "ci_platform": "github", "component": { "path": "src/components/ProfileCard.tsx", "name": "ProfileCard", "props": [...], "valid": true }, "dependencies": { "installed": ["@storybook/react", "@storybook/addon-essentials"], "missing": ["chromatic...

Details

Author
alekspetrov
Repository
alekspetrov/navigator
Created
11 months ago
Last Updated
today
Language
Python
License
None

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

visual-regression

Standalone visual regression guard using before/after screenshot comparison. Two modes: SIT (compare staging vs local dev) or Local (compare git-stashed base vs current changes). No long-lived baselines — captures fresh screenshots each run and deletes after comparison. Config-driven from workspace-config.yaml. Use when: "跑 visual regression", "檢查畫面", "頁面有沒有壞", "visual test", "screenshot test", "畫面測試", "截圖比對", "有沒有跑版", "畫面壞了嗎", "UI 有沒有問題", "check if pages look right", for standalone manual investigation. 要用截圖前後比對確認畫面沒跑版。例如「跑 visual regression」「檢查畫面」 「有沒有跑版」「畫面壞了嗎」。 不用於:單元測試(那是「這一類工作怎麼算 done」的一部分,走 swe-knowledge)、 效能或 Core Web Vitals(走該公司自己的 CWV 調查 skill)。

5 Updated today
HsuanYuLee
Web & Frontend Solid

storybook

Scaffolds, audits, and tests Storybook stories for React (web) and React Native / Expo (native) component libraries. Generates three artefacts in two files per invocation: a visual regression `*.stories.tsx` file containing a `Default` story (variants grouped into a single snapshot) and a `Playground` story (interactive `args` / `argTypes`), plus a sibling `*.test.stories.tsx` interaction test file under a `/Tests` namespace. Supports an opt-in, per-pathname auth flow whose credentials live in the OS keychain (not in the repo). Iteration loop uses the Playwright CLI against the running Storybook URL; visual evidence delegates to the `pr-reviewer` agent and the `screen-recorder` skill. An opt-in `--validate` phase drives Playwright adversarially against the rendered story to find edge cases and break the component, then fixes the defects it finds behind a confidence gate. Triggers on "scaffold stories", "add storybook", "story for this component", "interaction test for this story", "validate this story", "/sto

13 Updated yesterday
mthines
Testing & QA Listed

visual-check

Generate and run visual regression tests (Playwright screenshot snapshots) against a running app, per key screen, with baselines and a tolerance threshold. Use for visual/design coverage of a test book or an app.

0 Updated 1 weeks ago
QAIA-Project