sbshot-visual-diff
Skill by SigNoz
Run SigNoz's sbshot to shoot Storybook stories at two git refs and produce a visual diff a reviewer can read. Built for developers preparing a PR who need before and after screenshots or proof that unrelated screens did not change.
Install sbshot-visual-diff
Built from the published package, never by AI.
git clone --depth 1 https://github.com/SigNoz/signoz /tmp/signoz && mkdir -p ~/.claude/skills && cp -r /tmp/signoz/.claude/skills/sbshot-visual-diff ~/.claude/skills/sbshot-visual-diffRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/SigNoz/signoz /tmp/signoz && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/signoz/.claude/skills/sbshot-visual-diff ~/.gemini/antigravity-cli/skills/sbshot-visual-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
This skill teaches an assistant to use sbshot, a tool from SigNoz that shoots Storybook stories at two git refs and pixel-diffs the two runs. The workflow is capture once per ref, diff the pairs by relative path, tag the pairs a reviewer should check, and export a static site. The skill also sets rules that prevent false changes, such as starting a fresh Storybook for each ref, capturing both dark and light themes, and measuring noise with a second capture of the same commit.
It is written for developers who need a visual diff, before and after screenshots, or a screenshot comparison for a pull request. The skill warns that a diff only covers stories that exist, so screens and states without stories must be written first. The exported site can be hosted and linked in the PR body under Screenshots / Screen Recordings.
Written from the project's SKILL.md and checked against it.
What it can do
- Capture storiesShoots Storybook stories from a dev server, build directory or project for each git ref.
- Diff runsPixel-diffs two capture runs, pairing shots by relative path.
- Theme captureCaptures dark and light themes with the --theme dark,light option.
- Noise measurementDiffs two captures of the same commit to mark pairs that move for no reason.
- Tag pairsTags the pairs a reviewer should look at, with a note explaining why.
- Export static siteExports only non-identical pairs as a static site with WebP images.
- Scope capturesLimits a capture with --title or --stories to keep long runs manageable.
What you need
- Node.js, to run sbshot through npx
- A running Storybook dev server
- Git, with worktrees for each ref
- ImageMagick, for the green-parallel mode
Try asking
- Run a visual diff of my branch against its merge-base and summarize what changed.
- Tag the changed Alerts screens in this diff and add notes for the reviewer.
- Export the sbshot diff and write the Screenshots section for my PR body.
Good to know
- Not published as a package. It runs through npx from the GitHub repository.
- The frontend has no build-storybook script, so capture needs a running dev server.
- The --noise option ignores how far a pair moved and can hide real changes.
- On macOS a capture can run one story at a time, which makes long runs much slower.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/sbshot-visual-diff/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB
Alternatives to sbshot-visual-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
sbshot-visual-diff: common questions
Does sbshot catch changes on screens that have no Storybook story?
No. A screen or state without a story produces no pair, so it looks unchanged. The skill says to write the missing stories before capturing.
Why does the skill say to use the merge-base instead of origin/main?
Against a main branch that has moved on, every commit main gained shows up as reverted. The merge-base avoids this.
How do I reduce flaky results in the diff?
Measure noise by capturing the same commit twice and diffing those runs with --noise. For stories that stay flaky, the skill suggests fixing the story instead.
How do I install sbshot-visual-diff?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is sbshot-visual-diff free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is sbshot-visual-diff safe to use?
It scores 82 of 100. Grades: maintenance A, licence F, 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 sbshot-visual-diff?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
