fudesign2008/open-skills

figma-pixel-verify

Measure whether a running UI matches a Figma design-spec table (computed styles / box metrics + optional screenshots). Use when checking pixel alignment / 对?

First seen Aug 13, 2026

Installation

$ npx skills add fudesign2008/open-skills --skill figma-pixel-verify

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from fudesign2008/open-skills · top by installs.

npx skills add fudesign2008/open-skills

Browse all from fudesign2008/open-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 6
License LICENSE
Default branch main
Open issues 0
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.1.0

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 4,988 B
  • docs SUMMARY.md 745 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 25 installs

SKILL.md

Figma Pixel Verify

Measure a running UI against a Figma design-spec table and report pass/fail with evidence. Optionally suggest bounded fixes; do not pretend measurement succeeded without a real measurement channel.

When to use

  • After figma-pixel-implement (or any Figma implement pass that left a spec table)
  • User asks to check pixel alignment / design fidelity / 对照稿面验收
  • Standalone: user provides Figma URL + running preview URL/route; extract or rebuild a minimal spec table first

Inputs

  1. Design-spec table — From implement artifacts, or rebuild via Figma metadata/variables (same columns as implement reference).
  2. Runnable UI — Local/dev URL, Storybook, or in-editor preview the Agent can observe.
  3. Optional: Figma screenshot for side-by-side vision (supporting evidence, not a substitute for numeric checks when JS-eval is available).

Workflow (ordered)

  1. Preflight — Confirm preview is reachable; list which rows will be measured. If no spec table exists, extract a minimal one from Figma before claiming verify. Note the spec's theme scope (mode column / per-mode rows) and, when multiple themes are in scope, how the running UI switches themes (project toggle, data-theme, system preference) before measuring.
  2. Vision (optional) — Capture UI vs Figma screenshot; note gross mismatches (wrong component, missing block, theme drift).
  3. Numeric measurement — For each critical row, read computed style and/or bounding box from the live DOM (or equivalent runtime). Map selectors carefully; prefer stable test ids when present. For multi-theme specs, switch the running UI to each theme via its switching mechanism and measure per-mode rows under that theme — the same row under different themes is a separate verdict.
  4. Compare — Apply tolerances in [reference.md](reference.md). Assign a verdict per row.
  5. Bounded fix loop — On actionable DRIFT, fix code → re-measure. Cap at about 3 meaningful iterations, then stop with remaining residuals listed.
  6. Report — Use the template in [reference.md](reference.md). For multi-theme scope, report per theme (sections or a theme column). Overall status is not PASS if any critical HARDCODED/DRIFT/MISSING-style remains — in any theme in scope — unless the user explicitly accepts residuals.

Verdict taxonomy

Verdict Meaning
PASS Within tolerance of expected
DRIFT Measurable but outside tolerance
HARDCODED Value matches by luck or literal, not via project token/variable when the spec required a token — flag when token mapping was part of the contract
VARIANT Matches a different documented variant (e.g. hover/dark) than the requested one
MISSING-style Property not measurable (no node, no style, or channel unavailable)

Tool intent (platform-agnostic)

Intent Agent may use
Open/preview UI Browser MCP, simple browser, device preview
Read computed styles / boxes JS evaluate in page, DevTools-like APIs, test harnesses
Screenshots Browser or Figma screenshot tools
Apply fixes Native edit tools, then re-measure

If no JS-eval / computed-style channel exists: run vision-only comparison, label numeric rows MISSING-style or residual, and do not claim pixel PASS.

Relationship

Skill Boundary
figma-pixel-implement Produces code + spec table; does not own final verdict
Agent-native Figma→code guidance / MCP fetch Not a substitute for measurement
Host PDCA workflows Optional invoke — not a default strong dependency

Pitfalls

  • Declaring PASS from screenshots alone when measurement was possible.
  • Infinite tweak loops without re-measure.
  • Treating ±1 CSS px geometry noise on high-DPR as failure without noting DPR.
  • Silent skip of mask/currentColor issues — if implement violated asset rules, call that out as root cause of color DRIFT.
  • Marking per-mode rows PASS after measuring only the default theme — each theme in scope is measured under its own theme.