All skills
mblode avatar

/ui-design

@e7db33d
by Matthew Blodemblode/agent-skills136 stars
12

Designs and builds React/Next/Tailwind UI and audits visual and interaction defects. Use when asked to "build a landing page", "extract our design system", "add dark mode", "make this responsive", "remove UI slop", or "audit this component". For product decisions use product-design; for browser measurements use ui-verification; for motion use ui-animation.

Use this Skill: https://skilld.dev/gh/mblode/agent-skills/ui-design

This session only. Nothing lands on disk.

rulesperf-image-dimensions-and-priority.md

≈291 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Set Image Dimensions and Priority Intentionally

Declare width/height (or aspect ratio) and prioritize only above-the-fold hero images. Undeclared dimensions shift the page as images arrive, and an unprioritized hero delays the largest paint.

Detection

Search for <img> tags with no width attribute, which is the layout-shift half of this rule.

rg -nUP '<img\b(?![^>]*\bwidth=)[^>]*>' -g '*.tsx' -g '*.jsx' src/

An image whose box is already reserved in CSS (aspect-video, aspect-[16/9], a fixed h- plus w-, or <Image fill> in a sized parent) matches but does not shift. The priority half is not greppable on its own: identify the first-viewport image, then confirm it carries priority or fetchPriority="high".

Incorrect (layout shift risk):

<img src="/hero.jpg" alt="Product screenshot" />

Correct (stable image rendering):

<Image
  src="/hero.jpg"
  alt="Product screenshot"
  width={1600}
  height={900}
  priority
/>

Source: SKILL.md on GitHub

No alerts7d5 checks · Risk SAFE
  • Gen Agent Trust Hub7d

    A comprehensive UI design and auditing skill that uses standard developer tools and trusted services like Tailwind CSS and placeholder asset APIs to build and verify React/Next.js interfaces. It includes explicit guardrails to prevent instruction following from analyzed project files.

  • Socket7d

    No alerts

  • Snyk7d

    Risk: LOW · No issues

  • Runlayer6mo

    4/5 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at e7db33d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 28 minutes ago.

Activeupdated last week

README badge

README badge for mblode/agent-skills/ui-design