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.

guidelinesresponsive-design.md

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

Responsive Design

Covers: mobile, tablet, desktop, breakpoints, container queries, overflow, wrapping, clipping, cramped narrow viewports. For the full retrofit ruleset (navigation, tables, pagination, touch targets, overflow patterns), see ../make-responsive.md.

Design Rules

  • Adapt every layout mobile to desktop with breakpoint classes (sm:, md:, lg:): adjust grid columns, spacing, font sizes, and visibility.
  • Collapse multi-column desktop layouts (sidebars, secondary nav, filter panels) to single column on small screens via mobile menu, disclosure, or compact pattern; never just shrink columns.
  • Make body text, subheadings, form controls, and icons larger on mobile, smaller at sm:: write the mobile (larger) size as default and the desktop (smaller) size with sm: (e.g. text-2xl/8 sm:text-xl/8, text-base/7 sm:text-sm/6, text-lg/6 sm:text-sm/6, size-5 sm:size-4, py-2.5 sm:py-1.5). Applies to body text, subheadings, stat values, form input labels, badges, buttons, select/input padding, and icons. Not h1s (page titles stay equal or get smaller on mobile, never bigger).
  • Keep body text at least text-base (16px) on mobile; text-sm only at sm: or larger (e.g. text-base/7 sm:text-sm/6, never text-sm/6 unprefixed for body copy).

Coding Rules

  • Use container queries (@container) for component-level responsiveness: anything whose layout depends on available space, not the viewport (dashboard widgets, feature cards, pricing tiers, testimonial grids).
  • Place the @container element as close to the responsive content as possible: a direct wrapper around the items, never a page-level container.

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