# Only case/whitespace differences
npx uimatch text-diff "Sign in" "SIGN IN"
# Typo but still similar
npx uimatch text-diff "Submit" "Submt" --threshold=0.6
# Full-width vs half-width
npx uimatch text-diff "Button123" "Button123"
The CLI applies:
Unicode NFKC normalization
Whitespace collapsing
Lowercasing (unless --case-sensitive is given)
How Claude Code should use this skill
Typical flow:
Extract two text strings:
e.g., from Figma JSON / spec vs DOM textContent
Run uimatch text-diff with those strings.
Parse JSON output and:
report kind and similarity
explain whether differences are only formatting (whitespace-or-case-only) or real content changes (mismatch)
Use this skill:
when a user suspects copy differences
when visual diff is too noisy but text differences matter
as a complement to compare results (to explain text-related discrepancies)
For pixel-level comparison, use uimatch-compare or uimatch-suite instead.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: kosaki08-uimatch-uimatch-text-diff3description: uiMatch Text Diff Skill4---56# uiMatch Text Diff Skill78## Purpose910Compare **two pieces of text** (e.g. Figma label vs implementation text) and classify how different they are.1112Use this skill to:1314- detect copy mismatches (labels, button text, headings)15- distinguish between “only casing/whitespace changed” vs “actual wording changed”16- perform cheap checks without running browser comparisons1718---1920## Environment / assumptions2122- Run commands from the repository root.23- `@uimatch/cli` is installed as a devDependency.24- Node.js 20+ is available.2526This skill does **not** require Figma API or Playwright. 27`FIGMA_ACCESS_TOKEN` and browser installation are not needed here.2829---3031## Command usage3233```bash34npx uimatch text-diff "<EXPECTED_TEXT>" "<ACTUAL_TEXT>" [--case-sensitive] [--threshold=<0-1>]35```3637Notes:3839- Options must use `=` syntax, for example: `--threshold=0.8`.40- Output is JSON with fields:41 - `kind`: `"exact-match" | "whitespace-or-case-only" | "normalized-match" | "mismatch"`42 - `similarity`: `0.0 - 1.0` similarity score43 - `expected`, `actual`44 - `normalizedExpected`, `normalizedActual`4546### Examples4748```bash49# Only case/whitespace differences50npx uimatch text-diff "Sign in" "SIGN IN"5152# Typo but still similar53npx uimatch text-diff "Submit" "Submt" --threshold=0.65455# Full-width vs half-width56npx uimatch text-diff "Button123" "Button123"57```5859The CLI applies:6061- Unicode NFKC normalization62- Whitespace collapsing63- Lowercasing (unless `--case-sensitive` is given)6465---6667## How Claude Code should use this skill6869Typical flow:70711. Extract two text strings:72 - e.g., from Figma JSON / spec vs DOM `textContent`73742. Run `uimatch text-diff` with those strings.753. Parse JSON output and:76 - report `kind` and `similarity`77 - explain whether differences are only formatting (`whitespace-or-case-only`) or real content changes (`mismatch`)7879Use this skill:8081- when a user suspects copy differences82- when visual diff is too noisy but text differences matter83- as a complement to `compare` results (to explain text-related discrepancies)8485For pixel-level comparison, use `uimatch-compare` or `uimatch-suite` instead.8687---88> Converted and distributed by [TomeVault](https://tomevault.io/claim/kosaki08) — claim your Tome and manage your conversions.89<!-- tomevault:4.0:skill_md:2026-04-13 -->
Run npx skillmds@latest add tomevault-io/kosaki08-uimatch-uimatch-text-diff in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
uiMatch Text Diff Skill It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.