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.

rulesforms-input-affix-hit-target.md

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

Overlay input affixes on the field

A search icon, currency mark, or unit sitting beside the field as a sibling splits the hit target: clicks on the decoration do not focus the input, and the control reads as two widgets. Prefix and suffix decorations belong on top of the text input, with padding so the value does not collide, and they must not steal pointer events.

Detection

Search for an icon or addon element as a flex sibling of an input, rather than an overlay inside a relative wrapper.

rg -nUP '(?s)<div[^>]*(flex|grid)[^>]*>\s*<(svg|Icon|Search|span)[^>]*>[\s\S]{0,400}<input\b' -g '*.tsx' -g '*.jsx' src/

A separate submit button next to a field (search form, OTP paste) is a second control on purpose: skip it. Skip input groups where the addon is itself a <button> that performs an action (show password, clear, generate).

Incorrect (icon beside the field):

<div className="flex items-center gap-2">
  <SearchIcon />
  <input type="search" name="q" />
</div>

Correct (icon overlaid, clicks reach the input):

<div className="relative">
  <SearchIcon className="pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2" />
  <input type="search" name="q" className="w-full pl-9" />
</div>

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