Communitygithub.com

new-ui

Use whenever creating a new UI — a new page, screen, component, app, dashboard, form, dialog, or frontend from scratch. Designs for distracted users who don't read (Joel Spolsky) and implements so the design holds up across devices, inputs and performance (Jonathan Snook, "Design Engineering"). Also invoked manually as /new-ui.

new-ui란 무엇인가요?

new-ui is a Claude Code agent skill that use whenever creating a new UI — a new page, screen, component, app, dashboard, form, dialog, or frontend from scratch. Designs for distracted users who don't read (Joel Spolsky) and implements so the design holds up across devices, inputs and performance (Jonathan Snook, "Design Engineering"). Also invoked manually as /new-ui.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Cucuteanu-Tudor-912/UI-DESIGN-SKILLS/tree/HEAD/skills/new-ui

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

New UI: design for people with better things to do

Source: Joel Spolsky, Designing for People Who Have Better Things To Do With Their Lives (2000).

Who you are designing for

Your real user is not you. Picture 100 users:

  • They are not necessarily computer-literate, and some are not fluent in your language.
  • They are distracted (a phone ringing, a crying baby) and give your UI about 30% of their attention.
  • Some are intimidated by computers. When the UI questions them, they assume they are wrong.

They aren't stupid. They just have better things to do. Act as if these are true, even though they aren't literally true:

"Users don't have the manual, and if they did, they wouldn't read it." "Users can't read anything, and if they could, they wouldn't want to."

Success is the share of real users who finish the task in reasonable time. A UI that is merely possible to use is not easy to use.

The rules

  1. No manual needed. The main flow must be obvious from the screen itself. There are no onboarding essays, no "see docs", and no help text needed to get through it.
    • Exception: when users lack domain knowledge (the QuickBooks/accounting case), teach the domain, not the UI.
  2. Assume no text gets read. Users skip error messages first.
    • The UI must still work when every sentence is ignored.
    • Layout, labels, defaults and button names carry the meaning. Paragraphs don't.
  3. Fewer words, more readers. Every extra word lowers the number of people who read any of it.
    • Prefer 5 words to 80.
    • Cut parentheticals, "please", "thank you", formal or literary prose, and clever copy.
    • Shorten it, dumb it down, simplify.
  4. Don't teach with explanatory text. If a control needs a paragraph to explain it, redesign the control.
  5. Defaults must be right. Novices skip the text and hope the defaults are fine. Make sure they are.
  6. No confirmations for harmless actions. Quitting, closing, navigating away when nothing is lost, and undoable actions just happen.
    • A prompt makes nervous users think they're doing something wrong.
    • Prefer undo over "are you sure?".
  7. If a confirmation is truly needed (real data loss), make it about two words.
    • Use a verb that matches the action, e.g. "Delete 3 files?" with Delete / Cancel.
    • No guilt, and no "Are you sure you want to…".
  8. Grab bars help everyone. Making the UI easy for distracted beginners makes it better for experts too. Never trade beginner clarity for expert cleverness.

Implementation baseline: the design must hold up

Source: Jonathan Snook, Design Engineering (2014). Implementing a design means making sure it "holds up under the various design constraints", not just matching a mockup.

  1. Every screen size and browser. Check narrow-to-wide widths and more than one browser engine where it matters. Nothing overflows, clips or becomes unreachable. For any web UI, invoke the responsive-ui skill (Marcotte) for layout, breakpoints, navigation and images, and run its checklist before finishing.
  2. Every input method. The UI must work with:
    • mouse;
    • keyboard alone (tab order, visible focus, Enter/Escape);
    • touch (targets big enough, no hover-only actions);
    • a screen reader (semantic HTML, labels, alt text, announced state). Accessibility is part of implementing the design, not an add-on.
  3. Consistent and codified. Reuse the repo's existing components, tokens and patterns. A new pattern gets made reusable instead of copied once and tweaked. Same thing, same look, same behavior.
  4. Render performance and load time are UI concerns.
    • Don't ship heavy assets, needless dependencies, or layout jank.
    • The first useful screen should appear fast.
  5. Prototype to validate. When the right design is unclear, build the smallest working prototype and try it before polishing.
  6. Push back on design with constraints. If a design asks for something that breaks the rules above, say so and propose the closest version that holds up.

Process

  1. Name the task. Write one line: "A distracted user can ___ in under ___." Ask the user only if this is unclear. Reuse the repo's existing components and styling.
  2. Build with the rules above. If the code is TypeScript (.ts/.tsx), invoke the typescript-ui skill and follow it. Accessibility is not optional, because it's the literal grab bar: semantic elements, labels, keyboard focus and contrast.
  3. Word audit. Before finishing, list every visible string: headings, labels, buttons, empty states, errors and dialogs. For each one:
    • cut words until it breaks;
    • delete it if the UI works without it;
    • flag any sentence longer than about 8 words and justify it or cut it.
  4. Skip-the-text test. Mentally blank out every sentence (keep only control labels). Can a 30%-attention user still finish the main task? If not, fix the design, not the copy.
  5. Confirmation audit. List every dialog or prompt. Remove any that guard a harmless or undoable action. Make the remaining ones about two words.
  6. Verify for real. Run it and load it in a browser (browser-automation or run).
    • Check the main flow end to end and look for console errors.
    • Check empty, error and long-content states (break-ui).
    • Run the responsive-ui checklist: resize from about 320px up to wide.
    • Do one keyboard-only pass of the main flow.
    • Take a screenshot and look at it.
  7. Report the task line, the word-audit cuts, the confirmations removed, what was verified and how, and anything skipped.

Individual skills in this repo

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

관련 스킬