ui-conformance

ui-conformance is a skill for Claude Code, Codex from me-cedric/agent-compass. It costs 0 tokens per session (1,505 once invoked), scanned A, original, MIT.

A four-layer check that compares a built web screen with its design, including design values, computed browser styles and a Playwright baseline. Playwright is a tool that drives a browser with code to test what users see.

In plain words
What is it for?
Use it when changing a component, style, design token or layout, or when building from Figma, a design tool for interface mockups.
Why use it?
A screenshot alone may hide differences in fonts, colours, spacing or text. The checks provide evidence of where the implementation differs instead of relying on visual guesses.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when changing a component, style, design token or layout, or when building from Figma, a design tool for interface mockups.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/me-cedric/agent-compass/ui-conformance
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add me-cedric/agent-compass --skill ui-conformance
Clone the repo
git clone --depth 1 https://github.com/me-cedric/agent-compass

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ui-conformance

README.md
[![agentmods](https://agentmods.dev/badge/skills/me-cedric/agent-compass/ui-conformance/github.svg)](https://agentmods.dev/skills/me-cedric/agent-compass/ui-conformance)
Your own site
<a href="https://agentmods.dev/skills/me-cedric/agent-compass/ui-conformance"><img src="https://agentmods.dev/badge/skills/me-cedric/agent-compass/ui-conformance/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ui-conformance

Your own site · 80×15
<a href="https://agentmods.dev/skills/me-cedric/agent-compass/ui-conformance"><img src="https://agentmods.dev/badge/skills/me-cedric/agent-compass/ui-conformance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,505 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01505
Opus 5.5 $0.00000 $0.00602
Sonnet 5.5 $0.00000 $0.00301
Haiku 4.5 $0.00000 $0.00151

Measured 9d ago against content hash 3448c5cc7e3d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ui-conformance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (assets/eslint-boundaries.mjs, scripts/probe-design-values.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ui-conformance/SKILL.md · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ui-conformance

Answer one question: does the built screen match its design? A claim is not proof. Run the layers in order. Fix the first layer that fails, then run it again.

Inputs

  1. Find the screen in {{DESIGNS_DIR}}/screens.json (see spec-flow). An alias or a SCR-id gives the route, the Figma node and the stories.
  2. Read the design through the Figma MCP: get_design_context and get_variable_defs on the node.
  3. If the Figma MCP is not available, use the exports in {{DESIGNS_DIR}} or the PNG that the user gives. Say what you lacked. Never guess a value.
  4. Before you write a new component, look for one that fits. Use the Storybook MCP when the project has it. Else read the *.stories.* files and the component library.
  5. Map each Figma component to a code component. Write a new one only when none fits.

1. Tokens against computed style

Read both sides as values. A screenshot cannot settle fonts, colors, backgrounds or copy.

  1. Run the probes in scripts/probe-design-values.js against the running app with Playwright browser_evaluate.
  2. Run the typography census first. It groups all visible text by family, weight, size, line height and color.
  3. Compare family, weight, size, line height, color, background color, background image, radius and spacing with the Figma variables.
  4. Quote the measured value against the expected one: rgb(17,24,39) measured, expected #064e3b. "Title matches" records nothing.
  5. A Figma text-style name is not its content. A CSS Module class can beat a utility class of equal specificity by source order.
  6. A gradient headline has color: transparent. Read background-image and the ancestors and ::before layers.
  7. Compare with the frame that the design shows for this viewport, not only with the type scale rule.

2. Structure

  1. Compare order, nesting, alignment, constraints and responsive rules with the design.
  2. Check each state: hover, focus, disabled, loading, empty, error.
  3. Compare the copy character by character.
  4. Atomic design on the web: copy assets/eslint-boundaries.mjs next to eslint.config.mjs and add it to the config. The lint then fails when a level imports a higher level.

Read the full file on GitHub · 89 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago Changed · -45 tokens per session 3448c5cc7e3d
  2. 10d ago First seen · 89 lines · 45 tokens per session scan A 11c945a2d7ed

Subscribe to this mod's changes

ui-conformance is a skill published in the GitHub repository me-cedric/agent-compass (3 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,505 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-18.

Related

Other skills, from other repositories

brand-landingpage

Brand-first landing page designer — runs a brand-identity interview (colors, typography, shape language), then generates and iterates on a polished landing page via Stitch with deployment-ready HTML. Use when the user asks to create, design, or build a landing page, homepage, or marketing page and has no established…

wshobson/agents · 112 tokens

web-design

Penguin visual language for generated web pages and app UIs — GitHub-style simplicity with a single blue accent, light and pure-black dark themes, design tokens, component and chat-interface recipes, plus an opt-in warm paper editorial theme.

Prism-Shadow/penguin-harness · 51 tokens

mockuplm

Create visual UX mockups using HTML/CSS files (.mockup.html). Use when the user wants to design UI, wireframes, visual layouts, or plan features visually.

nimbalyst/nimbalyst · 39 tokens

moai-design-tools

Design tool integration specialist covering Figma MCP, Pencil renderer, and Pencil-to-code export. Use when fetching design context from Figma, rendering Pencil designs, or exporting to React/Tailwind code.

modu-ai/moai-adk · 45 tokens

tailwind-design-system

Build scalable design systems with Tailwind CSS v4, design tokens, component libraries, and responsive patterns. Use when creating component libraries, implementing design systems, or standardizing UI patterns.

calesthio/OpenMontage · 42 tokens

ui-craft

Design, build, redesign, or modify browser-visible web interfaces with product-quality composition, visual systems, interaction states, responsive behavior, accessibility, and browser visual QA. Use for HTML, CSS, JavaScript, React, Vue, or Svelte pages and components, landing pages, dashboards, admin tools, settings…

MemTensor/memmy-agent · 86 tokens