/ui-design-skills:ui-webfrom ui-design-skills
Generates production-grade React + Tailwind + shadcn/ui UI with a two-phase workflow: tokens first (with approval gate), then UI. Replaces guesswork with named design anchors and bans AI slop patterns.
Ships in ui-design-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are generating production-grade web UI in React + TypeScript + Tailwind. This skill exists because untouched LLMs produce AI slop: purple→blue gradients, Inter everywhere, 3-icon-card grids, "Lightning fast / Powered by AI" copy, glassmorphism by default, arbitrary spacing values, and the median of every Tailwind tutorial scraped from GitHub. This skill replaces guesses with constraints.
The non-negotiable rule: NEVER use a buzzword in place of a token. Words like clean, modern, professional, sleek, premium are banned from your reasoning. Every aesthetic choice must trace back to a named anchor recipe in anchors.md and a token in the project's tailwind.config.ts.
Before any other action, check for:
DESIGN_RULES.md # at repo root → if exists, you are in EXTEND mode
tailwind.config.{ts,js} # → if exists with custom theme, you are in EXTEND mode
app/globals.css # check for CSS custom properties / tokens
src/styles/tokens.css
DESIGN_RULES.md exists: read it. Read the existing tailwind.config.*. Skip to Step 3 (Phase 2: UI). Use only existing tokens. NEVER add new colors/spacing/radii without asking.DESIGN_RULES.md: read tokens, infer the closest matching anchor, ask the user to confirm the inferred anchor, then write DESIGN_RULES.md and proceed to Phase 2.Use AskUserQuestion to gather, in this order:
anchors.md (one-line summary each). Let the user pick 1–3. If 2–3, ask which is primary and which contributes type vs color vs motion.ban-patterns.md with the 3 default-on items pre-checked. Confirm.Do NOT ask vibe questions ("how should it feel?"). Ask only the questions above.
Generate, in this order:
tailwind.config.ts — extend theme using the chosen anchor's recipe. Use the template at templates/tailwind.config.ts.tmpl. Required keys: colors, spacing, borderRadius, fontSize, fontFamily, boxShadow, transitionDuration, transitionTimingFunction.app/globals.css (or src/index.css for Vite) — CSS custom properties mirroring the Tailwind tokens, plus dark-mode overrides if requested.eslint.config.js patch — enable the slop-blocking lint rules from templates/eslint.slop.cjs.tmpl. Add a lint:design script to package.json.DESIGN_RULES.md at repo root — fill templates/DESIGN_RULES.md.tmpl with the chosen anchors, active bans, token file paths, and verification command.CLAUDE.md patch — append (do not overwrite): Before any UI/UX work, read and follow DESIGN_RULES.md.Then run the Token Audit from verification.md and print the PASS/FAIL table to the user. Do not proceed to Phase 2 until the user approves.
Generate the requested screen/component using only tokens from the config. Follow:
component-anatomy.md — exact rules for button, input, card, list, nav, modal, toast, empty-state, form-field, table-row.motion.md — easing curves and durations.copy-voice.md — every string is real, contextual copy. No lorem ipsum, no filler.icons-imagery.md — icon library, sizing, alignment. No emoji bullets in serious UI.Then run the UI Audit from verification.md AND pnpm lint:design (or npm/yarn equivalent). Print the audit table. Fix every FAIL before claiming done.
| File | When to read |
|---|---|
anchors.md | Step 1, before showing the user choices. ALWAYS read fully — never quote from memory. |
ban-patterns.md | Step 1, when showing ban menu. Step 2 and 3, when verifying. |
component-anatomy.md | Step 3, before writing any component. |
motion.md | Step 3, when adding any transition or animation. |
copy-voice.md | Step 3, before writing any user-facing string. |
icons-imagery.md | Step 3, when choosing icons or images. |
verification.md | After Step 2 (Token Audit) and after Step 3 (UI Audit). MANDATORY — do not skip. |
templates/* | Use as the basis for the generated files; fill placeholders, never ship as-is. |
mt-[13px], w-[372px], text-[#3a4f6b], rounded-[7px]. Every value must be a token in tailwind.config.ts. If you need a value that does not exist, ask the user to add it to the token set.bg-gradient-to-r from-purple-* to-pink-*, no from-indigo-* to-purple-*, no backdrop-blur on regular cards (only on iOS-style chrome/sheets if anchor allows).focus:outline-none without an explicit replacement.anchors.md (opens in a new tab)ban-patterns.md (opens in a new tab)component-anatomy.md (opens in a new tab)copy-voice.md (opens in a new tab)icons-imagery.md (opens in a new tab)motion.md (opens in a new tab)templates/DESIGN_RULES.md.tmpl (opens in a new tab)templates/eslint.slop.cjs.tmpl (opens in a new tab)templates/tailwind.config.ts.tmpl (opens in a new tab)verification.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/ui-androidGenerate slop-free Android UI in Jetpack Compose + Material 3 Expressive (Android 14+ / API 34+). Use whenever the user asks to build, design, scaffold, restyle, or improve a screen, component, activity, fragment, or any Android interface in Compose. Two phases — theme tokens first (with approval gate), then UI — both gated by a self-audit checklist that the model MUST run before claiming done./ui-iosGenerate slop-free SwiftUI UI for iOS 17+ (iPhone and iPad). Use whenever the user asks to build, design, scaffold, restyle, or improve a SwiftUI screen, View, sheet, NavigationStack, tab, or any iOS interface. Greenfield mobile coverage — does not replace any existing skill. Two phases — tokens first (with approval gate), then UI — both gated by a self-audit checklist that the model MUST run before claiming done.Other plugins' skills for the same job
npx claudepluginhub rshzrh/ui-design-skills --plugin ui-design-skills