visual-test
Skill by microsoft
Visually verifies a component by launching its Storybook story and taking a screenshot with playwright-cli. Built for developers who want to check UI changes to a React component in an nx workspace.
Install visual-test
Built from the published package, never by AI.
git clone --depth 1 https://github.com/microsoft/fluentui /tmp/fluentui && mkdir -p ~/.claude/skills && cp -r /tmp/fluentui/.agents/skills/visual-test ~/.claude/skills/visual-testRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/microsoft/fluentui /tmp/fluentui && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/fluentui/.agents/skills/visual-test ~/.gemini/antigravity-cli/skills/visual-testAntigravity 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 visual-test skill checks how a component looks after visual changes. It finds the component's per-component Storybook stories package, starts its dev server, and waits for the stories to compile. It then opens the story in playwright-cli, takes a screenshot, and saves it to /tmp so the assistant can view it with the Read tool.
It can also take an accessibility snapshot, click elements, and resize the viewport to check hover states and responsive layouts. The skill uses npx to run @playwright/cli@0.1.1 without a global install. It is aimed at developers who work on React components in a Storybook-based nx workspace and want a quick visual check after making visual changes. Storybook is stopped and the browser closed at the end.
Written from the project's SKILL.md and checked against it.
What it can do
- Launch component storyStarts the per-component Storybook dev server for a component's stories package.
- Take screenshotCaptures a screenshot of the story iframe with playwright-cli and saves it to /tmp.
- Accessibility snapshotGets the accessibility tree and interactive element refs for the page.
- Interact with elementsClicks or hovers elements by ref before taking more screenshots.
- Resize viewportChanges the browser size to test responsive behavior.
- Dark theme checkOpens a story with the dark theme global set in the iframe URL.
- Iterate after fixesReloads the story after code changes, since Storybook hot-reloads.
What you need
- Node.js with npx
- Yarn and an nx workspace
- A per-component Storybook stories package (react-<component>-stories)
- Network access to download @playwright/cli@0.1.1 on first run
- Shell tools: lsof, curl, pgrep and python3
Try asking
- Visually test the Button component and show me the screenshot.
- Check the Menu component's default story after my styling changes.
- Take a screenshot of the Button disabled story in dark theme.
Good to know
- Requires the per-component stories package; the skill says not to fall back to the workspace-wide Storybook.
- Storybook picks a random port, so the port must be detected at runtime.
- Some workspaces may need yarn nx reset if the target is missing.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/visual-test/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash Read Grep Glob
-
SKILL.md7 KB
Alternatives to visual-test
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
visual-test: common questions
What does visual-test need to run?
The source lists Node.js with npx, a Yarn and nx workspace with a per-component Storybook stories package, and shell tools such as lsof, curl and python3.
Does it install Playwright globally?
No. The skill runs playwright-cli through npx so nothing is installed globally, and the first call downloads @playwright/cli@0.1.1 into the npx cache.
What if the component has no stories package?
The source says to check for a preview package named react-<component>-preview-stories or ask before proceeding.
How do I install visual-test?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is visual-test free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is visual-test safe to use?
It scores 80 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 visual-test?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
