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-icon-controls-labeled.md

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

Label Icon-Only Controls

Any control with no visible text requires an accessible name. Without one, assistive tech announces nothing usable and the control cannot be identified.

Detection

Search for buttons whose only child is an icon component and that carry no aria-label, aria-labelledby, or title; a hit is confirmed when the button renders no text node at all.

rg -nUP '<button\b(?![^>]*(aria-label|aria-labelledby|title=))[^>]*>\s*<[A-Z][\w.]*[^>]*/>\s*</button>' -g '*.tsx' -g '*.jsx' src/

Some icon libraries build the accessible name from a prop on the icon itself (<XIcon title="Close" />), which matches here but passes. Open the icon component: if it renders a <title> or sr-only text, the button already has a name.

Incorrect (no accessible name):

<button onClick={closeModal}>
  <XIcon />
</button>

Correct (explicit label):

<button type="button" aria-label="Close dialog" onClick={closeModal}>
  <XIcon aria-hidden="true" />
</button>

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