Skip to content
Design
Command

/fidelity

Measure how faithfully a clone reproduces a site — pixel-diff plus motion-fidelity into one 0-100 score, a letter grade, a ranked correction plan, and a shareable card.

BOOST
From plugin
designlang
4.2k14 skills14 commands
Install
> /plugin marketplace add manavarya09/design-extract
> /plugin install designlang@designlang

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/fidelity

Context preview

What this command does when you run it.

Measure how faithfully a clone reproduces a site — pixel-diff plus motion-fidelity into one 0-100 score, a letter grade, a ranked correction plan, and a shareable card.

Command definition

fidelity.md
description: Measure how faithfully a clone reproduces a site — pixel-diff plus motion-fidelity into one 0-100 score, a letter grade, a ranked correction plan, and a shareable card.
argument-hint: <original-url> --clone <clone-url> [--min <score>] [--motion-runtime]

Run **designlang fidelity** to score a clone against the site it was cloned from. Unlike tools that just hand you code and *claim* "pixel-perfect", this measures it: a full-page pixel-diff for visuals **and** a motion-fidelity comparison (durations, easings, springs, keyframe kinds, scroll-linked motion, choreography/stagger) — blended into one score with a ranked plan of what to fix next.

npx designlang fidelity $ARGUMENTS

If no `$ARGUMENTS` were supplied, ask the user for the **original URL** and the **clone URL** (often a local dev server like `http://localhost:3000`).

After the run, surface the **overall score + grade**, the visual/motion split, and the top correction directives. Outputs land in the output dir:

| File | What it is | |---|---| | `fidelity.md` | headline score, motion breakdown table, ranked correction plan | | `fidelity.json` | the full machine-readable report | | `fidelity-card.svg` | a shareable score card (`88% · B · stripe.com`) | | `fidelity-diff.png` | the visual loss heatmap |

Useful flags via `$ARGUMENTS`:

| Flag | Effect | |---|---| | `--clone <url>` | the clone to score (required) | | `--min <score>` | exit non-zero if overall fidelity is below this (CI gate) | | `--motion-runtime` | capture real runtime motion + choreography on both sides |

This is the self-correcting clone loop: measure → read the correction plan → rebuild → re-run until the score crosses your threshold. Pair with `/extract` and `/verify`.

Full reference: https://github.com/Manavarya09/design-extract#full-cli-reference

Read more
Ships withdesignlang

Extract any website's complete design system with one command. DTCG tokens, semantic+primitive+composite, MCP server for Claude Code/Cursor/Windsurf, multi-platform emitters (iOS SwiftUI, Android Compose, Flutter, WordPress), Tailwind v4, Figma variables, shadcn/ui, CSS health audit, WCAG remediation, Chrome extension. MIT, Playwright, Node 20+.

Get the whole plugin
Stats
4,182
Stars
353
Forks
Active
Maintenance
HTML
Language
MIT
License
9d ago
Last commit
5mo ago
Created
19h ago
Added

Repo: manavarya09/design-extract

Other commands on designlang.