Command Palette

Search for a command to run...

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

sk-design-md-generator

БесплатноЗапускает вложенные скриптыНе проверен

Extracts a live website's real CSS into a v3 Style Reference DESIGN.md via an embedded extract-write-validate pipeline.

MichelKerkmeesterот MichelKerkmeester★ 40 звёзд на GitHub

Об этом скилле

Design System Extractor (md-generator)

Captures a live website's real, measured CSS into a publication-quality DESIGN.md — a v3 Style Reference. It is a named, role-driven, ship-ready design-system handoff: named colour tokens, semantic type scale, named components, Surfaces, Elevation, Agent Prompt Guide, Similar Brands, and copy-paste Quick Start CSS + Tailwind. AI agents build against it without hallucinating colors, fonts, spacing, or shadows. It runs a three-phase pipeline (extract, write, validate) through an embedded Playwright crawler that samples five viewports and emits verbatim tokens.json. Deep operational detail lives in references/.

Boundary. This skill is the extraction and format-fidelity engine for design references. It captures what already exists.

It does not decide values for a surface that does not exist yet. That work belongs to sk-code-frontend, which the sk-code hub bundles for visual decisions.

The transport mcp-figma moves design data. This skill produces the authoritative measured reference that transport and downstream implementers (sk-code) consume.

When both apply to the same surface, this reference outranks sk-code-frontend's defaults. Where no measurement exists, sk-code-frontend decides.


1. WHEN TO USE

Activation Triggers

Use when the user wants to:

  • Extract a live website's real CSS into a machine-readable DESIGN.md v3 Style Reference, with every hex, pixel, font-weight, radius, and shadow copied verbatim from the running page.
  • Produce a hallucination-proof design document for an AI agent to code against — DESIGN.md replaces guesses with measured ground truth.
  • Capture colors (including dark-mode palette if detected), typography stacks, shadows, border-radii, spacing scales, CSS custom properties, framework markers, icon-system hints, motion tokens, and a11y data across five responsive viewports.
  • Validate a generated DESIGN.md against its source tokens.json to confirm hex accuracy and section completeness.
  • Generate visual validation reports (HTML preview, diff report) from a DESIGN.md + tokens.json pair.
  • Re-extract a site after a redesign to update the design-system reference.

Keyword Triggers: "extract design system", "generate DESIGN.md", "capture website css", "design tokens from url", "create design reference", "style reference", "tokens.json", "validate DESIGN.md", "anti-hallucination design doc", "design-to-markdown", "extract design tokens".

Use Cases

Full extraction — URL to DESIGN.md. The canonical workflow: crawl a live URL, produce tokens.json, write DESIGN.md output conforming to the v3 Style Reference format, then validate hex accuracy, section completeness, and Quick-Start fidelity. This is the primary path.

Validation-only. The user already has a DESIGN.md + tokens.json pair (from a prior extraction or hand-edited) and wants to confirm fidelity. Run the validator without re-extracting.

Visual report generation. Given a DESIGN.md + tokens.json pair, render an HTML preview and a visual-diff report to confirm the written doc matches the extracted tokens.

Example study. The user wants to understand how a gold-standard site (stripe, vercel, linear, supabase — included in references/examples/) structures its DESIGN.md output, to inform a new extraction or to learn the format conventions.

When NOT to Use

Skip this skill when:

  • The task is inventing a new design direction (palette, type scale, the anti-default critique). That is out of scope — this skill captures measured reality, it does not create new direction.
  • The task is authoring a Style Reference from a brief alone with no live site to measure. That is forward-authoring and OUT OF SCOPE for this mode. This mode reports what is measurably there. A brief-only request that does not name this mode's artifact uses a different contract. Route it to sk-code-frontend through the sk-code hub, and never loosen fidelity here to satisfy it. references/authoring-boundary.md draws the line between measured values and a brief's stated intent.
  • The target is a Figma file, not a live website. Use mcp-figma to extract from Figma Desktop.
  • The user only wants a screenshot or visual preview of a page. Use mcp-chrome-devtools.
  • The website cannot be reached (requires a live, renderable URL with JavaScript execution).

2. SMART ROUTING

The sk-design hub's sk-design-md-generator signal selects this packet, so its SKILL.md loads first. A request selects it by naming DESIGN.md, tokens.json, a style reference, CSS capture, validation or a report measured from a live site or an existing pair. A brief-only request naming DESIGN.md still lands here for its authoring-boundary refusal. Load references/design-md-format.md first, then the resources the detected phase names. Read ROUTER.md before selecting s

Полный SKILL.md на GitHub

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

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

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

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

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

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

Read
Write
Edit
Bash
Glob
Grep

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

INSTALL-GUIDE.mdREADME.mdROUTER.mdassets/cardinal-rules-card.mdassets/design-md-prompt-template.mdassets/source-of-truth-router-card.mdbackend/.npmignorebackend/README.mdbackend/package-lock.jsonbackend/package.jsonbackend/scripts/README.mdbackend/scripts/a11y-extract.tsbackend/scripts/build-write-prompt.tsbackend/scripts/cli.tsbackend/scripts/cluster.tsbackend/scripts/corpus-baseline-v3.tsbackend/scripts/crawl.tsbackend/scripts/css-analyzer.tsbackend/scripts/css-tree.d.tsbackend/scripts/dark-mode-detect.tsbackend/scripts/design-boundary-detect.tsbackend/scripts/dom-collector.tsbackend/scripts/extract.tsbackend/scripts/formatters-v3.tsbackend/scripts/framework-detect.tsbackend/scripts/guided-run.tsbackend/scripts/icon-detect.tsbackend/scripts/interaction-capture.tsbackend/scripts/motion-extract.tsbackend/scripts/output-policy.tsbackend/scripts/preview-gen.tsbackend/scripts/proof.tsbackend/scripts/render-safety.tsbackend/scripts/report-gen.tsbackend/scripts/schema-v3.tsbackend/scripts/study-exemplars.tsbackend/scripts/study-prepare.tsbackend/scripts/types.tsbackend/scripts/typography-role-v3.tsbackend/scripts/validate.ts

FAQ

Что делает скилл sk-design-md-generator?

Extracts a live website's real CSS into a v3 Style Reference DESIGN.md via an embedded extract-write-validate pipeline.

Как установить скилл sk-design-md-generator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл sk-design-md-generator запускает скрипты?

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

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

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