/howtoai-design:design-systemfrom How to AI — Design
Builds or extracts a reusable design system: token architecture (primitive, semantic, component) plus a documented component set. Use for "design system", "design tokens", or "component library".
Ships in How to AI — 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.
A design system is the smallest set of tokens, components, and usage rules that keeps a product's UI consistent without a designer approving every screen. Two jobs: build one (new product, or a codebase ready to systematize) and extract one (the codebase already has a de-facto system — buried under 14 button variants).
Works from whatever the user has: pasted code, CSS files, a repo, or screenshots. A Figma MCP connector, if available, can pull component properties directly — optional, never required.
Systematization is overhead until patterns repeat. Match the machinery to the scale — a heavier setup than the row below is busywork, not rigor:
| Situation | What the "system" is |
|---|---|
| One landing page | Nothing — consistent choices, no infrastructure |
| Solo founder, one product | One tokens.css + one doc page of components |
| Team, one product | Token tiers in files + per-component docs + audit script run in CI |
| Multiple products/platforms | Add a DTCG JSON source of truth compiled per platform |
Promotion rule: a pattern earns a component when it appears 3+ times; a value earns a token when 2+ components use it for the same reason.
Three tiers, each referencing only the tier below:
--color-blue-600: #2563EB; /* primitive: raw value, no meaning */
--color-primary: var(--color-blue-600); /* semantic: purpose, not appearance */
--button-bg: var(--color-primary); /* component: per-component knob */
The rules that make the tiers worth having:
--color-primary,
--spacing-section), never appearance (--color-blue).-foreground token so contrast
survives theming.Naming grammar, standard scales, semantic vocabulary, dark mode, DTCG JSON,
and Tailwind/shadcn wiring: references/token-architecture.md.
howtoai/brand/
tokens (from the brand-kit skill), use them as the primitive layer instead
of inventing colors.primary, muted, destructive, border, ring...). This tier is the
product's theming API; keep it under ~25 tokens until usage demands more.For an existing codebase, extract the system it already has, then propose the one it should have:
python3 scripts/audit_tokens.py path/to/src
The script inventories every hardcoded color, px/rem size, shadow, and font
stack, grouped by distinct value with usage counts — the raw material for
consolidation ("11 grays in use, 4 intended"). Then: cluster near-duplicates,
propose the canonical set with counts as evidence, migrate via aliases.
Playbook, clustering heuristics, and the audit report template:
references/extraction.md.
Documentation that only describes props gets ignored. Each component doc must answer: what is this, when to use it, when NOT to use it (and what to use instead), variants with their "use when", all interactive states, and keyboard
references/component-specs.md.Systems die by exception, not by decision. The one mechanism that keeps a system alive, at any team size:
--card-header-icon-gap
because one card has an icon. Promote to a token on the second consumer;
until then it's local CSS.--button-bg: var(--color-blue-600)) work
fine — until dark mode, which becomes a per-component rewrite instead of one
semantic override block. This is the #1 thing to check when auditing someone
else's tokens.--color-blue as a semantic
name becomes a lie the day primary turns green — and it will be used for
"blue-ish things" in the meantime, coupling unrelated components.bg-${variant}) and downstream consumers you don't
know about. Alias old → new, deprecate, remove a release later.--card-bg
but not --card-foreground ships unreadable text. When adding any surface
token, add its pair in the same commit.#fff, 0, and 1px borders are usually
intentional; a report full of them buries real drift. Consolidation targets
are the values with many near-duplicates, not every literal.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rubenhassid1/howtoai-skills --plugin howtoai-design12 skills in this plugin
/bannersDesigns banner and cover graphics — LinkedIn banners, X headers, YouTube channel art, event covers, OG images — as pixel-exact HTML at each surface's real dimensions and safe zones./brand-kitBuilds a brand identity system — color roles, type pairing, logo direction, reusable brand tokens other skills consume. Use for "brand kit", "brand identity", "my brand colors", "brand guidelines", or "make my stuff look consistent"./design-critiqueReviews a design — screenshot, URL, Figma export, or built UI — with a severity-ordered verdict on visual quality, usability, and accessibility in one pass. Use for "critique my design", "design review", "is this accessible", "roast my landing page"./design-stylesPicks a named visual style and executes it faithfully — brutalist, neobrutalist, minimalist, soft, glassmorphic, luxury, playful, and more. Use when asked to "make it brutalist", "make it feel soft/premium", or "what style should this be"./frontend-tasteAesthetic judgment for any web UI being built, replacing AI-default habits with deliberate design decisions. Use while building frontend interfaces, or when asked to make it look good, look less generic, or not look AI-generated./image-to-codeConverts a design image — screenshot, mockup, Figma export, or sketch — into faithful working code. Use when a user attaches a picture of a UI and says "build this design", "turn this screenshot into code", "code this mockup", or "clone this UI".Other plugins' skills for the same job