design-md-generator
БесплатноЗапускает вложенные скриптыНе проверенcreate, audit, update, validate and export DESIGN.md files for figma-to-wordpress projects. use when the user asks to generate a DESIGN.md from figma, github…
от 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?
create, audit, update, validate and export DESIGN.md files for figma-to-wordpress projects. use when the user asks to generate a DESIGN.md from figma, github, brand docs or theme files, audit an existing DESIGN.md against design or code sources, preserve and update a DESIGN.md, or export design tokens with the google DESIGN.md cli.
Как установить скилл design-md-generator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл design-md-generator запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic