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★ 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 thesk-codehub bundles for visual decisions.The transport
mcp-figmamoves 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-frontenddecides.
1. WHEN TO USE
Activation Triggers
Use when the user wants to:
- Extract a live website's real CSS into a machine-readable
DESIGN.mdv3 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.mdreplaces 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.mdagainst its sourcetokens.jsonto confirm hex accuracy and section completeness. - Generate visual validation reports (HTML preview, diff report) from a
DESIGN.md+tokens.jsonpair. - 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-frontendthrough thesk-codehub, and never loosen fidelity here to satisfy it.references/authoring-boundary.mddraws the line between measured values and a brief's stated intent. - The target is a Figma file, not a live website. Use
mcp-figmato 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
Установить sk-design-md-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashGlobGrepВложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic