All skills
mblode avatar

/ui-design

@e7db33d
by Matthew Blodemblode/agent-skills134 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-inline-errors-first-focus.md

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

Show Inline Errors and Focus the First Invalid Field

On submit, reveal all relevant errors and move focus to the first failing field. Errors the user has to hunt for are the point where they abandon the form.

Detection

List the files containing a <form>, then keep only the ones that never move focus.

rg -lP '<form\b' -g '*.tsx' -g '*.jsx' src/ \
  | xargs -r rg --files-without-match -P '\.focus\(\)|autoFocus|shouldFocusError'

A form that leans on native constraint validation (required inputs, no noValidate) also matches, and there the browser focuses the first invalid field itself. Distinguish by the submit handler: if it calls preventDefault and validates in JS, focus is the code's job.

Incorrect (generic top error only):

{hasError && <p>Form invalid</p>}

Correct (field-level message and focus management):

{errors.email && <p id="email-error">Enter a valid email address</p>}
<input aria-invalid={Boolean(errors.email)} aria-describedby="email-error" />

if (errors.email) {
  emailRef.current?.focus()
}

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 2 days ago.

Activeupdated last week

README badge

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