Command Palette

Search for a command to run...

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

extract-design-md

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

This skill should be used when the user asks to "extract DESIGN.md", "pull design tokens from code", "audit styling", or "reverse-engineer a design system"…

fcakyonот fcakyon★ 1 223 звезды на GitHub

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

Extract Design System from Frontend Code

Analyze frontend source code to extract a comprehensive design system document (DESIGN.md) that captures the project's visual language — colors, typography, spacing, component patterns, and layout principles — directly from the source files, without needing to build or render the application.

Why This Exists

The design-md skill works from rendered HTML. But often you have a codebase and want to understand its design system before you can even run the app — maybe dependencies are missing, the build is broken, or you just want a quick audit. This skill reads the source files themselves: stylesheets, component files, theme configs, and Tailwind setups. It's faster and works anywhere.

When to Use

  • User has a frontend codebase and wants to extract or document its design system
  • User wants to migrate a project's visual identity into Stitch
  • User asks to "audit the styling" or "understand the design language" of a repo
  • User wants to create a DESIGN.md from existing source code
  • The app can't be built/rendered but the source is available
  • User wants to unify or reconcile inconsistent styles across a codebase
  • User only has a website URL (a client site, a reference site, a product whose code isn't available) and wants its design system as a DESIGN.md

Prerequisites

  • Source-code mode: access to the frontend project's source directory
  • Source-code mode: no build or runtime dependencies needed — this skill reads source files only
  • Live-URL mode only: Node.js with puppeteer available (check: node -e "import('puppeteer')"; if the check fails, use the temporary install flow in Step 4 of Phase 1, never install into the user's project) — the same headless Chrome tooling the extract-static-html skill uses. No API key and no third-party extraction service: the page is rendered locally and the URL is never sent anywhere except the site itself

Workflow

Phase 1: Project Discovery

Start by understanding what you're working with. This determines which extraction patterns to use.

Live URL only? If the user gave a live website URL and no source directory, skip Steps 1 to 3 and go straight to Step 4 (Alternative Input: From a Live URL) below, then continue with Phase 2.

1. Detect the Framework and Stack

Scan the project root for telltale files:

Signal File Framework / Tool
package.json with react React / Next.js
package.json with vue Vue / Nuxt
package.json with svelte Svelte / SvelteKit
package.json with @angular/core Angular
tailwind.config.js/ts Tailwind CSS
postcss.config.js PostCSS pipeline
styled-components or @emotion in deps CSS-in-JS
.css / .scss / .less files only Plain CSS / SASS
theme.js / theme.ts / tokens.js Design token files

Read package.json first — it reveals the framework, CSS tooling, and any design-token libraries (e.g., style-dictionary, @chakra-ui/react, @mui/material, ant-design). This context tells you where to look for styling information.

2. Map the Source Tree

Identify the key directories and files you'll analyze:

src/
├── components/     ← Component-level styles
├── styles/         ← Global stylesheets
├── theme/          ← Theme definitions, tokens
├── assets/         ← Fonts, images
├── app.css         ← Root styles
└── index.css       ← Entry CSS

Also check for:

  • tailwind.config.js / tailwind.config.ts — Custom colors, fonts, spacing
  • globals.css / global.css — CSS custom properties (variables)
  • Any theme.* or tokens.* files
  • Component library config (e.g., chakra-theme.ts, vuetify.config.ts)

3. Read Framework-Specific Guidance

Consult the appropriate reference for extraction patterns:

These references contain framework-specific patterns for locating colors, typography, spacing, and component styles. Read the one that matches before proceeding.

4. Alternative Input: From a Live URL

If the user has only a URL and no source code on disk, use a rendered-page extraction as the Phase 1 input instead of the source tree. The source-code path above stays the default; this mode changes where the raw values come from, not what Phases 2 and 3 produce.

Render the page locally with headless Chrome via Puppeteer, the same approach the extract-static-html skill uses for its snapshot script. The browser runs on the user's machine and fetches the URL directly, so nothing is sent to a third-party extraction service and no API key is needed.

[!WARNING] A

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

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

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

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

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

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

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

stitch*:*
Bash
Read
Write
web_fetch

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

examples/DESIGN.mdreferences/angular.mdreferences/plain-css.mdreferences/react-tailwind.mdreferences/svelte.mdreferences/vue.mdscripts/extract-live-url.mjs

FAQ

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

This skill should be used when the user asks to "extract DESIGN.md", "pull design tokens from code", "audit styling", or "reverse-engineer a design system" from frontend source files or a live URL.

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

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

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

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

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

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