agentleFS
jhonatan-oliveiradevjhonatan-oliveiradev/agent-skills/skills/implementing-reference-faithful-ui/SKILL.md

implementing-reference-faithful-ui

Skill1 starsChanged 3 months agoMITView on GitHub

Use when implementing a UI from Figma, screenshots, mockups, or an existing visual reference and fidelity to layout, spacing, typography, crops, and states is a primary acceptance criterion.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat the supplied visual as evidence.

    line 9
  2. Distinctive:

    Do not replace unusual design decisions with generic component-library defaults.

    line 29
  3. Distinctive:

    Do not add hover scaling, glass, gradients, cards, or animation just to make the result feel richer.

    line 30
  4. Distinctive:

    Do not claim pixel-perfect fidelity without rendering the result.

    line 31
  5. Distinctive:

    If an asset is unavailable, preserve the geometry and document the substitute.

    line 32

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Implementing Reference-Faithful UI

Rule

Treat the supplied visual as evidence. Do not improvise away visible differences that can be measured.

Workflow

  1. Inventory source evidence: viewport size, grid, container widths, anchors, spacing, type styles, image bounds, radius, borders, shadows, icons, and responsive clues.
  2. Identify invariants versus responsive behavior. Do not force desktop geometry onto mobile.
  3. Match structural geometry first: section heights, columns, alignment, content widths, media boxes.
  4. Match typography next: family, size, line-height, tracking, weight, wrapping, overflow behavior.
  5. Match surfaces last: color, border, shadow, blur, texture, micro-details.
  6. Implement interactions only when they exist in the reference or are required by usability.
  7. Render and compare. Fix the largest visual delta first, then iterate downward.

Pixel-perfect checks

  • Text does not wrap differently without reason.
  • Images are not accidentally cropped or scaled on hover.
  • Overflow does not clip intended typography or controls.
  • Icons are visually equivalent and aligned to baseline.
  • Absolute positioning is used only when the design truly requires it.
  • Desktop and mobile are validated separately.

Guardrails

  • Do not replace unusual design decisions with generic component-library defaults.
  • Do not add hover scaling, glass, gradients, cards, or animation just to make the result feel richer.
  • Do not claim pixel-perfect fidelity without rendering the result.
  • If an asset is unavailable, preserve the geometry and document the substitute.

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.