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.

ruleslayout-long-content-safety.md

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

Handle Long and Unbroken Content Safely

Protect UI against long names, URLs, and dense content blocks. Unhandled, a single long token overflows its container and breaks the layout around it.

Detection

No grep decides this. Whether a container overflows depends on its rendered width and the content it actually receives, and the failing shape (a truncate child inside a flex parent missing min-width: 0) is a relationship between elements that no single-file pattern can confirm.

Evidence to collect: render the surface at 320px and at the narrowest supported desktop width, seeded with a hostile fixture (a 60-character unbroken token, a 200-character name, a raw URL with no spaces, a locale whose strings run 30% longer). Then, per candidate container, compare scrollWidth against clientWidth and screenshot anything where the content escapes its box or pushes a sibling off screen. Report the overflowing element with its viewport width and the string that broke it.

The ui-verification skill runs exactly that as its viewport-stress probe, including the culprit walk that finds the deepest overflowing element rather than its ancestors. Dispatch to it when an app is running; with no browser this rule is unknown, never a fail.

Incorrect (overflow risk):

.card-title {
  white-space: nowrap;
}

Correct (safe truncation/wrapping):

.card {
  min-width: 0;
}
.card-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-body {
  overflow-wrap: anywhere;
}

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

Activeupdated last week

README badge

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