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-focus-visible.md

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

Preserve Visible Focus States

Never remove outlines without a clear :focus-visible replacement. With the outline gone, keyboard users cannot see where they are and the interface stops being navigable.

Detection

Find files that remove the outline and never define a :focus-visible replacement anywhere.

rg -lP 'outline:\s*(none|0)|\boutline-(none|hidden)\b' -g '*.css' -g '*.tsx' -g '*.jsx' src/ \
| xargs -r rg --files-without-match -P 'focus-visible'

Tailwind v4 split the old utility: outline-none now sets outline-style: none for real, and outline-hidden keeps a transparent outline so forced-colors mode still draws one. Either is a finding without a focus-visible: replacement. outline-hidden on a container focused programmatically with tabIndex={-1} (a modal panel, a scroll region) matches but has no ring to show and is not a finding. The file-level pairing also cuts the other way: one focus-visible rule hides an unrelated outline removal in the same file, so read each hit rather than trusting the file list.

Incorrect (focus removed):

button:focus {
  outline: none;
}

Correct (high-contrast focus ring):

button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

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 25 minutes ago.

Activeupdated last week

README badge

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