uimatch-text-diff
БесплатноБез исполняемых скриптовНе проверенCompare two pieces of text using the uiMatch CLI text-diff command and classify how similar they are (exact match, whitespace/case-only, normalized match, or…
Об этом скилле
uiMatch Text Diff Skill
Purpose
Compare two pieces of text (e.g. Figma label vs implementation text) and classify how different they are.
Use this skill to:
- detect copy mismatches (labels, button text, headings)
- distinguish between “only casing/whitespace changed” vs “actual wording changed”
- perform cheap checks without running browser comparisons
Environment / assumptions
- Run commands from the repository root.
@uimatch/cliis installed as a devDependency.- Node.js 20+ is available.
This skill does not require Figma API or Playwright.FIGMA_ACCESS_TOKEN and browser installation are not needed here.
Command usage
npx @uimatch/cli text-diff "<EXPECTED_TEXT>" "<ACTUAL_TEXT>" [--case-sensitive] [--threshold=<0-1>]
Notes:
- Options must use
=syntax, for example:--threshold=0.8. - Output is JSON with fields:
kind:"exact-match" | "whitespace-or-case-only" | "normalized-match" | "mismatch"similarity:0.0 - 1.0similarity scoreexpected,actualnormalizedExpected,normalizedActual
Examples
# Only case/whitespace differences
npx @uimatch/cli text-diff "Sign in" "SIGN IN"
# Typo but still similar
npx @uimatch/cli text-diff "Submit" "Submt" --threshold=0.6
# Full-width vs half-width
npx @uimatch/cli text-diff "Button123" "Button123"
The CLI applies:
- Unicode NFKC normalization
- Whitespace collapsing
- Lowercasing (unless
--case-sensitiveis given)
How Claude Code should use this skill
Typical flow:
Extract two text strings:
- e.g., from Figma JSON / spec vs DOM
textContent
- e.g., from Figma JSON / spec vs DOM
Run
uimatch text-diffwith those strings.Parse JSON output and:
- report
kindandsimilarity - explain whether differences are only formatting (
whitespace-or-case-only) or real content changes (mismatch)
- report
Use this skill:
- when a user suspects copy differences
- when visual diff is too noisy but text differences matter
- as a complement to
compareresults (to explain text-related discrepancies)
For pixel-level comparison, use uimatch-compare or uimatch-suite instead.
Установить uimatch-text-diff в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл uimatch-text-diff?
Compare two pieces of text using the uiMatch CLI text-diff command and classify how similar they are (exact match, whitespace/case-only, normalized match, or mismatch). Use this skill when the user cares about copy or label differences between design and implementation, or wants a cheap text-only check without running browser-based visual comparison.
Как установить скилл uimatch-text-diff?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл uimatch-text-diff запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic