design-md
БесплатноЗапускает вложенные скриптыНе проверенThis skill should be used when the user asks to "create DESIGN.md", "audit DESIGN.md", "align DESIGN.md to Google format", "validate design tokens", "export…
от fcakyon★ 1 223 звезды на GitHubОб этом скилле
DESIGN.md Design System Format & Audit
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.
When to Use
- Creating or updating a repository root
DESIGN.mdfrom brand rules, feedback, or CSS/native tokens - Auditing any repository's
DESIGN.mdbefore commits or UI changes across web, mobile, and desktop apps - Converting design tokens between
DESIGN.md, Tailwind CSS v4@theme, Tailwind v3 JSON, and W3C DTCG (tokens.json) - Diffing two revisions of
DESIGN.mdto catch token drift or WCAG AA contrast regressions
Use 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.
Required Format (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:
- YAML front matter (
---) withversion: alpha,name, anddescription - Canonical
##sections in exact order (omit unused sections rather than reordering):## Overview(alias:## Brand & Style)## Colors(colors:YAML block with top-level light-defaultprimaryand optionaldark: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'ts
Read the schema and linter reference for allowed sub-tokens, unit rules, and WCAG AA contrast details.
CLI & Audit Workflow
1. Run the bundled zero-dependency repo auditor
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.
2. Run Google's official CLI directly
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.
Critical Authoring Rules
- Define light-default
primarydirectly undercolors:(colors.primary), with dark tokens nested undercolors.dark:and explicitly referenced ({colors.dark.*}) insidecomponents:so neithermissing-primarynororphaned-tokenswarns. - Keep EVERY
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 puttingborderColorin YAML. - Check every
(backgroundColor, textColor)pair incomponents:for WCAG AA>= 4.5:1contrast (for example, do not pair white text with saturated orange#ff5317). - Wire
DESIGN.mdfrom the repository'sAGENTS.md/CLAUDE.mdso UI agents read it before modifying components, docs, stores, or social preview cards (og-image.png).
Установить design-md в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл design-md?
This skill should be used when the user asks to "create DESIGN.md", "audit DESIGN.md", "align DESIGN.md to Google format", "validate design tokens", "export design tokens", or wants structured brand, UI, and social-preview rules enforced across repositories.
Как установить скилл design-md?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл design-md запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic