uimatch-suite
БесплатноБез исполняемых скриптовНе проверенRun a batch of visual comparisons defined in a uiMatch suite JSON file using @uimatch/cli, then read each report to summarize which components passed or…
Об этом скилле
uiMatch Suite Skill
Purpose
Run a batch of visual comparisons defined in a JSON suite file and summarize overall results.
Use this skill to:
- execute multiple uiMatch comparisons in one go
- support CI-style checks locally
- see which components fail their quality gates across a suite
Environment / assumptions
- Run commands from the repository root.
@uimatch/cliis installed as a devDependency.- Playwright and Chromium are already installed:
npx playwright install chromiumhas been run previously.
- Node.js 20+ is available.
Figma token (IMPORTANT)
The uiMatch CLI does not load .env files automatically.
Before running any uimatch suite command:
export FIGMA_ACCESS_TOKEN="figd_..."
Suite items that rely on Figma API will fail if this is missing.
Figma references and quoting
Inside the suite JSON:
Prefer
FILE_KEY:NODE_IDformat forfigmafields:{ "figma": "AbCdEf123:1-2" }If a full Figma URL is used, it is stored in JSON and not parsed by the shell directly, so shell escaping is less of a problem. Still, keep URLs valid and unbroken.
For more shared environment notes, see:
../_shared/uimatch-common-env.md
For advanced tuning (viewport, size, contentBasis, dpr) on suite items, see:
../_shared/uimatch-advanced-settings.md
Suite command usage
Basic command
npx @uimatch/cli suite \
path=<PATH_TO_SUITE_JSON> \
outDir=<OUTPUT_DIR> \
concurrency=<NUMBER>
Recommended:
outDir=.uimatch-suiteconcurrency=4
Example:
npx @uimatch/cli suite \
path=.github/uimatch-suite.json \
outDir=.uimatch-suite \
concurrency=4
Suite file shape (high level)
A typical suite JSON looks like:
{
"name": "Component Suite",
"defaults": {
"profile": "component/dev",
"story": "http://localhost:6006"
},
"items": [
{
"name": "Button Primary",
"figma": "AbCdEf123:1-2",
"story": "http://localhost:6006/iframe.html?id=button--primary",
"selector": "#storybook-root button"
},
{
"name": "Card Component",
"figma": "AbCdEf123:3-4",
"story": "http://localhost:6006/iframe.html?id=card--default",
"selector": "#storybook-root .card"
}
]
}
For full schema details, see docs/docs/cli-reference.md (suite section).
Interpreting suite results
For each item, uiMatch will create a subdirectory under outDir:
<outDir>/<item-slug>/figma.png<outDir>/<item-slug>/impl.png<outDir>/<item-slug>/diff.png<outDir>/<item-slug>/report.json
Claude Code should:
Enumerate all item directories under
outDir.For each
report.json, read:metrics.dfsqualityGate.passqualityGate.reasons
Build a summary:
- Which items passed
- Which items failed (with reasons)
- Any patterns across failures (e.g. all failing on color or spacing)
If CI-like behavior is desired, note that:
uimatch suitewill exit with:0when all items pass1when one or more items fail2for configuration errors
When to use this skill
Use this skill when:
- The user already has (or is willing to create) a suite JSON file.
- They want to run multiple comparisons consistently (e.g. on every PR).
- They care about overall health of a component library or flow, not just one component.
For one-off comparisons, prefer the uimatch-compare skill.
For text-only checks, prefer the uimatch-text-diff skill.
Установить uimatch-suite в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл uimatch-suite?
Run a batch of visual comparisons defined in a uiMatch suite JSON file using @uimatch/cli, then read each report to summarize which components passed or failed their quality gates. Use this skill when the user wants to run many Figma-vs-implementation checks at once, such as CI-style validation for a component library or flow.
Как установить скилл uimatch-suite?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл uimatch-suite запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic