/design:vary [brief] [--mode persuade|operate|read|experience] [--reroll] [--safer|--bolder|--canon]from design
Design frontend UI that is specific to THIS project and different every run: read the project into a fact dossier, write grounded concepts, and let an external roll (scripts/roll.mjs) assign a concept, technique, visual world, skeleton, palette seed and fonts; then build the concept's treatment (the client's photography, product UI, typography, a data visual, a pattern, a drawn scene or a plain, usable layout), usability first. Custom graphics come from the design:graphics skill. A mechanical craft floor (scripts/check.mjs) and a separate evaluator subagent judge distinctiveness and contract-keeping. Use WHENEVER building, redesigning, mocking up or restyling any UI (landing page, marketing site, dashboard, docs, portfolio, app screen, component set, email) and whenever the user says make it look good, not generic, not AI slop, something different, surprise me, or complains that designs look the same. Also for "another direction", "re-roll", "safer", "bolder". Not for backend-only work or pure copy edits.
Ships in design. 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; scripts run unread.
Claude's design output collapses to a mode: indigo, Inter, centred hero, three cards. Told to avoid those, it collapses to the next mode: cream + serif + terracotta, or near-black + one neon, Space Grotesk, bento + glass. The cause is not a lack of ideas. The model derives seven varied directions and then argmax-picks the same one every time; asking it to "choose differently" reverted in 27 of 30 measured runs. Naming things to avoid makes it worse: a named font or hex gets more activation, not less.
Four things fix this, and this skill is built around them:
scripts/roll.mjs picks concept → signature device → world → skeleton → colour strategy → palette seed → fonts, each conditioned on the last, from the project's concepts and the catalogs in data/. Claude executes the assignment. It does not pick from a menu.Priority, always: usability first (the visitor completes the task, finds things, reads and acts, on a phone, with a keyboard), then a creative direction specific to this project. No look is the default and a drawing is one option among many. Plain is right for dense tools or when the client asks; a business, brand or event homepage needs one memorable idea and the small custom details that make it this client's own. Usable and uninspired is a failure too.
Then: commit fully, guard later. Craft rules are loaded only after the contract is written, because guardrails mixed into the brief measurably hedge the result. Review is done by a separate identity auditing the build against its own contract, because self-review rubber-stamps.
(The measurements above come from Impeccable's instrumented v4 campaign, impeccable.style/research, and from NeurIPS 2025 work on ironic negation, arXiv 2511.12381. The research trail for this skill is in its forge workspace.)
Load references/dossier.md and write .vary/dossier.json before anything else. Facts come from the repo, the client's live site and the assets given. Nothing is invented.
Then settle these in one short block (write them; they feed the roll):
Mode of this surface: persuade (visitor decides and acts: landing, pricing, campaign), operate (completes a task: app, dashboard, settings, forms, checkout), read (understands: docs, articles, changelog), experience (is inside the work: portfolio, gallery). A dev tool's landing page is persuade; a fashion house's docs are read. Mode gates how bold the roll may be. Operate and read surfaces get quiet worlds and conventional skeletons; their distinctiveness lives in details.
Platform: web, ios, android. Phones exclude pointer-dependent skeletons. ios/android: call the Skill tool with "design:mobile-design" for the platform layer (skip quietly when absent). The contract goes as a /* ... */ block at the top of the root component. Evidence is device screenshots; fold-check does not apply.
Locks — anything the user or the repo has already decided: brand hex (--lock palette=#…), a required font, required scripts (--scripts latin,cyrillic), no webfonts (email, React Native → --no-webfonts), longevity (--longevity campaign allows fast-decaying looks). A brief that pins an aesthetic ("make it Bauhaus", "keep our brand") beats the roll: --lock world=bauhaus.
Directives: anything the user says about the look ("no illustrations", "black and white", "use our photos", "minimal") goes verbatim into dossier.directives with the locks it implies. Directives outrank this skill's defaults and gates; only truth, accessibility and usability outrank them.
| Directive | Locks / effect |
|---|---|
| no illustrations | treatment=typography, or photography/product-ui if assets exist; do not call the graphics skill |
| black and white | strategy=ink-on-paper and no accent (build-craft tint rules suspended) |
| Swiss | world=swiss-international |
| use our photos | treatment=photography |
| minimal, quiet, luxurious | treatment=typography, or photography when photos exist (dead-zone and depth are INFO there); devices photo-direction or typographic only (no annotated photos, leader lines, frames or ornament) |
| keep our brand | extend mode |
Precedence (the one place it is written; both evaluators repeat it). When rules collide, the higher item wins: 1. Truth: no invented facts. 2. Accessibility and usability: contrast, keyboard, focus, reduced motion, text equivalents, findability, task completion. 3. User directives (dossier.directives). 4. Existing brand or design system (extend mode). 5. Platform conventions (ios/android; operate Jakob's law). 6. The rolled contract. 7. Skill defaults.
Existing design system? If the repo has DESIGN.md, a token file, a Tailwind theme with custom colours, or styled shared components, this is extend mode: read references/extend-mode.md and follow it instead of Step 1. A component or section inside an established surface always inherits that surface. Never turn a local addition into a new identity.
Sector: one id from the controlled list, taken from the dossier's sector. It filters the world pool. Pick the one a customer would file the business under (a pizzeria with a bar is food-drink). When torn between two, decide the tie after Step 0b (take the one whose worlds list fits the concept hints better), note the choice in the dossier, and write the final sector into dossier.sector, which must equal --sector.
Multi-surface clients: the roll's mode is the mode of the surface built first (usually the home or landing page, so persuade). Later surfaces reuse the contract and take their own archetype.
Scene sentence: who uses this, where, under what light. This decides light or dark, not the category (--scene light|dark once decided).
Ask the user at most one round of two or three questions, and only for facts that change the work (the real proof/content available, audience, what must not change). Never ask for CSS values or an aesthetic lane.
Read references/concepts.md and write 4-7 concepts to .vary/concepts.json. Each concept takes a different angle on the business: a different audience moment, half of the trade, time of day or artefact. Each cites at least 3 fact ids, names the trade artefact it borrows, re-skins the functional objects (cart, confirmation, nav), names 2-3 world_hints (the one permitted read of data/worlds.json: take ids, names, sectors and avoid_sectors only, never use it to choose the final world), and offers 2-3 signature devices from the technique list. Each concept names a treatment (pattern, photography, product-ui, typography, data-visual, utility, scene). The concepts spread across at least three different treatments and none is the default; a plain, very usable direction is a legitimate concept (real clients often pick it). When the dossier has usable photos or a product UI, at least one concept uses photography or product-ui. Concepts must differ in treatment and composition, not only in subject (references/concepts.md §3). Write them all at full strength: the roll, not you, picks one.
Then run the idea check in references/concepts.md §3b: a fresh creative-director subagent scores every concept, and only concepts at 7 or above go to the roll.
node <VARY>/scripts/roll.mjs --mode <mode> --platform <platform> [--scene light|dark] \
--dossier .vary/dossier.json --concepts .vary/concepts.json --sector <id> \
[--scripts latin,cyrillic] [--lock palette=#hex] [--lock world=<id>] [--no-webfonts] \
[--longevity long|campaign] --project <repo-root>
<VARY> is this skill's own directory: the absolute path on the "Base directory for this skill" line Claude Code printed when this skill loaded (or ${CLAUDE_PLUGIN_ROOT}/skills/vary when that variable is set). Substitute it literally in every command. Never search the filesystem (find, ls ~) for the scripts, and never run a copy under ~/.claude/plugins or ~/.claude/skills unless that path IS the base directory. If <VARY>/scripts/roll.mjs is not there, stop and say so. --project is required. It points the anti-repeat memory at the repo (last 3 picks per axis demoted there, angles included; last 8 globally), so the same font or world does not come back next session.
The assignment is unrefusable. Writing any UI markup, styling or component code before the roll has run and its comment block is pasted into the artifact is a contract violation. Apart from the world_hints read in Step 0b, do not read the catalog files to pick something yourself: that is the exact failure this skill exists to remove.
Re-roll on the model's own initiative only for named grounds: a [FAIL] coherence row that a single-field lock cannot fix; a script the font lacks; the world cannot carry the SIGNATURE DEVICE; or the user vetoes the world for this trade. "This doesn't feel right for the category" is not grounds; that is the argmax talking. The user may re-roll freely: --from <key> --reroll 1 (then 2, 3…). Steering: --register safer (slow-decay worlds, quiet strategies) or --register bolder (experience-grade worlds) on a re-roll. --canon is the standing exit: the category standard, played straight, at full craft; never recommend it, always allow it. After two consecutive re-rolls, ask what quality is missing rather than rolling a third time.
When the user rejects a world as wrong for the trade, record it in the dossier's refuse. Re-roll with every Step 1 flag repeated plus --from <key> --lock concept=<id> --reroll n+1, optionally with --register safer (a deliberate quiet bias, so use it only when the user wants calmer): --lock concept=<id> keeps the concept and re-deals only the world and device, the right veto when the user rejected the world, not the idea. After two misses, print three previews with the same flags, --from <key> --lock concept=<id> --reroll n+1, then n+2, n+3, each with --json --no-memory so previews do not write to the anti-repeat memory, and let the user pick. You never pick.
Paste the printed <!-- … --> block verbatim as the first child of <body> in the root layout (never inside a slotted child component; some compilers strip those). Then fill the four model-authored lines:
CONCEPT supplies thesis, materials, the memorable element and the functional reskin. WORLD supplies grammar, skeleton, type and motion. FACTS win every conflict; clarity beats all three.
Run this before any UI code. Call the graphics skill when the page has at least one of:
Do not call it when: a directive forbids illustrations; the surface is a dense tool (dashboard, admin, docs) where a standard icon library covers the icons; or photos or the product UI already carry the page's character and nothing else needs drawing.
Character is a job too. On a persuade or experience page for a business, brand or event, small custom graphics that make the site recognisably this client's are a brand job, not decoration: icons for the facts people scan (care, hours, steps, features), a small drawing per product, service or category, brand objects drawn as the trade's own artefacts, and art where there are no photos. Lean towards calling the graphics skill there; a page with no custom graphics at all must have another clear signature (photography, the product UI, a strong typographic or data idea). Usability still comes first: graphics never replace a label, slow a task or push content below the fold.
When it applies, write .vary/graphics-brief.md:
id, kind (icon-set | spot | hero | section | diagram | map | object | pattern), what it shows, which dossier facts it carries, the UX job it does (why the user is better off with it), size and aspect, placement.assets/art/ by default.Then invoke Skill(design:graphics, args: ".vary/graphics-brief.md"). It returns the files (SVG, or JS modules rendering SVG) and assets/art/GRAPHICS.md with each asset's file, size, alt text (or aria-hidden for decoration) and placement. Integrate them as returned, with that alt text; do not redraw. The graphics skill runs its own critique, so Step 4b does not repeat it.
Short notes for the other treatments, written to .vary/visual-brief.md when useful:
photography: which dossier asset goes where, with the crop rule, sequence and grade. Photos ship unaltered unless the world or a directive says otherwise, and carry the page: no frames or ornament around them, no drawn stand-ins for products. Identifiable real people are never redrawn. Described-but-missing photos become full-size tonal plates (references/build-craft.md §6 item 19).product-ui: rebuild or capture the real workflow with real data and its states (DPR-2 captures; callouts allowed).typography: a type specimen at hero size with the content language's glyphs, plus the fact the lettering carries.data-visual: the chart spec, its dossier data and a text equivalent.utility: the primary object of the tool; skip to Step 3.pattern: a generated or drawn field that encodes a fact; never a plain decoration.scene: a drawn scene, only when the concept calls for it; it comes from the graphics skill like any other drawing.Rules for every treatment:
<h1> (the name or the promise), a one-line value proposition in the client's real words and the primary action (a link or button with visible text) on persuade and experience; the page title and the primary object on operate and read. Never only svg <text>, never omitted.--lock concept=<id> before building.build-craft.md §6.Section plan (before any page code). Write .vary/section-plan.md: one row per section, top to bottom, with (1) the section's job for the user, (2) whether the concept's idea helps that job and how (the care tag on each product, the theme in the speaker specimens, the data story in the main chart), or "not here" when it would only decorate, (3) which content lives here (each piece of content in exactly one section), and (4) its layout skeleton, different from its neighbours. A section that is only the category's default cards with nothing of this client in it gets one specific detail. Build from this plan.
Read references/build-craft.md in full now, not earlier. It holds palette composition from the seed, type loading, motion, states, browser surfaces and the craft floor. It is loaded after the contract on purpose.
While building:
Build the whole thing, then inspect once in a batched round (desktop and mobile together), fix everything that round shows in one batch, and stop polishing.
node <VARY>/scripts/check.mjs <built files or dir> --json
Before running it, check the content by eye: each fact (price list, hours, address, offer) appears once in the page body; the footer may repeat contact details only. A primary action may repeat (a donation ask, ticket prices in the hero and the form); mark intentional repeats data-repeat-ok, the evaluator audits them. Any other repeated price list is a duplication bug: keep the one with the best container and delete the other.
Craft-bug rules (check by eye and in the screenshots before the gate): content is visible with no JS-triggered reveal (an element may animate in only from a visible state, never from opacity 0 that a script must clear); no full-viewport overlay or backdrop left on the page; nothing in the hero is cropped by the nav or the viewport edge; every dial, axis or scale is monotonic and labelled with real values; every callout leader ends on its object.
Fix every FAIL in one batch (contract present, contrast, focus-visible, 9 states, reduced motion, image dimensions, font weights, arbitrary Tailwind values, AI vocabulary and em-dash density, template tells, and the project checks: concept-contract, facts-in-build, and, for scene, pattern and data-visual treatments only, bespoke-graphics, seeded-art, svg-a11y; for any other treatment those three are INFO, not FAIL, and a bespoke-graphics FAIL on a typography, photography, product-ui or utility build is not fixed by adding art). A user directive outranks any check row (precedence item 3): never add an illustration to satisfy a check against a "no illustrations" directive. Never satisfy a check by loosening it. Keep the JSON: the evaluator reads it.
Whole-page check (before the critic). Spawn a FRESH subagent (Agent tool, model: opus) with the full-page screenshots at desktop and phone, .vary/section-plan.md and the one-sentence concept. It scrolls top to bottom and reports, per section: (1) repetition: the same content shown more than once (a lineup in the hero, the programme and the speaker list; a list of counters as map, legend and table) or the same motif stamped on elements that do not need it (download buttons, weekday bars, every card); (2) dead sections: a section where the page falls back to the category's default cards with nothing of this client in it; (3) a stock metaphor that has replaced the most subject-specific element. Fix in that order: cut repetition first (each piece of content appears once, in the section whose job it is; a motif stays where it does a job), then give the weakest dead section one specific detail, then restore the subject-specific element. Re-shoot once. Usability fixes win any conflict.
Spawn a FRESH subagent (Agent tool) with the desktop and phone fold and full-page screenshots, the dossier facts and the contract. It judges the built page on usability first (can the visitor do the main task, find things, read, use it on a phone and by keyboard), then fit to the client and creativity, each 1-10, and returns scores and the 5 highest-impact fixes. It does not compare against any named example site. Graphics already ran their own critique inside design:graphics; the page critic only checks how they are placed and whether they earn their place. The lead applies the fixes and re-runs a new critic; stop when the mean is 7.5 or more or after 2 critic rounds, logging open items in NOTES.md. After applying fixes, re-run check.mjs and the fold check and refresh the evaluator JSON before Step 5; record the last critic mean in NOTES.md. Critic rounds may be skipped when time is short.
Blocking craft fails. Before Step 5 or shipping, these fold-check rows must be PASS: collisions, clipped-text, hidden-content, stray-overlay, duplicate-content, page-overflow (nothing wider than the viewport at 1440 or 390 unless inside its own scroll container), meta-copy (no designer or scaffold language in visible text; exempt with data-meta-ok), headline-on-fold (operate/read: title-on-fold), plus headline-in-scene when the contract's treatment is scene (the check's BLOCKING: line lists any that fail). They are cheap to fix and the time budget never excuses them. Coverage, depth and plate-size may ship as logged open items (NOTES.md) if time runs out.
Mandatory for anything the user will ship; skippable only when the user said "just something quick".
evaluator-prompt.md and copy it verbatim into a new subagent (general-purpose, model: sonnet, mode: bypassPermissions). Append: the original brief, the absolute paths of the built files, the path of the check.mjs JSON, .vary/dossier.json, .vary/graphics-brief.md and assets/art/GRAPHICS.md (only if the graphics check called the graphics skill), plus the page screenshots (npx agent-browser or the browser MCP). Screenshots are required for persuade and experience (ios/android: device screenshots); without them the evaluator returns RECAPTURE. Optionally append SIBLINGS: with the contract blocks of other variants for the same project.check.mjs, re-read only the contract and source in a fresh turn, cap the outcome at FIX, and tell the user an independent review did not happen.Report to the user: the SEED KEY (so the roll is reproducible), the concept name and signature device, the world and skeleton in one line, the disposition, and the re-roll command.
Then list what the user can steer, taken from the printed contract (THESIS, SIGNATURE GRAPHIC, WORLD) so no new choice is invented for the list:
--register safer|bolder or --lock concept=<id>.Credit: adapted from garrytan/gstack design-consultation/sections/proposal-and-preview.md.tmpl @ 5b9b837 (MIT).
| Situation | Do |
|---|---|
| Repo has DESIGN.md / tokens / themed components | Extend mode (references/extend-mode.md); no world roll |
| New section or component inside an existing surface | Inherit the surface; no roll at all |
| User pins an aesthetic, era, font or palette | --lock …; the brief wins over any catalog warning |
| User directive about the look ("no illustrations", "B&W") | dossier.directives; outranks the bars |
| Page needs icons, illustrations, diagrams or brand objects | Graphics check (Step 3a) |
| Client supplies photography | photography concept |
| SaaS with a real product | product-ui concept |
| Dashboard or docs | utility, no graphics brief unless the check calls for icons or empty states |
| Native platform (ios/android) | mobile-design + device screenshots |
| User says "safer" / "bolder" while a roll is open | `--from --reroll n --register safer |
| User says "just do the normal thing" | --canon; ask for 2-3 peer products; their craft is the bar |
| Operate surface (dashboard, settings, checkout) | Mode operate: quiet worlds, conventional skeleton, distinctiveness in details |
| Any new project | Dossier + concepts (Step 0-0b); a thin category simply has more artefact and place facts |
| Client has a live site | Scrape copy and media into the dossier; throttle; Wayback fallback |
| N variants for one client | One dossier, one concepts file, one key, --reroll 0..N-1; concepts and worlds are excluded per round |
| User vetoes a world for the trade | Record in dossier.refuse, --register safer; after 2 misses show 3 previews to the user |
| Needs Cyrillic/Greek/Vietnamese body text | --scripts latin,cyrillic (filters the font pool before rolling) |
| Email / RN / no webfonts | --no-webfonts (system stack; hierarchy from weight and size) |
| Coherence row FAIL | Lock the failing axis and re-run; never proceed on a known-bad assignment |
roll.mjs cannot load data | Stop and report; never fall back to picking by taste |
<h1>, only svg text, no value proposition or action (persuade/experience), or no page title (operate/read).--lock concept=<id> before building further.design:graphics. Objects drawn as boxes, people as blobs, or a lead redrawing the returned files by hand: send the asset back through the graphics skill.roll.mjs or running the installed plugin's copy instead of the base directory.build-craft.md before the contract, or writing "be bold but not too bold", produces the hedged 65% page.rounded-2xl and shadow-lg signal a template, not craft. Weight, size, position and material carry hierarchy.data/archetypes.json (opens in a new tab)data/fonts.json (opens in a new tab)data/seeds.json (opens in a new tab)data/worlds.json (opens in a new tab)evaluator-prompt.md (opens in a new tab)references/build-craft.md (opens in a new tab)references/concepts.md (opens in a new tab)references/dossier.md (opens in a new tab)references/extend-mode.md (opens in a new tab)scripts/check.mjs (opens in a new tab)scripts/check.test.mjs (opens in a new tab)scripts/fixtures/check/fail-a11y/art.js (opens in a new tab)scripts/fixtures/check/fail-a11y/index.html (opens in a new tab)scripts/fixtures/check/fail-a11y/menu.json (opens in a new tab)scripts/fixtures/check/fail-concept/art.js (opens in a new tab)scripts/fixtures/check/fail-concept/index.html (opens in a new tab)scripts/fixtures/check/fail-concept/menu.json (opens in a new tab)scripts/fixtures/check/fail-facts/art.js (opens in a new tab)scripts/fixtures/check/fail-facts/index.html (opens in a new tab)scripts/fixtures/check/fail-facts/menu.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tomaspalsson/flow --plugin design12 skills in this plugin
/designDesign process: UX and usability first, then fit to the client's real content, then a project-specific look with none of the AI-made tells (indigo, Inter, centred hero + 3 cards, cream + serif, mono eyebrow labels, "Build the future of X"). Ships the feel layer: every control answers hover, press and focus, changes are explained by small tiered transitions, one authored interaction, no scroll fade-ups or idle loops; verified by driving the page in a browser (scripts/probe.mjs). Use when generating, building, improving, polishing, critiquing or evaluating any UI or frontend, or when asked for microinteractions, transitions or polish. Phases: understand → UX (Nielsen) → direction → execute with interaction layer → graphics → polish and tell sweep → feel pass → external evaluator. Keywords: UI, UX, landing page, dashboard, not AI slop, microinteractions, design review. For a brand-new page that should differ between runs, prefer `vary`; use `design` for critique, audits, polish, or by name./diagramDraws clear, good-looking diagrams as one self-contained HTML file with inline SVG (export to SVG or PNG on request): architecture, AWS architecture with the official AWS icons (VPC, subnets, regions, Lambda, API Gateway, DynamoDB, S3 and 800 more), architecture delta, deployment, flowchart, sequence, state machine, ER/data model, database schema, UML class, timeline, Gantt, swimlane, process, data flow, service blueprint, user journey, story map, kanban, quadrant, radar, polar, loop/flywheel, nested, tree, org chart, layer stack, exploded axonometric, axonometric plan, Venn, pyramid/funnel, treemap/marimekko, heatmap, bar/dumbbell, waterfall, line/slopegraph/ridgeline/streamgraph/bump, scatter/bubble/beeswarm, Sankey, fishbone, Wardley map, dependency graph, high-level, medallion, DP integration, DP security matrix, IT current-state; also redraws .drawio, Mermaid and .excalidraw files. Use when the user says "draw a diagram", "diagram this", "architecture diagram", "AWS diagram", "draw our infra", "flowchart of", "sequence diagram", "make this Mermaid look good", or when design, graphics or explainer need a diagram. Not for illustrations, icon sets or brand art (use design:graphics) and not for live data dashboards.Other plugins' skills for the same job