chromatic-diff
Skill by daangn
Investigates why a Chromatic snapshot changed. It renders the two builds' Storybooks on localhost and compares structure, computed styles and design tokens, so it can tell a real regression from a flaky snapshot.
Install chromatic-diff
Built from the published package, never by AI.
git clone --depth 1 https://github.com/daangn/seed-design /tmp/seed-design && mkdir -p ~/.claude/skills && cp -r /tmp/seed-design/skills/chromatic-diff ~/.claude/skills/chromatic-diffRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/daangn/seed-design /tmp/seed-design && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/seed-design/skills/chromatic-diff ~/.gemini/antigravity-cli/skills/chromatic-diffAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The skill takes a Chromatic build or test URL and resolves it into the two builds being compared. By default the comparison side is the baseline build Chromatic used. A user can also name another branch, build number, or URL. A proxy script then serves both published Storybooks on localhost, since they reject anonymous navigation. The assistant renders the same story in each build through chrome-devtools tools and extracts matching DOM, computed style, and custom property data from both pages.
The result is a named explanation of the change: a structural change, a styling or layout change, or identical renders that point to a flaky snapshot. The skill is written for developers who review visual regression failures in Chromatic and want to know which element, property, or token caused a diff before approving it.
Written from the project's SKILL.md and checked against it.
What it can do
- Resolve Chromatic URLTurns a Chromatic build or test URL into the two builds, their branch and commit, and changed tests.
- Choose comparison sideCompares against the default baseline build or a named branch, build number, build id, or URL.
- Localhost Storybook proxyServes both published Storybooks on localhost with the token added upstream.
- Render and extractRenders the same story in both builds and dumps DOM, computed styles, boxes, and :root custom properties.
- Flaky verdict checkScreenshots one unchanged page twice to test whether the story renders deterministically.
What you need
- CHROMATIC_TOKEN environment variable
- Bun runtime
- A chrome-devtools driver, either the MCP tools or the chrome-devtools CLI
Try asking
- Investigate what changed in this Chromatic build: <chromatic-url>
- Compare this Chromatic build against the dev branch and explain the diff
- Check whether this snapshot change is a real regression or a flaky story
Good to know
- Steps 3 to 5 require a chrome-devtools driver; without one the run stops after resolving the build.
- The build may be out of reach because of the lastBuild limitation in the Chromatic API.
- The skill refuses substitute drivers such as Playwright or Puppeteer and does not use Chromatic's comparison images as a stand-in.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/chromatic-diff/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to chromatic-diff
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
chromatic-diff: common questions
What does chromatic-diff compare between two builds?
It compares the rendered DOM, computed styles, element boxes, and :root custom properties of the same story from each build. The source says this shows structural, style, and token changes rather than pixel differences.
How does it decide a snapshot is flaky?
If both builds render identically at the captured viewport, the snapshot is likely flaky. The skill recommends screenshotting one unchanged page twice to confirm the story is not deterministic.
Which environment does it need to run?
It needs CHROMATIC_TOKEN, the Bun runtime, and a chrome-devtools driver. Without a driver it reports the build and stops.
How do I install chromatic-diff?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is chromatic-diff free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is chromatic-diff safe to use?
It scores 75 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to chromatic-diff?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
