Communitygithub.com

figma-mockup-builder

Build structured, on-brand UI mockups in Figma that match an existing product or design system. Use whenever asked to create/redesign a screen, form, page, dashboard, modal or flow in Figma — especially when there is a real app or a design system to match. Teaches a match-first method: pull the reference's exact tokens and fields, reuse the design system's components/variables, follow a clear file/page structure and naming, and keep lines sharp and layers clean. metadata: portable: true requires: Figma MCP connector (to build files); works as a written spec without it

O que é figma-mockup-builder?

figma-mockup-builder is a Claude Code agent skill that build structured, on-brand UI mockups in Figma that match an existing product or design system. Use whenever asked to create/redesign a screen, form, page, dashboard, modal or flow in Figma — especially when there is a real app or a design system to match. Teaches a match-first method: pull the reference's exact tokens and fields, reuse the design system's components/variables, follow a clear file/page structure and naming, and keep lines sharp and layers clean. metadata: portable: true requires: Figma MCP connector (to build files); works as a written spec without it.

Funciona com~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Yossih845/figma-mockup-builder/tree/HEAD/plugins/figma-mockup-builder/skills/figma-mockup-builder

Perguntar na sua IA favorita

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

Documentação

Figma Mockup Builder

A portable method for building UI mockups in Figma that look like they belong in the product — not generic boxes. It is design-system-agnostic: plug in your brand font, colors, and component library (see Configure for your system).

One rule above all: match before you invent. If a real screen or a design system already exists, mirror it exactly before adding anything new.


1. Pull the reference first

Before drawing anything, capture what you're matching:

  • If a live app/screen exists: get its exact font family, colors (text, brand/primary, borders, surfaces), border radius, spacing, and — critically — every field/section. Don't approximate; read the real values.
    • With the Figma MCP + an existing Figma file: get_variable_defs for tokens, get_screenshot of a representative screen for layout, get_metadata for structure.
    • From a running web app: screenshot it and read the CSS variables / component source for the font and token values.
  • List every field on the reference screen and reproduce all of them. A "create" or "edit" form is only done when it has the same inputs as the real one.

2. Reuse the design system — don't hardcode

  • If your team has a published component library, enable it and insert its components (buttons, inputs, dropdowns, rows) and apply its variables (colors, spacing, radii) and styles (type, shadow). Don't rebuild tokens.
  • Only build locally what the library lacks; name those consistently and consider contributing them back.
  • With the Figma MCP: get_libraries → search_design_system (scope with includeLibraryKeys) → import by key and instance; prefer instances over hand-drawn frames.

3. File & page structure

Give each file a predictable spine (add pages as the work grows):

Cover / Thumbnail → Design → Design System → Components → Icons → Moodboard → Playground (scratch) → Archive.

  • One primary Design page for finished screens; keep WIP on Playground; retire old work to Archive (don't delete).
  • A Cover is a branded title card (brand panel + project name + one-line description); a lightweight alternative is a Thumbnail (brand-color block + project acronym).

4. Tokens & styles

  • Tier your tokens: Brand (raw primitives) → Alias (semantic roles) → Theme (applied). Design against the semantic aliases, not raw values.
  • Type scale: Heading 1–3 + Body L / M / S / XS (or your own ramp).
  • Semantic colors: Primary, Neutral, Success, Error, Warning, Information, White (define Primary first).
  • Elevation: a Shadow style, or a size scale (xs / sm / md / lg).
  • Canvas: a light neutral background (e.g. #F5F5F5) unless the product differs.
  • Icons: one consistent icon set — don't mix libraries.

5. Layout, lines & naming

  • Auto-layout everywhere children relate (stacks, rows, cards, forms). Lay screens left-to-right in flow order.
  • Sharp, clearly visible grid/border lines — not faint hairlines that disappear. Panels, dividers and inputs should read as a crisp grid.
  • Name screens for what they are (Create: Carrier, Dashboard); use Screen — State for variants (Dashboard — Empty). Domain terms are fine.
  • Componentize repeats: build a reusable element once, place instances; don't ship a flat tree of near-identical frames.
  • No leftovers: no stray Frame 1, Page N, or AI-prompt text on anything final.

6. Build with the Figma MCP (if available)

  1. create_new_file (or target an existing file) → create_session.
  2. Discover the design system (get_libraries, search_design_system).
  3. Build incrementally with use_figma: wrapper → sections → instances + tokens. Return node IDs from each call; take one composition screenshot to verify.
  4. Match the reference's font and tokens exactly; include every field.

No Figma write tools? Deliver a structured spec instead — pages, screen names, the full field list, styles, and which components to use — so a designer can build it.


Configure for your system

Fill these in once and the method produces on-brand output:

SettingYour value
Brand / primary color#______
Neutral text / border colors#______ / #______
Font family__________
Corner radius__ px
Component library (name/key)__________
File/page spine (if different)__________

Checklist

  • Reference pulled: font, colors, radius, spacing, and every field captured.
  • Design-system components/variables reused (not hardcoded) where available.
  • Page spine in place; WIP on Playground, old work in Archive.
  • Token tiers + type scale + semantic colors applied.
  • Auto-layout used; grid/border lines are sharp and visible.
  • Screens named descriptively; Screen — State for variants; repeats componentized.
  • No stray Frame 1 / Page N / prompt text; one verification screenshot taken.

Habilidades Relacionadas