designmatch

designmatch is a skill for Claude Code, Codex from randomittin/heimdall. It costs 69 tokens per session (3,050 once invoked), scanned A, original, MIT.

A visual comparison workflow for matching a React Native mobile screen to an HTML design reference on a real Android or iOS device.

In plain words
What is it for?
Use it to check or improve one screen's visual match before release, using rendered reference images, device captures, pixel differences, and structural similarity scores.
Why use it?
It replaces repeated visual guesswork with screenshots and image comparisons that show how closely the mobile screen matches the reference. React Native is a framework for building mobile apps with JavaScript and native components.

Skill for Claude CodeCodex

Part of the hmd plugin — 4 skills, 18 commands, 16 agents, 5 hooks, 1 MCP server shipped together

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.

agentmods
npx agentmods add skills/randomittin/heimdall/designmatch
Any agent
npx skills add randomittin/heimdall --skill designmatch
Clone the repo
git clone --depth 1 https://github.com/randomittin/heimdall

Made for: Claude Code, Codex.

Or install hmd, the plugin that ships this one along with the rest of its 4 skills, 18 commands, 16 agents, 5 hooks, 1 MCP server.

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 designmatch

README.md
[![agentmods](https://agentmods.dev/badge/skills/randomittin/heimdall/designmatch.svg)](https://agentmods.dev/skills/randomittin/heimdall/designmatch)
Your own site
<a href="https://agentmods.dev/skills/randomittin/heimdall/designmatch"><img src="https://agentmods.dev/badge/skills/randomittin/heimdall/designmatch.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,050 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00069 $0.03050
Opus 5 $0.00034 $0.01525
Sonnet 5 $0.00014 $0.00610
Haiku 4.5 $0.00007 $0.00305

Measured 4d ago against content hash 90a1152f4733, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

designmatch 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 4d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (assets/visual-qa.ts, scripts/emit-parity.js, scripts/fetch-canonical.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/designmatch/SKILL.md · 235 lines

How it starts

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

designmatch

Overview

Match RN screen → HTML canonical at ≥95% visual parity. Closed loop: VQA stub seeds redux → Playwright renders canonical PNG → adb/xcrun captures native PNG → pixelmatch + ssim.js scores diff → composite triptych for eyeball review → iterate.

Origin: a production React Native app. A single screen's SSIM climbed 35% → 55% over ~30 commits of eyeballed pixel-tweaking before this loop replaced it.

Pass gate: SSIM ≥ 0.95 OR pixelDiffPct ≤ 5%.

When to Use

  • RN screen drift from Claude Design HTML canonical
  • Visual parity audit before ship
  • Per-screen iteration loop on real device
  • Closing the design ↔ code feedback gap

Do NOT use for: unit logic, redux state shape, navigation graph correctness — those are not visual.

Quick Start — URL in, ready-to-translate out

From the RN project root:

designmatch init "<claude-design-url>" --app-dir . --port-all

This single command does the full bootstrap:

  1. App side: copies assets/visual-qa.ts into the app (src/lib/visual-qa.ts by default; auto-detects src/utils/, src/, app/, or root), writes default .designmatch/state.vqa.json, updates .gitignore.
  2. Fetch: Playwright headless downloads the entire canonical bundle (HTML + JSX + assets) to .designmatch/canonical/ by intercepting every network response, then flips config.json kind from urllocal-dir (original URL preserved for re-fetch).
  3. Port-all: discovers every screen-*.jsx|tsx / *Screen.jsx|tsx in the bundle and writes each to src/screens/<Name>.tsx preceded by the TRANSLATION GUIDE (web → RN idiom map).
  4. Wire: prints the App.tsx snippet (primeVisualQaFlag / applyVisualQaState / overrideFeatureFlags / VqaBadge / long-press handler).

Slash command equivalent (inside a Heimdall session): /hmd:designmatch <url-or-path>.

Auth: if the canonical URL is behind login, add --headed so Chromium launches visibly for interactive auth — the fetch picks up after sign-in.

Granular subcommands (when you want pieces, not the one-shot):

Read the full file on GitHub · 235 lines

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. 4d ago First seen · 235 lines · 69 tokens per session scan A 90a1152f4733

Subscribe to this mod's changes

designmatch is a skill published in the GitHub repository randomittin/heimdall (5 stars, last pushed 13d ago), licensed MIT. It adds 69 tokens to every session and 3,050 once invoked, about $0.0003 per session on Opus 5. 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-08-31.