/design:design-systemfrom design
Use when creating or evolving a visual design system - choosing a palette, typography scale, spacing rhythm, and one signature element that artifacts and pages then consume - or when asked for brand colors, design tokens, a theme, or a visual identity for a project or team. Produces a small token store (philosophy, tokens.json, tokens.css) under ~/.local/share/design-system/ that artifact and page generators can consume. Also use when reviewing a design for AI-default slop: the cream-plus-serif-plus-terracotta look, the near-black-plus-acid-accent look, purple gradients, excessive centered layouts, uniform rounded corners, Inter by default.
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.
None: SKILL.md is the whole skill.
Author a small, persistent token system that every visual artifact in a project draws from, so a run of infographics, flow charts, and pages reads as one product instead of a pile of one-offs. The output is three files in a harness-neutral store, not a website: artifact generators do the rendering.
Work model-agnostically. The process below is a thinking discipline, not a toolchain; it runs the same under Claude Code, OpenCode, and Kimi.
One directory per system, in a location every harness can reach:
~/.local/share/design-system/<system-name>/
philosophy.md why the system looks the way it does (the manifesto)
tokens.json the machine-readable tokens (shape below)
tokens.css CSS custom properties, generated from tokens.json
Keep the store out of any single repo: artifacts in many projects may consume one system. If the user wants a system versioned with a project instead, put the three files in that repo (for example design/tokens.json) and record the absolute path - name alone cannot find a project-local store - in the consuming artifact's config.
tokens.css is generated, never hand-edited: after changing tokens.json,
regenerate it so the two cannot drift. Say so in a header comment in the CSS.
Pass 1 - philosophy. Before any hex value, write philosophy.md: a short manifesto naming the subject, the audience, the mood, and what this system refuses to look like. Distinctive choices come from the subject's own world - its materials, instruments, and vernacular - not from a mood board of other software. Three to six sentences is plenty; this file exists so future revisions (and future sessions) can tell a deliberate choice from a drift.
Pass 2 - tokens. Derive a compact token system from the philosophy:
Pass 3 - critique. Read the plan back against the brief and the slop list below. If any choice is what you would have produced for any similar brief, revise it and note what changed and why in philosophy.md. Only then write the token files.
AI-generated design clusters around a few defaults. Each is legitimate when the brief asks for it; none should be spent by accident:
The brief's own words always win, including when they ask for one of these.
Keep it flat and role-named so generators can consume it consistently. Every color role must appear in both light and dark:
{
"name": "harbor-log",
"version": 3,
"color": {
"light": { "ink": "#...", "paper": "#...", "accent": "#...",
"accent2": "#...", "muted": "#...", "warn": "#...",
"danger": "#...", "border": "#...", "surface": "#..." },
"dark": { "...": "same nine roles, dark values" }
},
"type": {
"display": { "stack": "...", "weight": 700 },
"body": { "stack": "...", "weight": 400 },
"utility": { "stack": "...", "weight": 500 },
"scale": { "ratio": 1.25, "steps": { "s": 13, "m": 16, "l": 20, "xl": 25, "xxl": 31 } }
},
"space": { "base": 4, "radius": "8px",
"steps": { "1": 4, "2": 8, "3": 12, "4": 16, "6": 24, "8": 32 } },
"signature": "..."
}
Bump version on every change and log one dated line per change at the bottom of philosophy.md. Consumers pin nothing; they take the latest, so a version bump plus the changelog line is how a refresh explains why a page's look moved.
Emit CSS custom properties under :root, dark values inside a prefers-color-scheme media query. The variable names are the contract - consumers reference exactly these:
/* GENERATED from tokens.json (harbor-log v3) - edit the JSON, not this file. */
:root {
--ink: ...; --paper: ...; --accent: ...; --accent2: ...;
--muted: ...; --warn: ...; --danger: ...; --border: ...; --surface: ...;
--radius: ...;
--font-display: ...; --font-body: ...; --font-utility: ...;
--weight-display: ...; --weight-body: ...; --weight-utility: ...;
--text-s: ...; --text-m: ...; --text-l: ...; --text-xl: ...; --text-xxl: ...;
--space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
--space-6: 24px; --space-8: 32px;
}
@media (prefers-color-scheme: dark) {
:root { --ink: ...; /* ...all nine colors, dark values... */ }
}
The generated header carries the system name and version so a consumer can credit the exact tokens a page was built with.
Keep selectors to :root only - no element styling - so the file composes with any template. Colors go in both schemes; type, weight, and space variables are scheme-independent, so declare them once.
The signature token is guidance for the artifact author, not a CSS value: The artifact author reads tokens.json (or philosophy.md) for it and expresses it by hand in the page - the CSS carries only what custom properties can carry.
prose-lint (and humanizer if
flagged) when those skills are installed; under a harness without them,
give the file one plain-language read-through instead.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub shearerbeard/agent-skills --plugin design