/artcraft-skills:figcraft-designfrom artcraft-skills
Designs UI in FigCraft (Figma-class design app via MCP) and converts designs to frontend code. Covers divergent directions, tokens, components, prototypes, and pixel-faithful implementation.
Ships in artcraft-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
FigCraft is an open-source, Figma-class interface design app (frames, auto layout, components and
variants, styles, variables with modes, prototyping, Dev Mode code). You drive it through the
figcraft MCP server. This skill tells you what to build, in what order, to what quality bar,
and how to carry a design into code.
Uniqueness is the default. Left alone, a model converges on the average of every UI it has seen (centred hero, three cards, a safe sans, a purple gradient), and adjectives like "bold" or "unique" in a prompt do not move it. Distinctive work comes from improbable inputs (a metaphor from outside software, real references that are not SaaS galleries), arbitrary constraints that block the default answer, the user choosing among genuinely divergent directions, and critique from someone who did not make the work. The steps below build those four in; the user's explicit direction, brand or existing design system always wins over them.
references/command-catalog.mdreferences/workflows.mdreferences/design-to-code.mdreferences/gotchas.mdreferences/distinctiveness.mdreferences/sources.mdThe MCP tools: create_node, set_properties, get_node, inspect_document, screenshot,
run_command, batch, list_commands, select, export, open_file, save_file, undo,
redo, pointer, key, type_text, inspect_ui. They are deferred: load the schemas you need
with ToolSearch (select:mcp__figcraft__batch,mcp__figcraft__run_command,...) before calling them.
list_commands {filter} with a
narrow filter ("variable.", "style.", "component.", "proto.", "inspect.", "export")
and trust its param doc over memory or over the online docs: the installed server can be older
or newer than the repo docs (e.g. some builds lack inspect.code tailwind/vue).x/y are relative to
the parent frame (groups don't count). absoluteBounds in inspect output is page space.layout
(horizontal|vertical|grid), gap, padding (n or [t,r,b,l]), mainAlign
(min|center|max|spaceBetween|spaceAround|spaceEvenly), crossAlign (min|center|max|baseline),
sizingH/sizingV (fixed|hug|fill), wrap, crossGap, min/max sizes."#RRGGBB" or "#RRGGBBAA". fill/stroke accept a hex, "none" or null;
gradients {"type":"linearGradient","stops":["#hex","#hex"]}. On text, fill is the text colour.batch {commands:[{command, params}], label} runs as one undo step
and rolls back entirely on failure. Refer to an earlier step's result id with {"$step": n}
(zero-based); {"$step": n, "field": "ids/0"} picks another field. Build whole subtrees this way.ids when given, else on the selection; new layers become the selection.figcraft-cli mcp there is no window (screenshots render the
document); with --attach <port> the user watches the live app. File reads/writes may be
confined to read/write roots; a refused path returns a readable error: pick an allowed folder.Scale the work to the request (one screen ≠ a full library). For anything non-trivial follow:
.figcraft file, open it
in the FigCraft app, then stop and wait for the user's explicit acceptance (section 9).State a short scope + acceptance checklist before mutating; give updates at phase boundaries, not per call. Stop when the checklist passes; don't silently grow a screen request into a design system.
page.add {name:"Foundations"}, "Components", "Screens", "Prototype").open_file {path}, then inspect_document {depth: 2} and style.list,
variable.list, component.list to reuse what exists. Never redraw what a component, style or
variable already provides.run_command template.list, then file.newFromTemplate {template} (mobile-app,
landing-page, dashboard, design-system, wireframe-kit, social-posts, slides,
icon-set). Templates are fully editable; restyle them so the result isn't the template.prompts/list): mobile_screen, design_system, landing_page,
prototype_flow. Their recipes, upgraded with this skill's quality bar, are in
references/workflows.md; use them as skeletons, not as the visual direction.If the brief doesn't name the subject, audience and primary job, propose one concrete answer for each and confirm when the work is substantial. The subject's world (industry, materials, vocabulary, users' context) is where distinctive choices come from: a field-service app for plumbers and a meditation app should not share a look. The brief also fixes:
Write a compact plan (in chat, a few lines each):
text.fonts {family} / text.missingFonts; installing a font changes the system: ask first.frame.presets), grid/columns, alignment, a quick ASCII wireframe; where
the one memorable thing spends its boldness (hero type, an illustration, a data visual, a colour
field). Everything else stays quiet.When divergent directions follow, the plan fixes only the brief-level items (subject, the one
memorable thing, tone); metaphor, constraints, type and palette are set per direction, and the
chosen one goes into DESIGN.md.
Then review the plan: if a part is what you'd produce for any similar brief, change it and say
what you changed. The user's explicit direction always wins over these defaults. Work that spans
sessions or goes to code persists brief and plan as DESIGN.md beside the .figcraft file or at
the project root (template in the reference); otherwise the plan in chat is enough.
Generate, then let the user choose. Light requests (one screen, a restyle) get 2–3 quick directions; a new product, landing page with ambition, design system or redesign gets 4–6. Small edits skip this; otherwise skip it only when the user already gave a direction or an existing brand/system fixes the look.
page.add {name:"Direction A - Logbook"} (the new page becomes
current, so new frames land on it). One variable collection per direction
(variable.createCollection {name:"Dir A", modes:["Light"]}) with the same slash names in each:
identical names coexist across collections and variable.export {collections:["Dir A"], format:"css"} exports one alone (both verified). Bind layers even in sketches.page.add/page.duplicate switch the current page, open_file the
document, and concurrent calls are unverified. Code-side directions may run in parallel.variable.renameCollection {collection:"Dir B", name:"Color"} (verified),
move hybrid values in with variable.set. variable.deleteCollection leaves bound layers with
raw values: delete rejected collections only when those pages no longer need to stay editable.Distinctive, intentional, accessible. Generic AI-looking design is the main failure mode.
Typography carries personality. Pick faces deliberately for this subject; build a real scale;
make headlines an active design element. Keep line length under ~80 characters (set maxWidth
or a fixed text width). Serif body text gets a bit more line height.
Avoid default tells unless the brief asks for them:
→ appended to every link/button;references/distinctiveness.md.Structure is information. Borders, dividers, numbering, labels and eyebrows must encode something real. Use proximity and spacing for grouping first. Traceability: every visible choice traces to the brief, the metaphor or a constraint; if it doesn't, remove it.
Hierarchy: one primary action per view; size, weight and contrast define reading order; align to a grid; generous, consistent spacing from the scale (no 13 px or 27 px one-offs).
Colour: build from tokens; neutrals with a slight tint toward the brand are fine, but contrast must pass WCAG AA (4.5:1 body text, 3:1 large text and UI boundaries). Status colours never carry meaning alone (pair with text/icon).
Restraint: one bold idea; remove one accessory before finishing. Motion in prototypes only where it explains a change (Smart Animate between states, a single entrance moment).
Copy is design: real, specific content for the subject (no lorem ipsum). Name things the way users think of them; sentence case; active verbs on buttons ("Save changes", not "Submit"); the same action keeps its name across the flow ("Publish" → "Published"); errors say what happened and how to fix it; empty states invite the next action. Write in the product's own voice and its metaphor's vocabulary (the logbook UI "logs" and "signs off"), never "Unlock the power of…", "Seamless", "Elevate your…"; loading, empty, error and success are designed moments in that voice, not "No data" or "Something went wrong".
Quality floor (state coverage): components show default/hover/pressed/disabled/focus (visible focus ring) and, where relevant, error/empty/loading; touch targets ≥ 44×44 on mobile.
Prefer variables for raw values and themes, styles for composite typography and effects.
batch {"label":"Foundations","commands":[
{"command":"variable.createCollection","params":{"name":"Color","modes":["Light","Dark"]}},
{"command":"variable.create","params":{"collection":"Color","name":"color/bg","type":"color","values":{"Light":"#FBFAF7","Dark":"#121417"}}},
{"command":"variable.create","params":{"collection":"Color","name":"color/fg","type":"color","values":{"Light":"#1B1D21","Dark":"#ECEDEF"}}},
{"command":"variable.create","params":{"collection":"Color","name":"color/primary","type":"color","values":{"Light":"#1F5C4A","Dark":"#7CC4A8"}}},
{"command":"variable.createCollection","params":{"name":"Space","modes":["Default"]}},
{"command":"variable.create","params":{"collection":"Space","name":"space/4","type":"number","value":16}},
{"command":"variable.create","params":{"collection":"Space","name":"radius/md","type":"number","value":10}}]}
color/bg, space/4, radius/md): variable.export {format:"css"}
turns color/primary into --color-primary, so names become your code tokens.codeSyntax (variable.update {variable, codeSyntax:{WEB:"--color-primary"}}) when the
codebase already has token names, and scopes so pickers only offer sensible variables.variable.set {variable, mode, value:{"alias": <primitive>}}.style.create {type:"text", name:"Text/Heading L", from:<id>}; or pass value
({"fontSize":32,"lineHeight":"120%","letterSpacing":"-1%"}). Same for paint and effect.
style.bind binds a variable inside a style (e.g. a paint style's fill).variable.bind {ids, field, variable}; fields include fill, stroke,
cornerRadius, gap, paddingHorizontal, width, opacity, fontSize, characters,
visible. Check boundVariables in get_node.variable.setMode {ids:[frame], collection:"Color", mode:"Dark"}, screenshot, then
set back (mode: null = Auto).references/distinctiveness.md) and keep both in the plan or DESIGN.md; code can use OKLCH.Build components on a Components page or an empty canvas area, never inside a screen's auto-layout flow (a component set dropped into a flow resizes and clips it).
Anchor first. Finish the one component that carries the identity (header, main card, data
table, key form, hero) with variants and states before anything else; in full identity work get it
approved through the section 9 loop. Everything else looks made by the same hand: it reuses the
anchor's variables, text styles, radii, strokes and spacing rhythm; a new value goes into the
variables (and DESIGN.md) first, never as a one-off on a layer.
One signature interaction: a single behaviour repeated coherently (how panels arrive, how data
reveals, a press feedback), not ten scattered hovers. Prototype it with Smart Animate (section 8);
in code it needs a prefers-reduced-motion equivalent that keeps the meaning.
component.create {ids:[frame]} → main component.component.addVariant {id} duplicates it into a set; variants are first named
Property 1=Default, Property 1=Variant2. Rename right away:
component.editProperty {id:<set>, name:"Property 1", newName:"Variant"}, then
{name:"Variant", value:"Variant2", newValue:"Secondary"}. Add another axis with
component.addProperty {id:<set>, name:"State", type:"variant", default:"Default"}, then
component.addVariant {id:<variant>, property:"State", value:"Hover"} (addVariant refuses a
property that doesn't exist yet). Alternative: separate components named
Variant=Primary, State=Hover and component.combineVariants.component.addProperty {id, name, type:"text"|"boolean"| "instanceSwap"|"slot", layer}; slots via component.makeSlot for free-form content areas.instance.create {component:<set or variant>, parent, x?, y?};
configure with instance.setProperties {ids, properties:{Variant:"Secondary"}}; override text
with type_text {id:<text layer in instance>, text} (read the inner id with get_node).component.properties {id} (check conflicts), component.playground {id, properties}
to preview a combination and its code without touching the document.Name layers semantically (Button, Label, Icon), because names drive generated code,
data.fill keys and override matching on swap.
frame.create {preset:"iPhone 16", x, y, name, props} (frame.presets lists
them: iPhone 16 393×852, Android Compact 412×917, Desktop 1440×1024, MacBook Air 1280×832…).
Place screens side by side ~100 px apart on y = 0.sizingH:"fill" and their
own layout. Rows are horizontal frames; use mainAlign:"spaceBetween" for bars, grid layout
(gridColumns, columnTracks:["1fr","1fr","1fr"], columnGap) for card grids.sizingH:"fill" for paragraphs so they wrap; hug for labels;
textAutoResize:"height" for growing copy; text.fit {ids, maxLines} for headlines in fixed boxes.sizingV:"hug") for a long page,
or keep the device height and set overflow for prototype scrolling; fixed headers via
absolute: true + constraints.image.place {path|data, parent, width, height, mode:"fill"} (needs a readable path).
Don't use third-party logos or copyrighted images; use neutral placeholders the user can swap.vectorcraft-illustration ("Icon on a 24 pt grid" recipe; keep the master),
animated ones (logo sting, empty state, loader) via effectcraft-motion (Lottie, WebM with
alpha). Place PNG exports in mockups with image.place. No emoji icons, no stock illustration.data.fill {id, rows:[{Title:"…", Price:"…"}]} or
instances; apply repeated styling to many ids in one batch.batch per section), verifying after each.After each major step:
get_node {id:<frame>, depth:3}: check sizes, sizing, layout, fills, boundVariables,
text props, overrides. Look for width 0/1 text, children wider than parents, unexpected
fixed sizing, unbound hex values that should be tokens, spacing or radii off the scale, fonts
or sizes outside the plan. Check text.missingFonts: a fallback makes the screenshot lie.screenshot {ids:[frame], maxSize:1200} and look at it critically: alignment, rhythm,
contrast, clipping, truncated text, empty boxes, the hierarchy you planned.set_properties / batch; use undo for a bad batch (one step).references/distinctiveness.md §8. Inside a subagent, return the
critique inputs (screenshot paths, brief, tells) to the orchestrator, which starts the reviewer.A picture beats a JSON diff for aesthetics; JSON beats a picture for exact values. Use both.
proto.interaction.add {id:<button>, trigger:{type:"onClick"}, action:{type:"navigate", dest:<frame>}, transition:{type:"smartAnimate"}, durationMs:300, easing:"easeOut"}; back buttons action:{type:"back"}; overlays openOverlay /
closeOverlay; hover states via onHover + changeTo on component variants.proto.flow.add {start:<first frame>, name:"Main flow"}; device:
proto.settings {device:"iPhone 16"}.setVariable / conditional actions with text expressions
("count + 1", "count >= 3"); test with proto.evaluate.get_node shows interactions on triggers, inspect_document shows the page flows.
Smart Animate matches layers by name: keep names identical across screens for elements that move.Every design ends here, after the verify loop (and after the prototype, if any). The headless
figcraft-cli mcp session has no window, so the user cannot see the design until you save it and
open the real app on it.
save_file {path} (or file.saveAs {path}; no extension adds .figcraft) into
the project directory, or the path the user named. Use a descriptive name (login-screen.figcraft)
and an allowed write root. Note the full absolute path.setsid figcraft /abs/path/design.figcraft >/dev/null 2>&1 &
(figcraft [FILE] is the desktop app binary, /usr/bin/figcraft; the MIME type is
application/x-figcraft, so setsid xdg-open /abs/path/design.figcraft >/dev/null 2>&1 & works
too.) If the app is already bridged/open on this design (--attach/--control session), don't
launch another copy: the user already sees it, so just bring that file up (file.open {path}
returns the index of an already-open file instead of opening it twice).save_file again, reopen/refresh FigCraft on the file, and ask again. Repeat until the user
accepts.Follow references/design-to-code.md. Summary:
inspect_document/component.list,
or inspect.readyForDev).get_node {id, depth} (fetch big trees section by section),
inspect.properties {id} (values with style/variable names), and a reference
screenshot {ids:[id], scale:2} kept as the visual source of truth.variable.export {format:"css"} → CSS custom properties (default mode on :root,
others on [data-<collection>="<mode>"]); map them into the project's token system
(Tailwind theme, CSS vars, TS theme), reusing existing tokens when values match.inspect.code {id, language:"react"} (also
css, html, leptos, swiftui, compose; check list_commands {filter:"inspect.code"} for
what this build supports, tailwind/vue may exist), inspect.componentCode for props.
Translate into the project's components, layout primitives and conventions.inspect.assets {ids} then file.exportLayers {ids, assets:true, dir} (icons SVG,
images PNG) or export {ids, format:"svg"|"png", scale:2, path} into the project's asset
folder (must be an allowed write root). Never redraw icons by hand or add icon packages when
the design provides them.codeConnect.set / codeConnect.import so later
inspect.code emits the real component calls. Outside libraries (Radix, shadcn/ui, effect
collections) are raw material rewritten to the tokens, never the result; library, motion, font
and 1440/390 screenshot rules are in references/design-to-code.md §11.Code → design (recreating an existing UI in FigCraft): read the source for structure, fonts and tokens first, recreate it as editable layers (never paste a screenshot as the design), reuse the file's components and variables.
references/gotchas.md)absolute:true to opt out.fill an axis its parent hugs: setting fill makes the parent fixed on that axis.sizingH:"fill".component.addVariant without an existing property creates Property 1=… names; rename them.batch rolls back on one bad step: read the error (it names the step), fix, rerun.inspect_document on big files truncates (truncated key): use get_node on subtrees.screenshot defaults to 1600 px max side; pass ids to focus and scale for detail.text.missingFonts and pick installed ones.export without path returns data inline.save_file unless the user wants the file saved or section 9 requires it; save where they say.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
figcraft, ui-design, design-to-code, prototyping, design-system
npx claudepluginhub dnviti/artcraft-skills --plugin artcraft-skills16 skills in this plugin
/artcraft-routerSelector for the ArtCraft skills: picks which ArtCraft skill(s) to load for a request and loads nothing else itself. Use when a creative request spans several ArtCraft apps (FigCraft, VectorCraft, DesignCraft, DeckCraft, PhotoCraft, LightCraft, FilmCraft, EffectCraft, SoundCraft, WordCraft, GridCraft, PdfCraft, CadCraft, SolidCraft) or when it is unclear which one fits: brand identity, landing page with custom icons, video with narration or animated titles, podcast from a script, magazine with retouched photos, report or deck with data, part plus drawing. Skip it when one skill clearly matches./cadcraft-drawingsDraft, dimension, annotate and plot 2D technical drawings in CadCraft (ArtCraft's AutoCAD-class 2D drafting app, driven through the `cadcraft` MCP server, tools mcp__cadcraft__*, or through `cadcraft-cli`). Use whenever the user mentions CadCraft or the cadcraft MCP tools, or asks for a 2D technical drawing: floor plan, site or room layout, elevation or section, mechanical/part drawing with dimensions, schematic or detail sheet, title block, layers, blocks, hatching, dimensions and annotations, plot or print to PDF at a scale (1:50, 1:100), or to open, inspect, fix, convert (DXF to DWG, SVG, PDF, PNG) or measure DXF/DWG files. Covers units and scale planning, layers, geometry, dimension styles, layouts and viewports, the render-and-verify loop, save/export and the mandatory show-and-approve phase. 3D parts (solid modelling, STEP/STL) belong to solidcraft-cad, vector artwork to vectorcraft-illustration, multi-page print layout to designcraft-layout./deckcraft-presentationsBuild and edit slide decks in DeckCraft (ArtCraft's PowerPoint-style presentation app, driven through the `deckcraft` MCP server, tools mcp__deckcraft__*). Use whenever the user mentions DeckCraft or the deckcraft MCP tools, or asks to create, design, restyle or edit a presentation, slide deck, pitch deck, keynote/talk, training or sales deck, or report-as-slides in/with DeckCraft (slides, layouts, themes, text, shapes, charts, tables, images, SmartArt, speaker notes, transitions, animations, .deckcraft/.pptx/.pdf output). Covers the outline, theme and layout choices, build, render-and-verify, save/export and the mandatory show-and-approve workflow. Not for cases where the user explicitly asked for another format or tool (a .pptx made with python-pptx, Google Slides, a Claude Slides artifact, PDF editing in PdfCraft, UI design in FigCraft)./designcraft-layoutLay out magazines, books, brochures, flyers, catalogues, designed annual reports and other multi-page print documents in DesignCraft (ArtCraft's InDesign-class layout app, via the `designcraft` MCP server or `designcraft-cli`). Use whenever the user mentions DesignCraft or the designcraft MCP tools, or asks for page layout or desktop publishing work: a magazine or book layout, spreads with facing pages, parent (master) pages, running heads and page numbers, columns and grids, paragraph/character styles, text flow across threaded frames, image placement, tables, table of contents, footnotes, bleed and crop marks, preflight, print-ready PDF/X, IDML/InDesign import/export, EPUB. Covers setup, parents, styles, content flow, render-and-verify and the mandatory show-and-approve phase. Single-flow documents (letters, reports, contracts) belong to wordcraft-documents, vector artwork and logos to vectorcraft-illustration, editing an existing PDF to pdfcraft-documents, UI design to figcraft-design./effectcraft-motionBuild motion graphics, animated titles, lower thirds, logo stings, kinetic typography, compositing and visual effects in EffectCraft (ArtCraft's After Effects-class compositor, via the `effectcraft` MCP server (mcp__effectcraft__*) or `effectcraft-cli`). Use whenever the user mentions EffectCraft or the effectcraft MCP tools, or asks for an animated composition, motion graphics, animated title/intro/lower third, keyframes, expressions, text animators, shape layers, particles, glow/blur/distortion, green-screen keying, rotoscoping, motion tracking, stabilizing, 3D cameras/lights, Lottie export, or to render a comp to MP4/ProRes/WebM/GIF/PNG sequence (with alpha); also .ecproj files. Covers comp, layers, keyframes, effects, frame-preview verify, render and the mandatory show-and-approve phase. Cutting/assembling footage on a timeline and colour grading belong to filmcraft-video, audio-only work to soundcraft-audio, still images to photocraft-images, static vector artwork to vectorcraft-illustration./filmcraft-videoEdit video, colour-grade and mix sound in FilmCraft (ArtCraft's Premiere Pro-class non-linear editor, via the `filmcraft` MCP server (mcp__filmcraft__*) or `filmcraft-cli`). Use whenever the user mentions FilmCraft or the filmcraft MCP tools, or asks to edit/cut/trim/assemble video clips on a timeline, make a rough cut or highlight reel, add transitions, titles, captions or subtitles, speed up/slow down/reverse clips, colour-correct or grade footage (Lumetri, LUTs, scopes), balance dialogue/music/video audio levels, proxies, transcribe-and-cut, multicam, or export a video (MP4/H.264, ProRes, DNxHR, MXF, GIF, PNG sequence, audio-only) or interchange (EDL, FCP XML, AAF, OTIO); also .fcproj files. Covers ingest, sequence setup, assembly, trim, grade, mix, frame-preview verify, export and the mandatory show-and-approve phase. Animated titles, VFX, keying and motion graphics belong to effectcraft-motion, audio-only work to soundcraft-audio, still images to photocraft-images.Other plugins' skills for the same job