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.
npx agentmods add instructions/nv-minh/ui-perfect/claude-mdgit clone --depth 1 https://github.com/nv-minh/UI-perfectWrote 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.
[](https://agentmods.dev/instructions/nv-minh/ui-perfect/claude-md)<a href="https://agentmods.dev/instructions/nv-minh/ui-perfect/claude-md"><img src="https://agentmods.dev/badge/instructions/nv-minh/ui-perfect/claude-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01139 | $0.01139 |
| Opus 5 | $0.00570 | $0.00570 |
| Sonnet 5 | $0.00228 | $0.00228 |
| Haiku 4.5 | $0.00114 | $0.00114 |
Grade A, and why
UI-perfect CLAUDE.md 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 5d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 54 lines — stays where its author put it; the contents beside it link to each section on GitHub.
UI-perfect / specgate
Tool verify độ khớp Figma design ↔ implementation cho Claude Code. Measurement-first: so số đo (Figma REST vs getComputedStyle) là nguồn sự thật, pixel diff chỉ per-node để bắt sai asset. Design docs: PLAN.md, PLAN-02-lockfile-mobile.md. Plan thực hiện đã duyệt: ~/.claude/plans/t-i-c-t-o-repo-deep-sky.md.
Cấu trúc
packages/core— NormalizedNode types, Probe interface, compare engine. KHÔNG import Figma/Playwright.packages/figma— REST client (batch + cache theo version + 429 backoff) + normalize.packages/probe-web— Playwright WebProbe + freeze kit.packages/cli—specgate verify|accept|guard|audit|impact|mcp(6 lệnh).apps/testbed— checkout screen dựng theo Figma (baseline hiện tại: 0 HIGH / 0 MED / 1 LOW, coverage 38% node significant đã map) +mutations/(harness 3 bộ detect/benign/mapping)..specgate/screens.config.json— fileKey,figma.timeout,app(url/command/fixtureMode),sources(cho impact),impact.always, và logical key map per viewport..research/— repo tham chiếu (gitignored): uimatch, looks-same, Figma-Context-MCP, rest-api-spec.
Quy tắc quan trọng
- Playwright pin exact
1.62.1cả trongpackages/probe-web/package.jsonlẫndocker/docker-compose.yml(image + npx). Lệch version = lỗi 428 khi connect. - Browser chạy trong Docker:
cd docker && docker compose up -d→ws://localhost:6003/specgate. Testbed Vite phải giữhost: trueđể container thấyhttp://host.docker.internal:5173. - Figma Tier-1 rate limit ~10 req/min (Starter plan): mọi code gọi Figma phải cache theo (fileKey, version) và backoff khi 429. Không bao giờ gọi Figma trong vòng lặp không throttle.
FIGMA_TOKENchỉ nằm trong.env(gitignored). CLI cũng chấp nhậnFIGMA_ACCESS_TOKENlàm fallback (tên biến của uimatch) — có cả hai thìFIGMA_TOKENthắng..envnhận cả dạngexport KEY=value.- Mọi request Figma chạy dưới 1 deadline duy nhất (
figma.timeouttrong config, mặc định 30s) bao trọn cả header lẫn body — kể cả lúc tải PNG từ S3. Hết giờ →Figma request timeout sau 30000ms tại <endpoint>, đó là lỗi hạ tầng KHÔNG phải lỗi UI. - DPR đọc từ config (
viewport.dpr, mặc định 2) và phải khớp nhau ở cả 3 nơi: viewport probe, Figma export scale, screenshot. Testbed dùng 2 — đổi thì đổi một chỗ trongscreens.config.json, đừng hardcode rải rác. - Khi generate UI từ Figma: mỗi element ứng với 1 Figma node phải có
data-fig="<logical key>"(key trong screens.config.json, KHÔNG phải node id). Root frame thêmdata-fig-root.
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.
- 5d ago First seen · 54 lines · 1,139 tokens per session scan A 79aaecb75767
UI-perfect CLAUDE.md is an instructions file published in the GitHub repository nv-minh/UI-perfect (0 stars, last pushed 1mo ago), licensed MIT. It adds 1,139 tokens to every session, about $0.0057 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.
Other instructions, from other repositories
figma-console-mcp CLAUDE.md
Claude Code instructions for southleft/figma-console-mcp, covering figma console mcp, build & test, release process, known issues and architecture.
figwright AGENTS.md
AGENTS.md instructions for awdr74100/figwright, covering agents.md, architecture, layout, tech stack and commands.
figwright CLAUDE.md
Claude Code instructions for awdr74100/figwright: Read AGENTS.md first — it's the single source of guidance for this repo: architecture, layout, tech stack, commands, conventions, release flow, and gotchas.
figmosha2 CLAUDE.md
Instructions for denysosadchyi/figmosha2, covering figmosha 2.0 — claude code instructions, how to send code, preferred — subcommand-style, shorthand (auto-prepends exec) and quick http (no python needed).
figma-annotations CLAUDE.md
Instructions for richardplg2/figma-annotations, covering figma annotations — vs code extension, architecture, key concepts, commands and websocket relay.
Aurelius CLAUDE.md
Claude Code instructions for PMDevSolutions/Aurelius, covering claude.md, project overview, project structure, development scripts and lint and format code.