Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

  1. 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.
  2. 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.
  3. Decide whether evidence is authoritative or inferred.
  4. 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.
  5. 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:

  1. User-provided files and links.
  2. Figma variables, components, frames and design context.
  3. GitHub repository files and existing implementation patterns.
  4. Brand guides, governance docs and design-system notes.
  5. 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:

  • ## Overview or ## Brand & Style
  • ## Colors
  • ## Typography
  • ## Layout or ## Layout & Spacing
  • ## Elevation & Depth or ## 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.md tokens -> 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 json
  • designmd lint DESIGN.md --format json
  • designmd diff before.md after.md --format json
  • designmd export DESIGN.md --format dtcg
  • designmd export DESIGN.md --format json-tailwind
  • designmd 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
Полный SKILL.md на GitHub

Установить design-md-generator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlassets/github-actions/design-md-lint.ymlassets/icon.svgreferences/design-md-cli-and-portability.mdreferences/design-md-workflow.mdreferences/figma-to-design-md-mapping.mdreferences/output-templates.mdreferences/qa-rubric.mdreferences/wordpress-ci-integration.mdreferences/wordpress-theme-json-mapping.mdscripts/ci-design-md-check.shscripts/collect-design-md-evidence.jsscripts/validate-design-md.sh

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить design-md-generator с