/molten-loop:mt-designfrom molten-loop
Generates a DESIGN.md visual system document from brand input, with live HTML preview. Use for design tokens, visual direction, and surface-specific UI (landing, web, mobile, desktop).
Ships in molten-loop. 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.
You help the user produce a design system document that an AI coding agent can apply consistently when generating UI. The file follows Google Labs' DESIGN.md spec (YAML token front matter + ordered prose sections) with optional extension sections for motion, iconography, and accessibility.
Input path (canonical): molten-docs/brand/brand.md from mt-brand. Fall back to brand.md at the project root or /docs/brand.md on older projects.
Output path (canonical): molten-docs/design/design.md at the repository root. Create the molten-docs/design/ directory if it does not exist.
Preview path (canonical): molten-docs/design/example.html. After writing the design brief, create a self-contained HTML preview that shows the design system in use.
This skill is the visual counterpart to mt-brand. Brand strategy lives in the brand brief; visual identity lives in the design brief.
At the start of every run, establish one design surface for this session. Do not blend landing-page marketing UI with web-app, mobile-app, or desktop-app product UI in the same pass.
Skip this ask only when the user already named the surface clearly (e.g. "landing page design system", "mobile app UI", "SaaS dashboard").
Ask as a numbered multiple-choice question:
"What is this design system for?"
Options:
When the user picks Choose for me, infer from brand.md and their prompt:
State the choice and one-sentence reason before continuing.
After the design surface is chosen, read exactly one surface reference before Pinterest, token, component, or preview decisions:
| Chosen surface | Required reference |
|---|---|
| Landing page | references/landing-page.md |
| Web product | references/web-app.md |
| Mobile product | references/mobile-app.md |
| Desktop product | references/desktop-app.md |
These references contain the surface-specific guidance: layout, density, component set, Pinterest search anchors, preview slice, and surface do's/don'ts. Keep SKILL.md as the shared spine; do not duplicate the whole design workflow into separate skills unless the trigger and output become genuinely different.
example.html, and Do's and Don'ts — to the chosen surface only.design.md (example: Design surface: landing page).Most users of this skill are not designers, but they should still control the level of guidance they want.
Before creating files, ask which approach they want unless they already said "fast", "quick", "detailed", "guided", or equivalent in their prompt.
Ask Design surface and Fast vs Detailed together as questions 1 and 2 in one message when both are still unknown.
Offer exactly these two choices for the workflow:
design.md and example.html.If the user chooses Fast draft, use this flow:
references/.design.md if present, and any existing UI styles.molten-docs/design/design.md.molten-docs/design/example.html.In Fast draft mode, do not ask questions like:
Infer those details from molten-docs/brand/brand.md, existing project styles, and conservative defaults.
Only ask the user about plain-language inputs:
If the user says "choose for me", "use best practices", "you decide", or gives no preference after choosing the fast path, decide and continue.
Use this when the user chooses the detailed option or explicitly asks for granular design control, token tuning, a designer-level workshop, or a deeper second pass after seeing the first draft.
Even in the detailed path, start with plain-language choices and translate the answers into token-level details yourself.
molten-docs/brand/brand.md, then legacy brand.md at the project root or /docs/brand.md. Extract every visual implication (maturity, personality, references, anti-references, first-impression cues, accent guidance). Do this after the design surface is known (or while inferring Choose for me for surface).references/landing-page.md, references/web-app.md, references/mobile-app.md, or references/desktop-app.md.AskUserQuestion, AskQuestion, request_user_input).brand.md and the strategic context, then state the choice and the one-sentence reason before moving on. Do not silently choose — always surface the decision.brand.md." If they defer, propose a specific value (exact hex, exact font name, exact dimension) plus a one-sentence rationale.brand.md already answers a question, do not ask it again. Cite the value back to the user for confirmation only when ambiguous.molten-docs/design/design.md and molten-docs/design/example.html (create parent directories as needed). Otherwise, provide the full contents for both files and tell the user the target paths.Offer lettered options only for plain-language outcomes from a finite set (surface, overall feel, product type, visual archetype), never design-system internals. Use open questions for free text (reference sites, existing colors, things to avoid), for pushing back on vague answers, and for confirming a summary.
The user must always be able to delegate a decision to you:
brand.md and the context, say "Picking X because [one-sentence reason]", and move on. Confirm first only if the choice is costly to reverse (primary color, type families).brand.md." When they defer, propose an exact value (hex, font name, dimension) with a one-sentence rationale, never a range.brand.md or the conversation already settles it, don't ask; apply it and say so.Example:
1. What should the product feel like? a) Serious b) Friendly c) Premium d) Energetic e) Calm f) Utilitarian g) Choose for me — recommend based on brand.md
User picks g. "Picking calm SaaS because
brand.mdcalls for quiet confidence and a clear, trustworthy interface."
After the design surface is chosen (or inferred), and before Pinterest or token work:
molten-docs/brand/brand.md (canonical). If missing, fall back to brand.md at the project root or /docs/brand.md for older projects.brand.md is missing, ask the user whether to run mt-brand first (recommended) or proceed without it.Use one canonical design brief at molten-docs/design/design.md. Do not create separate unrelated design systems for landing, web, mobile, and desktop unless the user explicitly asks for separate brands.
Structure the output as:
If molten-docs/design/design.md already exists:
Shared core inherited from existing design.md; updated surface layer: [surface].If this is the first design run, create a complete design.md for the chosen surface and label which decisions are shared core vs. surface layer so future surface passes can inherit the core.
After ingesting brand.md, curate Pinterest inspiration before locking design tokens or writing design.md. This gives non-designers concrete visual direction without asking them to describe taste in design-system jargon. Follow references/pinterest.md: five surface-specific search terms, open them, have the user pick one pin, interpret it, and confirm before applying it.
Do not write design.md until this phase is complete (reference confirmed) or explicitly skipped. Never silently apply a reference.
Only run this after the first design.md and example.html draft if the user explicitly asks for deeper control.
In that second pass, you may tune colors, typography, spacing, layout, elevation, shapes, components, motion, iconography, imagery, and accessibility. Start by asking what feels wrong in the current preview, then make targeted changes. Avoid restarting the whole interview.
Even in the detailed second pass, prefer plain-language questions first. Translate the user's answer into token-level details yourself whenever possible.
molten-docs/design/design.mdWhen enough information is gathered, read references/design-template.md and write molten-docs/design/design.md with that structure. The YAML front matter is normative; the prose is rationale. Clearly separate the shared core (tokens and principles stable across every surface) from the surface layer (the chosen surface's layout, density, components and preview guidance).
molten-docs/design/example.htmlAfter writing design.md, create molten-docs/design/example.html: a self-contained, single-file visual preview of the tokens (swatches, type, buttons, inputs, cards and one realistic section for the chosen surface). Follow references/example-html.md.
Before finalizing molten-docs/design/design.md, verify:
--- fences, no duplicate keys).primary color is defined (linter warns otherwise).{token.path} references resolve to a defined token.button-primary-hover), not nesting.molten-docs/brand/brand.md.design.md.molten-docs/design/example.html exists and is self-contained.design.md tokens.If npx @google/design.md is available, suggest the user run:
npx @google/design.md lint molten-docs/design/design.md
If linter findings appear, walk through them with the user before treating the file as final.
For deeper background on the spec, token schema, linter rules, and authoring principles, see the project's design-md-research.md if present, or the canonical spec at https://github.com/google-labs-code/design.md.
references/design-template.md (opens in a new tab)references/desktop-app.md (opens in a new tab)references/example-html.md (opens in a new tab)references/landing-page.md (opens in a new tab)references/mobile-app.md (opens in a new tab)references/pinterest.md (opens in a new tab)references/web-app.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
design-system, design-tokens, visual-system, ui-design, molten-loop
17 skills in this plugin
/mt-askMolten Loop — discussion only. Talks a topic through briefly without writing code, editing files or starting implementation. Use to ask a question, think out loud, weigh options or get a second opinion before deciding to build./mt-autoMolten Loop — auto mode. Runs the rest of the Agent Development Loop unattended, from a brief or from wherever a feature is (for example after a manual discovery), up to an open PR. Logs every decision it makes for you in `molten-docs/loop/<slug>/auto.md` and stops only for what it must not decide. Use for auto mode, "take it from here" or building a feature autonomously./mt-brandMolten Loop — interviews you on audience, pain, positioning, message and voice, then writes `molten-docs/brand/brand.md`. Use for a brand guide, positioning brief or messaging. Not for visual design (use mt-design)./mt-buildMolten Loop — Agent Development Loop step 4. Implements an approved plan one slice at a time with red-green-refactor on a feature branch, committing each green task and updating the task source (tracker or plan). Use to build, implement or start coding a planned feature. Not without a plan, or for spikes (use mt-prototype)./mt-discoveryMolten Loop — Agent Development Loop step 1. Interviews you about a feature before any code: goals, users, constraints, codebase context and the riskiest unknown. Writes `molten-docs/loop/<slug>/01-discovery.md`. Use to start a new feature, "figure out what we're building" or "interview me". Not for idea validation (use mt-validate)./mt-guideMolten Loop — the "start here" router. Reads `molten-docs/` to show where each feature is and recommends the next skill, and can add a Molten Loop section to `AGENTS.md`. Use for "what's next", "where do I start", which skill to use, or setting up Molten Loop.npx claudepluginhub switch-dimension/molten-loop --plugin molten-loopOther plugins' skills for the same job