/design:setup-ds <name> ["<brief>"] [--force | --upgrade-schema | --app] [--allow-partial] [--quick]from design
Create or re-bootstrap a named design system.
Ships in design. Installing the plugin adds it to Claude Code.
Follow host conventions for Claude Code or Codex.
Dedicated entry point for creating a design system in this project.
In a Maude project a new design system starts on its Design system canvas — never as a static folder page. For first-bootstrap and additional-ds (below), run maude design ds make <name> --label '<Label>' first (Step 1.9). It writes the system's config entry, system/<name>/ and the Design system canvas (every section an outline), so the system opens as the canvas the moment it exists and the app has nothing to offer to convert. From there you work exactly as in App mode: the person's brief verbatim, three directions with maude design ds draft, the in-app pick, the sections filled through the working files, and no staged interview or scaffold roster. The staged discovery + scaffold below is the fallback only for a project where ds make is refused because it cannot edit that way (an older project format or an older maude without the verb).
Modes the underlying skill auto-detects:
.design/config.json does not exist (or designSystems[] is empty). The skill runs staged discovery (DDR-033 + DDR-147: Stage 0 scope picker → Stage 1 vision prompts → Stage 2 research → Stage 3 direction gate (moodboard pick of ~moodboard.variants directions) → Stage 4 refinement residue → LOCK gate), scaffolds system/<name>/, writes config.json with designSystems: [{ name, path, description }].config.json exists and <name> is not in designSystems[]. The skill runs the same stages plus a Q_purpose prompt at the start and an inheritance picker between Stage 2 and the Stage-3 direction gate (inherited fields are frozen across all direction tiles).--app: the Maude app has already made the system (a designSystems[] entry, an empty system/<name>/, a Design system canvas of outlines, revisions/head.json with no head) from its three-input sheet and sent you the brief. No interview and no scaffold roster: the three directions are written with maude design ds draft, the person picks in the app, the sections fill through the working files. See App mode below.--upgrade-schema: <name> exists but was made before the schema (ds-check level 11, or an amber dot on its row in the Maude app). No interview, no scaffold: the system is brought up to the schema by the deterministic maude design ds-upgrade steps plus your judgement of the few roles it cannot derive, proved pixel-identical, and handed back for the person to apply. See Upgrade-schema mode below.<name> already exists in designSystems[] AND --force was passed. Stage 1 is lossy-inferred from the existing DS README + tokens + _layout.css; user confirms / corrects in a single chat message; Stage 2 always re-runs; the Stage-3 direction gate runs with 1 tile; Stage 4 residue + LOCK proceed identically.This command does NOT create a canvas — use /design:new for that. It also does NOT prepare the project environment (deps, CLAUDE.md, .ai/) — that's /design:init's job.
<name> — required. Kebab-case slug (marketing, admin, consumer-mobile, …). For the first DS in a single-DS project, the literal value project is the conventional default — every /design:edit / /design:new auto-detects it without --ds=<name> flag. Name-validation rule (Phase 19 / DDR-044): when first-bootstrap is detected AND <name> exactly matches the repo basename (e.g. user typed /design:setup-ds my-repo from ~/git/my-repo), the skill warns: You passed '<name>'; for first-bootstrap projects the conventional default is 'project' (auto-detected by /design:edit). Continue with '<name>'? [Y/n] and proceeds on Y/enter. The user-supplied name is honored either way — the warning is informational, not gating. The completeness-critic's C2 dirname check (system/<name>/ vs system/project/) reads vision-brief.json#name_source to distinguish user-supplied from default-applied names; user-supplied names do NOT trigger C2.<brief> — optional. If absent, Stage 1 asks all 11 prompts. If present, the skill pre-fills the matching vision-brief.json fields (typically P1 elevator pitch, sometimes P5 lineage / P10 OST hypothesis) and prints a one-line → Skipping P<N> (covered in brief) per skipped prompt so the user can correct misfires.--app — the Maude app started this system (13 · "Make a design system"); see App mode. Only valid for a system that is mid-make (its revisions/head.json has head: null); a system that is already made answers ds-not-making from the verbs. The <brief> is the person's sentence, passed verbatim.--upgrade-schema — bring an existing, pre-schema system up to the schema (13 · "Bring up to the schema?"); see Upgrade-schema mode. Mutually exclusive with --force, --app and <brief>: the system keeps every look it has. A system already on a Design system canvas answers ds-upgrade-converted and nothing is changed.--force — required for re-bootstrap of an existing DS. Without it, an existing-DS target produces an error pointing at the right verb (/design:edit for incremental change, /design:setup-ds <new-name> to add a sibling DS).--quick — opt out of Stage 1's full 11 prompts. The skill collapses Stage 1 to 4 prompts (P1 elevator + P5 lineage + P8 primary emotion + P10 OST hypothesis), forces the Stage-3 direction gate to 1 tile (auto-proceed-but-still-ask), and runs Stage 4 refinement normally. Output is structurally valid but typically scores ~3.5/5 aspiration instead of the 4.0+/5 the full 3-stage flow targets. Use when scaffolding a throwaway DS or when the user explicitly wants the fast path.--imprint — steer Stage 2 research toward an explicit brand prior (rare; usually used when the brief already names a strong gold-standard, e.g. "use the studyfi imprint pattern"). The skill still runs Stage 1 + Stage 2 + Stage 3 in full BUT seeds the research agent's payload with the prior. Phase 3.7 / DDR-049: the post-scaffold critic panel is gated by an explicit AskUserQuestion (Full 4 rounds / Imprint-only / Custom) regardless of --imprint — the flag does NOT silently skip Rounds 2 + 3. motion-critic is always-on whenever motion.tsx is scaffolded, regardless of --opt-out=motion. See SKILL.md "Spec-bypass discipline" — any deviation from spec routes through <designRoot>/_history/_system/<ds>-bypass-log.md.--from-brand <file(s)> — the FILE-BACKED sibling of --imprint: point at one or more local brand files (a logo SVG/PDF, brand images) instead of naming a prior in prose. Each file runs through maude design import-asset (DDR-167's hardened SVG/PDF ingestion) and, for a resulting logo asset, maude design import-brand (DDR-173) to extract a typed {palette, fonts, logoRef} triple — never free text; DDR-173 Decision 1 forwards only grammar-validated color values, allowlist-matched real font names, and a hardened logo asset reference into Stage 2's research payload. The Stage 2 research agent treats these as strong anchors (still going through the normal recommendations[] confidence process — Stage 3/4 still confirm, extraction is best-effort, never presented as final) and, per DDR-173 Decision 3, this run does NOT write to the committed, cross-peer research/domain cache (only the ephemeral per-brief layer) so an unreviewed brand-seeded run never silently becomes the shared domain default for other briefs. Stage 1 + Stage 2 + Stage 3 still run in full — --from-brand seeds the payload, it does not skip stages, exactly like --imprint. Combine with --imprint if useful (a prose prior AND a file prior can both seed the same payload). See DDR-173 for the full trust boundary this flag operates inside./design:setup-ds project "It's a recipe manager where you set the number of servings and it recalculates the ingredients. For me and 3 friends. I want it to look like an 80s cookbook, not a modern food app with big photos."
/design:setup-ds marketing "<paragraph describing what this marketing surface is for, the audience, the primary action, voice direction>"
/design:setup-ds admin --force # re-bootstrap
/design:setup-ds quickdraft "<one-paragraph brief>" --quick # collapse Stage 1 to 4 prompts
Brief content guidance:
<brief> is just a one-liner, it pre-fills P1 only; the remaining 10 prompts get asked.<brief> is a paragraph, the skill pattern-matches lineage / OST / audience cues and skips the corresponding Stage 1 prompts (each skip is printed inline so you can correct). Stage 2 research + the Stage-3 direction gate always run.One pre-flight call resolves config presence + the known-DS set in a single pass (instead of a bare .design/config.json read):
eval "$(maude design prep --shell-export --shape setup-ds)"
# → CONFIG_PRESENT, KNOWN_DS, DEFAULT_DS, REPO_ROOT, DESIGN_ROOT, ACCENT_STRATEGY, COLOR_SPACE
If CONFIG_PRESENT=false:
→ .design/config.json missing. Running /design:init first to initialize the project…
Then auto-invoke /design:init --skip-prompts so the user isn't double-prompted. After it returns, continue.
If config exists (CONFIG_PRESENT=true), skip onboard. KNOWN_DS already tells you whether <name> collides with an existing DS (drives the first-bootstrap / additional-ds / re-bootstrap sub-mode decision in Step 2).
Skip this step for --app (the app already ran it), --upgrade-schema and --force on an existing system. Otherwise, when <name> is not in KNOWN_DS:
maude design ds make <name> --label '<Label>' # <Label>: the person's name for it, else <name> title-cased; single quotes (a $(…) in a label must never run), a ' in the label written as '\''
<brief> verbatim. Skip Steps 1.5 and 3: no moodboard canvas, no scaffold roster, no ui/<ds>-moodboard.tsx.ds-exists → a system of that name is already there: follow the --force / <new-name> guidance in Arguments.Never scaffold system/<name>/ by hand next to a made system, and never write design-system.tsx yourself — ds make and the canvas verbs own it.
Before the skill runs any find calls against the inspiration library, capture the library tree once and hold it in context:
ls -R plugins/design/templates/design-system-inspiration/ | head -200
This avoids the false-negative template-drop the studio-2 retro caught (BAD-6) where find from the wrong cwd returned exit-code-1 and a template (audience-developer/type-mono.html) was incorrectly classified as missing. Subsequent find calls during scaffold MUST use absolute paths anchored at the repo root.
design-system in bootstrap modeCall Skill design-system with the input envelope:
mode: bootstrap
target_ds: <name>
brief: <brief or empty>
force: true|false
quick: true|false # --quick → collapse Stage 1 to 4 prompts
app: true|false # --app → the Maude app made the outline; see "App mode"
upgrade_schema: true|false # --upgrade-schema → no bootstrap; see "Upgrade-schema mode"
The skill detects the sub-mode internally (first-bootstrap / additional-ds / re-bootstrap) based on .design/config.json state.
Direction is a START / divergent bookend (DDR-130). When
orchestration.modeis notoffand native agent-teams are available, the Stage-3 direction gate is the place to contest the aesthetic before ~15k LOC of scaffold. The gate already diverges by construction (DDR-147: ~moodboard.variantsseed-composed direction tiles, blind sub-agent escalation on request); with the debate layer eligible it additionally routes the direction call throughflow:debate-protocol—flow:user-advocate(who is this for / who's excluded) +flow:builder(boldest viable aesthetic) +signature-moment-critic(aspiration) — surfacing one framed direction. Never blocks;mode:off→ today's flow, unchanged.
See plugins/design/skills/design-system/SKILL.md "Bootstrap flow" for the canonical spec. Briefly:
InputValidationError or permission denial (e.g. don't-ask mode), Stage 0 + every downstream picker (direction gate, refinement, LOCK) switch to numbered-prose-in-chat for the rest of the session. Spec + copy-paste prose templates in the design-system skill's _bootstrap.md ("Tool-availability check" callout, just before Stage 0).ux-research-agent runs on the full vision-brief.json, ~30–90s wall-clock. --quick collapses Stage 1 to 4 prompts.
2.5. Stage 3 — direction gate (design-language moodboard, DEFAULT ~moodboard.variants directions). Directly after research — before any refinement question — the main agent composes ~3 direction tiles (miniature chaotic collages: type-in-context, 60/30/10 palette strip + OKLCH chips, treatment hero, voice line, descriptive name + one-line thesis, provenance) into ONE persistent UI canvas at ui/<ds>-moodboard.tsx (DDR-136 — revisitable + commentable, never under system/<ds>/), seed-only from the Stage-2 payload: no web, no fan-out (DDR-147). Screenshot + Read, then the direction-pick gate: gut-first, fit-framed pick / Mix (base + named elements, re-rendered coherently) / eliminate-one fallback. Blind-sub-agent + self-harvest variants are the opt-in escalation ("wilder variants"); tile count degrades to the distinct-seed count via an informed opt-in, never silently. The winner expands into the full six-concern collage. ~1–3 min (3–6 escalated) vs the ~30–40 min scaffold. Interactive-only (skipped on --no-discovery; --quick/autonomous/re-bootstrap force 1 tile). Canonical spec in plugins/design/skills/design-system/_bootstrap.md § "Stage 3 — Direction gate" — this is a pointer._bootstrap.md § "LOCK gate" — this is a pointer._MAPPING.md for file set, activeFamilies[], per-file dependency_closure (drives batching)._history/_system/000-scaffold-roster.yaml listing every file with batch: A|B|C + status: pending.colors-accent.tsx); Batches B + C fired in parallel via sub-agents (5–8 slices). Sub-agents read tokens CSS + chrome + reference template, then RESTRUCTURE per the creativity rubric. Each updates its rows to status: written.
6.5. Hero-preview gate (token-fidelity check). After Batch A's CSS + the hero specimen are written, the main agent screenshots colors-accent.tsx and drift-checks the real computed tokens against the approved moodboard before the Batch B+C fan-out. Light by default — auto-proceed on no-drift, hard-prompt (Continue / Adjust tokens / Stop) only on drift (wrong hue lightness, missing treatment, inverted type roles). Catches "burnt → candy" as a token edit, not a ~15k-LOC regen. Canonical spec in _bootstrap.md § "Hero-preview gate" — this is a pointer.system/<ds>/preview/motion.tsx was scaffolded, grep it: it MUST import @maude/canvas-lib AND reference the vocabulary (<MotionDemo or <MotionTrack). A specimen that is pure-CSS @keyframes only (no canvas-lib import) violates the Animation tooling contract (skills/design-system/SKILL.md). On miss → either regenerate the specimen against the contract, or, if a zero-JS specimen is genuinely intended, record the deviation in _history/_system/<ds>-bypass-log.md with a one-line reason. Do NOT accept a silently-pure-CSS motion specimen. (motion-critic in step 10 also blocks it; this gate catches it before the panel so the regen happens once.)maude design screenshot (or maude design visual-sanity).plugins/design/skills/design-system/SKILL.md post-scaffold gate — this is a pointer.The LOCK gate (DDR-147) is the single most consequential decision this command makes: it freezes one moodboard direction as the contract every later canvas is generated against. Today that contract survives only as scaffolded files — nothing states which direction was chosen, why, or what the runner-up was.
Load flow:kgai-backend and check maude kg resolve --json.
active: false (default) → skip silently. This is a net-new capture; there is no classic file path to preserve.
active: true → after the LOCK gate resolves and the scaffold succeeds, record the direction as a ds: node:
echo '{"decision":{"title":"Design system locked: <DS_NAME>","rationale":"<the locked direction in the user'"'"'s own words + why it beat the runner-up + any Stage-4 residue>","date":"<YYYY-MM-DD>","mutations":[{"op":"upsert_element","kind":"ds","name":"<DS_NAME>","props":{"path":"<DESIGN_ROOT>/system/<DS_NAME>","accentStrategy":"<ACCENT_STRATEGY>","colorSpace":"<COLOR_SPACE>","status":"locked"}},{"op":"upsert_element","kind":"direction","name":"<DS_NAME>-locked"},{"op":"add_link","from":"ds:<DS_NAME>","to":"direction:<DS_NAME>-locked","link":"LOCKED_TO"}]}}' | maude kg ingest --root "$CLAUDE_PROJECT_DIR"
Put the user's own words in rationale, verbatim — not a polished paraphrase. This is the one record of intent behind every downstream canvas, and the value is in what they actually said. Re-bootstrap (--force) re-locks: record again; identity converges on ds:<DS_NAME> and props merge, so status/accentStrategy update in place while the decision history keeps both events.
The skill prints its "Bootstrap complete" block. This command body has no Post-flight of its own.
--app, from the Maude app — and every new system you start with ds make)The app's "Make a design system" sheet asks three things — a sentence (required), anything to learn from (a logo, a website, a Figma library, the project's canvases; optional) and what it is mostly for — and starts the system as an outline before it sends you the brief. Everything you do now goes through maude design ds …; nothing in config.json or revisions/ is edited by hand.
The brief is the person's sentence, verbatim. It sits between triple quotes in the message. Pass it to the skill and to every sub-agent exactly as written: never reworded, polished or padded with "vibe references", and never turned into an option ladder that names specific products (the research agent exists to find domain anchors; brand names at the brief stage are the bias it removes). The references the message names are anchors for Stage 2 and nothing more: a logo path is read with maude design import-brand (typed palette and fonts only), a host with maude design fetch-asset, "Figma" only if it is connected. Say plainly in the chat when it is not.
What you do, in order (the full spec is skills/design-system/_bootstrap.md § "app adaptation"):
maude design ds draft <name> --direction a|b|c --tokens <file.json> ({label, tokens: {"--name": "value" | {light, dark, valueNames?}}}; every colour has a Light and a Dark value; label is a descriptive name such as "Calm daylight", never a brand). They appear as the ds-dir-a|b|c artboards on the Design system canvas.maude design ds use <name> a or maude design ds mix <name> a --take type=b --take colour=c.colors_and_type.css, components.json, preview/_components.css, the logo and icons — Brand and Colour first, then Type, Space & shape, Motion, Components, Patterns. Check with maude design ds-check <name> between sections. The app draws each section from an outline as its files land, so a person can edit Brand and Colour while Type is still being drawn.maude design ds done: the person's "Use as 's style" does. It publishes the first revision, makes the system the project default and offers the existing canvases one switch review.If the person stops you, what already landed stays. Never delete a working file to "restart"; say what is missing and offer to continue.
--upgrade-schema)The Maude app opens "Bring up to the schema?" from the amber dot on a system's row, from its menu, or when a switch to or from it is refused; its "✦ Bring it up" sends you here. The same flow runs by hand: /design:setup-ds <name> --upgrade-schema. Skip Steps 1.5 to 4 above — the skill's upgrade-schema flow is the whole job, and Skill design-system is invoked with mode: upgrade-schema, target_ds: <name>.
What you do, in order (the full spec is plugins/design/skills/design-system/SKILL.md § upgrade-schema):
maude design ds-upgrade analyse <name> — the mechanical plan and what is left open.maude design ds-upgrade validate <name> <judged.json>, then maude design ds-upgrade <name> --stage <judged.json>, then maude design ds-upgrade <name> --prove <stamp>.--apply appears.If the person cancels in the app (--cancel, --discard) the stage is gone and the live tree was never touched. Nothing in this mode ever starts on its own: boot, sync and maude migrate v2 do not run it.
<name> already exists AND --force was NOT passed → fail with:
Error: design system "<name>" already exists at .design/system/<name>/.
To iterate on it: /design:edit "<feedback>"
To replace it: /design:setup-ds <name> "<new brief>" --force
To add a sibling: /design:setup-ds <new-name> "<brief>"
<name> is not a valid kebab-case slug (must match ^[a-z][a-z0-9-]*$) → fail with the regex hint.<name> collides with a reserved dir (preview, assets, ui_kits) → fail with "reserved name; pick another"./design:setup-ds does NOT do/design:new "<Name>" "<brief>" --ds=<this-name>./design:init (auto-invoked here when needed).maude design ds pending <ds> --set <file.json>) and apply them with Update N canvases; a hand edit of its CSS shows up as an outside change to keep or undo. A system still in a folder has no review: edit its token CSS directly (tokensCssRel, default system/<ds>/colors_and_type.css), then maude design ds-check <ds> --emit refreshes its tokens.json; its specimens are edited with /design:edit "<feedback>"./design:system (default, switch, migrate onto the Design system canvas, import-tokens).Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
28 commands in this plugin
/assetsList the project's assets, see where each is used, find the ones nothing uses, and search pictures by what they show./boardRead the annotations on a canvas, or lay out a structured template of sticky notes (retro, kanban, roadmap) on it./browseStart the Maude studio for this project and open it./chatOpen the AI chat panel in the running Maude window, or continue an in-app chat from a terminal.npx claudepluginhub 1agh/maude --plugin design