extract-design
Extract colours, typography, spacing, components and W3C design tokens from a live website with Dembrandt. Use when you need a site's real tokens or want to…
от dembrandt★ 249 звёзд на GitHub
Установить extract-design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Extract Design — Dembrandt
Dembrandt runs a headless Chromium browser against any URL, walks up to thousands of DOM elements, reads computed CSS, and returns a structured design system: colors with confidence scoring, typography styles, spacing scale, border radius, borders, shadows, and interactive component styles.
How to Run
Extraction needs Node.js 20 or newer. The CLI fetches its own Chromium on first run; the MCP server does not, so run dembrandt install-browser once if a job fails on browser launch. Without Node, say so and stop. Never guess the tokens.
# Install dembrandt from its own instructions: https://www.npmjs.com/package/dembrandt
# Basic extraction — outputs to terminal
dembrandt https://dembrandt.com
# JSON output — pipe into files or other tools
dembrandt https://dembrandt.com --json-only > dembrandt-tokens.json
# W3C DTCG format (design-tokens.org standard)
dembrandt https://dembrandt.com --dtcg --save-output
# Generate DESIGN.md (human + AI readable brand doc)
dembrandt https://dembrandt.com --design-md
# Multi-page crawl (follows internal links)
dembrandt https://dembrandt.com --crawl 5
# Dark mode colors
dembrandt https://dembrandt.com --dark-mode
# Mobile viewport
dembrandt https://dembrandt.com --mobile
# Everything saved to output/
dembrandt https://dembrandt.com --save-output
# Tailwind v4 @theme CSS — observed values only [dembrandt 0.28+]
dembrandt https://dembrandt.com --tailwind src/app.css
# Self-contained HTML report — open offline or attach as a CI artifact [dembrandt 0.19+]
dembrandt https://dembrandt.com --html report.html
# Drift gate — compare against a saved baseline; exits 1 on drift [dembrandt 0.19+]
dembrandt https://app.example.com --compare baseline.json --html report.html
MCP Usage (async by default)
To expose Dembrandt as MCP tools, add this server to the agent's MCP config:
{ "mcpServers": { "dembrandt": { "command": "dembrandt", "args": ["mcp"] } } }
When using the Dembrandt MCP server, all extraction tools return a job_id immediately rather than blocking. Wait on it with get_job_status and wait_seconds, which returns as soon as the job finishes. The status leaves the extraction out, since it runs to hundreds of kilobytes: hand the job_id to the pure tools, and set include_result: true only when you need the raw extraction [dembrandt 0.40.2+]:
1. get_design_tokens({ url: "dembrandt.com", pages: 5 })
→ { job_id: "job_123_abc", status: "queued" }
2. get_job_status({ job_id: "job_123_abc", wait_seconds: 50 })
→ { status: "completed" } // still "running" on a long crawl: call again
3. get_findings({ job_id: "job_123_abc" }) // no need to resend the extraction
→ { findings: [ ... ], contrast: { ... } }
Hand the job_id to the analysis tools instead of passing the extraction back. Every pure tool accepts it, and the queue keeps the whole extraction for an hour, so a job started by a narrow tool such as get_color_palette still feeds export_dtcg. Passing the extraction inline works and wins when you give both, but a real extraction is far too large to travel back through the model as a tool argument. [dembrandt 0.29+]
Pass sync: true to any extraction tool to block and return the result directly (useful on fast networks, risks timeout on slow sites, and proportionally slower when pages is above 1).
Extraction tools: get_design_tokens (everything), get_color_palette, get_typography, get_component_styles, get_surfaces, get_spacing, get_brand_identity, get_motion (durations, easings, named keyframes, hover patterns, and the gradients that travel with them) [dembrandt 0.36+]. All accept slow, mobile (mobile viewport), and cookie (cookie string for authenticated pages); get_design_tokens and get_color_palette also accept darkMode and wcag (contrast analysis). [dembrandt 0.23.1+ for mobile/cookie/wcag]
Every extraction tool also crawls, which is the single biggest lever on token quality: one page gives you one page's tokens. [dembrandt 0.29+]
| Option | What |
|---|---|
pages |
Extract up to N pages and merge them into one token set (1 to 20). Pages come from DOM links, or from sitemap.xml when sitemap is true |
paths |
Name the extra paths explicitly, e.g. ["/pricing", "/docs"]. Overrides discovery |
sitemap |
Discover from sitemap.xml. Alone it takes up to 20 pages; pages caps it |
header |
Extra HTTP headers, a string or a list, e.g. "Authorization: Bearer ...", for pages a cookie cannot reach |
cookieFile |
Path to a saved session: a JSON cookie array, a Playwright storageState file (cookies, localStorage, and the sessionStorage block --save-storage-state adds), or Netscape cookies.txt. The operator produces it once with dembrandt <url> --login --save-storage-state <path>; an agent cannot sign in itself [dembrandt 0.39+] |
basicAuth |
HTTP Basic credentials as "user:password" for staging h |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл extract-design?
Extract colours, typography, spacing, components and W3C design tokens from a live website with Dembrandt. Use when you need a site's real tokens or want to seed a design system from it.
Как установить скилл extract-design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл extract-design запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…