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.

rulesinteraction-target-size.md

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

Meet Minimum Hit Target Size

Touch targets need 44x44px (WCAG 2.5.5 Target Size Enhanced). 24x24px (WCAG 2.5.8 Target Size Minimum) is the floor only for dense desktop UI under pointer: fine; on touch it is a mistap generator, not a pass.

This file owns the 44px number, and it is a conformance floor, not a build target. New UI in this skill ships 48x48 per guidelines/buttons.md, which owns that number. An existing control between 44 and 47px is a pass with a note, never a fail.

Detection

Search for interactive elements sized below 44px, in Tailwind classes (anything under h-11) and in button-like CSS rules.

rg -nP '\b(h|w|size)-([1-9]|10)\b' -g '*.tsx' -g '*.jsx' src/ | rg 'button|role="button"'
rg -nUP '[.\w-]*(button|btn|icon)[^{}]*\{[^}]*(width|height):\s*([1-9]|[1-3][0-9])px' -g '*.css' src/

The small class usually belongs to the glyph inside an adequately sized control (<XIcon className="h-4 w-4" /> inside an h-11 button), which matches whenever both sit on one line. Read the enclosing element: the hit target is the button's box, not the icon's.

Incorrect (small tap area):

.icon-button {
  width: 18px;
  height: 18px;
}

Correct (expanded hit area):

.icon-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
}

Source: SKILL.md on GitHub

No alerts8d5 checks · Risk SAFE
  • Gen Agent Trust Hub8d

    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.

  • Socket8d

    No alerts

  • Snyk8d

    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 3 hours ago.

Activeupdated last week

README badge

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