/designmd-skills:design-mdfrom designmd-skills
Creates, audits, and maintains DESIGN.md files aligned with Google's open specification. Validates design tokens, enforces brand/UI rules, and converts between DESIGN.md, Tailwind, and W3C DTCG formats.
Ships in designmd-skills. 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; scripts run unread.
Create, maintain, and audit repository DESIGN.md files aligned with Google Labs' open DESIGN.md specification (google-labs-code/design.md, version: alpha) so humans and coding agents share one verified visual contract across apps.
DESIGN.md from brand rules, feedback, or CSS/native tokensDESIGN.md before commits or UI changes across web, mobile, and desktop appsDESIGN.md, Tailwind CSS v4 @theme, Tailwind v3 JSON, and W3C DTCG (tokens.json)DESIGN.md to catch token drift or WCAG AA contrast regressionsUse the companion extract-design-md skill first when pulling an initial design system from an existing codebase or live website URL, then normalize and validate the output with this skill.
version: alpha)Combine YAML design tokens (top front matter and/or interleaved ```yaml code blocks, never duplicating a top-level YAML key) with canonical Markdown sections in strict order:
---) with version: alpha, name, and description## sections in exact order (omit unused sections rather than reordering):
## Overview (alias: ## Brand & Style)## Colors (colors: YAML block with top-level light-default primary and optional dark: group)## Typography (typography: YAML block)## Layout (alias: ## Layout & Spacing, spacing: YAML block)## Elevation & Depth (alias: ## Elevation)## Shapes (rounded: YAML block)## Motion & Micro-interaction (alias: ## Motion & Micro-interactions, Markdown timing table so published CLI linting stays zero-warning)## Voice & Content Strategy## Components (components: YAML block + prose subsections)## Do's and Don'tsRead the schema and linter reference for allowed sub-tokens, unit rules, and WCAG AA contrast details.
Check any repo from its root or pass a path explicitly:
node "${CLAUDE_PLUGIN_ROOT}/skills/design-md/scripts/audit-design-md.mjs" .
node "${CLAUDE_PLUGIN_ROOT}/skills/design-md/scripts/audit-design-md.mjs" /path/to/repo --json
node "${CLAUDE_PLUGIN_ROOT}/skills/design-md/scripts/audit-design-md.mjs" /path/to/repo --cli
Passing --cli also invokes npx --yes @google/design.md lint --format json when Node has npm access.
npx --yes @google/design.md lint DESIGN.md
npx --yes @google/design.md diff old-DESIGN.md DESIGN.md
npx --yes @google/design.md export --format css-tailwind DESIGN.md
npx --yes @google/design.md export --format dtcg DESIGN.md
Target errors: 0 and warnings: 0.
primary directly under colors: (colors.primary), with dark tokens nested under colors.dark: and explicitly referenced ({colors.dark.*}) inside components: so neither missing-primary nor orphaned-tokens warns.components.<name> entry limited to the 8 recognized properties (backgroundColor, textColor, typography, rounded, padding, size, height, width). Describe borders or shadows in prose rather than putting borderColor in YAML.(backgroundColor, textColor) pair in components: for WCAG AA >= 4.5:1 contrast (for example, do not pair white text with saturated orange #ff5317).DESIGN.md from the repository's AGENTS.md / CLAUDE.md so UI agents read it before modifying components, docs, stores, or social preview cards (og-image.png).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub fcakyon/claude-codex-settings --plugin designmd-skills2 skills in this plugin
Other plugins' skills for the same job