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
Установить sk-design-md-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Write - 03
Edit - 04
Bash - 05
Glob - 06
Grep
Вложенные файлы
- INSTALL-GUIDE.md
- README.md
- ROUTER.md
- assets/cardinal-rules-card.md
- assets/design-md-prompt-template.md
- assets/source-of-truth-router-card.md
- backend/.npmignore
- backend/README.md
- backend/package-lock.json
- backend/package.json
- backend/scripts/README.md
- backend/scripts/a11y-extract.ts
- backend/scripts/build-write-prompt.ts
- backend/scripts/cli.ts
- backend/scripts/cluster.ts
- backend/scripts/corpus-baseline-v3.ts
- backend/scripts/crawl.ts
- backend/scripts/css-analyzer.ts
- backend/scripts/css-tree.d.ts
- backend/scripts/dark-mode-detect.ts
- backend/scripts/design-boundary-detect.ts
- backend/scripts/dom-collector.ts
- backend/scripts/extract.ts
- backend/scripts/formatters-v3.ts
- backend/scripts/framework-detect.ts
- backend/scripts/guided-run.ts
- backend/scripts/icon-detect.ts
- backend/scripts/interaction-capture.ts
- backend/scripts/motion-extract.ts
- backend/scripts/output-policy.ts
- backend/scripts/preview-gen.ts
- backend/scripts/proof.ts
- backend/scripts/render-safety.ts
- backend/scripts/report-gen.ts
- backend/scripts/schema-v3.ts
- backend/scripts/study-exemplars.ts
- backend/scripts/study-prepare.ts
- backend/scripts/types.ts
- backend/scripts/typography-role-v3.ts
- backend/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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop 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…
internal-comms
AnthropicA 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…
skill-development
AnthropicThis 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…