UI Design Guide
Start here for interface work. This plugin has three skills: one picks a distinctive visual direction, one keeps a design system consistent, and one builds multi-part web artifacts. Route the request to the skill that owns the decision, then run the steps in order.
Pick the skill
| Situation | Skill | Why |
|---|
| New screen or page, or an existing UI that must not look templated | frontend-design | It sets the palette, type, layout and principles for the brief, reviews the plan against it, then critiques the build. |
| Audit, document or extend an existing design system (naming, hardcoded values, component docs, new patterns) | design-system | It produces audit tables, a component document, or a proposal for a new component that fits the current tokens. |
| Interactive, multi-component artifact for claude.ai that needs state, routing or shadcn/ui | web-artifacts-builder | It scaffolds a React, TypeScript, Vite and Tailwind project and bundles it into one shareable HTML file. |
Within design-system, choose the mode by what already exists. Use audit when a system exists and may be inconsistent, document when components exist without docs, and extend when a pattern is missing. Its argument hint names these three modes. If the request is a visual direction for a new screen, it belongs to frontend-design even when a design system is mentioned.
Workflows
1. New page or screen from a brief (frontend-design, then web-artifacts-builder)
- Input: the brief, with its subject, audience and primary job. If the brief leaves these out, frontend-design says to propose them and confirm with the client before designing.
- Step 1, frontend-design: write the plan first. It holds 4 to 6 named hex colours, the type families and roles, a layout concept with an ASCII wireframe and alignment choice, and principles. Review the plan against the brief and revise any generic part. Output: the approved plan.
- Step 2, build: write the code from the revised plan. If the result needs state, routing or shadcn/ui components, run
scripts/init-artifact.sh <project-name> from web-artifacts-builder, edit the generated project, then run scripts/bundle-artifact.sh.
- Output:
bundle.html, the single file to share in the conversation. Testing waits until the user asks or something breaks.
2. Bring an existing design system up to standard (design-system: audit, document, extend)
- Input: the component list, the token file, and examples of hardcoded values or inconsistent names.
- Step 1, audit: the Design System Audit template gives a summary, a naming table, token coverage and component completeness, and three priority actions. Output: the priority list.
- Step 2, document: for each component you keep, fill the document template (description, variants, props, states, accessibility, do's and don'ts, code example). Mark unknown props or states as unknown instead of guessing. Output: one document per component.
- Step 3, extend: for a missing component, use the extend template. Its Tokens Used section should reference the tokens from step 1, and its Open Questions list goes to design review. Output: a proposal, not a finished component.
3. Reshape a generic screen inside an existing system (design-system audit, then frontend-design)
- Input: the screen, and the token list the audit produced for it.
- Step 1, audit: find the hardcoded colours and arbitrary spacing on that screen. Output: the list of values to replace with tokens.
- Step 2, frontend-design: propose the visual direction and review it against the brief, which includes any direction the system already pins down, because frontend-design says the brief's own words win. Say what you changed in the plan and why. Output: a plan and build that use named tokens.
Pro habits
- Ground every choice in the subject's industry, audience and materials, and build with the brief's real content (frontend-design, "Ground your designs in the subject matter").
- Plan on paper before code: 4 to 6 named colours, type roles, an ASCII wireframe and principles (frontend-design, Process).
- Review the plan against the brief, and write down what you changed and why (frontend-design, Process).
- Spend your boldness in one place, and remove one decorative element before you ship (frontend-design, Restraint and self-critique).
- Use one or two typefaces, and if two, make them clearly distinct (frontend-design, Typography).
- Give motion one orchestrated moment, or tie it to something the person does (frontend-design, Motion).
- Write interface copy in plain verbs and sentence case, and make each error say what went wrong and how to fix it (frontend-design, More on writing).
- Audit before you extend, and document while you build (design-system, Tips 1 and 2).
- Keep colour, type, spacing, radius, shadow and motion in tokens, so components draw from one place (design-system, Design Tokens).
- Bundle to one HTML file, and test later only when asked or when an issue appears (web-artifacts-builder, Step 5).
Amateur tells
- A warm cream background with a terracotta accent, or near-black with one acid-green accent, on every brief. Fix: derive the palette from the subject. The skill lists these as calibration traits that read as defaults (frontend-design, Process).
- One headline word set in italic or a different colour. Fix: let the type treatment carry the headline, or leave it alone (frontend-design, Typography).
- Numbers 01, 02, 03 on content that is not a sequence. Fix: remove them unless the content is a stepped process or a timeline (frontend-design, Visual structure).
- Identical rounded cards with one radius and the same grey shadow everywhere. Fix: let hierarchy set the radius and shadow (frontend-design, Process traits).
- Every section fades and slides up on scroll, and every card has a hover transition. Fix: keep one orchestrated moment (frontend-design, Motion).
- Purple gradients, centred layouts everywhere, and the Inter font in an artifact. Fix: choose the direction from the subject (web-artifacts-builder, Design and Style Guidelines).
- Hardcoded hex values and arbitrary spacing such as
px-[13px] scattered through components. Fix: move them into tokens and count them in the audit (design-system, Token Coverage).
- Component docs with no states and no accessibility notes. Fix: fill both sections, or mark them as unknown (design-system, Document template).
Before you hand off
Run these checks on any screen or artifact before it goes to the client. Each comes from the frontend-design quality floor or the web-artifacts-builder steps.
- The layout works down to mobile widths, and the page does not depend on a desktop-only grid.
- Keyboard focus is visible on every control, and motion respects reduced-motion settings.
- Text and key controls meet visual accessibility needs. A contrast failure is a value fix, not a redesign.
- The palette is harmonious and every colour traces back to the plan from step 1 of the first workflow.
- If the environment can take screenshots, review them and remove one more element before sending, as frontend-design suggests.
- For an artifact, the final file is bundle.html and it was produced by scripts/bundle-artifact.sh from the project root.
When not to use this plugin
- Copy-only work, such as an email sequence or subject lines with no layout. These skills cover copy only as it sits inside a design.
- A simple single-file HTML page. web-artifacts-builder says it is not for simple single-file HTML or JSX artifacts, so write that page directly.
- A one-value fix, such as a single colour that fails contrast. Change the value. Bring in design-system only if the value is hardcoded across many components.
- Backend, data or database work. None of the three skills covers it.