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.

canonicalize-tailwind.md

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

Canonicalize Tailwind

Use when the user wants to clean up, canonicalize, or normalize Tailwind class lists.

Workflow

  1. Identify Tailwind class strings in the requested files or components.
  2. Canonicalize them with npx @tailwindcss/cli canonicalize.
  3. Apply the changed strings back to the source.
  4. Run the project's formatter or relevant checks when available.

Commands

  • npx @tailwindcss/cli canonicalize collapses shorthands (mt-2 mr-2 mb-2 ml-2 → m-2), resolves overrides (py-3 p-1 px-3 → p-3), canonicalizes arbitrary values to named utilities, and sorts classes; pass --css path/to/input.css if the project uses a custom CSS entry file.

    Single class string:

    npx @tailwindcss/cli canonicalize "mt-2 mr-2 mb-2 ml-2"
    # m-2

    Multiple strings as positional args (each on its own line):

    npx @tailwindcss/cli canonicalize "py-3 p-1 px-3" "mt-2 mr-2 mb-2 ml-2"
    # p-3
    # m-2

    Pipe strings via stdin (one per line):

    echo "py-3 p-1 px-3\nmt-2 mr-2 mb-2 ml-2" | npx @tailwindcss/cli canonicalize
    # p-3
    # m-2

    --format json or --format jsonl gives structured output with input/output/changed fields:

    npx @tailwindcss/cli canonicalize --format json "py-3 p-1 px-3"
    # [{ "input": "py-3 p-1 px-3", "output": "p-3", "changed": true }]

    --stream processes stdin line-by-line without buffering:

    npx @tailwindcss/cli canonicalize --stream

Verify

  • Confirm classes still express the same visual intent after canonicalization.

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