agentleFS
0xrafasec0xrafasec/ai-workflow/skills/verify-design/SKILL.md

verify-design

Skill9 starsChanged 20 days agoMITView on GitHub

Compare the running UI with its Paper artboards in a real browser (Playwright, desktop and mobile) and fix the mismatches in the code. Use when the user says 'verify the design', 'does this match Paper', 'check design fidelity', 'the UI drifted from the mock', or after building a page that has a Paper artboard. Edits source files; needs the Paper MCP, Playwright and a runnable dev server. Not for creating designs (use /wf:design) or for a review that must not change code.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. rafagomes/ai-workflow★ 9100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository16 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Verify the current UI against its Paper design references for: $ARGUMENTS

    line 6
  2. Very specific:

    Read docs/design/DESIGN_SYSTEM.md and the project's token sources (global stylesheet, theme config such as globals.css or tailwind.config.*.

    line 28
  3. Distinctive:

    Read every file the target page touches: page, components, global CSS, UI primitives.

    line 34
  4. Very specific:

    If the artboard has a / Dark variant and the app supports dark mode, repeat with browser_emulate_media colorScheme: "dark".

    line 45
  5. Distinctive:

    Keep the findings list in your working notes.

    line 49
  6. Distinctive:

    Prefer a token (class or CSS variable) over an ad-hoc value, and replace raw hex, px and font names that should be tokens.

    line 62
  7. Distinctive:

    If a fix would change documented behaviour or scope, stop and ask.

    line 64

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Verify the current UI against its Paper design references for: $ARGUMENTS

In hosts that do not substitute $ARGUMENTS (e.g. Codex), it is the text the user wrote after the skill name.

This is a fix-in-place fidelity pass: load the Paper artboards and tokens, drive the running app in a real browser, fix what differs, and re-verify. Fix what you find in the same session; a report of mismatches leaves the user to redo the work you just did. Ask only when a mismatch looks intentional or the fix changes scope.

Tools are named by short name (Paper's get_basic_info, Playwright's browser_navigate); the MCP prefix depends on how each is installed. Paper preflight: load Paper's guide first (get_guide, topic paper-mcp-instructions), call get_font_family_info before any typographic styling, call finish_working_on_nodes if you edit the canvas, and never show raw node IDs to the user. If the Paper MCP is not connected, or the open file is not the project's, stop and say so. Only if the user agrees, fall back to docs/design/DESIGN_SYSTEM.md and docs/design/assets/ screenshots, and mark every finding "doc-derived, not verified in Paper". If the Playwright MCP is not available, stop and suggest installing it; a static comparison cannot catch console errors, clipping or broken interactions.

Arguments

  • none: every page with design references. If that is more than about 5 pages, show the scope table and ask which to start with, or work in roadmap priority order.
  • A page or route name (dashboard), or a component name or file path (Hero).
  • Free-form notes (specific bugs, reference screenshots, a page to use as style anchor) are priority work items.

1. Locate design references

Find artboards in this order: the roadmap's Design reference field and the Canvas Map in docs/design/DESIGN_SYSTEM.md; then the Flow / Screen / State / Platform artboard names via find_nodes; then artboard IDs in specs. Names survive a rebuilt Paper file; IDs go stale.

Build a scope table (page, desktop artboard, mobile artboard, source file). If there is a desktop and a mobile artboard, check both. If there is no design material at all, stop and tell the user to run /wf:design first.

2. Load tokens and artboards

Read docs/design/DESIGN_SYSTEM.md and the project's token sources (global stylesheet, theme config such as globals.css or tailwind.config.*; find them, do not assume a path). Record palette, type scale, spacing, radii, shadows, and flag hardcoded values that duplicate a token.

From Paper: get_basic_info once per session (it gives artboard sizes), get_screenshot per artboard in scope, and get_jsx / get_computed_styles on key nodes. Never read sizes or colours from screenshots.

3. Read the source

Read every file the target page touches: page, components, global CSS, UI primitives.

4. Check in a real browser

Take the dev server's start command and URL from the project's agent instructions (CLAUDE.md or AGENTS.md), package.json scripts or Makefile; if it is not running, start it in the background, and stop any server you started when done. If you cannot tell how to start it, ask. If the page needs authentication, ask once for test credentials or a seed route; do not guess or create accounts.

For each page in scope:

  1. browser_resize to the desktop artboard's size (default 1440x900), browser_navigate, full-page browser_take_screenshot.
  2. The same at the mobile artboard's size (default 390x844). If a page has an artboard for only one viewport, still load the other to check overflow and clipping, and report that it has no design reference.
  3. browser_console_messages with level: "error". Any runtime error is HIGH.
  4. If the artboard has a / Dark variant and the app supports dark mode, repeat with browser_emulate_media colorScheme: "dark".
  5. Exercise interactive elements the user flagged (menus, drawers, dialogs, forms): open, screenshot, close by every documented path (button, Esc, backdrop). If motion is in scope, repeat with reducedMotion: "reduce".
  6. Compare each browser screenshot with its Paper screenshot: typography, colour, spacing, alignment, overflow and clipping.

Keep the findings list in your working notes; do not write a report file.

SeverityExamples
HIGHwrong font family or primary colour; missing page section; broken responsive layout; console errors; inoperable controls (menu cannot close); visible overflow or clipping; a loading, empty or error state that Paper shows but the UI lacks
MEDIUMfont size off by more than 2 steps; wrong spacing in a primary content area; a token replaced by a hardcoded value
LOWspacing drift of 2px or less; slightly off shadow; minor radius mismatch

A state that neither Paper nor the UI has: note it, do not invent it. Source of truth, in order: Paper computed values, design doc values, token config, screenshots.

5. Fix in place

  • Make targeted edits; do not rewrite components unless necessary, and do not bundle unrelated refactors.
  • Prefer a token (class or CSS variable) over an ad-hoc value, and replace raw hex, px and font names that should be tokens.
  • For interactive bugs, fix the interaction, not only the visual.
  • If a fix would change documented behaviour or scope, stop and ask.

6. Re-verify

Repeat the browser pass (desktop, mobile, flagged interactions) and confirm the screenshots match Paper and the console is clean. Run the project's lint, typecheck and tests (from the project's agent instructions, package.json or the Makefile); report each in one line (command, result) and show output only for a failure.

Report

Final message: pages checked; mismatches fixed (before -> after, with exact values); anything left because it looked intentional; the check results. Leave the changes uncommitted unless asked and suggest /wf:commit. This skill edits code, so the changes still go through the normal commit and /wf:pr review; it does not replace wf:reviewer.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.