Communitygithub.com

create-ui

Build a complete frontend from a product description — web app, landing page, dashboard or Expo/React Native mobile app — in one consistent flow - scope screens → direction (wait for OK) → Tailwind and tokens → components → every state → motion pass → review → verify in browser or iOS simulator. Use when the user asks to build, create or design an app, site, page set or set of screens (for example "build an iOS app like X with Expo", "make a dashboard for Y", "build the frontend for this PRD").

Was ist create-ui?

create-ui is a Claude Code agent skill that build a complete frontend from a product description — web app, landing page, dashboard or Expo/React Native mobile app — in one consistent flow - scope screens → direction (wait for OK) → Tailwind and tokens → components → every state → motion pass → review → verify in browser or iOS simulator. Use when the user asks to build, create or design an app, site, page set or set of screens (for example "build an iOS app like X with Expo", "make a dashboard for Y", "build the frontend for this PRD").

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/manishdashsharma/ui-ux-skills/tree/HEAD/skills/create-ui

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Create UI

The UI counterpart of a backend scaffold: same architecture every time, decisions made in the right order, nothing shipped unverified. Read ui-conventions first; it applies throughout.

Phase 1 — Scope (then stop if anything is unclear)

From the request, a PRD or the repo, list:

  • Platform and stack. Web (Next.js App Router by default for apps, Vite for SPAs/prototypes) or mobile (Expo + Expo Router + NativeWind + Reanimated). Keep an existing stack.
  • Screens, each with its class (marketing, app shell, form, data view, editor, settings, moment) and its states: loading, empty, error, success, first-run.
  • Navigation map. How screens connect (tabs, stack, sheets, modals).
  • Inputs the user gave. Design system link, references, inspiration tools (e.g. a Mobbin MCP), assets coming later (e.g. Rive characters from another session), brand files.
  • Data. Real API or mock. If mock, plausible fixtures in one place (lib/mock/ or data/), shaped like the real thing will be.

Ask every open question in one message, each with a default, so the user can answer "defaults". Skip what's already answered.

Phase 2 — Direction (wait for approval)

Run design-direction. For moments the user called out (a success page, onboarding, a celebration), research them specifically with the inspiration tools available and note which motion and composition ideas you're taking.

Show: direction, token plan, a wireframe per key screen, the navigation map. Stop and wait for OK unless the user said to just build.

Phase 3 — Foundation

  1. Tailwind present? If not, ask, then tailwind-setup. (Never skip this check.)
  2. Wire tokens from DESIGN.md into the theme. Light and dark if the product needs both.
  3. Component layer:
    • Web: shadcn-ui (npx shadcn@latest init, pick a style close to the direction, then restyle via tokens and cva variants).
    • Expo: a small components/ui/ set built on NativeWind — Button (press scale), Text (role variants from the type scale), Card, Sheet, Screen (safe areas). Only what the screens need.
  4. Fonts loaded (next/font or expo-font), icon set installed, cn() helper present.
  5. Placeholders for assets arriving later. For Rive characters: a <Character name state /> component with a fixed-size slot and a static fallback, so swapping in .riv files later changes one component, not every screen. Document expected artboards, state machines and inputs in DESIGN.md.

Phase 4 — Build screens

One screen at a time, in navigation order, each finished before the next:

  • Real copy (ux-writing), realistic data, every state from Phase 1.
  • Layout and spacing from layout-spacing, type from typography, color roles from color-system, surfaces from ui-polish.
  • Mobile: safe areas, 44pt targets, native stack transitions, formSheet for sheets, NativeTabs or the platform tab bar, haptics only on meaningful events.
  • Web on phones: mobile-web baseline.

Phase 5 — Motion pass

After the screens work without motion. Run the frequency gate for every candidate (motion-web / motion-native). Spend the delight budget on the rare moments (success, completion, first run); keep everything frequent instant or near-instant. Coordinate multi-element moments with a written timeline (choreography in motion-web). Gestures and springs per apple-design.

Phase 6 — Review

Run ui-review on the whole flow, then unslop's checklist as a self-check, then break-ui on the densest list or card. Fix every HIGH finding before reporting.

Phase 7 — Verify

  • Web: dev server, screenshots at 375px and 1440px in both themes, console clean, typecheck and lint pass.
  • Expo: build to the iOS simulator (npx expo run:ios), walk every screen, xcrun simctl io booted screenshot each one and look at them. Gesture feel, haptics and 120fps need a real device — say which checks are pending on hardware.
  • Report: what was built (screens, components, tokens), what was verified and how, what's pending (assets, device checks), and any decisions you made on the user's behalf.

Layout of the result

Web (Next.js):

app/(marketing)/…  app/(app)/…        routes
components/ui/                        shadcn primitives (restyled)
components/<feature>/                 feature components
lib/utils.ts  lib/mock/               cn(), fixtures
app/globals.css                       @theme tokens
DESIGN.md

Expo:

app/_layout.tsx  app/(tabs)/…  app/<screen>.tsx    Expo Router
components/ui/  components/<feature>/
lib/  data/  assets/
global.css  tailwind.config.js
DESIGN.md

Never

  • Start building before the direction is approved (unless told to).
  • Write UI without Tailwind, or install Tailwind without asking.
  • Hand-roll a primitive the component layer already ships.
  • Leave a screen with only its happy path.
  • Claim a visual or device check you didn't run.

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

accessibility

Build and review interfaces against WCAG 2.2 AA - native elements first, keyboard paths, visible focus, focus trapping and restoring, hit areas, labels and forms, error announcements, accessible names, contrast thresholds, reduced motion, timers, live regions, alt text, zoom and reflow - for web (Tailwind) and React Native. Use when building any interactive UI, forms, dialogs, menus or custom widgets, or when auditing accessibility.

color-system

Build and audit color - OKLCH ramps, semantic role tokens in Tailwind, light and dark themes, one-meaning-per-color, contrast measured on the rendered pair, gradients and P3. Use when picking or generating a palette, naming color tokens, adding dark mode, fixing contrast, or when components use raw hex or bg-blue-600 directly.

design-direction

Decide what a product should look and feel like before building it — ground the design in the subject, write a five-line direction, plan tokens (palette, type, layout, motion), check the plan against the usual AI defaults, and lock it in DESIGN.md. Uses the user's references, design system, Mobbin/inspiration tools or theme presets when given. Use at the start of any new app, page, screen set or redesign, when the user pastes references or a design system link, asks to "match this vibe", or says the UI looks generic.

typography

Set and review how text renders - choosing typefaces, a role-based type scale as Tailwind tokens, line-height and tracking by size, measure, wrapping, truncation, tabular numbers, punctuation, font loading and size floors, on web and native. Use when picking fonts, defining a type scale, fixing text that looks off, or reviewing headings, labels, numbers and long-form text.

Verwandte Skills