Communitygithub.com

design

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.

O que é design?

design is a Claude Code agent skill that 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.

Funciona com✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/slntopp/vibecoding/tree/HEAD/plugins/vibe-design/skills/design

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação


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] "

O que design faz?

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.mdNon-negotiables. Push back with these.
design/heuristics.md → Defaults agents get wrongRead before writing any UI.
design/tokens.jsonThe only values you may use.
design/components.jsonSearch 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

  1. Ask what is ambiguous: who uses it, what job it does, what data it shows, which actions exist. One round of questions, then build.
  2. Run the page review (five questions) from references/page-review.md.
  3. 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.
  4. Mark judgment calls in code: // [design: reason] (or the project's tag).
  5. 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.

  1. An artboard without a recorded decision in its README is not ready. Ask which variant.
  2. 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.
  3. 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.
  4. 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).
  5. 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.

Habilidades Relacionadas