/productos:design-design-systemfrom productos
Derives a design system from an image reference (screenshot, mockup, Figma frame, or live site), reconciles it with Product Identity, and writes Google-format DESIGN.md tokens and a live DESIGN.html style guide.
Ships in productos. 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.
Translate an image reference the member loves — a screenshot, mockup, Figma file, or live website — into a design system captured as two mirrored files:
docs/DESIGN.md — YAML tokens in Google's open design.md format plus prose rationale. The source of truth coding agents build from.docs/DESIGN.html — a self-contained style guide that renders every token and component live in a browser, styled from the same token values. The mirror the human opens.They are always written and updated together so they never drift.
This is Design phase Step 3. The identity already lives in docs/DESIGN.md as its ## Product Identity section (Step 1 created the file); this skill adds the tokens and the eight design-system sections around it. The identity supplies the words and deliberately leaves the visuals undecided — this skill derives colours, fonts, spacing, shapes, and components from a real image, guided by those words. The member supplies the image; you do the analysis, extraction, reconciliation, and both writes. Already have a codebase instead of an image? Use design-design-system-from-code.
docs/DESIGN.md holds only the Product Identity (frontmatter with no token groups — the usual state after Step 1): a first run. Build the system around the identity; no overwrite question beyond the diff in Step 6.docs/DESIGN.md already has tokens: read it (and docs/DESIGN.html) and ask what the member wants — refine specific tokens, replace with a fresh analysis from new imagery, or merge. Confirm before destructive overwrites, and regenerate docs/DESIGN.html whatever changes.A Lite system serves the surfaces a screenless product still has: its listing, landing page, docs, README, social images, and deliverables. Same two files, same Google format, same image-first intake (the identity-words fallback is more acceptable here) — less of it:
colors limited to primary, on-primary, surface, on-surface, on-surface-variant, outline, and at most one accent (add error/success only if docs or output show states); 4–6 typography levels (display-lg, headline-md, body-md, label-md, plus code-md in a mono family for developer-facing shapes); rounded and spacing of 3–4 steps each.button-primary, link, card, badge, and code-block (agent and developer shapes) or screenshot-frame (when listings show a host app, chat, or terminal). Five or six entries, variants included.### Logo use subsection inside ## Brand & Style — the mark's light and dark variants, clear space, minimum size, the square avatar/icon crop listings require, and two don'ts. No logo yet → say so, record the wordmark rule (name set in display-lg), and point to ../../design/logo-references/BONUS-Logo-Types-and-Best-Practice.md → Monochrome and Variant Rules.description ends "(Lite — brand tokens for listings, landing pages, and docs)", an italic line under the title reads Lite design system — run the full Design Step 3 before building any product screens, and DESIGN.html's Header carries the same note.Steps 0–7 below run as written, scoped to this set; Step 2 asks only questions 1, 2, and 7. If the product later gains screens, re-run in full and extend — never discard — the Lite tokens.
Read inputs from docs/ at the app repo root.
figma.com/design/..., /board/..., /make/...) — if the Figma MCP server is connected, use it (get_design_context, get_screenshot, get_metadata); otherwise ask for a screenshot of the frame.## Product Identity section of docs/DESIGN.md. Required. If it's missing or substantively empty, stop and point to design-identity-creator first.docs/DEFINE.md — required. What the product is (Summary, Offer → Mechanism) and who uses it in what context (Offer → Customer plus the Persona) — a productivity tool's system differs structurally from a consumer app's even with the same brand character. If it's missing, stop and point to the Define skills (or define-from-code).docs/DEFINE.md → ## Product Shape → ### Primary Shape names the slug; read only the Design route row for Step 3 in productos/shapes/<slug>.md (from this folder, ../../shapes/<slug>.md). Full → the standard run; Lite → Lite mode; Adapted → the standard run scoped to the surfaces the row names (a browser extension's popup, side panel, options page, and injected UI). The row's note wins where it says when to go Full (a skill that outputs visual documents, a visual template, an embedded chat widget). No Product Shape section (a repo from before 2.0) → treat it as web-app unless the code or member clearly says otherwise, and suggest define-product-shape. If docs/PLAN.md schedules the step differently, the plan wins — say so.{path.to.token} conventions. Structural template only — never copy its design choices.A senior design director and systems engineer with strong taste. Observant — describe what you actually see, not what you assume. Decisive — when the member is uncertain, recommend a direction with a one-line rationale. Token-fluent — every recommendation lands as a token: not "a soft red," but error: "#B23A2E". Strict to the spec — section order, YAML schema, and token-reference syntax are fixed. Don't flatter weak references: if the imagery is conflicting or thin, say so and ask which direction to anchor on.
Read the identity and DEFINE.md first, then open with:
"Share the image (or images) you want me to translate — a screenshot of a product you love, a marketing site capture, a Figma link, or a mix. If you have several, tell me which is the primary anchor. Your identity's Visual Style references are a good place to hunt."
Read every image carefully before asking anything, using references/image-analysis-patterns.md to map what you see onto token roles. Extract per image:
Summarize back in 5–8 tight bullets, mirroring the imagery's actual character. If two references conflict, name the conflict.
Ask one at a time, offering 3 tailored suggestions drawn from the analysis. Skip everything the docs already answer (product, audience, and context from DEFINE.md; tone, worldview, belief, and imagery lane from the identity) — acknowledge what's known instead of re-asking. What's left:
primary, which is the accent, which carry semantic meaning? Light, dark, or both? Suggest a mapping.If an answer is vague, push back with a recommendation rather than another open question.
The identity is the strategic anchor; the image is the aesthetic anchor. On conflict: identity wins on strategy (worldview, belief, tone, visual lane), image wins on tactics (hexes, radii, component rhythm) — unless the image violates a documented Visual Style rule. Common conflicts:
Surface every conflict, propose the resolution, get a one-sentence confirm, move on. Silent reconciliation is how design systems drift.
Compose the YAML frontmatter to the spec exactly:
---
version: alpha
name: <Design System Name>
description: <one-sentence description>
colors:
<token-name>: "<#hex>"
typography:
<token-name>:
fontFamily: <family>
fontSize: <px>
fontWeight: <number>
lineHeight: <number-or-px>
letterSpacing: <em> # optional
rounded:
<scale-level>: <dimension>
spacing:
<scale-level>: <dimension>
components:
<component-name>:
backgroundColor: "{colors.<token>}"
textColor: "{colors.<token>}"
typography: "{typography.<token>}"
rounded: "{rounded.<token>}"
padding: <dimension>
height: <dimension> # optional
---
Rules:
"#RRGGBB" strings. Dimensions use px/em/rem; letter-spacing may be negative em.primary, on-primary, surface, surface-container, on-surface, on-surface-variant, outline, outline-variant, error, success, warning, info — never blue, lightGray.display-lg, headline-lg/md, body-lg/md/sm, label-md/sm — aim for 6–10, never exceed 15. Rounded: none/sm/md/lg/xl/full. Spacing: xs/sm/md/lg/xl plus gutter/margin where used repeatedly.{path.to.token} syntax wherever a token exists; inline literals only when nothing matches.button-primary and button-primary-hover, never nested children.backgroundColor, textColor, typography, rounded, padding, size, height, width. Others trigger parser warnings — avoid unless deliberate.backgroundColor+textColor pair meets WCAG AA (4.5:1 body, 3:1 large).## headings in the prose (the spec rejects them).Fonts must be free for commercial use (Google Fonts, Fontshare, Vercel's Geist) and never the vibe-coded defaults: Inter, Instrument Serif, Outfit, Plus Jakarta Sans. If the image clearly uses a banned or paid font, substitute the closest free equivalent and surface it. Common substitutions: Söhne → Public Sans or Hanken Grotesk; GT America → Schibsted Grotesk; Tiempos → Newsreader; Inter → Public Sans or Manrope; Suisse Int'l → Public Sans; Helvetica Now → Public Sans. Distinctive free picks: Fraunces, Newsreader, Bricolage Grotesque, Source Serif 4, Schibsted Grotesk, Public Sans, Manrope, Hanken Grotesk, Cormorant Garamond, DM Serif Display, Spectral, Albert Sans, Onest, Funnel Sans/Display, JetBrains Mono, DM Mono, Geist/Geist Mono, Satoshi, General Sans, Switzer.
Draft the eight canonical sections, in this exact order after the Product Identity section, each 3–8 tight sentences. Don't restate the YAML — explain the why, so a coding agent can make sound choices where the tokens are silent:
## Brand & Style — the look-and-feel north star, from DEFINE.md (what it is) + the identity (worldview, belief, tone, visual style). The aesthetic intent in one phrase, the emotional response the UI should evoke, and one or two anti-patterns.## Colors — palette strategy: what primary, accent, surface, and semantic colours do and why those values. Note WCAG AA contrast intent.## Typography — the pairing's character and what each scale level is for. Treatment rules (uppercase labels, tabular numerals).## Layout & Spacing — grid model, max content widths, density philosophy, how spacing tokens map to layout.## Elevation & Depth — the depth model and why it fits this brand.## Shapes — corner-radius philosophy; intentional differences by component class.## Components — how buttons, inputs, chips, cards behave; variant and state rules. Every YAML component explained here, and vice versa.## Do's and Don'ts — 4–6 do's and 4–6 don'ts, specific and enforceable, from the anti-patterns answer and the identity.docs/DESIGN.mdShow the member a brief outline first — the token names chosen (colour tokens, type levels, rounded/spacing scales, component list) and a one-line summary per prose section. Fold in last edits. Then write docs/DESIGN.md (create docs/ if needed; if the file exists, show the diff and get approval). File order: the YAML frontmatter, the # <Name> title, the ## Product Identity section carried over verbatim (it belongs to design-identity-creator — never rewrite or drop it), then the eight canonical sections. Drop the italic placeholder line saying tokens arrive at Step 3.
Verify the write succeeded before confirming. On failure, surface a clear message by cause: permission denied ("the directory isn't writable — check folder permissions"), disk full ("free up space and I'll retry"), existing-file conflict ("want me to save under a different name or overwrite?"), anything else (report verbatim and ask). Only say "saved" after verification — then build the mirror.
docs/DESIGN.html mirrorGenerate it from the tokens just written, not from a fresh interpretation of the imagery:
<style> block, no frameworks, no external JS. Web fonts may load via a Google Fonts <link>.:root (--color-primary, --type-headline-lg-size, --rounded-md, --space-md); every swatch, specimen, and component styles itself from those variables — never hardcode a value that exists as a token.data-theme attribute and define both token sets.Sections, in order: Header (name, description, "human-readable mirror of docs/DESIGN.md") → Product Identity (carried over from the existing html — the Brand Card as a card plus the five elements, restyled with the new tokens if you like but content unchanged; rebuild it from the md section if the html is missing) → Colors (a swatch per token: block, name, hex, and a line of text in the paired on- colour) → Typography (each level as a live specimen at its real family/size/weight, spec beside it) → Spacing (labeled bars) → Radius (sample boxes per rounded value) → Elevation (a card per level) → Components (every components: entry rendered live, variants and states grouped; un-triggerable states like hover as labeled static copies) → Do's and Don'ts (two columns, ✓/✗, small visual examples where they help).
Keep the page's chrome neutral — a reference style guide, not a marketing page. Write docs/DESIGN.html with the same write-error handling.
docs/DESIGN.md is canonical; docs/DESIGN.html is its mirror. Any change to one is reflected in the other in the same edit — md first, then the matching CSS custom property / component in the html (or regenerate it). If the member hand-edits the html, fold the change back into the md tokens.
Preserve section order — Product Identity first, then the eight — and never create duplicate ## headings. Identity changes go through design-identity-creator, which rewrites that section in both files.
Re-read both files:
## headings.{colors.primary} syntax.backgroundColor+textColor pair meets WCAG AA (4.5:1 body, 3:1 large) — flag and fix failures before delivering.### Logo use is filled, and both files are marked Lite.Give the member both file paths: docs/DESIGN.md is the source of truth any coding agent implements from; docs/DESIGN.html opens in a browser to show every token and component live; when tokens change, both update together.
Next: design-prompt-generator (Step 4) embeds these tokens plus the identity's words into paste-ready prompts for AI design tools. After a Lite run, follow the shape's route: Step 4 runs for listing and landing visuals only, or is skipped.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
45 skills in this plugin
/build-loopBuilds plan tasks or a feature prompt in Claude Code, Codex, or Cursor through a build → test → fix loop per task, then one review pass with the tool's own /review (plus a security pass for sensitive surfaces) once the work is finished. Use when the user says "run the build loop", "build the next task", "continue the plan", or asks to implement work from a plan file or a direct prompt. Works in any repo. Not for running a whole roadmap in one go — use develop-build./continuePicks up the member's ProductOS work where they left off — reads setup, any open challenge, the programme plan, docs/PATH.md, and docs/, tells the member in plain words where they are and what the next step does for them, then hands over to the skill that owns it: setup, a challenge check-in, product-refactor, or a phase orchestrator. Use when the member starts or returns to a session and says "continue", "keep going", "what's next", "where was I", or "pick up where I left off". Not for carrying on a task already under way in this conversation — just keep going with it./define-business-strategyWorks out the economics behind the price — cost per customer and gross margin, unfair advantage, north star metric — and writes the optional Business Strategy section of docs/DEFINE.md. Use when the money questions get real (before paid acquisition, at first revenue, when an investor asks): "what are my margins", "unit economics", "what does each customer cost me", "what's my north star metric". Requires the Offer and Pricing sections. Not for choosing the business model or price — use define-pricing.npx claudepluginhub buildgreatproducts/product-os-public --plugin productosOther plugins' skills for the same job