design-md-generator
БесплатноЗапускает вложенные скриптыНе проверенThe Design MD Generator creates and updates `DESIGN.md` files for LightSpeed projects, transforming design evidence from Figma and GitHub into a portable…
от lightspeedwp★ 20 звёзд на GitHubОб этом скилле
Design MD Generator
Purpose
Create, audit, update, validate and export DESIGN.md files for LightSpeed projects.
This skill is built for Figma-to-WordPress delivery. It turns design-system evidence from Figma, GitHub, theme.json, style variations, CSS variables, block files, brand guides and related documentation into an agent-readable design contract that AI coding agents can follow.
Treat DESIGN.md as a repo-level design contract. Do not treat it as a replacement for Figma, theme.json, governance documents or human approval.
Optimise for portable usage outside Stitch. The output must remain usable as a plain-text file in GitHub, local repositories, editors and Figma-adjacent workflows, with validation grounded in the official CLI rather than Stitch-only behaviour.
Decision Flow
- Identify the task type:
- new project with no
DESIGN.md; - existing project with no
DESIGN.md; - existing project with
DESIGN.md; - audit-only;
- validation/export-only.
- new project with no
- Identify the strongest evidence:
- Figma variables, modes, components and design context;
- GitHub files such as
DESIGN.md,theme.json,styles/*.json,block.json, CSS, Sass, patterns and templates; - uploaded files, screenshots, brand guides, PRDs or governance docs;
- public website inspection only when primary sources are missing.
- Decide whether evidence is authoritative or inferred.
- Produce the smallest appropriate output set:
DESIGN.md;design-md-source-map.md;design-md-validation-report.md;- optional issue-ready follow-ups;
- optional export files when requested.
- Validate before finalising.
Workflow
1. Classify the request
Work out whether the user wants generation, audit, update, validation, export, or a combination. Ask at most one focused question only if a missing detail materially changes the result. Otherwise continue with safe defaults and state assumptions briefly.
2. Collect evidence
Prefer evidence in this order:
- User-provided files and links.
- Figma variables, components, frames and design context.
- GitHub repository files and existing implementation patterns.
- Brand guides, governance docs and design-system notes.
- Screenshots or live-site inspection, labelled as inferred unless confirmed elsewhere.
Build a source map while inspecting evidence. Keep confirmed facts separate from inferred values.
3. Normalise the design system
Identify:
- primitive tokens;
- semantic tokens;
- component tokens;
- brand tokens;
- state tokens.
Map equivalent concepts across sources and note mismatches, duplicates, hardcoded values, undocumented components and unsupported assumptions.
4. Generate or update DESIGN.md
Use the current Google DESIGN.md specification as the external standard and keep the file structure aligned with it.
Include:
- YAML front matter for machine-readable tokens;
- Markdown rationale for human-readable guidance;
- required token groups where supported by the evidence;
- recommended narrative sections in the canonical order;
- clear notes where values are inferred rather than confirmed.
Use the spec's literal section headings when creating or correcting DESIGN.md content:
## Overviewor## Brand & Style## Colors## Typography## Layoutor## Layout & Spacing## Elevation & Depthor## Elevation## Shapes## Components## Do's and Don'ts
When updating an existing file:
- preserve unknown project-specific sections unless removal is explicitly requested;
- keep custom rationale that still reflects the evidence;
- replace stale or contradictory values only when the evidence supports the change.
5. Map Figma and WordPress evidence carefully
Always make the bridge explicit:
- Figma variables ->
DESIGN.mdtokens -> WordPress presets or CSS custom properties; - Figma components -> core blocks, patterns, template parts, block styles or custom blocks;
- Figma modes -> style variations, theme modes or custom property sets;
- interaction states -> CSS states, block supports or plugin logic.
State where WordPress editor constraints prevent a direct Figma match.
6. Validate
Run deterministic checks where available:
designmd spec --rules --format jsondesignmd lint DESIGN.md --format jsondesignmd diff before.md after.md --format jsondesignmd export DESIGN.md --format dtcgdesignmd export DESIGN.md --format json-tailwinddesignmd export DESIGN.md --format css-tailwind
Prefer the dot-free designmd alias for portability, especially on Windows shells. If the CLI is not installed globally, use npx @google/design.md or a checked-out local repo copy of the CLI.
Also perform manual review for:
- WordPress alignment;
- token traceability;
- contrast and accessibility risks;
- focus, hover, disabled and reduced-motion coverage where evidence exists;
- editor-safety and maintainability.
7. Report
Summarise:
- what wa
Установить design-md-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл design-md-generator?
The Design MD Generator creates and updates `DESIGN.md` files for LightSpeed projects, transforming design evidence from Figma and GitHub into a portable design contract for WordPress themes. Use this skill when starting a new project or auditing an existing one, ensuring that your design files are validated and aligned with implementation realities.
Как установить скилл design-md-generator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл design-md-generator запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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