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.

rulesa11y-tooltip-no-interactive.md

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

Hover tooltips must not contain interactive content

A hover tooltip that contains a link, button, or input cannot be used with a keyboard or a touch screen, and it vanishes when the pointer moves to reach the inner control. Users see an action they cannot activate reliably.

Put actions in a focusable popover, dropdown, or dialog that opens on click or keyboard. Hover tooltips are for short non-interactive names and descriptions.

Detection

Search tooltip content slots for nested interactive elements.

rg -nUP '<(Tooltip(Content)?|HoverCard(Content)?)[^>]*>[\s\S]{0,800}<(button|a |input|select|textarea)\b' -g '*.tsx' -g '*.jsx' src/

Radix/Base UI Popover and DropdownMenu match similar names but are click/keyboard surfaces: skip those. A single icon that is aria-hidden decoration inside the tooltip is not interactive.

Incorrect (button inside a hover tooltip):

<Tooltip>
  <TooltipTrigger>Plan</TooltipTrigger>
  <TooltipContent>
    Pro includes SSO.
    <button type="button" onClick={upgrade}>
      Upgrade
    </button>
  </TooltipContent>
</Tooltip>

Correct (actions live in a popover):

<Popover>
  <PopoverTrigger>Plan</PopoverTrigger>
  <PopoverContent>
    Pro includes SSO.
    <button type="button" onClick={upgrade}>
      Upgrade
    </button>
  </PopoverContent>
</Popover>

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

Activeupdated last week

README badge

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