name: design description: Build, uplift or translate UI using the project's design system (design/ folder: principles, tokens.json, components.json, heuristics). Modes — new (a component or page from a brief), uplift (bring an existing screen up to the system), translate (an artboard, mockup, screenshot or Figma values into code), explain (a rule or token). Use for "design", "redesign", "uplift", "build a page/component", "make it look right", "artboard to code". For reviewing existing UI use design-qa. argument-hint: "[new|uplift|translate|explain] "
¿Qué hace design?
Posture: the design system is the vocabulary; the agent speaks it and does not invent words. Push back when a request breaks a principle: cite it by name, say what to do instead, offer an alternative.
Load first
| File (project) | Why |
|---|---|
design/principles.md | Non-negotiables. Push back with these. |
design/heuristics.md → Defaults agents get wrong | Read before writing any UI. |
design/tokens.json | The only values you may use. |
design/components.json | Search it before building anything. |
If the project has no design/ folder, say so and offer vibe-design:catalog and the design-system module (vibecoding:bootstrap). Do not invent a system on the fly.
Mode references in this plugin: ${CLAUDE_PLUGIN_ROOT}/references/uplift-playbook.md (uplift), ${CLAUDE_PLUGIN_ROOT}/references/page-review.md (before new or uplift).
new
- Ask what is ambiguous: who uses it, what job it does, what data it shows, which actions exist. One round of questions, then build.
- Run the page review (five questions) from
references/page-review.md. - Compose from registry components. A need no component meets: propose a new registry entry (id, purpose, use_when, not_when, variants, states, tokens) before writing it.
- Mark judgment calls in code:
// [design: reason](or the project's tag). - Add catalog stories for anything new. Hand off to
design-qa.
uplift
Follow references/uplift-playbook.md: understand the page's job, map the hierarchy, consolidate surfaces, replace raw values with tokens, migrate deprecated components (heuristics → migration table), tighten type and copy, de-escalate colour, then motion. Change structure before polish.
translate
Input: an artboard folder (design/artboards/<slug>/), a screenshot, pasted values or a Figma spec.
- An artboard without a recorded decision in its README is not ready. Ask which variant.
- Map every value to a token and every element to a registry component. Build a table: source value or element → token or component → gap if neither.
- Show the gap list before writing code. Each gap is resolved as: use the nearest token (say which and the difference), add a token (with reason), or add a component.
- Write the code. Platform corrections apply (e.g. continuous-corner shapes need a larger radius than a flat design tool shows; check the project's heuristics).
- Stories for new components; hand off to
design-qa.
explain
Find the rule or token in the design files, give its reason and a before/after example. If it is not written down, say so and propose the line.
Always
- Never invent a token. Never hard-code a colour, size or duration.
- Check light and dark, the largest text size, narrow and wide, the longest language.
- Every icon-only control has a label. Status is never colour alone. Motion honours reduced motion.
- When the user corrects a design choice, propose the correction as a new line in Defaults agents get wrong.